Conversation
|
Thanks for the contribution! Equipping agents with the ability to trade on bonding curves is an exciting and trending use case, and our team is very interested in it. Given that we are currently optimizing the context limits for tool calls in the main framework, we plan to review this PR in detail and consider it for a merge in the next phase. Before then, we recommend adding and strengthening the following in your code: Explicit parameter configurations for Slippage Tolerance. |
- Add explicit slippage parameters (default/min/max/warn) to sunpump_contracts.json - Add validateSlippage() to utils.js enforcing configurable bounds - Update buy.js, sell.js to use validateSlippage() instead of hardcoded default - Enrich migration error output with reason, SunSwap router address, and action guidance - Add migration context to price.js for read-only queries on migrated tokens - Document slippage configuration and migration handling in SKILL.md
|
Thanks for the update. I re-checked the latest head. I still see two issues before approval:
Please fix those and I can re-review. |
…ctory paths - Add getTronWebReadOnly() to utils.js for key-free read-only queries - price.js: switch to getTronWebReadOnly() (no TRON_PRIVATE_KEY needed) - balance.js: use getTronWebReadOnly() when explicit wallet address provided - Fix all 'cd sunpump' references to 'cd sunpump-skill' in SKILL.md and README.md - Fix 'sunpump/scripts/' path and 'sunpump directory' references in SKILL.md - Fix directory tree in README.md from 'sunpump/' to 'sunpump-skill/'
|
Thanks for the latest updates. I re-checked the current head and the code-level issues I previously flagged appear to be addressed. At this point, my remaining concern is runtime validation rather than code structure. Since this skill performs real trading flows, could you provide a reproducible E2E test transcript covering:
Please also include the exact commands used and whether each step was tested live or only dry-run. |
The SunPump launcher's getTokenState returns: 0 = not registered 1 = active on bonding curve 2 = pending migration 3 = migrated to SunSwap V2 All three trading scripts (buy.js, sell.js, price.js) incorrectly treated any non-zero state as migrated. This blocked purchases and sales on tokens that are still actively trading on the bonding curve. - buy.js/sell.js: gate on state !== 1 instead of state !== 0 - price.js: corrected state label map, migration warning only on state 3 - sunpump_contracts.json: updated getTokenState description
|
Wallet used: 1.
|
|
The overall structure looks solid. One engineering detail needs clarification first: this PR does not include a |
boboliu-1010
left a comment
There was a problem hiding this comment.
Static review did not surface a clear blocker in this PR. The state handling and migration checks look internally consistent after the follow-up fixes. Remaining risk is mostly runtime behavior against live contracts, so I would still recommend a small on-chain smoke test before merge, especially around token decimals, quotes, and migrated-token behavior.
Summary
sunpump-skillfor buying and selling meme tokens on SunPump (TRON bonding-curve launchpad)Scripts
balance.js— Check token balancesprice.js— Query current bonding curve pricesbuy.js— Buy tokens on the bonding curvesell.js— Sell tokens back to the curveSource: https://github.com/M2M-TRC8004-Registry/sunpump-skill