This commit is contained in:
Hardhat Chad
2025-09-18 11:46:35 -07:00
parent 55666405ef
commit 04940529f8
8 changed files with 8 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ pub fn process_claim_sol(accounts: &[AccountInfo<'_>], data: &[u8]) -> ProgramRe
.assert_mut(|m| m.authority == *signer_info.key)?;
system_program.is_program(&system_program::ID)?;
// Load amount.
// Normalize amount.
let amount = miner.rewards_sol.min(amount);
// Update miner.