Skip to content

feat: add LendaSwap to app store#2149

Open
luckysori wants to merge 1 commit intogetAlby:masterfrom
lendasat:feat/lendaswap-light
Open

feat: add LendaSwap to app store#2149
luckysori wants to merge 1 commit intogetAlby:masterfrom
lendasat:feat/lendaswap-light

Conversation

@luckysori
Copy link

@luckysori luckysori commented Mar 17, 2026

Hi!

We are really keen to add LendaSwap here. LendaSwap is a tool for self-custodial swaps between Bitcoin/Lightning and stablecoins (Ethereum, Polygon, Arbitrum currently supported, more to come). For more information, you can visit https://lendaswap.com.

This integration follows the pattern used by other apps in the Connections tab. The user just needs to connect their Alby Hub to LendaSwap via NWC. We provide simple instructions for this.


Note: NWC support in LendaSwap is coming in the next release. I can attest to this PR working against the soon-to-be-released version of LendaSwap, but we should wait to merge this.

Summary by CodeRabbit

  • New Features
    • LendaSwap is now available in the app store, providing users with comprehensive product documentation including detailed descriptions and extended information, step-by-step installation and finalization guides, official branded assets, direct web access link, and proper categorization to support user discovery and onboarding.

Non-custodial Bitcoin ↔ Stablecoin atomic swaps via NWC.
Uses pay_invoice for Lightning→EVM swaps and make_invoice for
EVM→Lightning swaps.

Categorized under payment-tools with install/finalize guides.
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 17, 2026

📝 Walkthrough

Walkthrough

A new LendaSwap app entry is added to the suggested app data file, including app metadata (title, description, links), artwork asset import, and insertion into both the main and sorted app lists, following the existing app data structure.

Changes

Cohort / File(s) Summary
LendaSwap App Addition
frontend/src/components/connections/SuggestedAppData.tsx
Added LendaSwap app entry with complete metadata (id, title, description, webLink, logo, extendedDescription, installGuide, finalizeGuide, categories) and imported corresponding artwork asset. Entry inserted into main appStoreApps array and sorted array mirror.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

Suggested reviewers

  • im-adithya
  • rolznz

Poem

🐰 A new app hops into the store,
LendaSwap opens up the door,
With data clean and logos bright,
The app list grows, all done just right! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'feat: add LendaSwap to app store' accurately summarizes the main change in the PR, which adds a new LendaSwap app entry to the app store data with all necessary configuration and assets.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
📝 Coding Plan
  • Generate coding plan for human review comments

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.

Tip

CodeRabbit can use TruffleHog to scan for secrets in your code with verification capabilities.

Add a TruffleHog config file (e.g. trufflehog-config.yml, trufflehog.yml) to your project to customize detectors and scanning behavior. The tool runs only when a config file is present.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@frontend/src/components/connections/SuggestedAppData.tsx`:
- Around line 2366-2392: The finalizeGuide JSX within the SuggestedAppData
component currently provides instructions that assume LendaSwap supports NWC;
add a temporary gating note or banner in that finalizeGuide block (or
conditionally hide the LendaSwap steps) until LendaSwap's NWC release is live:
update the finalizeGuide constant to either prepend a visible warning message
(e.g., "Note: NWC support in LendaSwap is coming soon—do not connect until
release") or wrap the LendaSwap list in a feature-flag/prop check so the steps
are only rendered when a runtime flag (or prop) indicates LendaSwap NWC support
is available; ensure the unique symbol finalizeGuide and the SuggestedAppData
component are the locations you modify.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7518c2a5-a17a-4024-a381-d2ce2b64ec0b

📥 Commits

Reviewing files that changed from the base of the PR and between c8ccdcb and 98f7ac6.

⛔ Files ignored due to path filters (1)
  • frontend/src/assets/suggested-apps/lendaswap.png is excluded by !**/*.png
📒 Files selected for processing (1)
  • frontend/src/components/connections/SuggestedAppData.tsx

Comment on lines +2366 to +2392
finalizeGuide: (
<>
<div>
<h3 className="font-medium">In LendaSwap</h3>
<ul className="list-inside list-decimal text-muted-foreground">
<li>
Click the{" "}
<span className="font-medium text-foreground">⚡ Lightning</span>{" "}
button in the header
</li>
<li>
Paste the connection secret from Alby Hub
</li>
<li>
When swapping Lightning → stablecoins, click{" "}
<span className="font-medium text-foreground">
Pay with Lightning Wallet
</span>{" "}
to pay directly from your Hub
</li>
<li>
When swapping stablecoins → Lightning, click{" "}
<span className="font-medium text-foreground">
Generate invoice from wallet
</span>{" "}
to receive directly into your Hub
</li>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Guard against premature onboarding before LendaSwap’s NWC release.

Line 2369 onward instructs users to connect now, but the PR notes NWC support lands in LendaSwap’s next release. If this is merged early, users will hit a broken flow. Add a temporary in-app note (or gate the listing) until the dependent release is live.

Suggested minimal copy fix
       finalizeGuide: (
         <>
           <div>
             <h3 className="font-medium">In LendaSwap</h3>
+            <p className="text-muted-foreground">
+              If you don’t see the Lightning connection option yet, update to the latest LendaSwap release and try again.
+            </p>
             <ul className="list-inside list-decimal text-muted-foreground">
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
finalizeGuide: (
<>
<div>
<h3 className="font-medium">In LendaSwap</h3>
<ul className="list-inside list-decimal text-muted-foreground">
<li>
Click the{" "}
<span className="font-medium text-foreground">⚡ Lightning</span>{" "}
button in the header
</li>
<li>
Paste the connection secret from Alby Hub
</li>
<li>
When swapping Lightning stablecoins, click{" "}
<span className="font-medium text-foreground">
Pay with Lightning Wallet
</span>{" "}
to pay directly from your Hub
</li>
<li>
When swapping stablecoins Lightning, click{" "}
<span className="font-medium text-foreground">
Generate invoice from wallet
</span>{" "}
to receive directly into your Hub
</li>
finalizeGuide: (
<>
<div>
<h3 className="font-medium">In LendaSwap</h3>
<p className="text-muted-foreground">
If you don't see the Lightning connection option yet, update to the latest LendaSwap release and try again.
</p>
<ul className="list-inside list-decimal text-muted-foreground">
<li>
Click the{" "}
<span className="font-medium text-foreground">⚡ Lightning</span>{" "}
button in the header
</li>
<li>
Paste the connection secret from Alby Hub
</li>
<li>
When swapping Lightning stablecoins, click{" "}
<span className="font-medium text-foreground">
Pay with Lightning Wallet
</span>{" "}
to pay directly from your Hub
</li>
<li>
When swapping stablecoins Lightning, click{" "}
<span className="font-medium text-foreground">
Generate invoice from wallet
</span>{" "}
to receive directly into your Hub
</li>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@frontend/src/components/connections/SuggestedAppData.tsx` around lines 2366 -
2392, The finalizeGuide JSX within the SuggestedAppData component currently
provides instructions that assume LendaSwap supports NWC; add a temporary gating
note or banner in that finalizeGuide block (or conditionally hide the LendaSwap
steps) until LendaSwap's NWC release is live: update the finalizeGuide constant
to either prepend a visible warning message (e.g., "Note: NWC support in
LendaSwap is coming soon—do not connect until release") or wrap the LendaSwap
list in a feature-flag/prop check so the steps are only rendered when a runtime
flag (or prop) indicates LendaSwap NWC support is available; ensure the unique
symbol finalizeGuide and the SuggestedAppData component are the locations you
modify.

@rolznz rolznz added this to the v1.22.0 milestone Mar 18, 2026
Copy link
Member

@im-adithya im-adithya left a comment

Choose a reason for hiding this comment

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

LGTM

@im-adithya
Copy link
Member

I see this on lendaswap website, I'm assuming it is live now?

Screenshot 2026-03-19 at 3 25 56 AM

@luckysori
Copy link
Author

I see this on lendaswap website, I'm assuming it is live now?
Screenshot 2026-03-19 at 3 25 56 AM

Yes! We deployed it a few hours ago.

@rolznz
Copy link
Contributor

rolznz commented Mar 19, 2026

@im-adithya before merging let's make sure we have a reflink set (and actually test the whole flow)

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.

3 participants