From b7a50e013ed0c0a877b95815737752f3db044158 Mon Sep 17 00:00:00 2001 From: bigz_Pubkey <83473873+0xbigz@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:58:17 -0500 Subject: [PATCH] admin.rs: update spot-decimals invariant to 4 (#1353) * admin.rs: update spot-decimals invariant to 4 * change to 5 --------- Co-authored-by: Chris Heaney --- programs/drift/src/instructions/admin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/programs/drift/src/instructions/admin.rs b/programs/drift/src/instructions/admin.rs index d1feb9054..dd196b1c3 100644 --- a/programs/drift/src/instructions/admin.rs +++ b/programs/drift/src/instructions/admin.rs @@ -193,9 +193,9 @@ pub fn handle_initialize_spot_market( ) } else { validate!( - ctx.accounts.spot_market_mint.decimals >= 6, + ctx.accounts.spot_market_mint.decimals >= 5, ErrorCode::InvalidSpotMarketInitialization, - "Mint decimals must be greater than or equal to 6" + "Mint decimals must be greater than or equal to 5" )?; validate!(