disable rgas btc swap#3944
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
There was a problem hiding this comment.
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) => { }} |
There was a problem hiding this comment.
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.
| toast.error('This feature is currently under maintenance'); | ||
| }} | ||
| onPropose={async () => {}} | ||
| onPropose={async () => { }} |
There was a problem hiding this comment.
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.
Summary
Summary about this PR