Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jun 14, 2024
1 parent 86c0727 commit a846216
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Staking.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
pragma solidity 0.8.25;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import {Ownable2StepUpgradeable} from "@openzeppelin-upgradeable/contracts/access/Ownable2StepUpgradeable.sol";
Expand Down Expand Up @@ -250,9 +250,6 @@ contract Staking is Ownable2StepUpgradeable {
// Before doing anything, get the unclaimed rewards first
rewardsDistributor.distributeRewards();

// Gets the stake shares
uint256 keyperShares = keyperStake.shares;

// Prevents the keyper from unstaking more than they have staked
uint256 maxWithdrawAmount = maxWithdraw(keyper);
amount = maxWithdrawAmount < amount ? maxWithdrawAmount : amount;
Expand Down

0 comments on commit a846216

Please sign in to comment.