Skip to content

Fee curve#204

Open
codewithgun wants to merge 7 commits intomainfrom
feat/fee-curve
Open

Fee curve#204
codewithgun wants to merge 7 commits intomainfrom
feat/fee-curve

Conversation

@codewithgun
Copy link
Copy Markdown
Contributor

@codewithgun codewithgun commented Mar 12, 2025

Pool fees requirements:

  • Pool starting fee rate must be divisible by 0.05%
  • FeeCurveNone. Pool with fixed fee rate.
    • Fee rate must between 0.25% - 15%
  • FeeCurveFlat. Pool with flat fee curve can have multiple fee rate at different timings. The transition of fee rate is not linear.
    • Maximum up to 7 fee rates. Specify the same fee rates and fee activation time as previous if the curve didn't require 7 fee rates.
    • Start fee rate must between 0.25% - 99%
    • The defined fee rates in the curve must be in descending order
    • Maximum high fee duration is 10 minutes / 1500 slots depend on the pool activation type. Once high fee duration is over, the fee rate must <= 15%
    • Max 2 slots / 1 second for fee higher than 50%.
    • The end fee rate must between 0.25% - 15%
    • The curve must complete within 24 hours
  • FeeCurveLinear. Not support at the moment

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