Skip to content

feat(swap-widget): enable mayachain swapper#12345

Merged
kaladinlight merged 2 commits into
developfrom
feat/swap-widget-enable-mayachain
May 15, 2026
Merged

feat(swap-widget): enable mayachain swapper#12345
kaladinlight merged 2 commits into
developfrom
feat/swap-widget-enable-mayachain

Conversation

@kaladinlight
Copy link
Copy Markdown
Member

@kaladinlight kaladinlight commented May 15, 2026

Description

Enable the MAYAChain swapper in the swap-widget package by uncommenting the Mayachain entries in the SwapperName enum, SWAPPER_ICONS, and SWAPPER_COLORS maps.

Issue (if applicable)

closes #

Risk

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

Low risk — swap-widget package only. Surfaces the existing MAYAChain swapper integration in the widget UI; no on-chain transaction logic is added or modified here.

Testing

Engineering

  • Run the swap-widget locally and verify MAYAChain quotes appear for supported pairs (e.g., CACAO ↔ BTC/ETH).
  • Confirm the MAYAChain icon and brand color render correctly in the swapper list / quote rows.
  • Verify other swappers (THORChain, Relay, NEAR Intents, etc.) are unaffected.

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

Screenshots (if applicable)

Summary by CodeRabbit

  • New Features
    • Added support for Mayachain as an available swapper option with proper icon and color display integration.

Review Change Stack

kaladinlight and others added 2 commits May 14, 2026 14:48
@kaladinlight kaladinlight requested a review from a team as a code owner May 15, 2026 17:25
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: bbc09e78-86d8-4841-8282-266eeca02f8b

📥 Commits

Reviewing files that changed from the base of the PR and between 7b9e2f8 and 539282e.

📒 Files selected for processing (2)
  • packages/swap-widget/src/constants/swappers.ts
  • packages/swap-widget/src/types/index.ts

📝 Walkthrough

Walkthrough

This PR activates Mayachain as a supported swapper by uncommenting its enum definition in the type system and wiring up its visual presentation via icon and color constants in the swap widget configuration.

Changes

Mayachain Swapper Activation

Layer / File(s) Summary
Mayachain enum member
packages/swap-widget/src/types/index.ts
SwapperName enum now includes Mayachain = 'MAYAChain' as an exported member.
Mayachain icon and color mappings
packages/swap-widget/src/constants/swappers.ts
SWAPPER_ICONS and SWAPPER_COLORS constants add Mayachain entries with icon URL and royal blue color (#4169E1) for UI lookups.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

A rabbit hops with glee,
Mayachain now runs free! ✨
Icons shine and colors gleam,
Making swap flows a dream. 🐰

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat(swap-widget): enable mayachain swapper' clearly and directly describes the main change—re-enabling the MAYAChain swapper by uncommenting enum and configuration entries in the swap-widget package.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/swap-widget-enable-mayachain

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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.

@kaladinlight kaladinlight merged commit a36c5b9 into develop May 15, 2026
6 of 7 checks passed
@kaladinlight kaladinlight deleted the feat/swap-widget-enable-mayachain branch May 15, 2026 17:48
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