Skip to content

Commit

Permalink
chore: pseudo commit to check gasCompare script
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkharvar committed Nov 6, 2023
1 parent e8cd51f commit 18289b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/Core/StakeManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ contract StakeManager is Initializable, StakeStorage, StateManager, Pause, Stake
uint32 indexed stakerId,
uint256 amount,
uint256 newStake,
uint256 timestamp
uint256 timestamp,
string name
);

/**
Expand Down Expand Up @@ -347,7 +348,7 @@ contract StakeManager is Initializable, StakeStorage, StateManager, Pause, Stake
require(sToken.balanceOf(msg.sender) >= sAmount, "Invalid Amount");

locks[msg.sender][staker.tokenAddress][LockType.Unstake] = Structs.Lock(sAmount, epoch + unstakeLockPeriod);
emit Unstaked(msg.sender, epoch, stakerId, sAmount, staker.stake, block.timestamp);
emit Unstaked(msg.sender, epoch, stakerId, sAmount, staker.stake, block.timestamp, "unstaked");
// Ignoring below line for testing as this is standard erc20 function
require(sToken.transferFrom(msg.sender, address(this), sAmount), "sToken transfer failed");
}
Expand Down

0 comments on commit 18289b2

Please sign in to comment.