deposit function may emit inaccurate events.When a user calls the deposit function, the event emit deposited will always be emitted.
However, due to incomplete parameters in the event, off-chain monitoring may be inaccurate.
Likelihood:
This will definitely occur when the depositor and the share receiver are not the same address.
Impact:
When the depositor and the share receiver are not the same address, off-chain systems cannot identify the "actual depositor".
After adding the following function to test/BriVaultTest.t.sol, run forge test --mt test__deposit_whenCallerNotEqualReceiver -vv
The console output is as follows:
Follow the ERC4626 standard practice by including complete parameters in the event, properly defining "sender" and "owner".
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.