mirror of
https://github.com/d0zingcat/ore.git
synced 2026-05-14 07:26:51 +00:00
Fix math typo
This commit is contained in:
@@ -228,7 +228,7 @@ mod ore {
|
||||
|
||||
// Update lifetime status.
|
||||
let treasury = &mut ctx.accounts.treasury;
|
||||
treasury.total_claimed_rewards = treasury.total_claimed_rewards.saturating_sub(amount);
|
||||
treasury.total_claimed_rewards = treasury.total_claimed_rewards.saturating_add(amount);
|
||||
|
||||
// Distribute tokens from treasury to beneficiary.
|
||||
let treasury_tokens = &ctx.accounts.treasury_tokens;
|
||||
@@ -592,14 +592,14 @@ pub struct Claim<'info> {
|
||||
#[account(mut, token::mint = mint)]
|
||||
pub beneficiary: Account<'info, TokenAccount>,
|
||||
|
||||
/// The proof account.
|
||||
#[account(mut, seeds = [PROOF, signer.key().as_ref()], bump = proof.bump)]
|
||||
pub proof: Account<'info, Proof>,
|
||||
|
||||
/// The Ore token mint account.
|
||||
#[account(address = TOKEN_MINT_ADDRESS)]
|
||||
pub mint: Account<'info, Mint>,
|
||||
|
||||
/// The proof account.
|
||||
#[account(mut, seeds = [PROOF, signer.key().as_ref()], bump = proof.bump)]
|
||||
pub proof: Account<'info, Proof>,
|
||||
|
||||
/// The treasury account.
|
||||
#[account(seeds = [TREASURY], bump = treasury.bump)]
|
||||
pub treasury: Account<'info, Treasury>,
|
||||
|
||||
Reference in New Issue
Block a user