delegation-framework
delegation-framework copied to clipboard
Add Aave Lending Deposit and Withdrawal With Delegation
What?
- Test on how to best use delegations to deposit / withdraw funds for Aave v3 protocol.
Why?
- Requested feature.
How?
- By leveraging existing caveat enforcers
Notes
- This PR includes a POC of the adapter that will be used for interacting with the Aave protocol. This adapter helps skip the ERC20 approval step and directly transfer ERC20 tokens using a delegation.
It is pending to validate if we prefer the simple withdrawByDelegation or withdrawByDelegationOpenEnded
If we decide that we want both options, then we need to unify the code to avoid code duplication and also apply the same approach to the other adapters.
This PR needs an RPC URL secret on github to work