Attempts to deposit on behalf of another address.
Shares credited to wrong address, preventing intended receiver from participating or withdrawing. Violation of ERC4626 interface expectations.
src/briVault.sol
Normally, the deposit function should mint shares to the specified receiver address as per ERC4626 standard, allowing deposits on behalf of others and maintaining proper ownership.
The problem is that shares are minted to msg.sender instead of the receiver parameter, violating the standard and miscrediting shares. This breaks the intended functionality of the ERC4626 deposit function.
This test shows that depositing for user2 actually mints shares to user1, the depositor, instead of user2.
Correct the minting to use the receiver parameter as per ERC4626.
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.