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

fix(rate_model): increase MAX jump rate and full rate #1233

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

spazcoin
Copy link
Contributor

@spazcoin spazcoin commented Mar 27, 2024

Recently all USDT on Polkadot was borrowed, leading to Moonwell USDT borrow rates of 192% and Interlay $492k of USDT max borrowed, resulting in Interlay USDT borrow rate pegged at 45-50%. The negative thing was that there was no remaining USDT lending liquidity for lenders to withdraw their capital.

Interlay referenda 96 was approved to adjust the USDT/USDC lending params to set the jump rate to 20% and the full rate to 150% with optimal utilization of 80%. After community and team discussion, this solution was agreed to use the higher full rate to push lending back down towards the optimal lending utilization.

https://interlay.subsquare.io/democracy/referenda/96

Unfortunately the referenda failed to execute because the 150% proposed full rate exceeded the hard-coded max value of 50% for the full rate.

https://interlay.subscan.io/block/4905046?tab=event&event=4905046-0

In this commit I recommend:

  • leave 10% as max base rate
  • increase "jump rate" hardcoded max from 30% to 100%. We were already considering 20-30% for USDT.
  • increase "full rate" from 50% to 500%.

I definitely support having limits since people might submit a value with wrong number of zeros accidentally. But let's place the limits higher than any "reasonable" value that we might set in governance. I can see us potentially having a market with jump rate 50% and full rate 300%.

@spazcoin spazcoin force-pushed the fix/expandMaxJumpModelRates branch from 2e23d73 to 96a2715 Compare March 27, 2024 13:56
Recently all USDT on Polkadot was borrowed, leading to Moonwell USDT
borrow rates of 192% and Interlay $492k of USDT max borrowed, resulting
in Interlay USDT borrow rate pegged at 45-50%. The negative thing was
that there was no remaining USDT lending liquidity for lenders to
withdraw their capital.

Interlay referenda 96 was approved to adjust the USDT/USDC lending
params to set the jump rate to 20% and the full rate to 150% with
optimal utilization of 80%. After community and team discussion, this
solution was agreed to use the higher full rate to push lending back
down towards the optimal lending utilization.

https://interlay.subsquare.io/democracy/referenda/96

Unfortunately the referenda failed to execute because the 150% proposed
full rate exceeded the hard-coded max value of 50% for the full rate.

https://interlay.subscan.io/block/4905046?tab=event&event=4905046-0

In this commit I recommend:
* leave 10% as max base rate
* increase "jump rate" hardcoded max from 30% to 100%. We were already
considering 20-30% for USDT.
* increase "full rate" from 50% to 500%.

I definitely support having limits since people might submit a value
with wrong number of zeros accidentally. But let's place the limits
higher than any "reasonable" value that we might set in governance.
I can see us potentially having a market with jump rate 50% and full
rate 300%.
@spazcoin spazcoin force-pushed the fix/expandMaxJumpModelRates branch from 96a2715 to adbb2c5 Compare April 12, 2024 16:42
@sander2
Copy link
Member

sander2 commented Sep 3, 2024

Thanks! It shouldn't be a problem, but I'll add some basic tests in a separate pr

@sander2 sander2 merged commit b34a447 into interlay:master Sep 3, 2024
1 check passed
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