Skip to content

bgd-labs/protocol-v3.3-upgrade

 
 

Repository files navigation

Aave v3.3 upgrade

This repository contains contracts to upgrade existing instances of Aave protocol from v3.2.0 to v3.3.0.


Dependencies

  • Foundry, how-to install (we recommend also update to the last version with foundryup).
  • ZkSync Foundry, how-to install (we recommend also update to the last version with foundryup-zksync).

Setup

cp .env.example .env # you need to setup functional rpcs
forge install

# optional, to install prettier
yarn install

Tests

Command run test for all networks expect zkSync: forge test

Command to run test for zkSync: FOUNDRY_PROFILE=zksync forge test --zksync

There are two test templates available:


Upgrade payload

The payload for the upgrade does the following:

  • Upgrades the PoolConfigurator implementation.
  • Upgrades the Pool implementation.
  • Connects the new PoolDataProvider to the PoolAddressesProvider.

Misc

Additionally, there are new versions of some periphery-contracts that might be deployed alongside the proposal, namely:

  • WrappedTokenGatewayV3
  • ParaswapAdapters
  • StataTokenFactory

It's important to note that these contracts are:

  • not part of the upgrade payload.
  • they don't need to be upgraded, the old versions are perfectly operational.

Using the newer versions will result in slightly lower gas usage on certain operations.

License

Copyright © 2024, BGD Labs.

This repository is BUSL-1.1-licensed.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 96.1%
  • Makefile 3.9%