Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: nested extra fees #826

Merged
merged 1 commit into from
Feb 20, 2025
Merged

feat: nested extra fees #826

merged 1 commit into from
Feb 20, 2025

Conversation

michael1011
Copy link
Member

Allow clients to add extra fees to swaps by passing these parameters when creating swaps:

{
    ...
    "extraFees": {
        "id": "gm",
        "percentage": 1
    }
}

Those extra fees added can be queried with API keys via /v2/referral/stats/extra:

{
  "2025": {
    "2": {
      "gm": 13000
    }
  }
}

Do we want to allow this for every referral?

@michael1011 michael1011 requested a review from maybeast February 18, 2025 16:17
@michael1011 michael1011 marked this pull request as ready for review February 19, 2025 14:33
@michael1011 michael1011 merged commit 64fba5a into master Feb 20, 2025
6 checks passed
@michael1011 michael1011 deleted the nested-fees branch February 20, 2025 21:48
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.

2 participants