The home for Hyperlane core contracts, sdk packages, and other infrastructure
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hyperlane-monorepo/rust/sealevel/environments/mainnet3/eclipsemainnet/gas-oracle-configs-eclipsem...

21 lines
464 B

chore: update Eclipse related gas oracles (#4591) ### Description Updates some gas oracles. Before change: - All exchange rates were set to 10, gas prices 1, and token decimals 9, which surprisingly wasn't so inaccurate - Costs before were as follows: - Solana -> Eclipse - On Solana, IGP paid 0.000431 SOL * $154 = $0.066374 - On Eclipse delivery, relayer 0.00001263 ETH * 2604 = $0.03288 plus ATA payer 0.000020264 ETH * 2604 = $0.05276 - Eclipse -> Solana - On eclipse, igp paid 0.000268 ETH * 2604 = $0.6978 - on solana delivery, relayer 0.0017926 SOL * 154 = 0.27 plus ata payer 0.00203928 SOL * 154 = 0.314 - Eclipse -> Ethereum - on eclipse, igp paid 0.000248339 ETH * 2604 = 0.6466 - on Ethereum delivery, relayer 0.002222450816005406 ETH * 2604 = 5.78 - Ethereum -> Eclipse - on ethereum, IGP paid 0.00086103 ETH * 2604 = $2.24 - on eclipse delivery, same as above solana - Costs after: - Solana -> Eclipse: now charges approx 33 cents - Eclipse -> Solana: now charges approx $1.20 - Eclipse -> Ethereum: now charges approx $10 - Ethereum -> Eclipse: unchanged Exchange rates and gas prices are more or less taken from looking at exchange rates, applying a premium, and figuring out approx gas prices on SVM by looking at amount paid divided by compute units used ### Drive-by changes <!-- Are there any minor or drive-by changes also included? --> ### Related issues <!-- - Fixes #[issue number here] --> ### Backward compatibility <!-- Are these changes backward compatible? Are there any infrastructure implications, e.g. changes that would prohibit deploying older commits using this infra tooling? Yes/No --> ### Testing <!-- What kind of testing have these changes undergone? None/Manual/Unit Tests -->
2 months ago
[
{
"domain": 1,
"gasOracle": {
"type": "remoteGasData",
"tokenExchangeRate": "15000000000000000000",
"gasPrice": "10000000000",
"tokenDecimals": 18
}
},
{
"domain": 1399811149,
"gasOracle": {
"type": "remoteGasData",
"tokenExchangeRate": "887000000000000000",
"gasPrice": "15",
"tokenDecimals": 9
}
}
]