# Ambiguity in charging of withdrawal fees in yVault contracts

**URL:** <https://gov.yearn.fi/t/ambiguity-in-charging-of-withdrawal-fees-in-yvault-contracts/2919>\
**Category:** General Chat\
**Created:** [20 August 2020 05:00 UTC](https://gov.yearn.fi/t/ambiguity-in-charging-of-withdrawal-fees-in-yvault-contracts/2919 "2020-08-20T05:00:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Dark](https://dub1.discourse-cdn.com/flex013/user_avatar/gov.yearn.fi/dark/32/307_2.png) [@Dark](https://gov.yearn.fi/u/Dark)\
**Post date:** [20 August 2020 06:03 UTC](https://gov.yearn.fi/t/ambiguity-in-charging-of-withdrawal-fees-in-yvault-contracts/2919/2 "2020-08-20T06:03:28Z")

</div>

From a telegram chat “@andrecronje any idea why the withdrawal has been hit or miss?”

“So there is a deposit buffer, when you hit this buffer, no fee, this buffer is roughly 5% of the system, if it increases above 5% the system deposits the diff of buffer less 5%, so it tries to keep the balance between available buffer and maximized earnings. So as you deposit and the buffer increases above 5% it sends it to the underlying strategy, when you withdraw from the underlying strategy, you pay 5% on the strategy withdraw amount, not the withdraw amount. Since you are working with sub $5k, it often falls within this buffer, but it is highly dependent on deposits at the time. So if a big deposit came in before your tx (which triggers strategy deposit), then your next withdrawal will hit 5%, if the deposits did not exceed it, you will withdraw from the buffer instead. Its designed so that smaller investors don’t take the fee hit”

---

_[View the full topic](https://gov.yearn.fi/t/ambiguity-in-charging-of-withdrawal-fees-in-yvault-contracts/2919)._
