Skip to content

Fix wrong fee calculation for Monerium to Evm onramp#1077

Merged
ebma merged 1 commit into
stagingfrom
1047-processing-fee-is-applied-to-quotes-of-routes-that-shouldnt-have-one
Feb 20, 2026
Merged

Fix wrong fee calculation for Monerium to Evm onramp#1077
ebma merged 1 commit into
stagingfrom
1047-processing-fee-is-applied-to-quotes-of-routes-that-shouldnt-have-one

Conversation

@ebma
Copy link
Copy Markdown
Member

@ebma ebma commented Feb 20, 2026

Ensure that no vortex or partner markup fee is applied for Monerium to Evm onramps.

Closes #1047.

@ebma ebma linked an issue Feb 20, 2026 that may be closed by this pull request
@ebma ebma requested a review from Copilot February 20, 2026 10:26
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 20, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit 1fa33dd
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/699836e6f42feb0008a21301
😎 Deploy Preview https://deploy-preview-1077--vortex-sandbox.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.

@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 20, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit 1fa33dd
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/699836e61ad8d60008344228
😎 Deploy Preview https://deploy-preview-1077--vortexfi.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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes incorrect fee calculation for Monerium to EVM onramps by ensuring that vortex and partner markup fees are not applied to these transactions. The implementation introduces an optional fee override mechanism that allows specific fee engines to explicitly set these fees to zero.

Changes:

  • Added optional forcedVortexFee and forcedPartnerMarkupFee fields to the FeeComputation interface
  • Updated BaseFeeEngine.execute() to use forced fees when provided, falling back to calculated fees otherwise
  • Modified OnRampMoneriumToEvmFeeEngine to set both forced fees to zero, preventing any vortex or partner markup charges

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/api/src/api/services/quote/engines/fee/index.ts Added optional forced fee fields to FeeComputation interface and updated fee assignment logic to use forced fees when present
apps/api/src/api/services/quote/engines/fee/onramp-monerium-to-evm.ts Set forcedVortexFee and forcedPartnerMarkupFee to zero to ensure no vortex or partner markup fees are charged

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ebma ebma requested a review from a team February 20, 2026 11:01
@ebma ebma merged commit 370b8d3 into staging Feb 20, 2026
9 checks passed
@ebma ebma deleted the 1047-processing-fee-is-applied-to-quotes-of-routes-that-shouldnt-have-one branch February 20, 2026 17:51
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.

Processing fee is applied to quotes of routes that shouldn't have one

2 participants