<!-- canonical: https://0xsimao.com/findings/yieldoor-ii-vesting-interest-reset-vault11 -->

# Vesting interest is not reset to 0 in case there is no interest in LoopedVault11::updateTotalAssets()

Medium · 0xSimao · Leveraged yield farming · 20th June 2025

Finding M-1 of the Yieldoor LoopedVault security review.

- Protocol: https://app.yieldoor.com/
- Report: /reports/yieldoor-ii
- Source: https://github.com/0xSimao/audits/blob/main/0xSimao/2025-06-20-yieldoor-ii.pdf

---

**Description:**

`LoopedVault1_1::_updateTotalAssets()` doesn't [set](https://github.com/spacegliderrrr/loopedVault/blob/master/src/LoopedVaultV1_1.sol#L197) to 0 vesting interest when `vestingInterestPreFee` is null, so the new period will be vesting with the interest from the previous period. This is highly unlikely given that some interest should always accrue.

**Recommended Mitigation:**

Set the vesting interest to 0 when the new interest is 0.

**0xSimao:**

Fixed in [#ad00401](https://github.com/spacegliderrrr/loopedVault/commit/ad0040106a3c92636afd77e1bf511be21bebbe5c).

---

Related findings:

- [Bad check in `Vesting.sol::_resetVestingPlans` will prevent users from adding additional liquidity in `SymmVesting.sol`](https://0xsimao.com/findings/symmio-staking-and-vesting-vesting-plans-additional-symm): Symmio, Staking and Vesting
- [Destination Vault rewards are not added to idleIncrease when info.totalAssetsPulled > info.totalAssetsToPull](https://0xsimao.com/findings/tokemak-rewards-info-pulled-pull): Tokemak
- [Missing Update to `omnichain.totalAvailableLiquidationAmount` in `withdrawUser`](https://0xsimao.com/findings/autonomint-omnichain-available-liquidation-withdraw): Autonomint
