From 6fdd53e7ebb360bafa5980e51e9cd7f148707a69 Mon Sep 17 00:00:00 2001 From: owen05 Date: Tue, 5 Jan 2021 18:11:50 +0800 Subject: [PATCH] fix incentive switch --- contracts/SmartRoute/DODOIncentive.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/SmartRoute/DODOIncentive.sol b/contracts/SmartRoute/DODOIncentive.sol index 6320141..d3c865b 100644 --- a/contracts/SmartRoute/DODOIncentive.sol +++ b/contracts/SmartRoute/DODOIncentive.sol @@ -52,6 +52,7 @@ contract DODOIncentive is InitializableOwnable { }else { require(block.number <= _startBlock); startBlock = _startBlock; + lastRewardBlock = startBlock; } _update(); emit SetSwitch(startBlock == 0 ? false: true);