Skip to content

Commit

Permalink
docs: additional clarity to the context around which preview methods …
Browse files Browse the repository at this point in the history
…operate (ethereum#4745)

* refactor: add call context input to preview methods

* refactor: loosen restrictions a bit

* refactor: match grammar
  • Loading branch information
fubuloubu authored Feb 2, 2022
1 parent a2b6246 commit 57c9374
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions EIPS/eip-4626.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ MUST *NOT* revert.
Allows an on-chain or off-chain user to simulate the effects of their deposit at the current block,
given current on-chain conditions.

MUST return the *exact* amount of Vault shares that would be obtained if depositing a given
*exact* amount of underlying assets using the `deposit` method.
MUST return the *exact* amount of Vault shares that would be minted if the caller were to deposit
a given *exact* amount of underlying assets using the `deposit` method.
MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
MUST *NOT* revert.

Expand Down Expand Up @@ -247,8 +247,8 @@ MUST *NOT* revert.
Allows an on-chain or off-chain user to simulate the effects of their mint at the current block,
given current on-chain conditions.

MUST return the *exact* amount of underlying assets that would be deposited in exchange for minting a given
*exact* amount of Vault shares using the `mint` method.
MUST return the *exact* amount of underlying assets that would be deposited by the caller in exchange
for minting a given *exact* amount of Vault shares using the `mint` method.
MUST be inclusive of deposit fees. Integrators should be aware of the existence of deposit fees.
MUST *NOT* revert.

Expand Down Expand Up @@ -323,8 +323,8 @@ MUST *NOT* revert.
Allows an on-chain or off-chain user to simulate the effects of their withdrawal at the current block,
given current on-chain conditions.

MUST return the *exact* amount of Vault shares that would be redeemed if withdrawing a given
*exact* amount of underlying assets using the `withdraw` method.
MUST return the *exact* amount of Vault shares that would be redeemed by the caller if withdrawing
a given *exact* amount of underlying assets using the `withdraw` method.
MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
MUST *NOT* revert.

Expand Down Expand Up @@ -402,8 +402,8 @@ MUST *NOT* revert.
Allows an on-chain or off-chain user to simulate the effects of their redeemption at the current block,
given current on-chain conditions.

MUST return the *exact* amount of underlying assets that would be withdrawn if redeeming a given
*exact* amount of Vault shares using the `redeem` method.
MUST return the *exact* amount of underlying assets that would be withdrawn by the caller if redeeming
a given *exact* amount of Vault shares using the `redeem` method.
MUST be inclusive of withdrawal fees. Integrators should be aware of the existence of withdrawal fees.
MUST *NOT* revert.

Expand Down

0 comments on commit 57c9374

Please sign in to comment.