Skip to content

[BUG] Withdraw fails to top‑up via SwapSource (exact‑output path) despite sufficient AutoBalancer balance #129

@liobrasil

Description

@liobrasil

Problem

Investigating a testnet withdraw failure for FlowYieldVaults (vault 704, position 120): https://testnet.flowscan.io/tx/35355aab185f12a403b49bb2a6277a1209e722dce95229942840ffa7ec8f105c?tab=script

Withdraw from a FlowYieldVault fails with Insufficient funds in withdrawAndPull even though the vault balance and AutoBalancer balance are sufficient and the DEX quoter returns valid non‑zero values. Close succeeds under the same market conditions, so the failure appears isolated to the withdraw top‑up path (exact‑output branch).
Label: FlowYieldVaults / FlowActions (UniswapV3 Swapper on Flow EVM)

Steps to Reproduce

  1. Create a yieldVault of 10 Flow.
  2. Try to withdraw 7 Flow from this yieldVault.
  3. Close the yieldVault.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions