Skip to content

Commit

Permalink
uses BaseStaking for Staking.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jul 24, 2024
1 parent fce7bff commit 3878c96
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/DelegateStaking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,14 @@ interface IStaking {

/// @notice Shutter Delegate Staking Contract
/// Allows users to stake SHU and earn rewards in exchange.
contract DelegateStaking is ERC20VotesUpgradeable, OwnableUpgradeable {
contract DelegateStaking is BaseStaking {
/*//////////////////////////////////////////////////////////////
LIBRARIES
//////////////////////////////////////////////////////////////*/
using EnumerableSet for EnumerableSet.UintSet;

using SafeTransferLib for IERC20;

using FixedPointMathLib for uint256;

/*//////////////////////////////////////////////////////////////
VARIABLES
//////////////////////////////////////////////////////////////*/
Expand Down
4 changes: 2 additions & 2 deletions src/Staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ pragma solidity 0.8.26;
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import {ERC20VotesUpgradeable} from "@openzeppelin-upgradeable/contracts/token/ERC20/extensions/ERC20VotesUpgradeable.sol";

import {IERC20} from "./interfaces/IERC20.sol";
import {BaseStaking} from "./BaseStaking.sol";
import {SafeTransferLib} from "./libraries/SafeTransferLib.sol";
import {FixedPointMathLib} from "./libraries/FixedPointMathLib.sol";
import {IERC20} from "./interfaces/IERC20.sol";
import {IRewardsDistributor} from "./interfaces/IRewardsDistributor.sol";
import {BaseStaking} from "./BaseStaking.sol";

/// @notice Shutter Staking Contract
/// Allows keypers to stake SHU for a lock period and earn rewards in exchange
Expand Down

0 comments on commit 3878c96

Please sign in to comment.