Skip to content

Fix inputAmount used for remaining limit comparison for on and offramp#705

Merged
ebma merged 1 commit into
stagingfrom
fix-brl-amount-check-for-offramps
Jun 6, 2025
Merged

Fix inputAmount used for remaining limit comparison for on and offramp#705
ebma merged 1 commit into
stagingfrom
fix-brl-amount-check-for-offramps

Conversation

@ebma
Copy link
Copy Markdown
Member

@ebma ebma commented Jun 6, 2025

This pull request updates the useSubmitRamp hook to improve the calculation of amountNum by making it conditional on the ramp direction (RampDirection.OFFRAMP or RampDirection.ONRAMP).

Key change:

  • frontend/src/hooks/offramp/useSubmitRamp.ts: Modified the calculation of amountNum to use executionInput.quote.outputAmount for off-ramp transactions and executionInput.quote.inputAmount for on-ramp transactions, ensuring the correct value is used based on the ramp direction.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 6, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 59472f6
🔍 Latest deploy log https://app.netlify.com/projects/pendulum-pay/deploys/6842fd976ae3b80008e53291
😎 Deploy Preview https://deploy-preview-705--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 6, 2025 14:39
@ebma ebma merged commit 06e7e13 into staging Jun 6, 2025
5 checks passed
@ebma ebma deleted the fix-brl-amount-check-for-offramps branch June 6, 2025 15:30
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