Skip to content

disable rgas btc swap#3944

Merged
jolestar merged 2 commits into
mainfrom
btc_rgas_purchase
Jan 28, 2026
Merged

disable rgas btc swap#3944
jolestar merged 2 commits into
mainfrom
btc_rgas_purchase

Conversation

@jolestar

Copy link
Copy Markdown
Contributor

Summary

Summary about this PR

  • Closes #issue

@jolestar jolestar requested a review from Mine77 as a code owner January 28, 2026 01:24
@vercel

vercel Bot commented Jan 28, 2026

Copy link
Copy Markdown

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

Project Deployment Review Updated (UTC)
rooch-portal-v2.1 Ready Ready Preview, Comment Jan 28, 2026 8:22am
test-portal Ready Ready Preview, Comment Jan 28, 2026 8:22am
1 Skipped Deployment
Project Deployment Review Updated (UTC)
rooch Ignored Ignored Preview Jan 28, 2026 8:22am

Request Review

@github-actions

github-actions Bot commented Jan 28, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR temporarily disables the BTC to RGas swap feature in the Rooch portal while the team upgrades to a new SPV (Simplified Payment Verification) verification system. The change adds a user-facing maintenance warning and prevents users from attempting to swap BTC for RGas.

Changes:

  • Disabled BTC to RGas swap functionality in the portal UI with maintenance message
  • Added comprehensive design documentation for the new SPV-based verification system
  • Modified the preview handler to show an error toast instead of initiating the swap transaction

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
infra/rooch-portal-v2/src/sections/gas-swap/index.tsx Adds warning Alert component, sets validationError prop to disable swap button, and replaces swap transaction logic with maintenance error message
docs/dev-guide/rgas_purchase_spv_design.md New design document describing the transition from UTXO-based to SPV proof-based RGas purchase mechanism

proposing={submitting}
version={version}
onSlippageChange={(slippage: number) => {}}
onSlippageChange={(slippage: number) => { }}

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The empty function body formatting is inconsistent with the rest of the codebase. Other files use => {} without a space. Consider using => {} instead of => { } to maintain consistency with files like src/sections/trade/swap/view.tsx:223 and src/sections/history/view.tsx:279.

Copilot uses AI. Check for mistakes.
toast.error('This feature is currently under maintenance');
}}
onPropose={async () => {}}
onPropose={async () => { }}

Copilot AI Jan 28, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The empty function body formatting is inconsistent with the rest of the codebase. Other files use => {} without a space. Consider using => {} instead of => { } to maintain consistency with files like src/sections/trade/swap/view.tsx:223 and src/sections/history/view.tsx:279.

Copilot uses AI. Check for mistakes.
@jolestar jolestar merged commit d045c42 into main Jan 28, 2026
35 checks passed
@jolestar jolestar deleted the btc_rgas_purchase branch January 28, 2026 09:05
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.

2 participants