Event BasketLicenseProposed needs an idNumber #263
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Warden finding
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
0xsanson
Vulnerability details
Impact
The function
Factory.proposeBasketLicense
at the end emitsBasketLicenseProposed(msg.sender, tokenName)
and returns the id of the proposal.This
id
should also be written to the log, since it's needed by the proposer (for createBasket), and they may not see the return value of an external function.Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Factory.sol#L87-L90
Tools Used
editor
Recommended Mitigation Steps
Consider redefining the event to contain the id of the proposal.
The text was updated successfully, but these errors were encountered: