Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 775 Bytes

File metadata and controls

28 lines (19 loc) · 775 Bytes

IAaveV2Deposit

Deposit

Deposits a ERC20 token into the Aave protocol.

Input Name Description
assetIn Address of the asset to be deposit into the Aave protocol (DAI, WETH, WBTC...)
percentageIn Percentage of the balance of the asset that will be deposited (100000 = 100%)
function deposit(address assetIn, uint256 percentage) external;

Withdraw

Withdraws from the Aave protocol.

Input Name Description
assetOut Address of the asset to be withdrawn from the Aave protocol (DAI, WETH, WBTC...)
percentageOut Percentage of the balance of the asset to be withdrawn (100000 = 100%)
function withdraw(address assetOut, uint256 percentageOut) external;