Skip to content

feat: claim fees, --chain on read commands, zap-out table fix - #3

Merged
toanbku merged 7 commits into
mainfrom
feat/claim-fee-and-zap-out-table
Oct 27, 2026
Merged

toanbku merged 7 commits into
mainfrom
feat/claim-fee-and-zap-out-table

Conversation

@toanbku

@toanbku toanbku commented Oct 27, 2026

Copy link
Copy Markdown
Member

What changes

  • New: tx claim-fee-tx and tx landing-claim-fee-tx. Claim a position's unclaimed fees without closing it, optionally swapping them into SOL with --swap-to-sol, then submit the signed transactions through Jito. Same shape as decrease-tx / landing-decrease-tx. Solana only.
  • --chain on read commands. positions open, historical, overview, revenue, token balance and pools positions now take --chain SOL|ROBINHOOD. Before, a 0x wallet or pool was always looked up on Solana (for example pools positions 0x52e6...71ca answered No supported pool). With --native, tables say ETH on Robinhood instead of SOL. positions get, pools onchain-stats and pools top-lpers need no flag: the chain is read from the id.
  • Fix: tx zap-out-estimates -o table. The SWAP COST and FEE columns read $0.00 on every row, because the estimate does not return that split. They are replaced by one EXIT COST column: the pool-price value minus what the wallet receives.
  • Fix: positions historical --limit was sent as limit, which the endpoint ignores. It is now sent as pageSize.
  • Docs. Includes docs: Robinhood chain support in README, skill, and help text #1 (Robinhood support in the README, the agent skill and help text), updated for the commands above. This supersedes docs: Robinhood chain support in README, skill, and help text #1.

Testing

  • go vet ./..., go test ./... (new tests for the ETH/SOL unit and the EXIT COST column)
  • Ran against the live API with a built binary:
    • Robinhood wallet: positions open -o table (USD and --native in ETH), positions overview --native, positions historical --limit 2 (2 rows), token balance, pools positions on a Uniswap v3 pool
    • Solana: positions open, positions overview, tx zap-out-estimates -o table (EXIT COST filled in)
    • tx claim-fee-tx on a DLMM position with unclaimed fees: 1 claim transaction, and 1 claim plus 2 swap transactions with --swap-to-sol. A position with nothing to claim exits with API error (400): No fee to claim.
    • tx landing-claim-fee-tx was not run: it needs signed transactions.

After merge, a new tag (v0.5.0) publishes the release that lpagent upgrade picks up.

🤖 Generated with Claude Code

toanbku and others added 7 commits August 29, 2026 13:50
…to feat/claim-fee-and-zap-out-table

# Conflicts:
#	README.md
#	skills/lpagent/SKILL.md
…olumns

The estimate no longer returns a swap cost / fee split, so the SWAP COST
and FEE columns read $0.00 on every row. The table now shows EXIT COST,
the gap between the pool-price value and what the wallet receives, which
is everything the swap and fees take together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claim a position's unclaimed fees without closing it, optionally swapping
them into SOL (--swap-to-sol), then submit the signed transactions through
Jito. Same shape as decrease-tx / landing-decrease-tx. Solana only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lance and pools positions

These endpoints answer for Robinhood Chain too, but the CLI never sent a
chain, so a 0x wallet or pool was looked up on Solana. Each command now
takes --chain SOL (default) or ROBINHOOD, and the --native table columns
say ETH instead of SOL on Robinhood.

positions overview keeps its meteora default on Solana; on Robinhood it
sends a protocol only when --protocol is set, so both Uniswap versions
are counted.

positions get, pools onchain-stats and pools top-lpers need no flag: the
chain is read from the position or pool id.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README, the agent skill and the root help now list claim-fee-tx /
landing-claim-fee-tx, the read commands that take --chain ROBINHOOD, and
which commands stay Solana only. The chain link points at the Chain
Support section of the AI API guide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The endpoint pages with page / pageSize, so --limit was ignored and every
call returned the default page size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@toanbku
toanbku merged commit eb8dcea into main Oct 27, 2026
1 check passed
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