fn burn_shares(
        &mut self,
        account_id: &AccountId,
        prev_shares_amount: Balance,
        shares: Balance,
    ) {
        if shares == 0 {
            return;
        }
        // Never remove shares from storage to allow to bring it back without extra storage deposit.
        self.shares_total_supply -= shares;
        self.shares
            .insert(&account_id, &(prev_shares_amount - shares));
    }
/// Burn shares from given user's balance.
Burn shares from given user's balance.
Burn shares from given user ' s balance .
fn burn_shares(
        &mut self,
        account_id: &AccountId,
        prev_shares_amount: Balance,
        shares: Balance,
    ) {
        if shares == 0 {
            return;
        }
        // Never remove shares from storage to allow to bring it back without extra storage deposit.
        self.shares_total_supply -= shares;
        self.shares
            .insert(&account_id, &(prev_shares_amount - shares));
    }
fn burn_shares ( & mut self , account_id : & AccountId , prev_shares_amount : Balance , shares : Balance , ) { if shares == 0 { return ; } // Never remove shares from storage to allow to bring it back without extra storage deposit. self . shares_total_supply -= shares ; self . shares . insert ( & account_id , & ( prev_shares_amount - shares ) ) ; }
Burn shares from given user's balance.
Burn shares from given user ' s balance .
&mut self
account_id
&AccountId
prev_shares_amount
Balance
shares
Balance
&mut self
account_id
&AccountId
prev_shares_amount
Balance
shares
Balance