From a84621662b0f1d9157b6dd2f5dc9560944c2d70a Mon Sep 17 00:00:00 2001 From: Ana Julia Date: Fri, 14 Jun 2024 08:51:37 -0300 Subject: [PATCH] remove unused variable --- src/Staking.sol | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Staking.sol b/src/Staking.sol index 6b2b898..80f0989 100644 --- a/src/Staking.sol +++ b/src/Staking.sol @@ -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"; @@ -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;