-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f40f84
commit d6527f7
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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
Parameter Staking.initialize(address,address,address,uint256,uint256)._stakingToken is not in mixedCase
|
||
address _rewardsDistributor, | ||
uint256 _lockPeriod, | ||
uint256 _minStake | ||
|
@@ -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; | ||
|