Skip to content

Commit

Permalink
fix: updated basenet contracts with new proxy admin (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustboyar committed Aug 11, 2023
1 parent 9f158db commit 8905a2e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -634,9 +634,9 @@ export const pools = [
addressProvider: '0xe20fCBdBfFC4Dd138cE8b2E6FBb6CB49777ad64D',
version: 3,
additionalAddresses: {
CAPS_PLUS_RISK_STEWARD: '0xbc47546dFb32Afe47640f74A10bC8EA04Cf953d8',
LISTING_ENGINE: '0xdBb0236007FD3697B03A88b4B550b422F57894CF',
RATES_FACTORY: '0xC07226Cff8D032E9B20fBf1cEC437D4De5cf9655',
CAPS_PLUS_RISK_STEWARD: '0x12DEB4025b79f2B43f6aeF079F9D77C3f9a67bb6',
LISTING_ENGINE: '0xc7751400F809cdB0C167F87985083C558a0610F7',
RATES_FACTORY: '0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832',
L2_ENCODER: '0x39e97c588B2907Fb67F44fea256Ae3BA064207C5',
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2',
UI_INCENTIVE_DATA_PROVIDER: '0xEdD3b4737C1a0011626631a977b91Cf3E944982d',
Expand Down
2 changes: 1 addition & 1 deletion src/AaveMisc.sol
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@ library AaveMisc {
address constant PROXY_ADMIN_METIS = 0x1CabD986cBAbDf12E00128DFf03C80ee62C4fd97;

address constant TRANSPARENT_PROXY_FACTORY_BASENET = 0x05225Cd708bCa9253789C1374e4337a019e99D56;
address constant PROXY_ADMIN_BASENET = 0x810a339fb0a80d3c700804AC45b04cfc10C1803A;
address constant PROXY_ADMIN_BASENET = 0xc85b1E333aecc99340b2320493Fe2d22b8734795;
}
6 changes: 3 additions & 3 deletions src/AaveV3Basenet.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ library AaveV3Basenet {

address internal constant EMISSION_MANAGER = 0x6533A273F3aC84Df91DCD654D6EBAbA73687e246;

address internal constant CAPS_PLUS_RISK_STEWARD = 0xbc47546dFb32Afe47640f74A10bC8EA04Cf953d8;
address internal constant CAPS_PLUS_RISK_STEWARD = 0x12DEB4025b79f2B43f6aeF079F9D77C3f9a67bb6;

address internal constant LISTING_ENGINE = 0xdBb0236007FD3697B03A88b4B550b422F57894CF;
address internal constant LISTING_ENGINE = 0xc7751400F809cdB0C167F87985083C558a0610F7;

address internal constant RATES_FACTORY = 0xC07226Cff8D032E9B20fBf1cEC437D4De5cf9655;
address internal constant RATES_FACTORY = 0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832;

address internal constant L2_ENCODER = 0x39e97c588B2907Fb67F44fea256Ae3BA064207C5;

Expand Down
6 changes: 3 additions & 3 deletions src/ts/AaveV3Basenet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export const DEFAULT_VARIABLE_DEBT_TOKEN_IMPL_REV_1 = '0x2425A746911128c2eAA7bEB
export const DEFAULT_STABLE_DEBT_TOKEN_IMPL_REV_1 = '0xe0b9B4f959fa8B52B7228c8D78875482b8813349';
export const CHAIN_ID = 8453;
export const EMISSION_MANAGER = '0x6533A273F3aC84Df91DCD654D6EBAbA73687e246';
export const CAPS_PLUS_RISK_STEWARD = '0xbc47546dFb32Afe47640f74A10bC8EA04Cf953d8';
export const LISTING_ENGINE = '0xdBb0236007FD3697B03A88b4B550b422F57894CF';
export const RATES_FACTORY = '0xC07226Cff8D032E9B20fBf1cEC437D4De5cf9655';
export const CAPS_PLUS_RISK_STEWARD = '0x12DEB4025b79f2B43f6aeF079F9D77C3f9a67bb6';
export const LISTING_ENGINE = '0xc7751400F809cdB0C167F87985083C558a0610F7';
export const RATES_FACTORY = '0x0D1Fe8eAdb0a3e44C4Cc9D73De8dA50C1E475832';
export const L2_ENCODER = '0x39e97c588B2907Fb67F44fea256Ae3BA064207C5';
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x2f6571d3Eb9a4e350C68C36bCD2afe39530078E2';
export const UI_INCENTIVE_DATA_PROVIDER = '0xEdD3b4737C1a0011626631a977b91Cf3E944982d';
Expand Down

1 comment on commit 8905a2e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Foundry report

forge 0.2.0 (3fec8c1 2023-08-11T00:15:50.024503184Z)
Build log
installing solc version "0.8.21"
Successfully installed solc 0.8.21
Compiling 70 files with 0.8.21
Solc 0.8.21 finished in 4.06s
Compiler run successful!
| Contract                   | Size (kB) | Margin (kB) |
|----------------------------|-----------|-------------|
| AaveGovernanceV2           | 0.285     | 24.291      |
| AaveMisc                   | 0.086     | 24.49       |
| AaveV2Avalanche            | 0.086     | 24.49       |
| AaveV2AvalancheAssets      | 0.086     | 24.49       |
| AaveV2Ethereum             | 0.086     | 24.49       |
| AaveV2EthereumAMM          | 0.086     | 24.49       |
| AaveV2EthereumAMMAssets    | 0.086     | 24.49       |
| AaveV2EthereumArc          | 0.086     | 24.49       |
| AaveV2EthereumAssets       | 0.086     | 24.49       |
| AaveV2Fuji                 | 0.086     | 24.49       |
| AaveV2FujiAssets           | 0.086     | 24.49       |
| AaveV2Goerli               | 0.086     | 24.49       |
| AaveV2GoerliAssets         | 0.086     | 24.49       |
| AaveV2Mumbai               | 0.086     | 24.49       |
| AaveV2MumbaiAssets         | 0.086     | 24.49       |
| AaveV2Polygon              | 0.086     | 24.49       |
| AaveV2PolygonAssets        | 0.086     | 24.49       |
| AaveV3Arbitrum             | 0.086     | 24.49       |
| AaveV3ArbitrumAssets       | 0.086     | 24.49       |
| AaveV3ArbitrumGoerli       | 0.086     | 24.49       |
| AaveV3ArbitrumGoerliAssets | 0.086     | 24.49       |
| AaveV3Avalanche            | 0.086     | 24.49       |
| AaveV3AvalancheAssets      | 0.086     | 24.49       |
| AaveV3Basenet              | 0.086     | 24.49       |
| AaveV3Ethereum             | 0.086     | 24.49       |
| AaveV3EthereumAssets       | 0.086     | 24.49       |
| AaveV3Fantom               | 0.086     | 24.49       |
| AaveV3FantomAssets         | 0.086     | 24.49       |
| AaveV3FantomTestnet        | 0.086     | 24.49       |
| AaveV3FantomTestnetAssets  | 0.086     | 24.49       |
| AaveV3Fuji                 | 0.086     | 24.49       |
| AaveV3FujiAssets           | 0.086     | 24.49       |
| AaveV3Goerli               | 0.086     | 24.49       |
| AaveV3GoerliAssets         | 0.086     | 24.49       |
| AaveV3GoerliGho            | 0.086     | 24.49       |
| AaveV3GoerliGhoAssets      | 0.086     | 24.49       |
| AaveV3Harmony              | 0.086     | 24.49       |
| AaveV3HarmonyAssets        | 0.086     | 24.49       |
| AaveV3Metis                | 0.086     | 24.49       |
| AaveV3MetisAssets          | 0.086     | 24.49       |
| AaveV3Mumbai               | 0.086     | 24.49       |
| AaveV3MumbaiAssets         | 0.086     | 24.49       |
| AaveV3Optimism             | 0.086     | 24.49       |
| AaveV3OptimismAssets       | 0.086     | 24.49       |
| AaveV3OptimismGoerli       | 0.086     | 24.49       |
| AaveV3OptimismGoerliAssets | 0.086     | 24.49       |
| AaveV3Polygon              | 0.086     | 24.49       |
| AaveV3PolygonAssets        | 0.086     | 24.49       |
| AaveV3ScrollAlpha          | 0.086     | 24.49       |
| AaveV3ScrollAlphaAssets    | 0.086     | 24.49       |
| AaveV3Sepolia              | 0.086     | 24.49       |
| AaveV3SepoliaAssets        | 0.086     | 24.49       |
| ConfiguratorInputTypes     | 0.086     | 24.49       |
| DataTypes                  | 0.086     | 24.49       |
| StdInvariant               | 2.323     | 22.253      |
| StdStyle                   | 0.086     | 24.49       |
| console                    | 0.086     | 24.49       |
| console2                   | 0.086     | 24.49       |
| stdError                   | 0.713     | 23.863      |
| stdJson                    | 0.086     | 24.49       |
| stdMath                    | 0.086     | 24.49       |
| stdStorage                 | 0.086     | 24.49       |
| stdStorageSafe             | 0.086     | 24.49       |
Test success 🌈
No files changed, compilation skipped

Running 1 test for src/test/AaveV2Misfits.t.sol:AaveAddressMisfitsTest
[PASS] testArcPoolAdminIsCorrect() (gas: 258)
Test result: ok. 1 passed; 0 failed; 0 skipped; finished in 452.34µs

Running 8 tests for src/test/AaveV2Ethereum.t.sol:AaveAddressBookTest
[PASS] testAaveProtocolDataProviderIsCorrect() (gas: 280)
[PASS] testCollectorIsCorrect() (gas: 280)
[PASS] testEmergencyAdminIsCorrect() (gas: 237)
[PASS] testOracleIsCorrect() (gas: 258)
[PASS] testPoolAddressIsCorrect() (gas: 281)
[PASS] testPoolAddressProviderIsCorrect() (gas: 302)
[PASS] testPoolAdminIsCorrect() (gas: 302)
[PASS] testPoolConfiguratorIsCorrect() (gas: 268)
Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 6.26ms

Running 8 tests for src/test/AaveV3Avalanche.t.sol:AaveAddressBookTest
[PASS] testACLAdminIsCorrect() (gas: 303)
[PASS] testACLManagerIsCorrect() (gas: 259)
[PASS] testCollectorIsCorrect() (gas: 302)
[PASS] testEmissionManagerIsCorrect() (gas: 280)
[PASS] testOracleIsCorrect() (gas: 280)
[PASS] testPoolAddressIsCorrect() (gas: 258)
[PASS] testPoolAddressProviderIsCorrect() (gas: 302)
[PASS] testPoolConfiguratorIsCorrect() (gas: 268)
Test result: ok. 8 passed; 0 failed; 0 skipped; finished in 705.66µs
Ran 3 test suites: 17 tests passed, 0 failed, 0 skipped (17 total tests)

Please sign in to comment.