mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
updated setId
This commit is contained in:
parent
b479b164dd
commit
61d3970273
|
@ -8,6 +8,7 @@ contract Events {
|
||||||
uint256 route,
|
uint256 route,
|
||||||
uint256 stEthAmt,
|
uint256 stEthAmt,
|
||||||
uint256 wethAmt,
|
uint256 wethAmt,
|
||||||
|
uint256 iEthAmount,
|
||||||
uint256[] getIds,
|
uint256[] getIds,
|
||||||
uint256 setId
|
uint256 setId
|
||||||
);
|
);
|
||||||
|
|
|
@ -46,6 +46,7 @@ abstract contract InstaLiteConnector is Events, Basic {
|
||||||
: stEthAmt_;
|
: stEthAmt_;
|
||||||
|
|
||||||
astethToken.approve(address(iEth), stEthAmt_);
|
astethToken.approve(address(iEth), stEthAmt_);
|
||||||
|
uint256 initialBal = iEth.balanceOf(address(this));
|
||||||
|
|
||||||
iEth.importPosition(
|
iEth.importPosition(
|
||||||
flashTkn_,
|
flashTkn_,
|
||||||
|
@ -56,7 +57,10 @@ abstract contract InstaLiteConnector is Events, Basic {
|
||||||
wethAmt_
|
wethAmt_
|
||||||
);
|
);
|
||||||
|
|
||||||
setUint(setId, iEth.balanceOf(address(this)));
|
uint256 finalBalance = iEth.balanceOf(address(this));
|
||||||
|
uint256 iEthAmt_ = finalBalance - initialBal;
|
||||||
|
|
||||||
|
setUint(setId, iEthAmt_);
|
||||||
|
|
||||||
eventName_ = "LogImport(address,uint256,uint256,uint256,uint256,uint256[],uint256)";
|
eventName_ = "LogImport(address,uint256,uint256,uint256,uint256,uint256[],uint256)";
|
||||||
eventParam_ = abi.encode(
|
eventParam_ = abi.encode(
|
||||||
|
@ -65,6 +69,7 @@ abstract contract InstaLiteConnector is Events, Basic {
|
||||||
route_,
|
route_,
|
||||||
stEthAmt_,
|
stEthAmt_,
|
||||||
wethAmt_,
|
wethAmt_,
|
||||||
|
iEthAmt_,
|
||||||
getIds,
|
getIds,
|
||||||
setId
|
setId
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user