Skip to content

Commit

Permalink
feat: add debt swap (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Jul 10, 2023
1 parent 5ef66e0 commit 0d42c96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface Pool {
WETH_GATEWAY?: string;
REPAY_WITH_COLLATERAL_ADAPTER?: string;
SWAP_COLLATERAL_ADAPTER?: string;
DEBT_SWAP_ADAPTER?: string;
POOL_ADDRESSES_PROVIDER_REGISTRY?: string;
LISTING_ENGINE?: string;
MIGRATION_HELPER?: string;
Expand Down Expand Up @@ -248,6 +249,7 @@ export const pools: Pool[] = [
WALLET_BALANCE_PROVIDER: '0x34aa032bC416Cf2CdC45c0C8f065b1F19463D43e',
UI_POOL_DATA_PROVIDER: '0x204f2Eb81D996729829debC819f7992DCEEfE7b1',
UI_INCENTIVE_DATA_PROVIDER: '0x645654D59A5226CBab969b1f5431aA47CBf64ab8',
DEBT_SWAP_ADAPTER: '0xe9E52021f4e11DEAD8661812A0A6c8627abA2a54',
},
},
{
Expand All @@ -267,6 +269,7 @@ export const pools: Pool[] = [
UI_INCENTIVE_DATA_PROVIDER: '0x874313A46e4957D29FAAC43BF5Eb2B144894f557',
STATIC_A_TOKEN_FACTORY: '0xFcd9720b0Ea09c70E53727E08Bc131d77800B112',
CAPS_PLUS_RISK_STEWARD: '0xc5de989E0D1BF605d19478Fdd32Aa827a10b464f',
DEBT_SWAP_ADAPTER: '0x2a6C8D620371AEc6bCA1d18AAaF96efE11Eb3d6c',
},
},
{
Expand Down Expand Up @@ -433,6 +436,7 @@ export const pools: Pool[] = [
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
WETH_GATEWAY: '0x76D3030728e52DEB8848d5613aBaDE88441cbc59',
SWAP_COLLATERAL_ADAPTER: '0xBC2Ff189e0349Ca73D9b78c172FC2B40025abE2a',
DEBT_SWAP_ADAPTER: '0xb77fc84a549ecc0b410d6fa15159C2df207545a3',
RATES_FACTORY: '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA',
REPAY_WITH_COLLATERAL_ADAPTER: '0x66d340EB9D3dCe0f78e813E2F991B7CE54a1a28c',
LISTING_ENGINE: '0x7A9A9c14B35E58ffa1cC84aB421acE0FdcD289E3',
Expand Down

1 comment on commit 0d42c96

@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 (e488e2b 2023-07-10T15:16:10.261857116Z)
Build log
installing solc version "0.8.20"
Successfully installed solc 0.8.20
Compiling 64 files with 0.8.20
Solc 0.8.20 finished in 3.19s
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       |
| 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 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 641.93µs

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 533.92µs

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 296.91µs
Ran 3 test suites: 17 tests passed, 0 failed, 0 skipped (17 total tests)

Please sign in to comment.