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

stable-asset-recipient #2308

Merged
merged 1 commit into from
Aug 3, 2022
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
7 changes: 7 additions & 0 deletions runtime/acala/src/weights/nutsfinance_stable_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ impl<T: frame_system::Config> nutsfinance_stable_asset::WeightInfo for WeightInf
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: StableAsset Pools (r:1 w:1)
fn modify_recipients() -> Weight {
(24_780_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: StableAsset Pools (r:1 w:1)
// Storage: Tokens Accounts (r:6 w:6)
// Storage: System Account (r:2 w:2)
Expand Down
7 changes: 7 additions & 0 deletions runtime/karura/src/weights/nutsfinance_stable_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ impl<T: frame_system::Config> nutsfinance_stable_asset::WeightInfo for WeightInf
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: StableAsset Pools (r:1 w:1)
fn modify_recipients() -> Weight {
(24_780_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: StableAsset Pools (r:1 w:1)
// Storage: Tokens Accounts (r:6 w:6)
// Storage: System Account (r:2 w:2)
// Storage: AssetRegistry AssetMetadatas (r:1 w:0)
Expand Down
7 changes: 7 additions & 0 deletions runtime/mandala/src/benchmarking/nutsfinance_stable_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ runtime_benchmarks! {
let pool_id = StableAsset::pool_count() - 1;
}: _(RawOrigin::Root, pool_id, Some(100u128), Some(200u128), Some(300u128))

modify_recipients {
let assets = vec![LDOT, AUSD];
let precisions = vec![1u128, 1u128];
create_stable_pools(assets, precisions)?;
let pool_id = StableAsset::pool_count() - 1;
}: _(RawOrigin::Root, pool_id, Some(account("fee-1", 3, SEED)), Some(account("yield-1", 4, SEED)))

mint {
let tester: AccountId = whitelisted_caller();
let u in 2u32 .. <Runtime as nutsfinance_stable_asset::Config>::PoolAssetLimit::get();
Expand Down
7 changes: 7 additions & 0 deletions runtime/mandala/src/weights/nutsfinance_stable_asset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ impl<T: frame_system::Config> nutsfinance_stable_asset::WeightInfo for WeightInf
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: unknown [0x3a7472616e73616374696f6e5f6c6576656c3a] (r:1 w:1)
// Storage: StableAsset Pools (r:1 w:1)
fn modify_recipients() -> Weight {
(26_099_000 as Weight)
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(2 as Weight))
}
// Storage: StableAsset Pools (r:1 w:1)
// Storage: Tokens Accounts (r:6 w:6)
// Storage: System Account (r:2 w:2)
Expand Down