Closed sherlock-admin2 closed 2 months ago
Parvez.eth
Invalid
Consider protecting the initializer functions with modifiers.
Found in src/contracts/libraries/DepegSwapLib.sol Line: 30
function isInitialized(DepegSwap storage self) internal view returns (bool) {
Found in src/contracts/libraries/DepegSwapLib.sol Line: 38
function initialize(address _address, address ct, address ammPair) internal pure returns (DepegSwap memory) {
Found in src/contracts/libraries/Guard.sol Line: 36
function _onlyInitialized(DepegSwap storage ds) internal view {
Found in src/contracts/libraries/LvAssetLib.sol Line: 21
function initialize(address _address) internal pure returns (LvAsset memory) {
Found in src/contracts/libraries/LvAssetLib.sol Line: 29
function isInitialized(LvAsset memory self) internal pure returns (bool) {
Found in src/contracts/libraries/Pair.sol Line: 30
function initalize(address pa, address ra) internal pure returns (Pair memory key) {
Found in src/contracts/libraries/Pair.sol Line: 47
function isInitialized(Pair memory key) internal pure returns (bool status) {
Found in src/contracts/libraries/PsmLib.sol Line: 33
function isInitialized(State storage self) internal view returns (bool status) {
Found in src/contracts/libraries/PsmLib.sol Line: 37
function initialize(State storage self, Pair memory key) internal {
Found in src/contracts/libraries/RedemptionAssetManagerLib.sol Line: 24
function initialize(address ra) internal pure returns (PsmRedemptionAssetManager memory) {
Found in src/contracts/libraries/VaultConfig.sol Line: 12
function initialize(uint256 fee) internal pure returns (VaultConfig memory) {
Found in src/contracts/libraries/VaultLib.sol Line: 45
function initialize(VaultState storage self, address lv, uint256 fee, address ra, uint256 initialDsPrice)
Parvez.eth
Invalid
Unprotected initializer
M-3 Unprotected initializer
Summary
Consider protecting the initializer functions with modifiers.
Code Snippet
Found in src/contracts/libraries/DepegSwapLib.sol Line: 30
Found in src/contracts/libraries/DepegSwapLib.sol Line: 38
Found in src/contracts/libraries/Guard.sol Line: 36
Found in src/contracts/libraries/LvAssetLib.sol Line: 21
Found in src/contracts/libraries/LvAssetLib.sol Line: 29
Found in src/contracts/libraries/Pair.sol Line: 30
Found in src/contracts/libraries/Pair.sol Line: 47
Found in src/contracts/libraries/PsmLib.sol Line: 33
Found in src/contracts/libraries/PsmLib.sol Line: 37
Found in src/contracts/libraries/RedemptionAssetManagerLib.sol Line: 24
Found in src/contracts/libraries/VaultConfig.sol Line: 12
Found in src/contracts/libraries/VaultLib.sol Line: 45