compassDAO
  • Welcome to compassDAO
  • General Information
    • What is compassDAO?
    • Vision
    • Mission
    • Value
    • Why compassDAO?
    • What we offer?
  • How to use
    • compassStats
      • For All Users
        • Connect Wallet
        • Set Up Notifiers
        • Schedule Tasks
        • Set Alerts
      • For Devs (Data Contributor)
        • API
        • Best Practices
          • Get the balance of an address
          • Curve 3pool Proportion Monitoring
          • Curve 3pool Big Withdrawn Monitoring
    • compassSafe
      • Get Started
      • Set Up Safe Module
      • Set Role
      • Set Member
      • Interact With Dapps
      • Disable Safe Module
      • Best Practices
        • DeFi - Lending (Aave)
        • DeFi - Dex (Uniswap V3)
      • For Devs
        • execTransactionFromModule
        • execTransactionsFromModule
      • Versions
      • FAQ
  • FAQ
    • Untitled
  • Links
    • Website
    • Github
    • Twitter
    • Discord
Powered by GitBook
On this page
  1. How to use
  2. compassSafe
  3. Best Practices

DeFi - Lending (Aave)

PreviousBest PracticesNextDeFi - Dex (Uniswap V3)

Last updated 1 year ago

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 as a samlpe to show you how you can set the roles:

  1. 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: (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).

  2. Repay ERC20 & Withdraw ERC20

    • Enter the role name and target contract address.

      Polygon: 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).

Aave
0xAeBF56223F044a73A513FAD7E148A9075227eD9b
0x8dFf5E27EA6b7AC08EbFdf9eB090F32ee9a30fcf (