Skip to content

Commit

Permalink
feat: added rates factory (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
brotherlymite authored Mar 7, 2023
1 parent 06b71d1 commit 8982920
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const pools: Pool[] = [
additionalAddresses: {
POOL_ADDRESSES_PROVIDER_REGISTRY: '0xbaA999AC55EAce41CcAE355c77809e68Bb345170',
WETH_GATEWAY: '0xD322A49006FC828F9B5B37Ab215F99B4E5caB19C',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0x1809f186D680f239420B56948C58F8DbbCdf1E18',
SWAP_COLLATERAL_ADAPTER: '0x872fBcb1B582e8Cd0D0DD4327fBFa0B4C2730995',
LISTING_ENGINE: '0xC51e6E38d406F98049622Ca54a6096a23826B426',
Expand Down Expand Up @@ -233,6 +234,7 @@ export const pools: Pool[] = [
additionalAddresses: {
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
WETH_GATEWAY: '0x1e4b7A6b903680eab0c5dAbcb8fD429cD2a9598c',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0x10D2fA27166d94894d850a9a851EE06870F14b09',
SWAP_COLLATERAL_ADAPTER: '0x6a4b2b595d369c963493Fc704CF48e42FAd8260b',
LISTING_ENGINE: '0xEDaD55FB5F4020bF51016614B3301B1FEff8BE46',
Expand Down Expand Up @@ -296,6 +298,7 @@ export const pools: Pool[] = [
additionalAddresses: {
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
WETH_GATEWAY: '0x6F143FE2F7B02424ad3CaD1593D6f36c0Aab69d7',
RATES_FACTORY: '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA',
REPAY_WITH_COLLATERAL_ADAPTER: '0x4fB0Ba43a5415f312cf5FA10d16Ff6dbA697d9aA',
SWAP_COLLATERAL_ADAPTER: '0x00e39085C877328619FDB2a47d995c516a5fA869',
LISTING_ENGINE: '0x165e90Bd0a41d08fA1891CcDCEe315D7b83B3419',
Expand All @@ -315,6 +318,7 @@ export const pools: Pool[] = [
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
WETH_GATEWAY: '0xB5Ee21786D28c5Ba61661550879475976B707099',
SWAP_COLLATERAL_ADAPTER: '0xb20bd14259089e63d1f49d8d887ABA783Ce5dAc2',
RATES_FACTORY: '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896',
REPAY_WITH_COLLATERAL_ADAPTER: '0xB0526BFb4047aE1147DC7caAF3F1653904C2D568',
LISTING_ENGINE: '0x7b8Fa4540246554e77FCFf140f9114de00F8bB8D',
WALLET_BALANCE_PROVIDER: '0xBc790382B3686abffE4be14A030A96aC6154023a',
Expand Down Expand Up @@ -397,6 +401,7 @@ export const pools: Pool[] = [
POOL_ADDRESSES_PROVIDER_REGISTRY: '0x770ef9f4fe897e59daCc474EF11238303F9552b6',
WETH_GATEWAY: '0x76D3030728e52DEB8848d5613aBaDE88441cbc59',
SWAP_COLLATERAL_ADAPTER: '0xBC2Ff189e0349Ca73D9b78c172FC2B40025abE2a',
RATES_FACTORY: '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA',
REPAY_WITH_COLLATERAL_ADAPTER: '0x66d340EB9D3dCe0f78e813E2F991B7CE54a1a28c',
LISTING_ENGINE: '0x7b8Fa4540246554e77FCFf140f9114de00F8bB8D',
WALLET_BALANCE_PROVIDER: '0xBc790382B3686abffE4be14A030A96aC6154023a',
Expand Down
2 changes: 2 additions & 0 deletions src/AaveV3Arbitrum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ library AaveV3Arbitrum {

address internal constant SWAP_COLLATERAL_ADAPTER = 0xb20bd14259089e63d1f49d8d887ABA783Ce5dAc2;

address internal constant RATES_FACTORY = 0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896;

address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0xB0526BFb4047aE1147DC7caAF3F1653904C2D568;

Expand Down
2 changes: 2 additions & 0 deletions src/AaveV3Avalanche.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ library AaveV3Avalanche {

address internal constant WETH_GATEWAY = 0x6F143FE2F7B02424ad3CaD1593D6f36c0Aab69d7;

address internal constant RATES_FACTORY = 0xDd81E6F85358292075B78fc8D5830BE8434aF8BA;

address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x4fB0Ba43a5415f312cf5FA10d16Ff6dbA697d9aA;

Expand Down
2 changes: 2 additions & 0 deletions src/AaveV3Ethereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ library AaveV3Ethereum {

address internal constant WETH_GATEWAY = 0xD322A49006FC828F9B5B37Ab215F99B4E5caB19C;

address internal constant RATES_FACTORY = 0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896;

address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x1809f186D680f239420B56948C58F8DbbCdf1E18;

Expand Down
2 changes: 2 additions & 0 deletions src/AaveV3Optimism.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ library AaveV3Optimism {

address internal constant SWAP_COLLATERAL_ADAPTER = 0xBC2Ff189e0349Ca73D9b78c172FC2B40025abE2a;

address internal constant RATES_FACTORY = 0xDd81E6F85358292075B78fc8D5830BE8434aF8BA;

address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x66d340EB9D3dCe0f78e813E2F991B7CE54a1a28c;

Expand Down
2 changes: 2 additions & 0 deletions src/AaveV3Polygon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ library AaveV3Polygon {

address internal constant WETH_GATEWAY = 0x1e4b7A6b903680eab0c5dAbcb8fD429cD2a9598c;

address internal constant RATES_FACTORY = 0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896;

address internal constant REPAY_WITH_COLLATERAL_ADAPTER =
0x10D2fA27166d94894d850a9a851EE06870F14b09;

Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Arbitrum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const EMISSION_MANAGER = '0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73';
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6';
export const WETH_GATEWAY = '0xB5Ee21786D28c5Ba61661550879475976B707099';
export const SWAP_COLLATERAL_ADAPTER = '0xb20bd14259089e63d1f49d8d887ABA783Ce5dAc2';
export const RATES_FACTORY = '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896';
export const REPAY_WITH_COLLATERAL_ADAPTER = '0xB0526BFb4047aE1147DC7caAF3F1653904C2D568';
export const LISTING_ENGINE = '0x7b8Fa4540246554e77FCFf140f9114de00F8bB8D';
export const WALLET_BALANCE_PROVIDER = '0xBc790382B3686abffE4be14A030A96aC6154023a';
Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Avalanche.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const CHAIN_ID = 43114;
export const EMISSION_MANAGER = '0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73';
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6';
export const WETH_GATEWAY = '0x6F143FE2F7B02424ad3CaD1593D6f36c0Aab69d7';
export const RATES_FACTORY = '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA';
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x4fB0Ba43a5415f312cf5FA10d16Ff6dbA697d9aA';
export const SWAP_COLLATERAL_ADAPTER = '0x00e39085C877328619FDB2a47d995c516a5fA869';
export const LISTING_ENGINE = '0x165e90Bd0a41d08fA1891CcDCEe315D7b83B3419';
Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const CHAIN_ID = 1;
export const EMISSION_MANAGER = '0x223d844fc4B006D67c0cDbd39371A9F73f69d974';
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0xbaA999AC55EAce41CcAE355c77809e68Bb345170';
export const WETH_GATEWAY = '0xD322A49006FC828F9B5B37Ab215F99B4E5caB19C';
export const RATES_FACTORY = '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896';
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x1809f186D680f239420B56948C58F8DbbCdf1E18';
export const SWAP_COLLATERAL_ADAPTER = '0x872fBcb1B582e8Cd0D0DD4327fBFa0B4C2730995';
export const LISTING_ENGINE = '0xC51e6E38d406F98049622Ca54a6096a23826B426';
Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Optimism.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const EMISSION_MANAGER = '0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73';
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6';
export const WETH_GATEWAY = '0x76D3030728e52DEB8848d5613aBaDE88441cbc59';
export const SWAP_COLLATERAL_ADAPTER = '0xBC2Ff189e0349Ca73D9b78c172FC2B40025abE2a';
export const RATES_FACTORY = '0xDd81E6F85358292075B78fc8D5830BE8434aF8BA';
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x66d340EB9D3dCe0f78e813E2F991B7CE54a1a28c';
export const LISTING_ENGINE = '0x7b8Fa4540246554e77FCFf140f9114de00F8bB8D';
export const WALLET_BALANCE_PROVIDER = '0xBc790382B3686abffE4be14A030A96aC6154023a';
Expand Down
1 change: 1 addition & 0 deletions src/ts/AaveV3Polygon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const CHAIN_ID = 137;
export const EMISSION_MANAGER = '0x048f2228D7Bf6776f99aB50cB1b1eaB4D1d4cA73';
export const POOL_ADDRESSES_PROVIDER_REGISTRY = '0x770ef9f4fe897e59daCc474EF11238303F9552b6';
export const WETH_GATEWAY = '0x1e4b7A6b903680eab0c5dAbcb8fD429cD2a9598c';
export const RATES_FACTORY = '0xcC47c4Fe1F7f29ff31A8b62197023aC8553C7896';
export const REPAY_WITH_COLLATERAL_ADAPTER = '0x10D2fA27166d94894d850a9a851EE06870F14b09';
export const SWAP_COLLATERAL_ADAPTER = '0x6a4b2b595d369c963493Fc704CF48e42FAd8260b';
export const LISTING_ENGINE = '0xEDaD55FB5F4020bF51016614B3301B1FEff8BE46';
Expand Down

0 comments on commit 8982920

Please sign in to comment.