DeFi - Lending (Aave)
Last updated
Last updated
In lending protocols like Aave, you can set a member with the following roles, so he/she can react ASAP once there's an emergency:
User with 'repay' roles can repay debts immediately when the health rate is reaching the liquidation line.
User with 'withdraw' roles can withdraw deposits immediately when there's a danger signal(hacker attack, rug, extreme utilization) of the pool.
Here we take Aave as a samlpe to show you how you can set the roles:
Repay ETH & Withdraw ETH
Enter the role name and target contract address (for native tokens like ETH/Matic, the gateway contract is used as the target contract).
Polygon:
0xAeBF56223F044a73A513FAD7E148A9075227eD9b
(WrappedTokenGatewayV2)
Select the roles and fill the parameters (Notice: the 2 parameters marked below must be the Safe Address otherwise the member with this role is able to transfer your assets away by abusing the functions).
Repay ERC20 & Withdraw ERC20
Enter the role name and target contract address.
Polygon:
0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf (Aave: Lending Pool V2)
Select the roles and fill the parameters (Notice: the 2 parameters marked below must be the Safe Address otherwise the member with this role is able to transfer your assets away by abusing the functions).