Fixed events

This commit is contained in:
Thrilok Kumar 2020-07-20 22:23:54 +05:30
parent 737423a6b4
commit 6ef89a38fc

View File

@ -159,12 +159,12 @@ contract Staking is StakingHelper {
emit LogWithdraw(address(stakingToken), stakingType, _amt, getId, setIdAmount);
bytes32 _eventCodeWithdraw = keccak256("LogWithdraw(address,bytes32,uint256,uint256,uint256)");
bytes memory _eventParamWithdraw = abi.encode(address(stakingToken), _amt, getId, setIdAmount);
bytes memory _eventParamWithdraw = abi.encode(address(stakingToken), stakingType, _amt, getId, setIdAmount);
emitEvent(_eventCodeWithdraw, _eventParamWithdraw);
emit LogClaimedReward(address(rewardToken), stakingType, rewardAmt, setIdReward);
bytes32 _eventCodeReward = keccak256("LogClaimedReward(address,bytes32,uint256,uint256)");
bytes memory _eventParamReward = abi.encode(address(rewardToken), rewardAmt, setIdReward);
bytes memory _eventParamReward = abi.encode(address(rewardToken), stakingType, rewardAmt, setIdReward);
emitEvent(_eventCodeReward, _eventParamReward);
}