Skip to content

Commit

Permalink
Merge pull request #432 from gregdhill/feat/vault-min-setter
Browse files Browse the repository at this point in the history
feat: add sudo function in vault-registry to update minimum collateral
  • Loading branch information
sander2 authored Dec 13, 2021
2 parents 2eac6fe + 9cf2df1 commit 427e48f
Show file tree
Hide file tree
Showing 3 changed files with 155 additions and 132 deletions.
3 changes: 3 additions & 0 deletions crates/vault-registry/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ benchmarks! {
VaultRegistry::<T>::_register_vault(vault_id.clone(), 1234u32.into(), dummy_public_key()).unwrap();
}: _(RawOrigin::Signed(vault_id.account_id), vault_id.currencies.clone(), true)

set_minimum_collateral {
}: _(RawOrigin::Root, T::GetGriefingCollateralCurrencyId::get(), 1234u32.into())

set_system_collateral_ceiling {
}: _(RawOrigin::Root, get_currency_pair::<T>(), 1234u32.into())

Expand Down
Loading

0 comments on commit 427e48f

Please sign in to comment.