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

Commit

Permalink
adds transfer token user fee
Browse files Browse the repository at this point in the history
  • Loading branch information
claravanstaden authored and claravanstaden committed Nov 1, 2023
1 parent 5ddb798 commit 62b01ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bridges/primitives/chain-asset-hub-rococo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ frame_support::parameter_types! {
/// Base delivery fee to `BridgeHubRococo`.
/// (initially was calculated by test `BridgeHubRococo::can_calculate_weight_for_paid_export_message_with_reserve_transfer`)
pub const BridgeHubRococoBaseFeeInRocs: u128 = 1214739988;

/// User fee for ERC20 token transfer back to Ethereum.
/// (initially was calculated by test `OutboundQueue::calculate_fees` 32473000000 + *25%)
pub const TransferERC20TokenBaseFeeInRocs: u128 = 40591250000;
}

/// Identifier of AssetHubRococo in the Rococo relay chain.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,8 @@ pub mod bridging {
SiblingBridgeHub::get(),
Some((
XcmBridgeHubRouterFeeAssetId::get(),
bp_asset_hub_rococo::BridgeHubRococoBaseFeeInRocs::get(),
).into()) // TODO calculate fee factor
bp_asset_hub_rococo::TransferERC20TokenBaseFeeInRocs::get(),
).into())
),
];

Expand Down

0 comments on commit 62b01ac

Please sign in to comment.