Holoride: DeFi Token
In function pending, variable lastBlock is calculated as the minimum of current block(i.e. block.number) and endBlock (i.e. lastBlock = min(block.number, endBlock)). The if condition check is as follows:
if (lastBlock > pool.lastRewardBlock && block.number > pool.lastRewardBlock && lpSupply != 0)
the check of block.number > pool.lastRewardBlock is not necessary since lastBlock > pool.lastRewardBlock already checks this.
Remove the redundant check of block.number > pool.lastRewardBlock
Holoride: DeFi Token