Skip to content

Commit

Permalink
Patch 0.1.62 : Added-amount-for-delegator (#486)
Browse files Browse the repository at this point in the history
* Added-amount-for-delegator

* lint-fix
  • Loading branch information
adi44 authored Oct 6, 2021
1 parent de30e5d commit 77f02bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contracts/Core/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

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

0 comments on commit 77f02bf

Please sign in to comment.