Skip to content

Commit

Permalink
admin.rs: update spot-decimals invariant to 4 (#1353)
Browse files Browse the repository at this point in the history
* admin.rs: update spot-decimals invariant to 4

* change to 5

---------

Co-authored-by: Chris Heaney <[email protected]>
  • Loading branch information
0xbigz and crispheaney authored Dec 2, 2024
1 parent 446ecf6 commit b7a50e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/drift/src/instructions/admin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit b7a50e0

Please sign in to comment.