Skip to content

Commit

Permalink
program: make max withraw percent 1e6 precision
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Aug 8, 2023
1 parent 2c7f37b commit ede1b70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/drift_vaults/src/state/vault_depositor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ pub enum WithdrawUnit {
SharesPercent,
}

const MAX_WITHDRAW_PERCENT: u128 = 100_000;
const MAX_WITHDRAW_PERCENT: u128 = 1_000_000;
impl WithdrawUnit {
pub fn get_shares_from_percent(percent: u128, shares: u128) -> VaultResult<u128> {
validate!(
Expand Down

0 comments on commit ede1b70

Please sign in to comment.