Skip to content

Commit

Permalink
build: add bonds constants
Browse files Browse the repository at this point in the history
  • Loading branch information
pegahcarter committed Feb 1, 2024
1 parent 0837fc3 commit f0341b4
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 9 deletions.
28 changes: 25 additions & 3 deletions scripts/constants/mainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ export const TIMELOCK_ADDRESS = "0x8412ebf45bAC1B340BbE8F318b928C466c4E39CA";
export const SFRAX_FXB_SAFE_ADDRESS = "0x831822660572bd54ebaa065C2acef662a6277D40";

// Routers
export const FRAXSWAP_ROUTER_ADDRESS = "0xC14d550632db8592D1243Edc8B95b0Ad06703867";
export const FRAXSWAP_ROUTER = "0xC14d550632db8592D1243Edc8B95b0Ad06703867";
export const FRAXSWAP_ROUTER_V2 = "0xC14d550632db8592D1243Edc8B95b0Ad06703867";
export const UNIV2_ROUTER = "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D";

// Project Tokens
Expand Down Expand Up @@ -112,5 +113,26 @@ export const WBTC_FRAX_PAIR_ADDRESS = "0x32467a5fc2d72D21E8DCe990906547A2b012f38
export const WETH_FRAX_PAIR_ADDRESS = "0x794F6B13FBd7EB7ef10d1ED205c9a416910207Ff";

// FXBs / SlippageAuction
export const SLIPPAGE_AUCTION_FACTORY = "0x509728dC748586214Fa30cEF61359f136523F24d";
export const FXB_FACTORY = "0xcA35C3FE456a87E6CE7827D1D784741613463204";
export const SLIPPAGE_AUCTION_FACTORY = "0xc9268c7F59850B26567b0f5d3Dcc317cEDC43490";
export const FXB_FACTORY = "0xa8478781D9605E17c3b4c9C79e7127c4597116E4";
export const FXB_AMO = "0x452420df4AC1e3db5429b5FD629f3047482C543C";
export const FXB_AMO_TIMELOCK = "0x831822660572bd54ebaa065C2acef662a6277D40";
// June 30, 2024 expiry
export const FXB_20240630 = "0x0dE54CFdfeD8005176f8b7A9D5438B45c4F1df1e";
export const AUCTION_20240630 = "0xC92067D8DDb1970ecB93202DA31a3C45cC2c1F44";
export const ORACLE_20240630 = "0x27F4f8ca2f906B73c5eD8d794d1eA016f2cA0A97";
export const CURVE_20240630_MAINNET_POOL = "0x4ef4c7519023F30A78647EEab321d6cFabC2513c";
// December 31, 2024 expiry
export const FXB_20241231 = "0xF8FDe8A259A3698902C88bdB1E13Ff28Cd7f6F09";
export const AUCTION_20241231 = "0xc9aa98788a675FF0846E8856cb83F19452f3b0c8";
export const ORACLE_20241231 = "0x08a0748cF885F46e20fA30A50a035808eab293D3";
export const CURVE_20241231_MAINNET_POOL = "0x6307E6688819951Cf8D6B6066018243D2496952F";
export const CURVE_20241231_ARBITRUM_POOL = "0xE920eEdAff6c3BEd1Ef61010B64d46986634E908";
export const CURVE_20241231_ARBITRUM_GAUGE = "0x05824d6d4de8a0ede4e12b98387a4f035a67ee68";
// December 31, 2026 expiry
export const FXB_20261231 = "0x76237BCfDbe8e06FB774663add96216961df4ff3";
export const AUCTION_20261231 = "0x63981f5E690eaF7E8795c42832664e8848F532fB";
export const ORACLE_20261231 = "0x2ec5D1C13fEF1C7029eE329a1D31B2180c9b3707";
export const CURVE_20261231_MAINNET_POOL = "0xe035e27A8eD6842b478933820f90093D205F7098";
export const CURVE_20261231_ARBITRUM_POOL = "0x946adc524BD312D036776798c46ceDD948DD0A0f";
export const CURVE_20261231_ARBITRUM_GAUGE = "0xa2617a26f9f528fa7b0e47fc2e66fcc04c6682e9";
50 changes: 44 additions & 6 deletions src/Constants.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import { TestBase } from "forge-std/Test.sol";
library Mainnet {
address internal constant TIMELOCK_ADDRESS = 0x8412ebf45bAC1B340BbE8F318b928C466c4E39CA;
address internal constant SFRAX_FXB_SAFE_ADDRESS = 0x831822660572bd54ebaa065C2acef662a6277D40;
address internal constant FRAXSWAP_ROUTER_ADDRESS = 0xC14d550632db8592D1243Edc8B95b0Ad06703867;
address internal constant FRAXSWAP_ROUTER = 0xC14d550632db8592D1243Edc8B95b0Ad06703867;
address internal constant FRAXSWAP_ROUTER_V2 = 0xC14d550632db8592D1243Edc8B95b0Ad06703867;
address internal constant UNIV2_ROUTER = 0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D;
address internal constant FRAX_ERC20 = 0x853d955aCEf822Db058eb8505911ED77F175b99e;
address internal constant FXS_ERC20 = 0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0;
Expand Down Expand Up @@ -92,8 +93,26 @@ library Mainnet {
address internal constant WALLET_WITH_WETH = 0x8EB8a3b98659Cce290402893d0123abb75E3ab28;
address internal constant WBTC_FRAX_PAIR_ADDRESS = 0x32467a5fc2d72D21E8DCe990906547A2b012f382;
address internal constant WETH_FRAX_PAIR_ADDRESS = 0x794F6B13FBd7EB7ef10d1ED205c9a416910207Ff;
address internal constant SLIPPAGE_AUCTION_FACTORY = 0x509728dC748586214Fa30cEF61359f136523F24d;
address internal constant AUCTION_FACTORY = 0xcA35C3FE456a87E6CE7827D1D784741613463204;
address internal constant SLIPPAGE_AUCTION_FACTORY = 0xc9268c7F59850B26567b0f5d3Dcc317cEDC43490;
address internal constant FXB_FACTORY = 0xa8478781D9605E17c3b4c9C79e7127c4597116E4;
address internal constant FXB_AMO = 0x452420df4AC1e3db5429b5FD629f3047482C543C;
address internal constant FXB_AMO_TIMELOCK = 0x831822660572bd54ebaa065C2acef662a6277D40;
address internal constant FXB_20240630 = 0x0dE54CFdfeD8005176f8b7A9D5438B45c4F1df1e;
address internal constant AUCTION_20240630 = 0xC92067D8DDb1970ecB93202DA31a3C45cC2c1F44;
address internal constant ORACLE_20240630 = 0x27F4f8ca2f906B73c5eD8d794d1eA016f2cA0A97;
address internal constant CURVE_20240630_MAINNET_POOL = 0x4ef4c7519023F30A78647EEab321d6cFabC2513c;
address internal constant FXB_20241231 = 0xF8FDe8A259A3698902C88bdB1E13Ff28Cd7f6F09;
address internal constant AUCTION_20241231 = 0xc9aa98788a675FF0846E8856cb83F19452f3b0c8;
address internal constant ORACLE_20241231 = 0x08a0748cF885F46e20fA30A50a035808eab293D3;
address internal constant CURVE_20241231_MAINNET_POOL = 0x6307E6688819951Cf8D6B6066018243D2496952F;
address internal constant CURVE_20241231_ARBITRUM_POOL = 0xE920eEdAff6c3BEd1Ef61010B64d46986634E908;
address internal constant CURVE_20241231_ARBITRUM_GAUGE = 0x05824D6D4DE8A0ede4e12b98387A4f035a67ee68;
address internal constant FXB_20261231 = 0x76237BCfDbe8e06FB774663add96216961df4ff3;
address internal constant AUCTION_20261231 = 0x63981f5E690eaF7E8795c42832664e8848F532fB;
address internal constant ORACLE_20261231 = 0x2ec5D1C13fEF1C7029eE329a1D31B2180c9b3707;
address internal constant CURVE_20261231_MAINNET_POOL = 0xe035e27A8eD6842b478933820f90093D205F7098;
address internal constant CURVE_20261231_ARBITRUM_POOL = 0x946adc524BD312D036776798c46ceDD948DD0A0f;
address internal constant CURVE_20261231_ARBITRUM_GAUGE = 0xa2617A26f9f528fa7B0E47fc2e66FcC04C6682E9;
}

abstract contract Helper is TestBase {
Expand All @@ -104,7 +123,8 @@ abstract contract Helper is TestBase {
function labelConstants() public {
vm.label(0x8412ebf45bAC1B340BbE8F318b928C466c4E39CA, "Constants.TIMELOCK_ADDRESS");
vm.label(0x831822660572bd54ebaa065C2acef662a6277D40, "Constants.SFRAX_FXB_SAFE_ADDRESS");
vm.label(0xC14d550632db8592D1243Edc8B95b0Ad06703867, "Constants.FRAXSWAP_ROUTER_ADDRESS");
vm.label(0xC14d550632db8592D1243Edc8B95b0Ad06703867, "Constants.FRAXSWAP_ROUTER");
vm.label(0xC14d550632db8592D1243Edc8B95b0Ad06703867, "Constants.FRAXSWAP_ROUTER_V2");
vm.label(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D, "Constants.UNIV2_ROUTER");
vm.label(0x853d955aCEf822Db058eb8505911ED77F175b99e, "Constants.FRAX_ERC20");
vm.label(0x3432B6A60D23Ca0dFCa7761B7ab56459D9C964D0, "Constants.FXS_ERC20");
Expand Down Expand Up @@ -188,7 +208,25 @@ abstract contract Helper is TestBase {
vm.label(0x8EB8a3b98659Cce290402893d0123abb75E3ab28, "Constants.WALLET_WITH_WETH");
vm.label(0x32467a5fc2d72D21E8DCe990906547A2b012f382, "Constants.WBTC_FRAX_PAIR_ADDRESS");
vm.label(0x794F6B13FBd7EB7ef10d1ED205c9a416910207Ff, "Constants.WETH_FRAX_PAIR_ADDRESS");
vm.label(0x509728dC748586214Fa30cEF61359f136523F24d, "Constants.SLIPPAGE_AUCTION_FACTORY");
vm.label(0xcA35C3FE456a87E6CE7827D1D784741613463204, "Constants.AUCTION_FACTORY");
vm.label(0xc9268c7F59850B26567b0f5d3Dcc317cEDC43490, "Constants.SLIPPAGE_AUCTION_FACTORY");
vm.label(0xa8478781D9605E17c3b4c9C79e7127c4597116E4, "Constants.FXB_FACTORY");
vm.label(0x452420df4AC1e3db5429b5FD629f3047482C543C, "Constants.FXB_AMO");
vm.label(0x831822660572bd54ebaa065C2acef662a6277D40, "Constants.FXB_AMO_TIMELOCK");
vm.label(0x0dE54CFdfeD8005176f8b7A9D5438B45c4F1df1e, "Constants.FXB_20240630");
vm.label(0xC92067D8DDb1970ecB93202DA31a3C45cC2c1F44, "Constants.AUCTION_20240630");
vm.label(0x27F4f8ca2f906B73c5eD8d794d1eA016f2cA0A97, "Constants.ORACLE_20240630");
vm.label(0x4ef4c7519023F30A78647EEab321d6cFabC2513c, "Constants.CURVE_20240630_MAINNET_POOL");
vm.label(0xF8FDe8A259A3698902C88bdB1E13Ff28Cd7f6F09, "Constants.FXB_20241231");
vm.label(0xc9aa98788a675FF0846E8856cb83F19452f3b0c8, "Constants.AUCTION_20241231");
vm.label(0x08a0748cF885F46e20fA30A50a035808eab293D3, "Constants.ORACLE_20241231");
vm.label(0x6307E6688819951Cf8D6B6066018243D2496952F, "Constants.CURVE_20241231_MAINNET_POOL");
vm.label(0xE920eEdAff6c3BEd1Ef61010B64d46986634E908, "Constants.CURVE_20241231_ARBITRUM_POOL");
vm.label(0x05824D6D4DE8A0ede4e12b98387A4f035a67ee68, "Constants.CURVE_20241231_ARBITRUM_GAUGE");
vm.label(0x76237BCfDbe8e06FB774663add96216961df4ff3, "Constants.FXB_20261231");
vm.label(0x63981f5E690eaF7E8795c42832664e8848F532fB, "Constants.AUCTION_20261231");
vm.label(0x2ec5D1C13fEF1C7029eE329a1D31B2180c9b3707, "Constants.ORACLE_20261231");
vm.label(0xe035e27A8eD6842b478933820f90093D205F7098, "Constants.CURVE_20261231_MAINNET_POOL");
vm.label(0x946adc524BD312D036776798c46ceDD948DD0A0f, "Constants.CURVE_20261231_ARBITRUM_POOL");
vm.label(0xa2617A26f9f528fa7B0E47fc2e66FcC04C6682E9, "Constants.CURVE_20261231_ARBITRUM_GAUGE");
}
}

0 comments on commit f0341b4

Please sign in to comment.