Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/assets benchmarks #232

Merged
merged 4 commits into from
Apr 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pallets/funding/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ impl ConvertBack<AccountId, [u8; 32]> for DummyConverter {
}
thread_local! {
pub static PRICE_MAP: RefCell<BTreeMap<AssetId, FixedU128>> = RefCell::new(BTreeMap::from_iter(vec![
(0u32, FixedU128::from_float(69f64)), // DOT
(1337u32, FixedU128::from_float(0.97f64)), // USDC
(1984u32, FixedU128::from_float(1.0f64)), // USDT
(3344u32, FixedU128::from_float(8.4f64)), // PLMC
(AcceptedFundingAsset::DOT.to_assethub_id(), FixedU128::from_float(69f64)), // DOT
(AcceptedFundingAsset::USDC.to_assethub_id(), FixedU128::from_float(0.97f64)), // USDC
(AcceptedFundingAsset::USDT.to_assethub_id(), FixedU128::from_float(1.0f64)), // USDT
(PLMC_FOREIGN_ID, FixedU128::from_float(8.4f64)), // PLMC
]));
}
pub struct ConstPriceProvider;
Expand Down
2 changes: 1 addition & 1 deletion pallets/funding/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ pub mod inner_types {
pub const fn to_assethub_id(&self) -> u32 {
match self {
AcceptedFundingAsset::USDT => 1984,
AcceptedFundingAsset::DOT => 0,
AcceptedFundingAsset::DOT => 10,
AcceptedFundingAsset::USDC => 1337,
}
}
Expand Down
2 changes: 1 addition & 1 deletion runtimes/politest/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ impl pallet_identity::Config for Runtime {
type Slashed = Treasury;
type SubAccountDeposit = SubAccountDeposit;
type UsernameAuthorityOrigin = UsernameAuthorityOrigin;
type WeightInfo = pallet_identity::weights::SubstrateWeight<Runtime>;
type WeightInfo = ();
}

// Politest specific pallets
Expand Down