Skip to content

[wip]: Step curve#8

Open
mradkov wants to merge 2 commits intomasterfrom
feature/step-curve
Open

[wip]: Step curve#8
mradkov wants to merge 2 commits intomasterfrom
feature/step-curve

Conversation

@mradkov
Copy link
Copy Markdown
Owner

@mradkov mradkov commented Feb 2, 2021

Work in progress implementation of a step bonding curve.

Differences:

  • alpha() is now used for step size instead of the angle for a linear curve.
  • buy_curve() uses Frac.ceil so it can calculate the amount needed for buying x tokens based on the current total_supply
  • sell_curve() uses Frac.floor for calculating the sell return

plot

@mradkov mradkov marked this pull request as ready for review February 3, 2021 09:16
Copy link
Copy Markdown
Collaborator

@thepiwo thepiwo left a comment

Choose a reason for hiding this comment

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

tests would be good

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