hood-stock-lp: range-LP Robinhood Chain tokenized equities (Uniswap v3+v4) - #670
Open
igoryuzo wants to merge 1 commit into
Open
hood-stock-lp: range-LP Robinhood Chain tokenized equities (Uniswap v3+v4)#670igoryuzo wants to merge 1 commit into
igoryuzo wants to merge 1 commit into
Conversation
… v3+v4 Sibling of aero-stock-lp for Robinhood Chain (4663): 12 USDG equity markets (6 v3, 6 v4), zero-dep node scripts emitting unsigned txs for the Bankr arbitrary-transaction flow. - v4 encoders (UR swap incl. the fork's minHopPriceX36 field, POSM modifyLiquidities with TAKE_PAIR=0x11) validated byte-for-byte against the Midpoint engine's viem output; vectors embedded in selftest.mjs - selftest --live: 104/104 across all 12 markets (token0/token1/fee prove usdgIs0 orientation; $1 quoter round-trips prove each v4 poolKey<->poolId mapping) - exits are one atomic tx per venue (v3 NPM multicall decrease+collect+burn; v4 burn+TAKE_PAIR) — both simulated OK via eth_call from real position owners - per-market circuit breakers, funds gate, delta swaps both directions (recenters absorb loose stock via exit finish --keep-stock), v4 discovery via POSM Transfer logs with failure flagged never silent Co-Authored-By: Claude Fable 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.
New skill: the Robinhood Chain sibling of aero-stock-lp. Range-LP Robinhood's tokenized equities (TSLA, SPCX, SPY, GOOGL, AAPL, NVDA, MSFT, GME, CRCL, USO, NFLX, INTC) against USDG on Uniswap v3 and v4 pools for trading-fee yield.
Shape
Same architecture as aero-stock-lp: SKILL.md doctrine + zero-dep node scripts (
entry plan/size/settle,manage,exit begin/finish,selftest) that do all chain reads, gates, and calldata, and emit unsigned{to, data, value, chainId: 4663}objects for the Bankr arbitrary-transaction flow, one tx at a time.Uniswap has no gauges — fees are the whole game, so the entire staked/unstaked route logic from the Aerodrome skill does not exist here.
Validation
minHopPriceX36struct field, POSMmodifyLiquiditieswith the fork'sTAKE_PAIR=0x11) reproduce the Midpoint engine's viem output exactly; ground-truth vectors are embedded inselftest.mjs.selftest.mjs --live: 104/104 across all 12 markets — v3token0/token1/feereads prove everyusdgIs0orientation flag, $1 quoter round-trips prove each v4 poolKey↔poolId mapping, all token decimals verified.eth_callfrom real position owners on both venues — accepted by the deployed forks.Doctrine carried over, plus Robinhood-specific rules
exit finish --keep-stock) instead of round-tripping it🤖 Generated with Claude Code