aave / aave/interface

EIP-5792 Batch Transaction Spport

Open
#2,483 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature new issue
Dominant language
TypeScript
Stars
536
Forks
496
Avg merge
1d 8h
Merged PRs (30d)
9

Description

For actions requiring ERC-20 token approval, integrate batch approval using EIP-5792

https://eip.tools/eip/5792

  • Query wallet compatibilities and set global state whether wallet supports batch transactions per chainId
    "atomic": {
      "status": "supported"
    }

Actions requiring token approval:

  • Supply
  • Repay
  • Repay With Collateral
  • Collateral Swap
  • Debt Swap
  • Withdraw & Swap
  • Stake
  • Swap

Example batch transaction: https://github.com/defispartan/approve/blob/f88cc5980514acb08f130aa6bc88e986ae7a2d97/app/actions/BatchSupply.tsx

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the EIP-5792 specification and the referenced app/actions/BatchSupply.tsx example, then trace the listed approval-requiring actions in the interface. Implement wallet compatibility state per chainId and integrate batch approval for Supply, Repay, Repay With Collateral, Collateral Swap, Debt Swap, Withdraw & Swap, Stake, and Swap.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.