From 65a9320d356fd757c36ad48b0fc3cea296e8efdb Mon Sep 17 00:00:00 2001 From: Drazen Urch Date: Mon, 7 Nov 2022 14:40:52 +0100 Subject: [PATCH] Set default pledge cap to 10% (#1739) * Set default pledge cap to 10% * fix clippy beta lints --- common/cosmwasm-smart-contracts/vesting-contract/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/cosmwasm-smart-contracts/vesting-contract/src/lib.rs b/common/cosmwasm-smart-contracts/vesting-contract/src/lib.rs index 20da138074..647352861a 100644 --- a/common/cosmwasm-smart-contracts/vesting-contract/src/lib.rs +++ b/common/cosmwasm-smart-contracts/vesting-contract/src/lib.rs @@ -85,7 +85,7 @@ impl FromStr for PledgeCap { impl Default for PledgeCap { fn default() -> Self { - PledgeCap::Absolute(Uint128::from(100_000_000_000u128)) + PledgeCap::Percent(Percent::from_percentage_value(10).expect("This can never fail!")) } }