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
Copy file name to clipboardExpand all lines: public/content/developers/docs/standards/tokens/erc-4626/index.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ To better understand this page, we recommend you first read about [token standar
27
27
#### asset {#asset}
28
28
29
29
```solidity
30
-
function asset() public view returns (address)
30
+
function asset() public view returns (address assetTokenAddress)
31
31
```
32
32
33
33
This function returns the address of the underlying token used for the vault for accounting, depositing, withdrawing.
@@ -59,15 +59,15 @@ This function returns the amount of `assets` that would be exchanged by the vaul
59
59
#### maxDeposit {#maxdeposit}
60
60
61
61
```solidity
62
-
function maxDeposit(address receiver) public view returns (uint256)
62
+
function maxDeposit(address receiver) public view returns (uint256 maxAssets)
63
63
```
64
64
65
65
This function returns the maximum amount of underlying assets that can be deposited in a single [`deposit`](#deposit) call by the `receiver`.
66
66
67
67
#### previewDeposit {#previewdeposit}
68
68
69
69
```solidity
70
-
function previewDeposit(uint256 assets) public view returns (uint256)
70
+
function previewDeposit(uint256 assets) public view returns (uint256 shares)
71
71
```
72
72
73
73
This function allows users to simulate the effects of their deposit at the current block.
@@ -83,15 +83,15 @@ This function deposits `assets` of underlying tokens into the vault and grants o
83
83
#### maxMint {#maxmint}
84
84
85
85
```solidity
86
-
function maxMint(address receiver) public view returns (uint256)
86
+
function maxMint(address receiver) public view returns (uint256 maxShares)
87
87
```
88
88
89
89
This function returns the maximum amount of shares that can be minted in a single [`mint`](#mint) call by the `receiver`.
90
90
91
91
#### previewMint {#previewmint}
92
92
93
93
```solidity
94
-
function previewMint(uint256 shares) public view returns (uint256)
94
+
function previewMint(uint256 shares) public view returns (uint256 assets)
95
95
```
96
96
97
97
This function allows users to simulate the effects of their mint at the current block.
@@ -107,15 +107,15 @@ This function mints exactly `shares` vault shares to `receiver` by depositing `a
107
107
#### maxWithdraw {#maxwithdraw}
108
108
109
109
```solidity
110
-
function maxWithdraw(address owner) public view returns (uint256)
110
+
function maxWithdraw(address owner) public view returns (uint256 maxAssets)
111
111
```
112
112
113
113
This function returns the maximum amount of underlying assets that can be withdrawn from the `owner` balance with a single [`withdraw`](#withdraw) call.
114
114
115
115
#### previewWithdraw {#previewwithdraw}
116
116
117
117
```solidity
118
-
function previewWithdraw(uint256 assets) public view returns (uint256)
118
+
function previewWithdraw(uint256 assets) public view returns (uint256 shares)
119
119
```
120
120
121
121
This function allows users to simulate the effects of their withdrawal at the current block.
@@ -131,15 +131,15 @@ This function burns `shares` from `owner` and send exactly `assets` token from t
131
131
#### maxRedeem {#maxredeem}
132
132
133
133
```solidity
134
-
function maxRedeem(address owner) public view returns (uint256)
134
+
function maxRedeem(address owner) public view returns (uint256 maxShares)
135
135
```
136
136
137
137
This function returns the maximum amount of shares that can be redeemed from the `owner` balance through a [`redeem`](#redeem) call.
138
138
139
139
#### previewRedeem {#previewredeem}
140
140
141
141
```solidity
142
-
function previewRedeem(uint256 shares) public view returns (uint256)
142
+
function previewRedeem(uint256 shares) public view returns (uint256 assets)
143
143
```
144
144
145
145
This function allows users to simulate the effects of their redemption at the current block.
@@ -168,6 +168,10 @@ function balanceOf(address owner) public view returns (uint256)
168
168
169
169
Returns the total amount of vault shares the `owner` currently has.
170
170
171
+
### Map of the interface {#mapOfTheInterface}
172
+
173
+

0 commit comments