-
Notifications
You must be signed in to change notification settings - Fork 169
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
feat: implement special asset pairs #2164
Closed
Closed
Changes from all commits
Commits
Show all changes
78 commits
Select commit
Hold shift + click to select a range
2f1b8bd
feat: add special asset pairs
toteki cb484f9
Update proto/umee/leverage/v1/leverage.proto
toteki 02b5edf
Merge branch 'main' into adam/special
toteki 07acee1
Merge branch 'main' into adam/special
toteki 9f0f9fe
Merge branch 'main' into adam/special
toteki 286fa0e
line length lint
toteki e05b997
Merge branch 'main' into adam/special
toteki 5eb3d88
Merge branch 'main' into adam/special
toteki ea72c67
Update x/leverage/keeper/token.go
toteki 545ee88
Update x/leverage/keeper/token.go
toteki b3270a8
Update proto/umee/leverage/v1/leverage.proto
toteki d1819fa
Update proto/umee/leverage/v1/leverage.proto
toteki 73c4b30
Merge branch 'main' into adam/special
toteki 5b7b02d
make proto-all
toteki 55f8153
make proto-all
toteki 97efc7f
fix
toteki 2923478
assertBorrowerHealth changes
toteki 0a7b2b1
pairs may not reduce cw
toteki 48a9900
Merge branch 'main' into adam/special
toteki c9c0cdb
remove title + description
toteki 5817edd
group legacy msg interface
toteki 153037e
proposal.go
toteki c3d39b2
legacy++
toteki 9a22f72
special asset sets in gov message
toteki 11ffd99
pair deletion logic
toteki 5e08485
can query for specific asset
toteki 004a5d5
Update proto/umee/leverage/v1/tx.proto
toteki 0c3440d
make proto-all
toteki f8cb27f
changelog
toteki 19d5a06
Merge branch 'main' into adam/special
toteki 206c769
lint
toteki 1c55762
Merge branch 'adam/special' into adam/special3
toteki e9b7ddf
progress
toteki d9f5578
progress
toteki b9b522c
Update proto/umee/leverage/v1/tx.proto
toteki 0075b58
Update proto/umee/leverage/v1/tx.proto
toteki 53b7e4f
proto changes
toteki 7944aae
collateral weight zero deletes sets ad pairs
toteki fcda085
fix CLI
toteki ef36cda
test++
toteki 0e46e1a
combine validate functions in genesis
toteki 6f75ab6
Merge branch 'main' into adam/special
toteki daa5e0a
fix
toteki f83ab08
fix
toteki 78cd2e7
proto changes
toteki e48b35c
fix names
toteki 8804ed4
fix names
toteki 31402c5
validation allows empty pairs if sets present instead
toteki 03dcd74
optional arg doc
toteki cbd2178
Add liquidation threshold to pairs
toteki 39a9994
revert proposal.go
toteki 5e2e948
change stringer
toteki 5a43519
Merge branch 'adam/special' into adam/special3
toteki ddc290b
readme++
toteki f4bb3fc
Rearrange types
toteki 6934348
additional cached values
toteki 978c3d1
move position struct to types and isolate for keeper, ctx
toteki e90da2b
sorting of position into special pairs
toteki 5b5d084
use position struct for AssertBorrowerHealth
toteki cb0a532
lint
toteki 3b64064
fix
toteki f3c2ff6
use position borrow limit for account summary query
toteki 15c75c1
comments++
toteki 3f0332c
Merge branch 'main' into adam/special3
toteki f29ed9c
change liquidation threshold logic
toteki a9162aa
Merge branch 'main' into adam/special3
toteki 8df29fb
create empty position.MaxBorrow and position.MaxWithdraw - break tests
toteki 0f88490
comment++
toteki 55f8847
comment++
toteki 10cb160
fix sorting
toteki dea5bac
move asset pairing to initialization, away from limit function
toteki 64b3f68
move soon-to-be-removed functions to todo file
toteki 6ed253a
lint
toteki 4b1058d
Export fields
toteki 162efcf
Revert "Export fields"
toteki 1443ce4
export GetAccountPosition
toteki 93a0ed5
typo
toteki 48b5d88
Merge branch 'main' into adam/special3
toteki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Necessary change, it turns out, to prevent special asset pairs allowing users to instantly become eligible for liquidation.
Added to proto and struct in #2150, but to readme here.