the report describes an issue in how metadata updated when using createAndDeposit
function which is responsible for create and deposit
so _create is called then the _deposit but the issue is that NFT metadata is update only when stream is created not when deposit happens.
As a result, the updated balance from _deposit is not reflected in the metadata of the NFT,
which could lead to inconsistencies in how the stream’s current state is represented on-chain.
In the createAndDeposit function, _create is called to set up a new stream and updateMetadata is subsequently called to capture the initial metadata state of the NFT.
However, updateMetadata is called before _deposit executes, which means the NFT metadata does not account for the balance update performed by _deposit.
Potential for Inaccurate Metadata.
POC:
So now the NFT on market place will not be reflect with the actual balance.
The NFT metadata may display incorrect information, which can lead to user confusion or misunderstandings about the current balance of the stream.
Update metadata after _deposit happens.
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.