From 79e0f27f8d7f1887a7133bb86705c1f75c11e7f6 Mon Sep 17 00:00:00 2001 From: harsh4786 <50767810+harsh4786@users.noreply.github.com> Date: Tue, 12 Nov 2024 20:27:35 +0530 Subject: [PATCH] add `PERCENTAGE_PRECISION` import for fixing compilation issue (#1321) --- programs/drift/src/math/spot_balance.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/drift/src/math/spot_balance.rs b/programs/drift/src/math/spot_balance.rs index 290e00205..8448abf08 100644 --- a/programs/drift/src/math/spot_balance.rs +++ b/programs/drift/src/math/spot_balance.rs @@ -5,6 +5,7 @@ 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; +use crate::PERCENTAGE_PRECISION; pub fn get_spot_balance( token_amount: u128,