From ca5d2e8bd86467c34b5fda448e08359eae7c7f8e Mon Sep 17 00:00:00 2001 From: fbslo Date: Fri, 18 Feb 2022 16:38:19 +0100 Subject: [PATCH] SCF-06 --- contracts/xStaker.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/xStaker.sol b/contracts/xStaker.sol index 2bbc6df..997d00c 100644 --- a/contracts/xStaker.sol +++ b/contracts/xStaker.sol @@ -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)"); @@ -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 {