Skip to content

Commit

Permalink
program: add PERCENTAGE_PRECISION for drift-rs flag
Browse files Browse the repository at this point in the history
  • Loading branch information
crispheaney committed Nov 23, 2024
1 parent e388841 commit 7f18cae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions programs/drift/src/math/spot_balance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ use crate::math::safe_math::{SafeDivFloor, SafeMath};
use crate::state::oracle::{OraclePriceData, StrictOraclePrice};
use crate::state::spot_market::{SpotBalanceType, SpotMarket};
use crate::state::user::SpotPosition;
#[cfg(feature = "drift-rs")]
use crate::math::constants::PERCENTAGE_PRECISION;

pub fn get_spot_balance(
token_amount: u128,
Expand Down

0 comments on commit 7f18cae

Please sign in to comment.