Skip to content

chore: release v1.6.0#92

Merged
0xApotheosis merged 2 commits intomainfrom
release
Jan 27, 2026
Merged

chore: release v1.6.0#92
0xApotheosis merged 2 commits intomainfrom
release

Conversation

@0xApotheosis
Copy link
Copy Markdown
Member

fix: enable Solana swaps via Chainflip with correct decimals (#91)
fix: update thorchain api endpoint in swap widget (#90)

0xApotheosis and others added 2 commits January 27, 2026 11:06
The daemon.thorchain.shapeshift.com domain has been deprecated.
Updated to use api.thorchain.shapeshift.com which is the correct
endpoint, matching the fix applied to the main web repo in commit
7de6e916af.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
* fix: fix Solana swap rates in trading widget

- Remove outdated blocking logic that prevented SOL→BTC, SOL→ETH, and
  ETH→SOL pairs from fetching quotes
- Add getChainflipAssetId helper to map token/chain combinations to
  correct Chainflip asset identifiers (e.g., ETH on any chain maps to
  Eth.Eth since Chainflip only supports ETH on Ethereum mainnet)

Chainflip now supports all these pairs and returns valid quotes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix: use correct decimals for Chainflip API requests

SOL → ETH swaps were failing because the amount calculation used the
destination token's decimals instead of the source token's native
decimals. Added getChainflipDecimals helper to return correct decimals
for each asset (SOL=9, BTC=8, ETH=18, USDT=6).

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: use BigInt for Chainflip amount to avoid scientific notation

JavaScript's Number type can produce scientific notation (1e+18) for
large numbers when converted to string, which the Chainflip API may
not parse correctly. Using BigInt ensures the amount is formatted as
a proper integer string (1000000000000000000).

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: use correct decimals for output amount display

For Chainflip swaps (Solana involved), use getChainflipDecimals for
the destination token. For THORChain swaps, use the existing decimals
lookup. This fixes the output showing in scientific notation.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
website-frontend (release) Ready Ready Preview, Comment Jan 27, 2026 0:44am
website-frontend Building Building Jan 27, 2026 0:44am

Request Review

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Jan 27, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch release

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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