informalsystems / informalsystems/hydro

The move_adapter_funds message fails with InsufficientBalance when moving deposit denom

Open
#394 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
11
Forks
10
Avg merge
17h 45m
Merged PRs (30d)
4

Description

When calling `MoveAdapterFunds` with the vault's deposit denom, the call may fail with `InsufficientBalance`.
This happens because `deposit_to_adapter` checks the vault's balance during message building, before the withdraw message has executed and returned funds to the vault.

Contributor guide

Open the contributing guide

Research direction

Start at the MoveAdapterFunds entry point and trace deposit_to_adapter, focusing on when the vault balance is checked relative to the withdraw message. Reproduce a move using the vault's deposit denom and verify that the call succeeds after the withdraw returns funds to the vault.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
blockchain
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.