Credit Delegation is a feature of Aave which allows a Credit Delegator to delegate the credit of their account's position to a Borrower. The terms of the Credit Delegation are decided and agreed between the parties off-chain, using OpenLaw.
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)
.
An open source example of an OpenLaw loan agreement can be found here. This can be used (and improved) by anyone, however before signing the contract, the parties should seek legal counsel.
deployVault(address _asset)
Deploys a vault with _asset
to be borrowed.
Returns the address of the newly deployed AaveCollateralVault.
setModel(uint _model)