Skip to content

Commit 04269b2

Browse files
committed
fix: add explicit decimal check on initialize
1 parent 518f449 commit 04269b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

programs/earn/src/instructions/admin/initialize.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ pub struct Initialize<'info> {
6060
#[account(
6161
mut,
6262
mint::token_program = token_program
63+
mint::decimals = 6, // Must be 6 decimals
6364
)]
6465
pub m_mint: InterfaceAccount<'info, Mint>,
6566

0 commit comments

Comments
 (0)