/// The total amount of theoretical ZEE owed if the amount staked had been staked
/// since the beginning of time.
The total amount of theoretical ZEE owed if the amount staked had been staked
since the beginning of time.
The total amount of theoretical ZEE owed if the amount staked had been staked since the beginning of time .
pub fn calculate_holding(&self, reward_per_share: u128) -> u64 {
        (self.staked as u128)
            .checked_mul(reward_per_share)
            .unwrap()
            .checked_div(PRECISION)
            .unwrap() as u64
    }
pub fn calculate_holding ( & self , reward_per_share : u128 ) -> u64 { ( self . staked as u128 ) . checked_mul ( reward_per_share ) . unwrap ( ) . checked_div ( PRECISION ) . unwrap ( ) as u64 }
The total amount of theoretical ZEE owed if the amount staked had been staked
since the beginning of time.
The total amount of theoretical ZEE owed if the amount staked had been staked since the beginning of time .
&self
reward_per_share
u128