Skip to content

Commit

Permalink
admin.rs: update spot-decimals invariant to 4
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbigz committed Dec 2, 2024
1 parent 71a49b9 commit c203d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/drift/src/instructions/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ pub fn handle_initialize_spot_market(
)
} else {
validate!(
ctx.accounts.spot_market_mint.decimals >= 6,
ctx.accounts.spot_market_mint.decimals >= 4,
ErrorCode::InvalidSpotMarketInitialization,
"Mint decimals must be greater than or equal to 6"
)?;
Expand Down

0 comments on commit c203d62

Please sign in to comment.