Skip to content

Commit

Permalink
fix: comment modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
nakul1010 committed Dec 21, 2023
1 parent 339bfa7 commit b9b547d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/vault-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1707,7 +1707,7 @@ impl<T: Config> Pallet<T> {
let request_redeem_tokens_for_max_premium = vault_to_burn_tokens.checked_div(&amount_wrapped).ok()?;

if Self::ensure_not_banned(&vault_id).is_ok() && !request_redeem_tokens_for_max_premium.is_zero()
// need the check as `inclusion_fee` will be a non zero amount, hence `request_redeem_tokens_for_max_premium` will also be a non zero amount
// need `will_be_below_premium_threshold` check as `inclusion_fee` will be a non zero amount, hence `request_redeem_tokens_for_max_premium` will also be a non zero amount
&& Self::will_be_below_premium_threshold(&vault_id).unwrap_or(false)
{
Some((vault_id, request_redeem_tokens_for_max_premium))
Expand Down

0 comments on commit b9b547d

Please sign in to comment.