-
Notifications
You must be signed in to change notification settings - Fork 1
Make base fee configurable from storage #68
Conversation
@@ -857,7 +860,8 @@ pub mod bridging { | |||
/// (initially was calculated by test `OutboundQueue::calculate_fees` - ETH/ROC 1/400 and fee_per_gas 20 GWEI = 2200698000000 + *25%) | |||
/// Needs to be more than fee calculated from DefaultFeeConfig FeeConfigRecord in snowbridge:parachain/pallets/outbound-queue/src/lib.rs | |||
/// Polkadot uses 10 decimals, Kusama and Rococo 12 decimals. | |||
pub const BridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000; | |||
pub const DefaultBridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need the non-storage const for the tests as the storage modifier causes tests to panic as there is no underlyiing storage provider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -857,7 +860,8 @@ pub mod bridging { | |||
/// (initially was calculated by test `OutboundQueue::calculate_fees` - ETH/ROC 1/400 and fee_per_gas 20 GWEI = 2200698000000 + *25%) | |||
/// Needs to be more than fee calculated from DefaultFeeConfig FeeConfigRecord in snowbridge:parachain/pallets/outbound-queue/src/lib.rs | |||
/// Polkadot uses 10 decimals, Kusama and Rococo 12 decimals. | |||
pub const BridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000; | |||
pub const DefaultBridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000; | |||
pub storage BridgeHubEthereumBaseFeeInROC: u128 = DefaultBridgeHubEthereumBaseFeeInROC::get(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the ROC
from the name, so that in production the storage key will be the same for all runtimes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved in 0043e6a.
@@ -857,7 +860,8 @@ pub mod bridging { | |||
/// (initially was calculated by test `OutboundQueue::calculate_fees` - ETH/ROC 1/400 and fee_per_gas 20 GWEI = 2200698000000 + *25%) | |||
/// Needs to be more than fee calculated from DefaultFeeConfig FeeConfigRecord in snowbridge:parachain/pallets/outbound-queue/src/lib.rs | |||
/// Polkadot uses 10 decimals, Kusama and Rococo 12 decimals. | |||
pub const BridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000; | |||
pub const DefaultBridgeHubEthereumBaseFeeInROC: u128 = 2_750_872_500_000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto, I think we should remove ROC
from the name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved in 0043e6a.
1007ee9
to
0043e6a
Compare
Snowbridge: Snowfork/snowbridge#1060