Skip to content

Commit

Permalink
Add GSM addresses (#349)
Browse files Browse the repository at this point in the history
* feat: GSM addresses

* fix: move address from pool to network

* fix: rename variable

* fix: rename variable

* fix: rename variable and add type

* fix: add gsm fixed fee strategy for USDC and USDT

* rename variable

---------

Co-authored-by: Parth Patel <[email protected]>
  • Loading branch information
miguelmtzinf and parth-15 authored Feb 15, 2024
1 parent e0353cc commit 69be3d9
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 5 deletions.
8 changes: 7 additions & 1 deletion scripts/configs/networks/ethereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ export const ethereumAddresses: NetworkAddresses<{
GHO_TOKEN: '0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f',
GHO_FLASHMINTER_FACILITATOR: '0xb639D208Bcf0589D54FaC24E655C79EC529762B8',
// TODO: perhaps makes sense to create a generator for GSM to automatically pull GSMs, for now let's see how this evolves
GSM_REGISTRY: '0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578',
GSM_REGISTRY: '0x167527DB01325408696326e3580cd8e55D99Dc1A',
GSM_USDC: '0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578',
GSM_USDT: '0x686F8D21520f4ecEc7ba577be08354F4d1EB8262',
GSM_USDC_FEE_STRATEGY: '0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5',
GSM_USDT_FEE_STRATEGY: '0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5',
GSM_USDC_PRICE_STRATEGY: '0x430BEdcA5DfA6f94d1205Cb33AB4f008D0d9942a',
GSM_USDT_PRICE_STRATEGY: '0x4c707764cbFB4FFa078e169e6b8A6AdbE7526a2c',
GSM_USDC_ORACLE_SWAP_FREEZER: '0xef6beCa8D9543eC007bceA835aF768B58F730C1f',
GSM_USDT_ORACLE_SWAP_FREEZER: '0x71381e6718b37C12155CB961Ca3D374A8BfFa0e5',
sDAI_POT: '0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7',
stEUR: '0x004626A008B1aCdC4c74ab51644093b155e59A23',
agEUR_EUR_AGGREGATOR: '0xb4d5289C58CE36080b0748B47F859D8F50dFAACb',
Expand Down
9 changes: 9 additions & 0 deletions scripts/configs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,14 @@ export interface NetworkAddresses<T extends Record<string, AddressInfo> = {}> {
AAVE_MERKLE_DISTRIBUTOR?: Hex;
GHO_TOKEN?: Hex;
GHO_FLASHMINTER_FACILITATOR?: Hex;
GSM_REGISTRY?: Hex;
GSM_USDC?: Hex;
GSM_USDT?: Hex;
GSM_USDC_FEE_STRATEGY?: Hex;
GSM_USDT_FEE_STRATEGY?: Hex;
GSM_USDC_PRICE_STRATEGY?: Hex;
GSM_USDT_PRICE_STRATEGY?: Hex;
GSM_USDC_ORACLE_SWAP_FREEZER?: Hex;
GSM_USDT_ORACLE_SWAP_FREEZER?: Hex;
} & T;
}
24 changes: 22 additions & 2 deletions src/MiscEthereum.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,35 @@ library MiscEthereum {
address internal constant GHO_FLASHMINTER_FACILITATOR =
0xb639D208Bcf0589D54FaC24E655C79EC529762B8;

// https://etherscan.io/address/0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578
address internal constant GSM_REGISTRY = 0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578;
// https://etherscan.io/address/0x167527DB01325408696326e3580cd8e55D99Dc1A
address internal constant GSM_REGISTRY = 0x167527DB01325408696326e3580cd8e55D99Dc1A;

// https://etherscan.io/address/0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578
address internal constant GSM_USDC = 0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578;

// https://etherscan.io/address/0x686F8D21520f4ecEc7ba577be08354F4d1EB8262
address internal constant GSM_USDT = 0x686F8D21520f4ecEc7ba577be08354F4d1EB8262;

// https://etherscan.io/address/0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5
address internal constant GSM_USDC_FEE_STRATEGY = 0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5;

// https://etherscan.io/address/0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5
address internal constant GSM_USDT_FEE_STRATEGY = 0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5;

// https://etherscan.io/address/0x430BEdcA5DfA6f94d1205Cb33AB4f008D0d9942a
address internal constant GSM_USDC_PRICE_STRATEGY =
0x430BEdcA5DfA6f94d1205Cb33AB4f008D0d9942a;

// https://etherscan.io/address/0x4c707764cbFB4FFa078e169e6b8A6AdbE7526a2c
address internal constant GSM_USDT_PRICE_STRATEGY =
0x4c707764cbFB4FFa078e169e6b8A6AdbE7526a2c;

// https://etherscan.io/address/0xef6beCa8D9543eC007bceA835aF768B58F730C1f
address internal constant GSM_USDC_ORACLE_SWAP_FREEZER = 0xef6beCa8D9543eC007bceA835aF768B58F730C1f;

// https://etherscan.io/address/0x71381e6718b37C12155CB961Ca3D374A8BfFa0e5
address internal constant GSM_USDT_ORACLE_SWAP_FREEZER = 0x71381e6718b37C12155CB961Ca3D374A8BfFa0e5;

// https://etherscan.io/address/0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7
address internal constant sDAI_POT = 0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7;

Expand Down
22 changes: 20 additions & 2 deletions src/ts/MiscEthereum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,33 @@ export const GHO_TOKEN = '0x40D16FC0246aD3160Ccc09B8D0D3A2cD28aE6C2f';
// https://etherscan.io/address/0xb639D208Bcf0589D54FaC24E655C79EC529762B8
export const GHO_FLASHMINTER_FACILITATOR = '0xb639D208Bcf0589D54FaC24E655C79EC529762B8';

// https://etherscan.io/address/0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578
export const GSM_REGISTRY = '0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578';
// https://etherscan.io/address/0x167527DB01325408696326e3580cd8e55D99Dc1A
export const GSM_REGISTRY = '0x167527DB01325408696326e3580cd8e55D99Dc1A';

// https://etherscan.io/address/0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578
export const GSM_USDC = '0x0d8eFfC11dF3F229AA1EA0509BC9DFa632A13578';

// https://etherscan.io/address/0x686F8D21520f4ecEc7ba577be08354F4d1EB8262
export const GSM_USDT = '0x686F8D21520f4ecEc7ba577be08354F4d1EB8262';

// https://etherscan.io/address/0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5
export const GSM_USDC_FEE_STRATEGY = '0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5';

// https://etherscan.io/address/0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5
export const GSM_USDT_FEE_STRATEGY = '0xD4478A76aCeA81D3768A0ACB6e38f25eEB6Eb1B5';

// https://etherscan.io/address/0x430BEdcA5DfA6f94d1205Cb33AB4f008D0d9942a
export const GSM_USDC_PRICE_STRATEGY = '0x430BEdcA5DfA6f94d1205Cb33AB4f008D0d9942a';

// https://etherscan.io/address/0x4c707764cbFB4FFa078e169e6b8A6AdbE7526a2c
export const GSM_USDT_PRICE_STRATEGY = '0x4c707764cbFB4FFa078e169e6b8A6AdbE7526a2c';

// https://etherscan.io/address/0xef6beCa8D9543eC007bceA835aF768B58F730C1f
export const GSM_USDC_ORACLE_SWAP_FREEZER = '0xef6beCa8D9543eC007bceA835aF768B58F730C1f';

// https://etherscan.io/address/0x71381e6718b37C12155CB961Ca3D374A8BfFa0e5
export const GSM_USDT_ORACLE_SWAP_FREEZER = '0x71381e6718b37C12155CB961Ca3D374A8BfFa0e5';

// https://etherscan.io/address/0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7
export const sDAI_POT = '0x197E90f9FAD81970bA7976f33CbD77088E5D7cf7';

Expand Down

0 comments on commit 69be3d9

Please sign in to comment.