Open code423n4 opened 3 years ago
0xRajeev
The isValidDelegateorAdmin() is used for access control on both setLiquidityCap() and claim() but the @dev Natspec comment only specifies setLiquidityCap() which is misleading.
https://github.com/maple-labs/maple-core/blob/355141befa89c7623150a83b7d56a5f5820819e9/contracts/Pool.sol#L597
Manual Analysis
Add claim() as well to @dev on L597.
Informational, will address
Handle
0xRajeev
Vulnerability details
Impact
The isValidDelegateorAdmin() is used for access control on both setLiquidityCap() and claim() but the @dev Natspec comment only specifies setLiquidityCap() which is misleading.
Proof of Concept
https://github.com/maple-labs/maple-core/blob/355141befa89c7623150a83b7d56a5f5820819e9/contracts/Pool.sol#L597
Tools Used
Manual Analysis
Recommended Mitigation Steps
Add claim() as well to @dev on L597.