design(dex): research BSC bStocks dividends, rebase risk, and DEX volume if bridged #1223
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:implement
agent:implement
agent:open_issues
agent:ready
agent:research
agent:security_audit
agent:verify
architecture
backend
blocker:hybrid
blocker:launch
blocker:limit-orders
blocker:v2
block:log_only
block:security
bug
ci
contracts
correctness
deploy
dev
devops
docs
documentation
duplicate
e2e
enhancement
epic
feature
frontend
functional-completion
gas
good first issue
governance
help wanted
high-risk
hooks
hybrid
indexer
infra
infrastructure
integrators
invalid
launch-blocker
limit-orders
localnet
localterra
low priority
missing-implementation
needs-design
ops
performance
priority
high
priority
medium
product
qa
QA
question
ready
ready
research
scripts
security
security-hardening
smartcontracts
tech-debt
testing
ux
UX
v2
verification
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/cl8y-dex-terraclassic#1223
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Research / decision only — do not implement bridge token mappings, factory whitelist entries,
CreatePair, tokenlist rows, wrap-mapper legs, LP, or retail chrome for tokenized equities.Bundle into one investigation (do not split dividends vs risks vs volume ranking):
Related, not duplicates:
docs/listings/— aggregator/wallet catalog for the six permanent economic CW20s. Do not add bStocks to that pack here.Not in scope: shipping a bStock CW20, wrapping BEP-20 balances 1:1 without the multiplier, advertising stock tickers on Swap, or treating “bridged from BSC” as a product commitment.
Current codebase
CL8Y DEX is a Terra Classic hybrid venue: constant-product AMM pairs plus a FIFO limit book, CW20 (+ selected natives) via factory whitelist. Liquidity providers mint LP CW20 shares. Pair commission goes to the CMM treasury, not to LPs (#1207). There is no listed tokenized-equity asset today.
CreatePair/ empty-pool provide reject either CW20 withdecimals > 18. Permanent economic set indocs/listings/README.mdis six CW20s (CL8Y, UST1, USTR, cLUNC, cUSTC, vFDUSD) plus wrap/window products — not US equity wrappers./protocolUSD stats assume transferablebalanceOfamounts. A display multiplier that is not in the CW20balancewould make volume, TVL, and candles lie.Public issuer materials (dated in the memo; do not treat this intake text as the citation):
That combination (security-like wrapper + non-cash dividend via scaled UI amount) is the load-bearing fact for this DEX. A naive
balanceOfbridge +CreatePairis the failure mode the memo must kill or tightly bound.Why this work is needed
balanceOf, Terra CW20 accounting, LP shares, limit escrow, and indexer USD all desync on the first corporate action. If it is a rebasingbalanceOf, constant-product reserves still break unless both sides and the pair snapshot the same multiplier at the same height.Constraints / guardrails
AddToWhitelist, no tokenlist.json row, noCreatePair, no wrap-mapper denom, no indexerequityoracle, no/stocksroute, no “dividend APR” copy.balanceOf/ BEP-677 probe. If PoR or the multiplier cannot be verified, the row is Unverified, not “1:1.”0xinto Swap query params (#713 out of scope already). Bridging is not a frontend0xalias.Relevant files
smartcontracts/contracts/factory/,docs/contracts-terraclassic.md, code-id audit harness (#589 / #581)smartcontracts/contracts/pair/(reserves, provide/withdraw, limit escrow). Rebase mid-swap is the hazard.frontend-dappbundled tokenlist +docs/frontend.md(factory universe vs create-pair catalog)smartcontracts/contracts/community-tax template;skills/tax ranking (#615). Contrast with BEP-677 — do not reuse tax hooks as a multiplier.indexer/protocol fees + pair USD;docs/DEFILLAMA.mddocs/listings/README.md,skills/AGENTS_LISTINGS.mddocs/adr/(next unused number; do not collide with #575 / #1207 proposals)Recommended direction
Write ADR
docs/adr/NNNN-bstocks-bridge-listing.md(Status: Proposed) and a one-line pointer fromdocs/README.md. Optional skill stub only if a later implement issue is opened.Define the asset. For a short allowlist of candidate tickers (researchers may add; start from issuer’s current bStock roster, not rumor):
balanceOfthe economic quantity, or is BEP-677 a separate multiplier?On-chain probe (BSC, read-only). For at least one high-volume name and one dividend-paying name:
decimals,balanceOfbefore/after a documented multiplier event if timestamps exist, whether pairs on Pancake/Aster use the raw token or a wrapped static share, and whether LP positions were haircut on the last dividend. Record tx hashes.DEX compatibility matrix (every candidate gets a row):
balanceOfstaticbalanceOfDecision gate: if no candidate is C3 (or a proven-equivalent static wrap), Reject listing. Volume ranking is then academic.
Risk register (required sections, each with source + residual): issuer/custody/PoR, not-a-share, US withholding / tax reporting, geographic eligibility, bridge operator as a new custodian of a security-like token, Terra Classic CW20 having no BEP-677, oracle/USD, lookalike tickers (AAPL vs wrapped AAPL), CMM POL if anyone later seeds a pair (#558 custody still forbids farming-and-exit).
Volume scorecard — only if C3-class exists or the ADR explicitly studies a hypothetical static wrap. Rank a small set (on the order of 8–12 names, not the full roster) by likely columbus-5 flow, not BSC notional.
GET https://indexer.dex.cl8y.com/api/v1/overview(UTC date). If 30d volume is still ~low five figures USD, only 1–2 names could matter, and maybe zero.Hypothesis to test: crypto-narrative names (example set to confirm or kill: MSTR, NVDA, TSLA, COIN, IBIT-class if present) outrank high-dividend staples; dividend aristocrats are the worst AMM candidates because they maximize Multiplier events. Empty-book names are a net negative (phishing surface, support load).
Decision (exactly one): Reject / Defer (legal) / Static-wrap only on BSC then bridge that wrap / Do not list on the AMM but allow bridge-custody (still a later issue). Spawn follow-up implementation issues only if the decision is not Reject/Defer. DEX whitelist and bridge mapping are separate follow-ups, never this MR.
Verify script
scripts/qa/verify-issue-NNN.sh: required ADR headings present; no new tokenlist symbol for a US equity; no factory whitelist address from the memo’s roster in production pins;docs/listings/README.mdpermanent-six table unchanged.Research deliverables
Out of scope
First-pass model recommendation
Recommendation: grok-high
Rationale: This is research, not a local three-file edit. It crosses token standards (BEP-20 + BEP-677 vs CW20), the BSC↔Terra Classic bridge mapping path, factory whitelist / pair reserve invariants, and founder-required securities/custody questions. There is no deterministic unit test that “lists NVDA.” Comparable control-plane calibration: a one-doc RCA can be Composer; this is closer to cross-cutting protocol+legal scope (control-plane PRs that span credentials, workers, and deploy are grok-high). Verification is the ADR + read-only probes, not
cargo testof a listing.Supplemental investigation: Juris/LSF RWA launch, observed demand, and transport options. Observed 2026-10-18, approximately 10:32–10:36 UTC. Research only; no code, mappings, listings, liquidity transactions, or issue closure.
There is a live RWA market, but it is on LSF Exchange rather than the Juris lending dashboard. Its observed demand is very small so far.
The October 16 Juris announcement quotes LSF’s launch post, which supplies the actual trading link: wSPYx / USDC. The second Juris post describes exposure to NVIDIA, Apple, Microsoft, etc. through the constituents of one S&P 500 ETF product. It does not demonstrate separate markets for those companies. Its Solana address identifies SPYx on Solana; it is not the Terra CW20 contract or evidence that this Terra representation arrived through Solana.
This also explains the confusing website experience: jurisprotocol.com still describes wSPYx trading as forthcoming, and the RWA documentation describes collateral integration as planned. Those pages lag the exchange launch. Live spot trading and acceptance as Juris loan collateral are separate milestones; I found no evidence of live RWA-backed borrowing in this investigation. Direct X access was blocked, so post text and quoted-post metadata were retrieved through FxTwitter’s public API, including the second post.
What is actually trading
LSF’s public pool API returned 18 pool records with no further page. Its token catalog returned 11 tokens. wSPYx was the only identifiable equity/ETF asset in those catalogs; that observation does not establish the universe of assets elsewhere on Terra Classic.
wspyx-usdc-inj, statuslive, swaps enabledterra1gjzukjz0hggxpwhfseu27tjqsen6kkl8cnf8d7g9wq3uxtnw7ehqlmw0twterra1wjyvzdrc7pmfemy3ycpnht83trxvccu4ecg7ek0hzf5nt49s8ssqmdldjl, 18 decimals0xe7e553cd128f0011777323a0b44a7b96ea1cb5400x90a2a4c76b5d8c0bc892a69ea28aa775a8f2dd480x38bd8910dA4F55654173297b27F5D87294CFbD96terra1457gshlrfmzrp69lh3v06qdp3rq8rk0vxfw2974g0ryw5sn4pa2s8tk0tqibc/F52112392095A6D6D1B17EF1FE19BE0B39B2A79B8A2B2F55CD721FC7DBF5081FSources: individual market record, Bumeo’s wSPYx provenance and query receipts, and issuer SPYx metadata. I refreshed the relevant identities with read-only chain queries, rather than relying solely on the registry’s September snapshot.
Using the public Ethereum RPC at block 26,218,879,
router.token()returned the V2 wrapper above; itsasset()returned the SPYx underlying; decimals were 18; andconvertToAssets(10^18)returned1005714560286254000. One wrapped share therefore represented approximately 1.005714560286254 underlying SPYx at that block, not an assumed 1:1 unit. The issuer API also lists the V2 wrapper on BSC. Read-only calls through the public BSC RPC at block 128,347,331 returned the same underlying, decimals and conversion value. This identifies an existing xStocks wrapper candidate on a CL8Y peer chain; it does not establish a CL8Y mapping or complete a compatibility/security review.Demand observed, rather than announced
The complete returned swap page contained 24 records,
has_more=false, covering October 16 14:47:25 through October 18 09:55:23 UTC. I checked all 24 transaction receipts against the public Terra LCD: every transaction had code 0, and the pair’s swap events matched the API’s offer and return amounts. For example, the latest receipt.These totals also match the daily candles. For each buy I counted USDC offered; for each sell, USDC returned. Neither side was counted twice.
volume_24h_usd,tvl_usd, andliquidity_usdwere null. Those remain unknown; the numbers above are denominated in quote-token USDC. The holders endpoint returned no rows and token supply metadata was null, so neither is usable as a zero-holder statistic.For a current venue-scale comparison, CL8Y’s overview at approximately 10:32 UTC reported $5,786.40 / 24h, $28,630.49 / 7d and $83,527.97 / 30d of USD volume, with 177 / 1,111 / 3,070 trades respectively. It reported one unique trader over 24h; that API field should not be read as evidence of broad independent participation. The old issue intake’s volume baseline is consequently stale, but neither venue’s figures justify assuming demand for dozens of new RWA books.
The evidence supports a small, newly launched ETF market. It does not yet support a reliable local ticker ranking or a recurring-demand forecast. The observation period is under two days, much of it launch activity. The advertised next MSCI World product and community-selected third equity/ETF remain announcements, not observed additional markets in the returned catalog.
IBC, our bridge, and wrappers solve different problems
The currently observed path is:
Ethereum SPYx → Ethereum wSPYx V2 → Hyperlane → Terra wSPYx CW20The other side of its market is:
Injective USDC → IBC → Terra USDC voucherThus the equity leg is not using IBC; the quote-currency leg is. USDC provenance identifies Injective
channel-497↔ Terrachannel-143. I refreshed the Terra channel, which was open, and both client statuses: Terra’s Injective client and Injective’s Terra client returnedActive. Both client states specified a 14-day trusting period. That is a client parameter, not a redemption guarantee or a claim that the route will shut down. No shutdown announcement or operator cost evidence was established here.The bridge frontend at
bridge.terra-classic.ioreturned HTTP 502 during this check. That establishes a frontend availability failure only, not an on-chain bridge shutdown. I did not execute a bridge transfer or round trip. Hyperlane’s operator documentation also makes clear that relaying needs funded destination-chain keys and RPC access; it has operating dependencies too.For economics, compare incremental monthly operating/recovery cost ÷ actually retained fee fraction with plausible monthly volume, separately for bridge-transfer revenue and DEX revenue. The present 237.51 USDC lifetime turnover supplies little evidence that a dedicated route would pay for itself. No verified cost estimate or shutdown probability is available from this investigation.
How this changes #1223 and the wider RWA investigation
The important new evidence is that a source-chain non-rebasing wrapper exists for xStocks, including on BSC. This makes the static-wrap branch worth investigating. It does not establish that bStocks have an equivalent wrapper: Binance describes bStocks’ BEP-677/Multiplier mechanics, while xStocks documents EVM rebasing and Solana scaled balances. These products and implementations must be assessed separately.
The xStocks wrapper documentation distinguishes current wrappers from legacy V1, warns that V1 exchange-rate accounting is donation-sensitive, and requires independent underlying pricing alongside conversion. A bridge should carry a verified static claim; local AMM reserves and FIFO escrow must not silently acquire raw rebasing balances. Matching a ticker or 18 decimals proves neither accounting compatibility nor redemption rights. The read-only calls above are not a corporate-action history test, wrapper audit, proof of issuer reserves, or legal eligibility review.
For a broader comparison, keep these as research candidates, not a demand or listing ranking:
There is also a distinct collateral-demand question: xStocks’ May 13 Kamino case study reported April figures of $6.3m USDC supplied and $5.75m borrowed against an xStocks market, while explicitly describing incentive-driven growth. That is dated evidence of an external lending use case, not current Terra demand or a forecast for CL8Y.
A useful next evidence window is 7 and 30 days of per-market swaps, repeat participant addresses, buy/sell balance, liquidity excluding identifiable seeding, executable depth, bridge net flows/completed withdrawals, and lending utilization where actually live. Compare external markets by issuer-verified token address, chain and wrapper version, keeping missing coverage unverified rather than ranking by aggregate CEX volume or AUM.
Recommendation: retain the research-only gate. Use LSF wSPYx as an observable local benchmark; broaden the comparison to ETFs, a small equity shortlist, gold and accumulating Treasury products. Evaluate a direct CL8Y route carrying a verified static source-chain wrapper as an alternative, with separate quote-asset and exit-path review. A local wrapper alone cannot resolve upstream shutdown risk. This comment supplements #1223; the original bStocks on-chain/corporate-action probes and full ADR remain incomplete.