Require statements without messages in Basket
#17
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Warden finding
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
pants
Vulnerability details
The functions and modifiers
Basket.initialize()
,Basket.validateWeights()
,Basket.mintTo()
,Basket.burn()
,Basket.changePublisher()
,Basket.changeLicenseFee()
,Basket.publishNewIndex()
,Basket.deleteNewIndex()
,Basket.pullUnderlying()
,Basket.onlyAuction()
andBasket.onlyPublisher()
contain a bunch of require statement without messages:Impact
When transactions revert, the users won't receive error messages indicating the cause of the failure.
Tool Used
Manual code review.
Recommended Mitigation Steps
Add informative error messages to these require statements.
The text was updated successfully, but these errors were encountered: