FeedProjects
Developers
Settings
🎉 A new chapter begins: Boardroom has joined Agora
Learn more
protocol logo
Explore / Projects
Aave

Insights

Proposals

Discussions

Members

Information

Reports

Create Proposal

Aave

InsightsProposalsDiscussionsMembersInformationReports
Proposal
Back to Proposals
executedEnded 3 years ago ·  Onchain

Aave v2/v3 Collectors unification

By 0xf71f...c61E02

Simple Summary

Technical upgrade to align the implementation and architecture of Aave’s ecosystem Collector contracts across all networks.

Motivation

The Aave ecosystem, and more precisely its liquidity protocol (v1/v2/v3) collect fees in a decentralized way, which later on are used for example to fund grants, pay different service providers, or pursue different other strategies.

All these actions are controlled by the Aave Governance V2 smart contracts (or cross-chain governance), and due to technical reasons regarding upgradeable contracts, usually they are triggered by interacting with another contract called Controller of Collector, which simply acts as a layer of indirection with the Collector itself.

But in practice, this current organization has some points of improvement:

  • The codebase of the Collector is different across instances of Aave. The most updated version is the one on Ethereum, with others for example not supporting streaming, just because of legacy reasons.
  • The pattern of Controller of Collector <> Collector can be simplified and unified with other parts of the ecosystem.

Sometimes, this lack of technical unification creates overhead (both operational and of understanding) on contributors, specifically those interacting with the “treasury” side of the protocol like Llama, so we present this proposal to improve the system.

Specification

The smart contract used as the implementation of the Aave v2 & v3 Collector (a common proxy for both) is the most updated of the ecosystem, activated on https://app.aave.com/governance/proposal/71/, and mainly adding streaming capabilities.

  • UpgradeAaveCollectorPayload: this proposal payload will deploy the most up-to-date version of the collector and set it as the implementation for the existing proxy for all v3 deployments. Moreover, it will change not optimal “Controller of Collector” pattern to a more commonly used “ProxyAdmin”.

Currently, apart from Ethereum, Polygon, and Avalanche are the only networks with both instances of Aave v2 and v3.

  • MigrateV2CollectorPayload: This proposal will redirect all future fee collection of the v2 pools to v3’s Collector by updating the AToken implementation. For both Polygon and Avalanche v2, instances, before redirecting fee collection to the v3’s Collector, the proposal will send there all the accrued fees plus rewards incentives on those.

This proposal will be an approval for the Avalanche part, and both payloads will be executed there separately by the Aave Guardian. For other networks, the execution will happen through this proposal.

References

A list of relevant links like for this proposal:

  • forum discussion
  • tests
  • Contracts:
    • Collector
    • AaveMigrationCollector
    • AToken

Security Considerations

The previous upgrade of the Collector contract, which is currently active on Mainnet, was reviewed by Certora. Our policy was to have minimum deviaton from this version.

  • Code diffing: Comparing the codebase of all existing Collectors with the consolidated one, to not have any unexpected logic included or missing.

  • Storage diffing: Comparing the storage layout of versions, to verify that there is no misalignment between them, which could create important problems. Generated diffs:

    • Mainnet Collector
    • Polygon Collector
    • Optimism Collector
    • Arbitrum Collector
    • Avalanche Collector
  • E2E tests: we are checking that the main actions available on the Collector can be performed (e.g. transfer, approve) on networks, and additionally we check that updated permissions are set correctly.

Deployed Contracts

Collector Unification

ChainCollectorPayload
Ethereumhttps://etherscan.io/address/0x80f2c02224a2e548fc67c0bf705ebfa825dd5439https://etherscan.io/address/0x7fc3fcb14ef04a48bb0c12f0c39cd74c249c37d8
Polygonhttps://polygonscan.com/address/0x230e0321cf38f09e247e50afc7801ea2351fe56fhttps://polygonscan.com/address/0xa9f30e6ed4098e9439b2ac8aea2d3fc26bcebb45
Optimismhttps://optimistic.etherscan.io/address/0x230e0321cf38f09e247e50afc7801ea2351fe56fhttps://optimistic.etherscan.io/address/0xa9f30e6ed4098e9439b2ac8aea2d3fc26bcebb45
Arbitrumhttps://arbiscan.io/address/0x981ab570ac289938f296b975c524b66fbf1b8774https://arbiscan.io/address/0x05225cd708bca9253789c1374e4337a019e99d56
Avalanchehttps://snowtrace.io/address/0xbdd1458a6d399c88d4509275e4463485c6c86ef3https://snowtrace.io/address/0x0620a1325e64ebfa3a272b020b47583766d9bc25

V2 Funds Transfer

ChainMigrationCollectorATokenPayload
Polygonhttps://polygonscan.com/address/0xfd858c8bc5ac5e10f01018bc78471bb0dc392247https://polygonscan.com/address/0x80f2c02224a2e548fc67c0bf705ebfa825dd5439https://polygonscan.com/address/0xc383aac4b3dc18d9ce08ab7f63b4632716f1e626
Avalanchehttps://snowtrace.io/address/0x4752c92085db240e1d9d5653e663a6225d14fcc7https://snowtrace.io/address/0x44b4221c950fcf23a40e68dea29fed0bb88893a9https://snowtrace.io/address/0x9e9b953a3be8ca196fb7eee4660a5830da0d06de

Copyright

Copyright and related rights waived via CC0.

Continue Reading
Connect Wallet to Add Note
0
Votes 11
VoterCast PowerVote & Rationale
0x329c...543eD4
227,369

YAE

FranklinDAO (Prev. Penn Blockchain)
108,104

YAE

0x62a4...96816a
82,000

YAE

0x13BD...138548
80,963

YAE

0xB83b...Fbcf5C
80,588

YAE

SHOW MORE
VOTE POWER
0
Connect Wallet
Proposal Status
  • Published Onchain 0xf71f...c61E02
  • Tue April 18 2023, 08:28 amVoting Period Starts
  • Fri April 21 2023, 01:44 amEnd Voting Period
  • Fri April 21 2023, 01:44 amQueue Proposal
  • Sat April 22 2023, 01:45 amExecute Proposal
Current Results

1-YAE

634,985.06

2-NAY

0.101

0%
DocumentationBrandingContact Us