Skip to content

Commit

Permalink
fix: mainnet gas prices for dym and tia (#1220)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Jan 5, 2025
1 parent b83ccf2 commit 0ff7ff1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/consts/dymension.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var MainnetHubData = HubData{
ID: MainnetHubID,
RpcUrl: "https://dymension-mainnet-tendermint.public.blastapi.io",
ArchiveRpcUrl: "https://dymension-mainnet-tendermint.public.blastapi.io",
GasPrice: "20000000000",
GasPrice: "7000000000",
DaNetwork: CelestiaMainnet,
}

Expand Down
11 changes: 10 additions & 1 deletion data_layer/celestia/celestia.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,18 @@ func (c *Celestia) GetSequencerDAConfig(nt string) string {
panic(err)
}

var daGasPrices float64
switch raCfg.Environment {
case consts.MainnetHubData.Environment:
daGasPrices = 0.0045
default:
daGasPrices = 0.02
}

return fmt.Sprintf(
`{"base_url": "%s", "timeout": 60000000000, "gas_prices":0.02, "gas_adjustment": 1.3, "namespace_id":"%s","auth_token":"%s","backoff":{"initial_delay":6000000000,"max_delay":6000000000,"growth_factor":2},"retry_attempts":4,"retry_delay":3000000000}`,
`{"base_url": "%s", "timeout": 60000000000, "gas_prices":%f, "gas_adjustment": 1.3, "namespace_id":"%s","auth_token":"%s","backoff":{"initial_delay":6000000000,"max_delay":6000000000,"growth_factor":2},"retry_attempts":4,"retry_delay":3000000000}`,
lcEndpoint,
daGasPrices,
c.NamespaceID,
authToken,
)
Expand Down

0 comments on commit 0ff7ff1

Please sign in to comment.