Skip to content

Commit

Permalink
Revamp weight
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Sep 8, 2021
1 parent af38b2a commit 334fccb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions runtime/bifrost/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ parameter_types! {
pub const SlotLength: BlockNumber = 8u32 as BlockNumber;
pub const XcmTransferOrigin: TransferOriginType = TransferOriginType::FromRelayChain;
pub XcmWeight: XcmBaseWeight = XCM_WEIGHT.into();
pub ContributionWeight:XcmBaseWeight = XCM_WEIGHT.into();
pub ContributionWeight:XcmBaseWeight = 893125000.into();
pub AddProxyWeight:XcmBaseWeight = XCM_WEIGHT.into();
pub ConfirmMuitiSigAccount: AccountId = hex!["d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d"].into();
pub RelaychainSovereignSubAccount: MultiLocation = create_x2_parachain_multilocation(ParachainDerivedProxyAccountType::Salp as u16);
Expand All @@ -979,7 +979,7 @@ parameter_types! {

impl bifrost_salp::Config for Runtime {
type BancorPool = Bancor;
type BifrostXcmExecutor = BifrostXcmAdaptor<XcmRouter, XcmWeight, IdentityFee<Balance>>;
type BifrostXcmExecutor = BifrostXcmAdaptor<XcmRouter, XcmWeight, WeightToFee>;
type Event = Event;
type LeasePeriod = LeasePeriod;
type MinContribution = MinContribution;
Expand Down
2 changes: 1 addition & 1 deletion xcm-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl<
let mut message = Xcm::WithdrawAsset {
assets: vec![MultiAsset::ConcreteFungible {
id: MultiLocation::Null,
amount: WeightToFee::calc(&Self::transact_weight(weight, nonce)),
amount: WeightToFee::calc(&Self::transact_weight(weight, 0 as u32)),
}],
effects: vec![Order::BuyExecution {
fees: MultiAsset::All,
Expand Down

0 comments on commit 334fccb

Please sign in to comment.