From 4307d7496680f9f63873a3d543ee5d445af236bf Mon Sep 17 00:00:00 2001 From: Francisco Date: Fri, 24 Jun 2022 05:22:10 -0300 Subject: [PATCH] Add a caution note to ERC4626 about EOA access (#3503) (cherry picked from commit 450c569d78aa57e8e73547f99ec412409c73d852) Signed-off-by: Hadrien Croubois --- contracts/token/ERC20/extensions/ERC4626.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/token/ERC20/extensions/ERC4626.sol b/contracts/token/ERC20/extensions/ERC4626.sol index 482c8fe8b33..81cd3783f47 100644 --- a/contracts/token/ERC20/extensions/ERC4626.sol +++ b/contracts/token/ERC20/extensions/ERC4626.sol @@ -17,6 +17,10 @@ import "../../../utils/math/Math.sol"; * the ERC20 standard. Any additional extensions included along it would affect the "shares" token represented by this * contract and not the "assets" token which is an independent contract. * + * CAUTION: Deposits and withdrawals may incur unexpected slippage. Users should verify that the amount received of + * shares or assets is as expected. EOAs should operate through a wrapper that performs these checks such as + * https://github.com/fei-protocol/ERC4626#erc4626router-and-base[ERC4626Router]. + * * _Available since v4.7._ */ abstract contract ERC4626 is ERC20, IERC4626 {