There is an error in the event BatchMetadataUpdate
triggered during the execution of SablierFlowBase.sol::setNFTDescriptor() and SablierFlowBase.sol::setProtocolFee().
If the NFT has not been created, _toTokenId is 0. If the project monitors this event, it is likely to cause some unnecessary errors.
The specific details are that the value of nextStreamId
is 1
at the beginning. If the setProtocolFee()
or setNFTDescriptor()
function is executed when the SablierFlow
is not created, the event BatchMetadataUpdate(1,0)
will be triggered. This is obviously ambiguous. Normally, the TokenId
of batch updates should be incremented. If there is an external program listening to this event, it may cause unpredictable harm.
Impact as analyzed above.
Human Analysis
The code needs to be modified:
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.