-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: adapt MaxBorrow to limit it considering MinCollateralLiquidity a…
…nd MaxSupplyUtilization (#1954) * fix MaxBorrow * fix imports * refactor reducing duplicated code * fix bug in limits * adding unit tests and minor tweaks * changelog and readme * lint fixes * markdown lint fix * Update x/leverage/README.md Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * Update x/leverage/keeper/limits.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * Update x/leverage/keeper/limits.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * Update x/leverage/keeper/borrows.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * Update x/leverage/keeper/borrows.go Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com> * pr comments --------- Co-authored-by: Adam Moser <63419657+toteki@users.noreply.github.com>
- Loading branch information
Showing
8 changed files
with
321 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.