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.
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 Fees
1. Update the node minimum gas price
It's important to coordinate gas prices changes with any full nodes that are running the RollApp.
roller config set minimum-gas-price 10000000ibc/FECACB927EB3102CCCB240FFB3B6FCCEEB8D944C6FEA8DFF079650FEFF59781D
2. Restart the node
3. Update the sequencer's on-chain metadata
Operators must then update the sequencer's onchain metadata so users can correctly interact with the Rollapp using the portal.
Export the sequencer's metadata JSON:
roller rollapp sequencer metadata export
Update the JSON file for
gas_price
and if necessary also forfee_denom.display
,fee_denom.base
,fee_denom.exponent
like in the example below:Update the Dymension L1 with the updated metadata JSON:
roller rollapp sequencer metadata update