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

Feature/new interest model #15

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

Conversation

radar-bear
Copy link

Background

Since we updated interest model the market changed a lot. DDEX's interest rate is obviously higher than other protocols and it's time to adjust the interest model.

Other protocol's interest rate model

Compound and AAVE (click to see their curve) use jump interest rate model, which jump up at a certain interest rate.

DYDX use the formula Y=(0.1 * X) + (0.1 * X^32) + (0.3 * X^64).

We could find two key features:

  • End up at about 50%
  • Be sharp when utilization rate is greater than ~90%

Our new interest rate

Y = 0.1x + 0.2x^16 + 0.2*x^32

As you can see, basically, our curve follows dydx's curve but becomes sharp earlier than dydx's. That's because our pool size is relatively small and should reserve more space for users' withdraw.

After the adjustment, interest rate on DDEX becomes flatter and more friendly for traders.

image

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