Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
updates fee
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden authored and claravanstaden committed Nov 2, 2023
1 parent 2d8a3e3 commit b374803
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cumulus/parachains/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ pub mod impls;
pub mod kusama;
pub mod polkadot;
pub mod rococo;
pub mod snowbridge_config;
pub mod westend;
pub mod wococo;
pub mod xcm_config;
pub mod snowbridge_config;
pub use constants::*;
pub use opaque::*;
pub use types::*;
Expand Down
4 changes: 2 additions & 2 deletions cumulus/parachains/common/src/snowbridge_config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
frame_support::parameter_types! {
/// User fee for ERC20 token transfer back to Ethereum.
/// (initially was calculated by test `OutboundQueue::calculate_fees` - ETH/ROC 1/411 and fee_per_gas 15 GWEI = 18679250000 + *25%)
/// (initially was calculated by test `OutboundQueue::calculate_fees` - ETH/ROC 1/411 and fee_per_gas 15 GWEI = 22698000000 + *25%)
/// Needs to be more than fee calculated from DefaultFeeConfig FeeConfigRecord in snowbridge:parachain/pallets/outbound-queue/src/lib.rs
pub const BridgeHubEthereumBaseFeeInRocs: u128 = 23349062500;
pub const BridgeHubEthereumBaseFeeInRocs: u128 = 28372500000;
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ use frame_system::EnsureRoot;
use pallet_xcm::XcmPassthrough;
use parachains_common::{
impls::ToStakingPot,
snowbridge_config::BridgeHubEthereumBaseFeeInRocs,
xcm_config::{
AssetFeeAsExistentialDepositMultiplier, ConcreteAssetFromSystem,
RelayOrOtherSystemParachains,
Expand Down Expand Up @@ -928,7 +929,7 @@ pub mod bridging {
SiblingBridgeHub::get(),
Some((
XcmBridgeHubRouterFeeAssetId::get(),
bp_asset_hub_rococo::TransferERC20TokenBaseFeeInRocs::get(),
BridgeHubEthereumBaseFeeInRocs::get(),
).into())
),
];
Expand Down

0 comments on commit b374803

Please sign in to comment.