Skip to content

Commit

Permalink
SCF-06
Browse files Browse the repository at this point in the history
  • Loading branch information
fbslo committed Feb 18, 2022
1 parent 9fa59f0 commit ca5d2e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contracts/xStaker.sol
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,8 @@ contract xStaker is ERC20("xPolyCub", "xPOLYCUB"){
bool public rewardsEnabled = false;
uint256 public pid;

event ToggleStakingByAdmin(bool _deposit, uint256 _pid, address _placeholderToken, address _mainStaking);

constructor(IERC20 _token, address _admin, address _mainStaking) public {
require(_admin != address(0), "!address(0)");
require(_mainStaking != address(0), "!address(0)");
Expand Down Expand Up @@ -764,6 +766,8 @@ contract xStaker is ERC20("xPolyCub", "xPOLYCUB"){
if (!rewardsEnabled){
toggleRewards();
}

emit ToggleStakingByAdmin(_deposit, _pid, _placeholderToken, _mainStaking);
}

function claimRewards(bool _all, uint256 _limit) public {
Expand Down

0 comments on commit ca5d2e8

Please sign in to comment.