Skip to content

Commit

Permalink
require not shutdown check when earmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
C2tP-C2tP committed Apr 13, 2021
1 parent c1779fa commit fb25f60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contracts/contracts/Booster.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fb25f60

Please sign in to comment.