fix incentive switch

This commit is contained in:
owen05
2021-01-05 18:11:50 +08:00
parent b249d44b16
commit 6fdd53e7eb

View File

@@ -52,6 +52,7 @@ contract DODOIncentive is InitializableOwnable {
}else {
require(block.number <= _startBlock);
startBlock = _startBlock;
lastRewardBlock = startBlock;
}
_update();
emit SetSwitch(startBlock == 0 ? false: true);