From 5779e3207e741f994c88a771edc6e65a95fa3e16 Mon Sep 17 00:00:00 2001 From: Noah Jelich <12912633+njelich@users.noreply.github.com> Date: Wed, 19 Aug 2026 12:35:43 +0000 Subject: [PATCH] docs(erc4626): fix minor typo --- content/contracts/4.x/erc4626.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/contracts/4.x/erc4626.mdx b/content/contracts/4.x/erc4626.mdx index 564aa50b..94a97be9 100644 --- a/content/contracts/4.x/erc4626.mdx +++ b/content/contracts/4.x/erc4626.mdx @@ -29,7 +29,7 @@ In such a reprentation, widely different rates can be clearly visible in the sam ### The attack -When depositing tokens, the number of shares a user gets is rounded down. This rounding takes away value from the user in favor or the vault (i.e. in favor of all the current share holders). This rounding is often negligible because of the amount at stake. If you deposit 1e9 shares worth of tokens, the rounding will have you lose at most 0.0000001% of your deposit. However if you deposit 10 shares worth of tokens, you could lose 10% of your deposit. Even worse, if you deposit `<1` share worth of tokens, then you get 0 shares, and you basically made a donation. +When depositing tokens, the number of shares a user gets is rounded down. This rounding takes away value from the user in favor of the vault (i.e. in favor of all the current share holders). This rounding is often negligible because of the amount at stake. If you deposit 1e9 shares worth of tokens, the rounding will have you lose at most 0.0000001% of your deposit. However if you deposit 10 shares worth of tokens, you could lose 10% of your deposit. Even worse, if you deposit `<1` share worth of tokens, then you get 0 shares, and you basically made a donation. For a given amount of assets, the more shares you receive the safer you are. If you want to limit your losses to at most 1%, you need to receive at least 100 shares.