Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearwood committed May 11, 2021
1 parent f29e572 commit 4292e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/mocks/ComplexRewarder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ contract ComplexRewarder is IRewarder, BoringOwnable{
/// @return pool Returns the pool that was updated.
function updatePool(uint256 pid) public returns (PoolInfo memory pool) {
pool = poolInfo[pid];
require(pool.lastRewardBlock != 0, "Pool does not exist");
if (block.number > pool.lastRewardBlock) {
uint256 lpSupply = MasterChefV2(MASTERCHEF_V2).lpToken(pid).balanceOf(MASTERCHEF_V2);

Expand Down

0 comments on commit 4292e67

Please sign in to comment.