fix incentive switch
This commit is contained in:
@@ -52,6 +52,7 @@ contract DODOIncentive is InitializableOwnable {
|
|||||||
}else {
|
}else {
|
||||||
require(block.number <= _startBlock);
|
require(block.number <= _startBlock);
|
||||||
startBlock = _startBlock;
|
startBlock = _startBlock;
|
||||||
|
lastRewardBlock = startBlock;
|
||||||
}
|
}
|
||||||
_update();
|
_update();
|
||||||
emit SetSwitch(startBlock == 0 ? false: true);
|
emit SetSwitch(startBlock == 0 ? false: true);
|
||||||
|
|||||||
Reference in New Issue
Block a user