Minimum Gas Prices
This section covers the management of the sequencer gas prices for your RollApp. Gas along with the calculated fees sets the amount of tokens a Sequencer charges a user to include their transaction in a block.
Getting to user fees
Gas
is a unit that is used to track the consumption of resources during execution.Gas-Price
is the amount of tokens that a user is willing to pay per unit of gas. Gas price is typically specified in the base denomination.
DYM native RollApps use the bridge version of DYM
as the base denom: ibc/FECACB927EB3102CCCB240FFB3B6FCCEEB8D944C6FEA8DFF079650FEFF59781D
)
Fees
is the total amount that a user pays to submit a transaction. It is calculated as the product of the gas used by the transaction and the gas price the user is willing to pay.
Fee calculation formula:
Updating minimum gas prices
- Update
min_gas_prices
inapp.toml
Located in ~/.roller/rollapp/config/app.toml
users must first update the local Sequencer node's gas configuration.
# example
minimum-gas-prices = "10000000ibc/FECACB927EB3102CCCB240FFB3B6FCCEEB8D944C6FEA8DFF079650FEFF59781D"
- Update the Sequencer's onchain metadata
Users must then update the Sequencer's onchain metadata for users to correctly interact with the Sequencer. First, export the Sequencer's metadata JSON file as described here.
Then update the JSON file for gas_price
, fee_denom.display
, fee_denom.base
, fee_denom.exponent
.
Example
To finalize this update users must run the Roller update command which publishes this information onchain to Dymension L1.