Skip to content

add USDT0/WRBTC AMM pool#1141

Merged
tjcloa merged 5 commits into
developfrom
usdt0-rbtc-amm-pool
Jul 8, 2026
Merged

add USDT0/WRBTC AMM pool#1141
tjcloa merged 5 commits into
developfrom
usdt0-rbtc-amm-pool

Conversation

@tjcloa

@tjcloa tjcloa commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 42abdd1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sovryn/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for sovryn-dapp ready!

Name Link
🔨 Latest commit 42abdd1
🔍 Latest deploy log https://app.netlify.com/projects/sovryn-dapp/deploys/6a4e4a450abb1d0009d0c215
😎 Deploy Preview https://deploy-preview-1141.preview.sovryns.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

tjcloa added 4 commits July 8, 2026 10:51
USDT0 is the first non-18-decimal token (6 decimals) on the RSK convert
and AMM market making flows, which assumed 18 decimals throughout.

- sdk: add USDT0 to the AMM smart-router token list so it shows up on
  the convert page, and normalize amounts between the router's
  18-decimal convention and each token's native units in quote/swap/
  approve (no-op for 18-decimal tokens; unknown tokens keep the legacy
  18-decimal pass-through)
- sdk: treat USDT0 as a stablecoin in pair filtering (like RUSDT)
- frontend: add USDT0 to the convert page stablecoins category
- frontend: parse AMM deposit/withdraw input with the asset's real
  decimals, floor max-click values to the token precision, and convert
  on-chain asset A balances with real decimals in useGetUserInfo,
  useGetPoolsBalance and useGetPoolLiquidity
- frontend: fix RUSDT->USDT0 migration capacity check comparing the
  18-normalized provider balance against the native 6-decimal allowance
  (capacity was overstated when the balance is the binding limit)
- frontend: fix full-withdraw zero display in NewPoolStatistics
  comparing contract units against human units
@tjcloa tjcloa merged commit 84ced87 into develop Jul 8, 2026
7 checks passed
@tjcloa tjcloa deleted the usdt0-rbtc-amm-pool branch July 8, 2026 13:11
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