Skip to content

Commit

Permalink
compile
Browse files Browse the repository at this point in the history
  • Loading branch information
anajuliabit committed Jun 28, 2024
1 parent 4f40f84 commit d6527f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Staking.sol
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ contract Staking is ERC20VotesUpgradeable, Ownable2StepUpgradeable {

/// @notice Initialize the contract
/// @param newOwner The owner of the contract, i.e. the DAO contract address
/// @param stakingToken The address of the staking token, i.e. SHU
/// @param _stakingToken The address of the staking token, i.e. SHU
/// @param _rewardsDistributor The address of the rewards distributor
/// contract
/// @param _lockPeriod The lock period in seconds
/// @param _minStake The minimum stake amount
function initialize(
address newOwner,
address stakingToken,
address _stakingToken,

Check warning

Code scanning / Slither

Conformance to Solidity naming conventions Warning

address _rewardsDistributor,
uint256 _lockPeriod,
uint256 _minStake
Expand All @@ -182,7 +182,7 @@ contract Staking is ERC20VotesUpgradeable, Ownable2StepUpgradeable {
// Transfer ownership to the DAO contract
_transferOwnership(newOwner);

stakingToken = IERC20(stakingToken);
stakingToken = IERC20(_stakingToken);
rewardsDistributor = IRewardsDistributor(_rewardsDistributor);
lockPeriod = _lockPeriod;
minStake = _minStake;
Expand Down

0 comments on commit d6527f7

Please sign in to comment.