Skip to content
Request an audit

‹ All findings

RebalanceLogic::rebalanceCallback() doesn't update lastTotalAssets when rebalancing from morpho to morpho

Low/InfoYieldoor LoopedVault·0xSimao · Leveraged yield farming · 20th June 2025L-1

Description:

All actions that instantly change the value of the vault, namely slippage from swaps, are taken into account by also reducing lastTotalAssets resulting in the next vesting amount being unaffected. However, this is not performed when rebalancing morpho to morpho, which does a swap and changes the value of the vault.

Recommended Mitigation:

Adjust lastTotalAssets when rebalancing morpho to morpho. Aave to morpho or morpho to aave shouldn't change the value of the vault.

0xSimao:

Fixed in #ad00401.