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
It's "for the receiver":
The idea is to allow enabling blocklists at the vault level. If you are going to restrict holding vault shares by certain addresses, you would stop it both at transfer and deposit/mint. The maxDeposit/maxMint should reflect that.
It is a bit arbitrary, because blocklists could also be implemented on the function caller, and not just the token receiver, but that's what it is.
Copy file name to clipboardExpand all lines: public/content/developers/docs/standards/tokens/erc-4626/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ This function returns the amount of `assets` that would be exchanged by the vaul
62
62
function maxDeposit(address receiver) public view returns (uint256 maxAssets)
63
63
```
64
64
65
-
This function returns the maximum amount of underlying assets that can be deposited in a single [`deposit`](#deposit) call by the `receiver`.
65
+
This function returns the maximum amount of underlying assets that can be deposited in a single [`deposit`](#deposit) call, with the shares minted for the `receiver`.
66
66
67
67
#### previewDeposit {#previewdeposit}
68
68
@@ -86,7 +86,7 @@ This function deposits `assets` of underlying tokens into the vault and grants o
86
86
function maxMint(address receiver) public view returns (uint256 maxShares)
87
87
```
88
88
89
-
This function returns the maximum amount of shares that can be minted in a single [`mint`](#mint) call by the `receiver`.
89
+
This function returns the maximum amount of shares that can be minted in a single [`mint`](#mint) call, with the shares minted for the `receiver`.
0 commit comments