Step-by-Step: Designing a Custom Gas Policy on Tanssi
Step 1: Define Your Economic Objectives
Examples:
Minimize friction for end users
Subsidize onboarding transactions
Generate predictable protocol revenue
Incentivize specific behaviors (staking, loyalty, volume)
Step 2: Configure the Runtime Gas Parameters
In Tanssi, gas logic is part of the runtime configuration rather than inherited from Ethereum mainnet defaults.
Example (simplified pseudocode):
pub struct GasConfig {
pub base_fee: FixedFee,
pub max_gas_per_block: u64,
pub fee_recipient: TreasuryAccount,
}