Skip to content

Commit

Permalink
disable using max fee
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Feb 5, 2024
1 parent b4f8d77 commit 05e8cef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -873,10 +873,8 @@ pub mod bridging {

parameter_types! {
/// User fee for ERC20 token transfer back to Ethereum.
/// (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 DefaultBridgeHubEthereumBaseFee: Balance = 2_750_872_500_000;
/// Configure the fee to max Balance so that it is disabled.
pub const DefaultBridgeHubEthereumBaseFee: Balance = Balance::MAX;
pub storage BridgeHubEthereumBaseFee: Balance = DefaultBridgeHubEthereumBaseFee::get();
pub SiblingBridgeHubWithEthereumInboundQueueInstance: MultiLocation = MultiLocation::new(
1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,10 +748,8 @@ pub mod bridging {

parameter_types! {
/// User fee for ERC20 token transfer back to Ethereum.
/// (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 DefaultBridgeHubEthereumBaseFee: Balance = 27_508_725_000;
/// Configure the fee to max Balance so that it is disabled.
pub const DefaultBridgeHubEthereumBaseFee: Balance = Balance::MAX;
pub storage BridgeHubEthereumBaseFee: Balance = DefaultBridgeHubEthereumBaseFee::get();
pub SiblingBridgeHubWithEthereumInboundQueueInstance: MultiLocation = MultiLocation::new(
1,
Expand Down

0 comments on commit 05e8cef

Please sign in to comment.