Skip to content

Commit

Permalink
feat: set sepolia addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveVodrazka committed Apr 5, 2024
1 parent eb4552c commit 4820f56
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
17 changes: 9 additions & 8 deletions src/amm_core/constants.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,20 @@ const VOLATILITY_LOWER_BOUND: felt252 = 1;
const VOLATILITY_UPPER_BOUND: felt252 = 42535295865117307932921825928971026432; // 2**64 * 2**61

const TOKEN_ETH_ADDRESS: felt252 =
0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7; // mainnet and testnet
const TOKEN_USDC_ADDRESS: felt252 =
0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8; // mainnet
0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7; // mainnet and sepolia
// const TOKEN_USDC_ADDRESS: felt252 =
// 0x0643907b9a4bc6a55e9069c4fd5fd1f5c79a22470690f75556c4736e34426; // testnet
// 0x053c91253bc9682c04929ca02ed00b3e423f6710d2ee7e0d5ebb06f3ecf368a8; // mainnet

const TOKEN_USDC_ADDRESS: felt252 =
0x07b5be4ebf7c50f67d54d328c45ee21b06de8e39240c7943b25ab811c07c43e4; // sepolia

const TOKEN_WBTC_ADDRESS: felt252 =
0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac; // mainnet
// const TOKEN_WBTC_ADDRESS: felt252 =
// 0x012d537dc323c439dc65c976fad242d5610d27cfb5f31689a0a319b8be7f3d56; // testnet
// 0x03fe2b97c1fd336e750087d68b9b867997fd64a2661ff3ca5a7c771641e8e7ac; // mainnet
const TOKEN_WBTC_ADDRESS: felt252 =
0x00c6164da852d230360333d6ade3551ee3e48124c815704f51fa7f12d8287dcc; // sepolia

const TOKEN_STRK_ADDRESS: felt252 =
0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d; // mainnet
0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d; // mainnet and sepolia

// Tests --------------------------------------------------------------------------------------------------------------

Expand Down
5 changes: 3 additions & 2 deletions src/amm_core/oracles/pragma.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ mod Pragma {
};

// Mainnet
// const PRAGMA_ORACLE_ADDRESS: felt252 =
// 0x2a85bd616f912537c50a49a4076db02c00b29b2cdc8a197ce92ed1837fa875b; // C1 version
const PRAGMA_ORACLE_ADDRESS: felt252 =
0x2a85bd616f912537c50a49a4076db02c00b29b2cdc8a197ce92ed1837fa875b; // C1 version

0x036031daa264c24520b11d93af622c848b2499b66b41d611bac95e13cfca131a; // sepolia

// @notice Returns Pragma key identifier for stablecoins
// @param quote_token_addr: Address of given stablecoin
Expand Down

0 comments on commit 4820f56

Please sign in to comment.