Skip to content

Latest commit

 

History

History
89 lines (53 loc) · 3.32 KB

105-management-of-fei-unwinding-from-aave-v2-ethereum-collector.md

File metadata and controls

89 lines (53 loc) · 3.32 KB

Proposal 105. (Repetition of Proposal 103) Management of FEI (aFEI) unwinding from Aave v2 Ethereum Collector


Voting link

https://app.aave.com/governance/proposal/?proposalId=105


Governance forum discussion

https://governance.aave.com/t/arc-ethereum-v2-reserve-factor-afei-holding-update/9401


BGD analysis


Proposal types

💳 funds-allowance

💰 protocol-collector


Context

Following the freezing process of FEI started on proposal 96, this next step redeems the FEI held by the Aave v2 Ethereum Collector, to exchange it for DAI on the Tribe DAO PSM, and re-supply this DAI on Aave v2 Ethereum on behalf of the Collector.


Proposal creation

Transaction: https://etherscan.io/tx/0x7e46cc8d6b70be15d3e2948810eaf994c04192252a910a742f2d1f0e55458310

- id: 105
- creator: 0x55b16934c3661e1990939bc57322554d9b09f262
- executor: 0xee56e2b3d491590b5b31738cc34d5232f378a8d5
- targets: [0x8dfd2255a9d38c182a14f49afcb8a4a4763c6098]
- values: [0]
- signatures: [execute()]
- calldatas: [0x]
- withDelegatecalls: [true]
- startBlock: 15683472
- endBlock: 15702672
- strategy: 0xb7e383ef9b1e9189fc0f71fb30af8aa14377429e
- ipfsHash: 0x267dbabe4b9efc5aaa4b883462eb81b98ad717f7d3db4720420f2a58aa3b2cf9

Aave Seatbelt report

https://github.com/bgd-labs/seatbelt-for-ghosts/blob/main/reports/Aave/0xEC568fffba86c094cf06b22134B23074DFE2252c/105.md


Technical analysis

From a technical perspective, the proposal involves 2 smart contracts:

  1. The proposal payload (RedeemFei). This smart contract gives allowance of aFEI to a Swapper one (more on 2)) and triggers its execution by calling swapAllAvailable().
  2. The aFEI->aDAI Swapper. This contract takes care of the of the technicalities of swapping the aFEI of the Aave Collector for DAI on the Tribe DAO PSM. Generally it does the following:
    • "Pulls" all the available aFEI from the Aave Collector, approved on 1).
    • Redeems aFEI to FEI.
    • Swaps the FEI to DAI on the Tribe DAO Fixed Price PSM.
    • Supplies back the DAI to Aave v2 Ethereum, on behalf of the Collector.

Given that the Swapper contract keeps allowance of aFEI after this operation, it is possible in the future to call swapAllAvailable() in a permissionless way, to repeat the process, whenever more aFEI is accrued on the Collector.


BGD validations

✅ The code on the proposal payload corresponds to the proposal specification.

✅ The proposal includes a proper tests suite, checking all necessary post-conditions.

✅ BGD reviewed the payload before the proposal was submitted.

✅ Only one payload used via delegatecall

✅ BGD reviewed the procedure followed to submit the proposal.