Skip to content

Commit

Permalink
fix: premium_redeem_rate formula
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Dec 6, 2023
1 parent 652d338 commit ce17939
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/vault-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -801,8 +801,7 @@ impl<T: Config> Pallet<T> {
// for `oldCol`, which takes into account pending issues and redeems
let to_be_backed_tokens = Self::vault_to_be_backed_tokens(&vault_id)?;
let global_secure_threshold = Self::get_global_secure_threshold(&vault_id.currencies)?;
let mut premium_redeem_rate = ext::fee::premium_redeem_reward_rate::<T>();
premium_redeem_rate = premium_redeem_rate.saturating_plus_one();
let premium_redeem_rate = ext::fee::premium_redeem_reward_rate::<T>();

let required_collateral =
Self::required_collateral(&vault_id, &to_be_backed_tokens, global_secure_threshold)?;
Expand Down

0 comments on commit ce17939

Please sign in to comment.