0xcbd1c32a…beebsent to0xe1b3f07a…0f6e·#15,057,378·view on Etherscan
createRetryableTicket(address,uint256,uint256,address,address,uint256,uint256,bytes)
UIP-005: Add Aave V3 Support on Arbitrum
## Intro
This is a change to the protocol, and therefore will go through the UIP process.
## Motivation
Currently, all unlent DAI in Union on Arbitrum is stored in a puretoken DAI adapter. Now that aave V3 has been deployed to Arbitrum, an adapter can be written to support depositing a portion of deposited DAI in aave V3 to earn interest.
## Proposal / Solution
Create an AssetManager Adapter that works with Aave V3 to deposit a portion of unlent DAI to Aave V3 on Arbitrum to earn interest and rewards.
### Main functions:
- deposit() - deposit DAI in AssetManager to Aave to earn interest.
- withdraw() - withdraw DAI from Aave and move to AssetManager.
- claimRewards() - get the rewarded Aave token.
### Parameters
- Set AaveV3Adapter floor to 10,000 DAI
- Set AaveV3Adapter ceiling to 50,000 DAI
## Defining Success
Be able to deposit to / withdraw from Aave, and be able to claim rewards token from Aave on Arbitrum.
## Backwards Compatibility
No issues with backward compatibility for this proposal.
## Test Cases
Tests and simulations can be found here: [Link to PR](https://github.com/unioncredit/union-v1-contracts/pull/106)
## Implementation
### Before creating the proposal:
- Create and deploy AaveV3Adapter on Arbitrum
- Set AaveV3Adapter floor to 10,000 DAI
- Set AaveV3Adapter ceiling to 50,000 DAI
- Set AaveV3Adapter mapTokenToAToken
### In the proposal:
- Call AssetManager.addAdapter() to add AaveV3Adapter.