Repository navigation
feat: claim fees, --chain on read commands, zap-out table fix - #3
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xjt5kF2MkiPynWsMJRiZS7
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
tx claim-fee-txandtx 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 asdecrease-tx/landing-decrease-tx. Solana only.--chainon read commands.positions open,historical,overview,revenue,token balanceandpools positionsnow take--chain SOL|ROBINHOOD. Before, a0xwallet or pool was always looked up on Solana (for examplepools positions 0x52e6...71caansweredNo supported pool). With--native, tables say ETH on Robinhood instead of SOL.positions get,pools onchain-statsandpools top-lpersneed no flag: the chain is read from the id.tx zap-out-estimates -o table. The SWAP COST and FEE columns read$0.00on 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.positions historical --limitwas sent aslimit, which the endpoint ignores. It is now sent aspageSize.Testing
go vet ./...,go test ./...(new tests for the ETH/SOL unit and the EXIT COST column)positions open -o table(USD and--nativein ETH),positions overview --native,positions historical --limit 2(2 rows),token balance,pools positionson a Uniswap v3 poolpositions open,positions overview,tx zap-out-estimates -o table(EXIT COST filled in)tx claim-fee-txon 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 withAPI error (400): No fee to claim.tx landing-claim-fee-txwas not run: it needs signed transactions.After merge, a new tag (v0.5.0) publishes the release that
lpagent upgradepicks up.🤖 Generated with Claude Code