From 2ec88215beabd4980ddd7ab5f60044773fd35fd5 Mon Sep 17 00:00:00 2001 From: Richa-iitr Date: Sun, 2 Oct 2022 22:36:45 +0530 Subject: [PATCH] updated approve to iEthDSA --- contracts/mainnet/connectors/instaLite_import/main.sol | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contracts/mainnet/connectors/instaLite_import/main.sol b/contracts/mainnet/connectors/instaLite_import/main.sol index c18c0f3e..8b7b6528 100644 --- a/contracts/mainnet/connectors/instaLite_import/main.sol +++ b/contracts/mainnet/connectors/instaLite_import/main.sol @@ -19,6 +19,9 @@ abstract contract InstaLiteConnector is Events, Basic { IInstaLite internal constant iEth = IInstaLite(0xc383a3833A87009fD9597F8184979AF5eDFad019); + address internal constant iEthDSA = + 0x94269A09c5Fcbd5e88F9DF13741997bc11735a9c; + /** * @dev Supply ETH/ERC20 * @notice Supply a token into Instalite. @@ -45,7 +48,7 @@ abstract contract InstaLiteConnector is Events, Basic { ? astethToken.balanceOf(msg.sender) : stEthAmt_; - astethToken.approve(address(iEth), stEthAmt_); + astethToken.approve(iEthDSA, stEthAmt_); uint256 initialBal = iEth.balanceOf(address(this)); iEth.importPosition(