Fix balance check

This commit is contained in:
Hardhat Chad
2024-01-29 09:38:30 -06:00
parent 21b939c33c
commit fa6b40a313

View File

@@ -221,7 +221,7 @@ mod ore {
// Validate claim is for an appropriate quantity of tokens.
let proof = &mut ctx.accounts.proof;
require!(
amount.ge(&proof.claimable_rewards),
proof.claimable_rewards.ge(&amount),
ProgramError::ClaimTooLarge
);