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

[wip]: Step curve #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[wip]: Step curve #8

wants to merge 2 commits into from

Conversation

mradkov
Copy link
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
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