-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev #2
Conversation
function sharePrice() external view returns (uint) { | ||
uint units = 10 ** uint(decimals()); | ||
uint totalSupply_ = totalSupply(); | ||
return totalSupply_ == 0 ? units : units * totalAssets() / totalSupply_; | ||
} |
Check warning
Code scanning / Slither
Dangerous strict equalities Medium
IERC20(asset).approve(gauge_, type(uint).max); | ||
address _gaugeRewardToken = IPearlGaugeV2(gauge_).rewardToken(); |
Check notice
Code scanning / Slither
Missing zero address validation Low
function sharePrice() external view returns (uint) { | ||
uint units = 10 ** uint(decimals()); | ||
uint totalSupply_ = totalSupply(); | ||
return totalSupply_ == 0 ? units : units * totalAssets() / totalSupply_; | ||
} |
Check warning
Code scanning / Slither
Dangerous strict equalities Medium
|
||
constructor(address governance_) { | ||
require(governance_ != address(0), "WRONG_INPUT"); | ||
governance = governance_; | ||
_operators.add(governance_); | ||
} | ||
|
||
function setup(address ifo_, address ve_, address stgn_, address multigauge_) external { | ||
function setup(address ifo_, address ve_, address stgn_, address multigauge_, address liquidator_) external { |
Check notice
Code scanning / Slither
Missing zero address validation Low
- liquidator = liquidator_
@@ -0,0 +1,119 @@ | |||
// SPDX-License-Identifier: BUSL-1.1 | |||
pragma solidity ^0.8.21; |
Check warning
Code scanning / Slither
Incorrect versions of Solidity Warning
@@ -0,0 +1,26 @@ | |||
// SPDX-License-Identifier: BUSL-1.1 | |||
pragma solidity ^0.8.21; |
Check warning
Code scanning / Slither
Incorrect versions of Solidity Warning
event VeTokenLocked(address indexed stakingToken, address indexed account, uint tokenId); | ||
event VeTokenUnlocked(address indexed stakingToken, address indexed account, uint tokenId); | ||
|
||
// ************************************************************* | ||
// INIT | ||
// ************************************************************* | ||
|
||
function init(address controller_, address _ve, address _defaultRewardToken) external initializer { | ||
function init(address controller_, address _defaultRewardToken) external initializer { |
Check warning
Code scanning / Slither
Conformance to Solidity naming conventions Warning
// todo Compounder CVR | ||
address _compounder = compounder; | ||
ITetuLiquidator l = ITetuLiquidator(controller.liquidator()); | ||
address asset = IERC4626(_compounder).asset(); |
Check notice
Code scanning / Slither
Local variable shadowing Low
- StrategyStrictBase.asset (state variable)
- IStrategyStrict.asset() (function)
|
||
address public compounder; | ||
|
||
constructor(address vault_, address gauge_, bool ifo_, address compounder_) StrategyStrictBase(vault_) { |
Check notice
Code scanning / Slither
Missing zero address validation Low
- gauge = gauge_
|
||
address public compounder; | ||
|
||
constructor(address vault_, address gauge_, bool ifo_, address compounder_) StrategyStrictBase(vault_) { |
Check notice
Code scanning / Slither
Missing zero address validation Low
- compounder = compounder_
} else { | ||
// todo Compounder CVR | ||
address _compounder = compounder; |
Check warning
Code scanning / Slither
Variable names too similar Warning
No description provided.