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

cli changes for v2.0.1 #133

Merged
merged 1 commit into from
Mar 20, 2023
Merged

cli changes for v2.0.1 #133

merged 1 commit into from
Mar 20, 2023

Conversation

0xripleys
Copy link

adding functionality to:

  • set borrow weight
  • set reserve rate limit configs
  • set lending market rate limit configs

@0xripleys 0xripleys merged commit 9340ac6 into v2_upcoming Mar 20, 2023
nope-finance pushed a commit that referenced this pull request Mar 28, 2023
* 0xripleys outflow limits (#125)

Use a sliding window rate limiter to limit borrows and withdraws at the lending pool owner's discretion.

* 0xripleys borrow coefficient (#127)

Add a borrow weight to the Reserve

* Two Prices PR (#129)

- Add a smoothed_market_price to Reserve that is used to limit borrows and withdraws in cases where smoothed price and spot price diverge.
- allowed_borrow_value now uses the min(smoothed_market_price, current spot price)
- new field on obligation called borrowed_value_upper_bound that uses max(smoothed_market_price, current spot price)

* audit nits

* audit fixes pt 2

* disable rate limiter if window duration == 0

* cli changes for v2.0.1 (#133)
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