You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, Katana hardcoded the gas prices value. These gas prices are then used for computing the fees that transactions has to pay.
Though it works fine when using Katana just for testing/dev environment but for actual production setting we want to properly sample the L1 gas prices. Refer to the doc below for how starknet sample the l1 gas price:
Implementation for the gas oracle component should be able to (1) perform actual sampling on the underlying L1, (2) hardcoded value when katana is not run with an L1 (ie testing env).
On every new block, we'd then need to update the gas price values that have been sampled, in the block env:
Problem
Right now, Katana hardcoded the gas prices value. These gas prices are then used for computing the fees that transactions has to pay.
Though it works fine when using Katana just for testing/dev environment but for actual production setting we want to properly sample the L1 gas prices. Refer to the doc below for how starknet sample the l1 gas price:
https://docs.starknet.io/architecture-and-concepts/network-architecture/fee-mechanism/#calculation_of_gas_costs
Implementation for the gas oracle component should be able to (1) perform actual sampling on the underlying L1, (2) hardcoded value when katana is not run with an L1 (ie testing env).
On every new block, we'd then need to update the gas price values that have been sampled, in the block env:
dojo/crates/katana/core/src/backend/mod.rs
Lines 101 to 117 in e6bab2d
The text was updated successfully, but these errors were encountered: