Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gab0071 committed Aug 20, 2024
1 parent 2ad4940 commit 372300d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Main.sol
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ contract Main is Ownable {
function unstake() public {
// lets check the balance to unstake
uint256 amountToUnstake = Stakes[msg.sender].StakedBalance;
if (balance <= 0) {
if (amountToUnstake <= 0) {
revert Main_stakingBalanceMustBeGreaterThanZero();
}
// lets transfer to the user the StakingToken (STK) that they staked
Expand Down

0 comments on commit 372300d

Please sign in to comment.