pub(crate) fn add_reward(&mut self, token: &AccountId, amount: Balance) {
        if let Some(x) = self.rewards.get_mut(token) {
            *x = *x + amount;
        } else {
            self.rewards.insert(token.clone(), amount);
        }
    }
/// Adds amount to the balance of given token
Adds amount to the balance of given token
Adds amount to the balance of given token
pub(crate) fn add_reward(&mut self, token: &AccountId, amount: Balance) {
        if let Some(x) = self.rewards.get_mut(token) {
            *x = *x + amount;
        } else {
            self.rewards.insert(token.clone(), amount);
        }
    }
pub ( crate ) fn add_reward ( & mut self , token : & AccountId , amount : Balance ) { if let Some ( x ) = self . rewards . get_mut ( token ) { * x = * x + amount ; } else { self . rewards . insert ( token . clone ( ) , amount ) ; } }
Adds amount to the balance of given token
Adds amount to the balance of given token
&mut self
token
&AccountId
amount
Balance
&mut self
token
&AccountId
amount
Balance