Skip to content

added calculateAnchorFee function#113

Open
DokaIzk wants to merge 3 commits intoMissBlue00:mainfrom
DokaIzk:feat/calculate-anchor-fee
Open

added calculateAnchorFee function#113
DokaIzk wants to merge 3 commits intoMissBlue00:mainfrom
DokaIzk:feat/calculate-anchor-fee

Conversation

@DokaIzk
Copy link
Copy Markdown

@DokaIzk DokaIzk commented Mar 24, 2026

Description

Implemented the calculateAnchorFee function in the @stellar-pay/anchor-service package to compute fees for anchor transactions. This includes adding the FeeQuote interface for detailed fee breakdowns and the TransactionType enum to support deposit, withdrawal, and transfer operations. Asset-specific fee schedules (e.g., USDC, XLM) have been configured to apply both flat and percentage-based fees.

Fixes #86

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Verified that the newly added TypeScript interfaces and logic compile successfully without any type errors across the workspace.

  • Built the @stellar-pay/anchor-service package using pnpm --filter @stellar-pay/anchor-service build

Test Configuration:

  • Firmware version: N/A
  • Hardware: N/A
  • SDK: Node.js / pnpm workspace

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

closes: #86

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

@DokaIzk is attempting to deploy a commit to the missblue00's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 24, 2026

@DokaIzk 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

@DokaIzk
Copy link
Copy Markdown
Author

DokaIzk commented Mar 24, 2026

@MissBlue00 Please kindly review

@MissBlue00
Copy link
Copy Markdown
Owner

@DokaIzk the ci/cd checks failed and there are merge conflicts, please resolve

@DokaIzk
Copy link
Copy Markdown
Author

DokaIzk commented Mar 27, 2026

@MissBlue00 fixed the conflicts, awaiting workflow approval for CI checks

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.

Add calculateAnchorFee function

2 participants