AaveCollateralVaultProxy
contract, using the deployVault(address _asset)
method.setModel(AaveCollateralVault vault, uint model)
. If this call is not made, then a variable rate model is used by default.increaseLimit(address vault, address spender, uint addedValue)
.deposit(AaveCollateralVault vault, address aToken, uint amount)
.borrow(AaveCollateralVault vault, address reserve, uint amount)
.approve
-ing the amount to repay on the AaveCollateralVaultProxy
, then using repay(AaveCollateralVault vault, address reserve, uint amount)
.withdraw(AaveCollateralVault vault, address aToken, uint amount)
.function deployVault(address _asset)
_asset
to be borrowed.function setModel(uint _model)
_model
1
for stable, 2
for variable. Default of 2
.function increaseLimit(address vault, address spender, uint addedValue)
spender
by addedValue
for credit delegation vault
.vault
AaveCollateralVault
that was deployed.spender
addedValue
spender
is able to borrow, in base units of the asset. E.g. WBTC has 6 decimals, USDC has 8 decimals, ETH has 18 decimals.function deposit(AaveCollateralVault vault, address aToken, uint amount)
AaveCollateralVault
to enable delegated credit.vault
AaveCollateralVault
that was deployed.amount
function borrow(AaveCollateralVault vault, address reserve, uint amount)
spender
can call this method to borrow the amount under the maximum borrowable amount.vault
AaveCollateralVault
that was deployed.amount
function repay(AaveCollateralVault vault, address reserve, uint amount)
repay()
, the sender must approve()
the AaveCollateralVaultProxy
for the amount
to be repaid.vault
AaveCollateralVault
that was deployed.amount
function withdraw(AaveCollateralVault vault, address aToken, uint amount)
vault
AaveCollateralVault
that was deployed.amount