Skip to content

Commit 076a8cb

Browse files
authored
Fix maxDeposit and maxMint on the 4626 page
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.
1 parent 3f3faed commit 076a8cb

File tree

1 file changed

+2
-2
lines changed
  • public/content/developers/docs/standards/tokens/erc-4626

1 file changed

+2
-2
lines changed

public/content/developers/docs/standards/tokens/erc-4626/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This function returns the amount of `assets` that would be exchanged by the vaul
6262
function maxDeposit(address receiver) public view returns (uint256 maxAssets)
6363
```
6464

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`.
6666

6767
#### previewDeposit {#previewdeposit}
6868

@@ -86,7 +86,7 @@ This function deposits `assets` of underlying tokens into the vault and grants o
8686
function maxMint(address receiver) public view returns (uint256 maxShares)
8787
```
8888

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`.
9090

9191
#### previewMint {#previewmint}
9292

0 commit comments

Comments
 (0)