Skip to content

SEP-38 quote display - Show fiat↔asset quotes (RFQ) before confirming an anchor transfer - #390

Open
Binali223 wants to merge 1 commit into
Ignition-World:mainfrom
Binali223:feature/sep-38-quote-display
Open

SEP-38 quote display - Show fiat↔asset quotes (RFQ) before confirming an anchor transfer#390
Binali223 wants to merge 1 commit into
Ignition-World:mainfrom
Binali223:feature/sep-38-quote-display

Conversation

@Binali223

Copy link
Copy Markdown

Description

Show fiat↔asset quotes (RFQ) before confirming an anchor transfer.

Changes

Backend (ignition-api)

  • New Sep38Module with POST /api/v1/sep38/quote endpoint
  • Accepts anchorName, sellAsset, buyAsset, sellAmount
  • Returns quote with price, buy amount, fee, and expiration
  • Includes simulated quotes with realistic fiat exchange rates for development (falls back when anchor API is unreachable)
  • Registered in AppModule

Frontend (ignition-pay-frontend)

  • Added sep38.quote endpoint to API constants
  • Added QuoteRequest / QuoteResponse types to anchor models
  • Added fetchQuote() service function
  • Inserted a quote review step in the SEP-24 wizard between the form and interactive steps
  • Displays:
    • Amount to send
    • Exchange rate (1 fiat = X buy asset)
    • Amount to receive
    • Fee details
    • Quote expiration time
  • User can Confirm & Continue or go back to Edit Amount

Flow

operation → form (select asset + enter amount) → quote (review rate) → interactive (iframe) → completed

Closes #290

- Create backend SEP-38 module with GET /sep38/quote endpoint
- Add frontend SEP-38 types, service, and API constant
- Insert quote review step in SEP-24 wizard between form and interactive
- Display fiat-to-asset exchange rate, amount, fee, and expiry
- Simulate quotes with realistic fiat rates for development

Closes Ignition-World#290
@drips-wave

drips-wave Bot commented Jul 28, 2026

Copy link
Copy Markdown

@Binali223 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

SEP-38 quote display

1 participant