Skip to content

Commit

Permalink
Fix per review
Browse files Browse the repository at this point in the history
  • Loading branch information
ubuntu committed Feb 8, 2022
1 parent eeb8bab commit a83e0f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions node/primitives/src/salp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ where
pub fn is_contributing(&self) -> bool {
match self {
Self::Contributing(_) => true,
Self::Unlocked => true,
_ => false,
}
}
Expand Down
10 changes: 10 additions & 0 deletions runtime/bifrost-kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,15 @@ parameter_types! {
//ZLK has a decimal of 18, while KSM is 12.
ksm_per_second() * 150 * 1_000_000
);
pub ZlkNewPerSecond: (AssetId, u128) = (
MultiLocation::new(
0,
X1(GeneralKey(CurrencyId::Token(TokenSymbol::ZLK).encode()))
).into(),
// ZLK:KSM = 150:1
//ZLK has a decimal of 18, while KSM is 12.
ksm_per_second() * 150 * 1_000_000
);
pub KarPerSecond: (AssetId, u128) = (
MultiLocation::new(
1,
Expand Down Expand Up @@ -1008,6 +1017,7 @@ pub type Trader = (
FixedRateOfFungible<BncPerSecond, ToTreasury>,
FixedRateOfFungible<BncNewPerSecond, ToTreasury>,
FixedRateOfFungible<ZlkPerSecond, ToTreasury>,
FixedRateOfFungible<ZlkNewPerSecond, ToTreasury>,
FixedRateOfFungible<KarPerSecond, ToTreasury>,
FixedRateOfFungible<KusdPerSecond, ToTreasury>,
FixedRateOfFungible<PhaPerSecond, ToTreasury>,
Expand Down

0 comments on commit a83e0f1

Please sign in to comment.