pub fn voting_power_at_timestamp(&self, timestamp: u64) -> Uint128 {
        if self.is_void_or_undefined() || self.expired_at_timestamp(timestamp) {
            return Uint128::zero();
        }

        // Should always be the same as this, but because of rounding/truncation
        // it will sometimes be off by a little bit.
        // self.locked_amount_at_timestamp(timestamp)
        //     * Uint128::from(self.remaining_lock_time_at_timestamp(timestamp))
        //     / Uint128::from(VOTING_POWER_CONSTANT_DIVISOR)

        self.voting_power_coefficients()
            .evaluate_voting_power_at_timestamp(timestamp)
    }
// Get the voting power for a point at a given timestamp
Get the voting power for a point at a given timestamp
Get the voting power for a point at a given timestamp
pub fn voting_power_at_timestamp(&self, timestamp: u64) -> Uint128 {
        if self.is_void_or_undefined() || self.expired_at_timestamp(timestamp) {
            return Uint128::zero();
        }
        // Should always be the same as this, but because of rounding/truncation
        // it will sometimes be off by a little bit.
        // self.locked_amount_at_timestamp(timestamp)
        //     * Uint128::from(self.remaining_lock_time_at_timestamp(timestamp))
        //     / Uint128::from(VOTING_POWER_CONSTANT_DIVISOR)
        self.voting_power_coefficients()
            .evaluate_voting_power_at_timestamp(timestamp)
    }
pub fn voting_power_at_timestamp ( & self , timestamp : u64 ) -> Uint128 { if self . is_void_or_undefined ( ) || self . expired_at_timestamp ( timestamp ) { return Uint128 :: zero ( ) ; } // Should always be the same as this, but because of rounding/truncation // it will sometimes be off by a little bit. // self.locked_amount_at_timestamp(timestamp) //     * Uint128::from(self.remaining_lock_time_at_timestamp(timestamp)) //     / Uint128::from(VOTING_POWER_CONSTANT_DIVISOR) self . voting_power_coefficients ( ) . evaluate_voting_power_at_timestamp ( timestamp ) }
Get the voting power for a point at a given timestamp
Get the voting power for a point at a given timestamp
&self
timestamp
u64