mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
changes
This commit is contained in:
parent
2ee63f3058
commit
b479b164dd
|
@ -9,6 +9,6 @@ contract Events {
|
|||
uint256 stEthAmt,
|
||||
uint256 wethAmt,
|
||||
uint256[] getIds,
|
||||
uint256[] setIds
|
||||
uint256 setId
|
||||
);
|
||||
}
|
|
@ -2,6 +2,8 @@
|
|||
pragma solidity ^0.7.0;
|
||||
|
||||
interface IInstaLite {
|
||||
function balanceOf(address account) external view virtual returns (uint256);
|
||||
|
||||
function importPosition(
|
||||
address flashTkn_,
|
||||
uint256 flashAmt_,
|
|
@ -28,7 +28,7 @@ abstract contract InstaLiteConnector is Events, Basic {
|
|||
* @param stEthAmt_ Amount of astEthToken to be imported.
|
||||
* @param wethAmt_ Amount of weth borrows to be imported.
|
||||
* @param getIds IDs to retrieve amt.
|
||||
* @param setIds array of IDs to store the amount of tokens deposited.
|
||||
* @param setId ID to store balanceOf of iEth.
|
||||
*/
|
||||
function importPosition(
|
||||
address flashTkn_,
|
||||
|
@ -37,7 +37,7 @@ abstract contract InstaLiteConnector is Events, Basic {
|
|||
uint256 stEthAmt_,
|
||||
uint256 wethAmt_,
|
||||
uint256[] memory getIds,
|
||||
uint256[] memory setIds
|
||||
uint256 setId
|
||||
) external returns (string memory eventName_, bytes memory eventParam_) {
|
||||
uint256 stEthAmt_ = getUint(getIds[0], stEthAmt_);
|
||||
uint256 wethAmt_ = getUint(getIds[1], wethAmt_);
|
||||
|
@ -56,10 +56,9 @@ abstract contract InstaLiteConnector is Events, Basic {
|
|||
wethAmt_
|
||||
);
|
||||
|
||||
setUint(setIds[0], stEthAmt_);
|
||||
setUint(setIds[1], wethAmt_);
|
||||
setUint(setId, iEth.balanceOf(address(this)));
|
||||
|
||||
eventName_ = "LogImport(address,uint256,uint256,uint256,uint256,uint256[],uint256[])";
|
||||
eventName_ = "LogImport(address,uint256,uint256,uint256,uint256,uint256[],uint256)";
|
||||
eventParam_ = abi.encode(
|
||||
flashTkn_,
|
||||
flashAmt_,
|
||||
|
@ -67,7 +66,7 @@ abstract contract InstaLiteConnector is Events, Basic {
|
|||
stEthAmt_,
|
||||
wethAmt_,
|
||||
getIds,
|
||||
setIds
|
||||
setId
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user