Skip to content

Improve vortex rate display#699

Merged
ebma merged 3 commits into
stagingfrom
improve-vortex-rate-display
Jun 5, 2025
Merged

Improve vortex rate display#699
ebma merged 3 commits into
stagingfrom
improve-vortex-rate-display

Conversation

@ebma
Copy link
Copy Markdown
Member

@ebma ebma commented Jun 4, 2025

This pull request enhances the RampFeeCollapse component by introducing calculations for both interbank and net exchange rates, updating the UI to display these rates, and adding corresponding translations. The changes aim to provide users with a clearer understanding of the exchange rates they receive, both before and after fees.

Exchange Rate Calculations and Display:

  • Added two new functions, calculateInterbankExchangeRate and calculateNetExchangeRate, to compute the interbank exchange rate (ignoring fees) and the net exchange rate (after deducting fees). (frontend/src/components/RampFeeCollapse/index.tsx, frontend/src/components/RampFeeCollapse/index.tsxL7-R45)
  • Updated the RampFeeCollapse component to calculate and display the interbank exchange rate in the main text and the net exchange rate in a new section with a tooltip. (frontend/src/components/RampFeeCollapse/index.tsx, [1] [2] [3]

Translations:

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 4, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 3866154
🔍 Latest deploy log https://app.netlify.com/projects/pendulum-pay/deploys/684048085426f100083fcb48
😎 Deploy Preview https://deploy-preview-699--pendulum-pay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@ebma ebma requested a review from a team June 4, 2025 13:20
@ebma ebma merged commit ead0c2e into staging Jun 5, 2025
5 checks passed
@ebma ebma deleted the improve-vortex-rate-display branch June 5, 2025 07:31
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