pub fn last_reward_block_applicable(&self, current_block_number: BlockNumber) -> BlockNumber {
        if current_block_number > self.period_finish {
            self.period_finish
        } else {
            current_block_number
        }
    }
/// Return valid reward block for current block number.
/// Return send if reward ended already.
Return valid reward block for current block number.
Return send if reward ended already.
Return valid reward block for current block number . Return send if reward ended already .
pub fn last_reward_block_applicable(&self, current_block_number: BlockNumber) -> BlockNumber {
        if current_block_number > self.period_finish {
            self.period_finish
        } else {
            current_block_number
        }
    }
pub fn last_reward_block_applicable ( & self , current_block_number : BlockNumber ) -> BlockNumber { if current_block_number > self . period_finish { self . period_finish } else { current_block_number } }
Return valid reward block for current block number.
Return valid reward block for current block number .
&self
current_block_number
BlockNumber
&self
current_block_number
BlockNumber