Skip to content

Hydrex Deposits Clarification & Guidance#369

Open
larrettgee wants to merge 2 commits into
BankrBot:mainfrom
hydrexfi:main
Open

Hydrex Deposits Clarification & Guidance#369
larrettgee wants to merge 2 commits into
BankrBot:mainfrom
hydrexfi:main

Conversation

@larrettgee
Copy link
Copy Markdown
Contributor

Summary

Clarifies how Bankr agents should check single-sided liquidity deposit values on Hydrex, and how to handle vague user prompts.

Changes

  • references/single-sided-liquidity.md

    • Rewrote "Checking Balance and USD Value" with a clear 4-step flow: hit https://api.hydrex.fi/strategies?depositTokens=<TOKEN> → find by titlebalanceOf on the vault address(rawBalance / 1e18) × lpPriceUsd
    • Added worked example using the real BNKR/WETH API response
    • Kept underlying token breakdown as an optional secondary flow
    • Updated the Implementation Guide's "View Position Flow" to match
    • Added guidance that deposit token is required for lookup — if the user is vague (e.g., "what are my Hydrex deposits?"), the agent should ask which token and encourage "check my deposit for [TOKEN]" phrasing
  • SKILL.md

    • Added a short snippet under Single-Sided Liquidity pointing to the full flow
    • Surfaced the "ask which token" note at the skill level

Why

The API has no global "all my positions" endpoint — every lookup requires a depositTokens filter. Agents need to either be given the token or prompt for it; otherwise they'd have to iterate every supported token (slow + noisy).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant