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
-->
pull/4605/head
Trevor Porter 2 months ago committed by GitHub
parent d010772bb8
commit b04dd9a8de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 20
      rust/sealevel/environments/mainnet3/eclipsemainnet/gas-oracle-configs-eclipsemainnet.json
  2. 1
      rust/sealevel/environments/mainnet3/gas-oracle-configs.json
  3. 11
      rust/sealevel/environments/mainnet3/solanamainnet/gas-oracle-configs-solanamainnet.json

@ -0,0 +1,20 @@
[
{
"domain": 1,
"gasOracle": {
"type": "remoteGasData",
"tokenExchangeRate": "15000000000000000000",
"gasPrice": "10000000000",
"tokenDecimals": 18
}
},
{
"domain": 1399811149,
"gasOracle": {
"type": "remoteGasData",
"tokenExchangeRate": "887000000000000000",
"gasPrice": "15",
"tokenDecimals": 9
}
}
]

@ -0,0 +1,11 @@
[
{
"domain": 1408864445,
"gasOracle": {
"type": "remoteGasData",
"tokenExchangeRate": "25036363636360000000",
"gasPrice": "2",
"tokenDecimals": 9
}
}
]
Loading…
Cancel
Save