pub(crate) fn claim_receipt_funds(&mut self, account: &mut RegisteredAccount) {
        let claimed_stake_tokens = self.claim_stake_batch_receipts(&mut account.account);
        let claimed_near_tokens = self.claim_redeem_stake_batch_receipts(&mut account.account);
        let funds_were_claimed = claimed_stake_tokens || claimed_near_tokens;
        if funds_were_claimed {
            self.save_registered_account(&account);
        }
    }
/// NOTE: the account is saved to storage if funds were claimed
the account is saved to storage if funds were claimed
the account is saved to storage if funds were claimed
pub(crate) fn claim_receipt_funds(&mut self, account: &mut RegisteredAccount) {
        let claimed_stake_tokens = self.claim_stake_batch_receipts(&mut account.account);
        let claimed_near_tokens = self.claim_redeem_stake_batch_receipts(&mut account.account);
        let funds_were_claimed = claimed_stake_tokens || claimed_near_tokens;
        if funds_were_claimed {
            self.save_registered_account(&account);
        }
    }
pub ( crate ) fn claim_receipt_funds ( & mut self , account : & mut RegisteredAccount ) { let claimed_stake_tokens = self . claim_stake_batch_receipts ( & mut account . account ) ; let claimed_near_tokens = self . claim_redeem_stake_batch_receipts ( & mut account . account ) ; let funds_were_claimed = claimed_stake_tokens || claimed_near_tokens ; if funds_were_claimed { self . save_registered_account ( & account ) ; } }
NOTE: the account is saved to storage if funds were claimed
NOTE : the account is saved to storage if funds were claimed
&mut self
account
&mut RegisteredAccount