From fb25f601ffed58d7e3bab594a6a70ce2e1cb3b68 Mon Sep 17 00:00:00 2001 From: c2tp Date: Tue, 13 Apr 2021 12:30:49 +0900 Subject: [PATCH] require not shutdown check when earmarking --- contracts/contracts/Booster.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/contracts/Booster.sol b/contracts/contracts/Booster.sol index fc2fb56..d08bb05 100644 --- a/contracts/contracts/Booster.sol +++ b/contracts/contracts/Booster.sol @@ -270,7 +270,7 @@ contract Booster{ address lptoken = poolInfo[_pid].lptoken; IERC20(lptoken).safeTransferFrom(msg.sender, address(this), _amount); _amount = IERC20(lptoken).balanceOf(address(this)); - + //move to curve gauge sendTokensToGauge(_pid); @@ -427,14 +427,14 @@ contract Booster{ } function earmarkRewards(uint256 _pid) external returns(bool){ - // require(!isShutdown,"shutdown"); + require(!isShutdown,"shutdown"); _earmarkRewards(_pid); return true; } //claim fees from curve distro contract, put in lockers' reward contract function earmarkFees() external returns(bool){ - // require(!isShutdown,"shutdown"); + require(!isShutdown,"shutdown"); //claim fee rewards IStaker(staker).claimFees(feeDistro, feeToken); //send fee rewards to reward contract