Update gas oracle exchange rates & IGP bytecode hash (#1919)

### Description

Just updates mainnet gas oracle token exchange rates

Gas prices were the same

### Drive-by changes

none

### Related issues

n/a

### Backward compatibility

_Are these changes backward compatible?_

Yes

_Are there any infrastructure implications, e.g. changes that would
prohibit deploying older commits using this infra tooling?_

None


### Testing

_What kind of testing have these changes undergone?_

Deployed
pull/1921/head agents-1.0.0
Trevor Porter 2 years ago committed by GitHub
parent 7fb935e801
commit 1cbe5fd0a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      typescript/infra/config/environments/mainnet2/gas-oracle.ts
  2. 2
      typescript/sdk/src/deploy/core/HyperlaneCoreChecker.ts

@ -17,7 +17,7 @@ const TOKEN_EXCHANGE_RATE_MULTIPLIER = ethers.utils.parseUnits(
); );
// Taken by looking at each network's gas history and overestimating // Taken by looking at each network's gas history and overestimating
// Last updated Feb 23, 2023 // Last updated Mar 9, 2023.
const gasPrices: ChainMap<BigNumber> = { const gasPrices: ChainMap<BigNumber> = {
// https://dune.com/hicrypto/BNBChain-Gas // https://dune.com/hicrypto/BNBChain-Gas
bsc: ethers.utils.parseUnits('10', 'gwei'), bsc: ethers.utils.parseUnits('10', 'gwei'),
@ -47,26 +47,26 @@ const gasPrices: ChainMap<BigNumber> = {
gnosis: ethers.utils.parseUnits('2', 'gwei'), gnosis: ethers.utils.parseUnits('2', 'gwei'),
}; };
// Accurate from coingecko as of Feb 23, 2023. // Accurate from coingecko as of Mar 9, 2023.
// These aren't overestimates because the exchange rates between // These aren't overestimates because the exchange rates between
// tokens are what matters. These generally have high beta // tokens are what matters. These generally have high beta
const tokenUsdPrices: ChainMap<BigNumber> = { const tokenUsdPrices: ChainMap<BigNumber> = {
// https://www.coingecko.com/en/coins/bnb // https://www.coingecko.com/en/coins/bnb
bsc: ethers.utils.parseUnits('309.00', TOKEN_EXCHANGE_RATE_DECIMALS), bsc: ethers.utils.parseUnits('289.49', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/avalanche // https://www.coingecko.com/en/coins/avalanche
avalanche: ethers.utils.parseUnits('19.99', TOKEN_EXCHANGE_RATE_DECIMALS), avalanche: ethers.utils.parseUnits('15.49', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/polygon // https://www.coingecko.com/en/coins/polygon
polygon: ethers.utils.parseUnits('1.37', TOKEN_EXCHANGE_RATE_DECIMALS), polygon: ethers.utils.parseUnits('1.07', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/celo // https://www.coingecko.com/en/coins/celo
celo: ethers.utils.parseUnits('0.81', TOKEN_EXCHANGE_RATE_DECIMALS), celo: ethers.utils.parseUnits('0.61', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/ethereum // https://www.coingecko.com/en/coins/ethereum
arbitrum: ethers.utils.parseUnits('1657.00', TOKEN_EXCHANGE_RATE_DECIMALS), arbitrum: ethers.utils.parseUnits('1535.00', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/ethereum // https://www.coingecko.com/en/coins/ethereum
optimism: ethers.utils.parseUnits('1657.00', TOKEN_EXCHANGE_RATE_DECIMALS), optimism: ethers.utils.parseUnits('1535.00', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/ethereum // https://www.coingecko.com/en/coins/ethereum
ethereum: ethers.utils.parseUnits('1657.00', TOKEN_EXCHANGE_RATE_DECIMALS), ethereum: ethers.utils.parseUnits('1535.00', TOKEN_EXCHANGE_RATE_DECIMALS),
// https://www.coingecko.com/en/coins/moonbeam // https://www.coingecko.com/en/coins/moonbeam
moonbeam: ethers.utils.parseUnits('0.49', TOKEN_EXCHANGE_RATE_DECIMALS), moonbeam: ethers.utils.parseUnits('0.39', TOKEN_EXCHANGE_RATE_DECIMALS),
// xDAI // xDAI
gnosis: ethers.utils.parseUnits('1.00', TOKEN_EXCHANGE_RATE_DECIMALS), gnosis: ethers.utils.parseUnits('1.00', TOKEN_EXCHANGE_RATE_DECIMALS),
}; };

@ -30,7 +30,7 @@ const MULTISIG_ISM_BYTECODE_HASH =
const PROXY_ADMIN_BYTECODE_HASH = const PROXY_ADMIN_BYTECODE_HASH =
'0x7c378e9d49408861ca754fe684b9f7d1ea525bddf095ee0463902df701453ba0'; '0x7c378e9d49408861ca754fe684b9f7d1ea525bddf095ee0463902df701453ba0';
const INTERCHAIN_GAS_PAYMASTER_BYTECODE_HASH = const INTERCHAIN_GAS_PAYMASTER_BYTECODE_HASH =
'0xcee48ab556ae2ff12b6458fa92e5e31f4a07f7852a0ed06e43a7f06f3c4c6d76'; '0xe995bcd732f4861606036357edb2a4d4c3e9b8d7e599fe548790ac1cf26888f8';
const OVERHEAD_IGP_BYTECODE_HASH = const OVERHEAD_IGP_BYTECODE_HASH =
'0x3cfed1f24f1e9b28a76d5a8c61696a04f7bc474404b823a2fcc210ea52346252'; '0x3cfed1f24f1e9b28a76d5a8c61696a04f7bc474404b823a2fcc210ea52346252';

Loading…
Cancel
Save