From 77f02bf320cb52b42115808fa89ca7229880e332 Mon Sep 17 00:00:00 2001 From: Aditya Dhir <31381639+adi44@users.noreply.github.com> Date: Wed, 6 Oct 2021 12:42:52 +0530 Subject: [PATCH] Patch 0.1.62 : Added-amount-for-delegator (#486) * Added-amount-for-delegator * lint-fix --- contracts/Core/StakeManager.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/Core/StakeManager.sol b/contracts/Core/StakeManager.sol index e7413c8e..390f9036 100644 --- a/contracts/Core/StakeManager.sol +++ b/contracts/Core/StakeManager.sol @@ -34,7 +34,7 @@ contract StakeManager is Initializable, ACL, StakeStorage, StateManager, Pause { event Withdrew(address staker, uint32 epoch, uint32 indexed stakerId, uint256 amount, uint256 newStake, uint256 timestamp); - event Delegated(address delegator, uint32 epoch, uint32 indexed stakerId, uint256 newStake, uint256 timestamp); + event Delegated(address delegator, uint32 epoch, uint32 indexed stakerId, uint256 amount, uint256 newStake, uint256 timestamp); event DelegationAcceptanceChanged(bool delegationEnabled, address staker, uint32 indexed stakerId); @@ -119,7 +119,7 @@ contract StakeManager is Initializable, ACL, StakeStorage, StateManager, Pause { // Step 4: Mint sToken as Amount * (totalSupplyOfToken/previousStake) sToken.mint(msg.sender, toMint); - emit Delegated(msg.sender, epoch, stakerId, stakers[stakerId].stake, block.timestamp); + emit Delegated(msg.sender, epoch, stakerId, amount, stakers[stakerId].stake, block.timestamp); } /// @notice staker/delegator must call unstake() to lock their sRZRs