Skip to content

Aave v3 Action provider #323

Open

Description

@debuggingfuture

🚀 The feature, motivation and pitch

We've come up with action provider similar to morpho for aave, that is based on https://github.com/aave/aave-utilities

support supply / withdraw on markets on base-sepolia and other chains

Some points regarding dependencies (ethers-v5) would like to seek team's advice
Will attach the PR

Alternatives

No response

Additional context

No response

Activity

  1. Hebx commented on Feb 9, 2025

    @Hebx

    Opened a PR that support supply / withdraw from aave v3 pool, tested on mainnet ✅.
    #326

  2. debuggingfuture commented on Feb 10, 2025

    @debuggingfuture
    ContributorAuthor

    Great work @Hebx! With OSS spirit see how can build on top & further contribute
    cc agentkit team @John-peterson-coinbase

    What we learnt integrating aave

    1. Related to Typescript agenkit should install only dependencies of enabled action provider #332, case in point of aave, the official sdk depends on ethers@v5 Provider (not Signer though)
      - replacing that to viem is non-trivial, as @aave/contract-helpers took multiple steps validating params with different contracts/services during withdraw / supply, especially if pre-approval is bundled or gas optimize path is taken.
      - specifically agentkit viem wallet-> @aave/contract-helpers involves back and forth conversion of amount which could be error prone esp if amount is specified by llm

    2. integration tests in need

    1. agentkit seems to be designed to run on single network, which make sense as it use single wallet
    • some trading strategies invovle rebalance positions across multiple markets/chains. will make more sense to support when agentkit action take in multiple wallets

    Our proposal for contribution:

    • once Feat/aave: Integrate Aave Actions to Agentkit #326 get merged, we could focus on extending with our impl

      • onto more assets (besides USDC/ETH)
      • onto more Aave markets (chains) include testnets
    • depends on Typescript agenkit should install only dependencies of enabled action provider #332,

      • translate subset of aave features (e.g. supply/withdraw) into viem fully to avoid @aave/contract-helpers & ethers@v5
      • or stick with @aave/contract-helpers but contain the ethers v5 dependency to those who need Aave
    • adding integration tests

      • add separate ci step to run integration tests. Convention can be .int.test.ts or @integration in jest test naming
      • we can add a test case on sepolia, base-sepolia for ETH,USDC
  3. added
    action provider
    needs review
    on Feb 10, 2025
  4. Stakemate369 commented on Jul 20, 2026

    @Stakemate369

    Opened a fresh attempt at this: #1378 — pure viem, no ethers/@aave/contract-helpers dependency, addressing the concern that stalled #326. Supply/withdraw only for now (ERC-20 reserves), same pattern as the existing Morpho/Compound action providers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    action providerbanananeeds review

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions