Closed c4-bot-8 closed 10 months ago
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/CurvesERC20.sol#L8
There is no constructor set up for Ownable, CurvesERC20 can't be deployed as there will be an error for this issue
Manual Review
replace transferOwnership(owner) with Ownable(owner) as OpenZeppelin Wizard suggests:
constructor(string memory name_, string memory symbol_, address owner) ERC20(name_, symbol_) + Ownable(owner){ - transferOwnership(owner); //@audit wrong constructor for ownable }
Other
raymondfam marked the issue as insufficient quality report
raymondfam marked the issue as duplicate of #67
alcueca marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2024-01-curves/blob/main/contracts/CurvesERC20.sol#L8
Vulnerability details
Impact
There is no constructor set up for Ownable, CurvesERC20 can't be deployed as there will be an error for this issue
Tools Used
Manual Review
Recommended Mitigation Steps
replace transferOwnership(owner) with Ownable(owner) as OpenZeppelin Wizard suggests:
Assessed type
Other