You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the Deposit event is emitted, the first parameter MUST be the controller, and the second parameter MUST be the receiver.
The correct implementation should match the ERC-4626 spec, where controller has exchanged assets for shares (on behalf of owner in requestDeposit) and transferred those shares to receiver:
The current implementation of
deposit
in ERC7540Vault.sol is:But the ERC-7540 spec states that:
The correct implementation should match the ERC-4626 spec, where
controller
has exchangedassets
forshares
(on behalf ofowner
inrequestDeposit
) and transferred thoseshares
toreceiver
:The text was updated successfully, but these errors were encountered: