-
Notifications
You must be signed in to change notification settings - Fork 1
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
Vault/allow multiple currency #76
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
0118e0e
add bid denom check
sontrinh16 06c7be0
allow multiple stable coin denom
vuong177 7f62acd
allow multiple mint denom in vault
vuong177 4536c35
update liquidate logic
vuong177 7ce2dc8
psm keeper should use const from psm types
vuong177 d981cba
cancel bid in bidbyaddress
sontrinh16 9b77243
add query bidder bids
sontrinh16 245e106
refactor testcase
vuong177 b3b0f50
Merge branch 'vault/allow-multiple-currency' into son/auction_multipl…
vuong177 c8713de
Merge pull request #71 from onomyprotocol/son/auction_multiple_stable
vuong177 1ee268b
nit
vuong177 4ce4b30
Merge branch 'main' into vault/allow-multiple-currency
vuong177 bd16083
nits
vuong177 13f43de
import nit
vuong177 7df5199
proto
DongLieu 8391e3d
nits
DongLieu 1e740ff
add Noms for genesis
DongLieu b8a84b4
add Nom types for msg gov
DongLieu 32d9fdb
updates msg server and test full script
DongLieu eba4c8f
updates script and fix test pass ci
DongLieu abd2daa
updates tests and rename msg
DongLieu 17404ce
nits
DongLieu fb8ec9e
minor
DongLieu 175dcf7
rename and update scipt psm
DongLieu 2c6e0f9
use collections
DongLieu 474bc3c
lint
DongLieu 97faecd
Merge pull request #80 from onomyprotocol/dong/LastestAuctionPeriods
DongLieu 63b0f5c
fix abci aution
DongLieu 3c0516d
check denom
DongLieu 799bfa1
nits
vuong177 d82580e
check vault owner when mint coin
vuong177 117aaf0
Merge pull request #81 from onomyprotocol/dong/fix-abci
vuong177 da16681
test beginblocker for vaults
DongLieu fc5d3e4
add beginblocker vaults module
DongLieu b690dd9
Merge pull request #82 from onomyprotocol/dong/add-test-vaults-abci
DongLieu 765d1a9
Merge pull request #84 from onomyprotocol/dong/add-beginblocker-vaults
DongLieu 16835b5
add validate StabilityFee
DongLieu d19c303
minor
DongLieu 10140e7
Merge pull request #85 from onomyprotocol/dong/validate-msg-vaults
DongLieu cc1924a
minor
DongLieu 7156e46
Merge pull request #86 from onomyprotocol/dong/minor
DongLieu 41e3d7f
Merge remote-tracking branch 'origin/main' into vault/allow-multiple-…
vuong177 efff475
check status
DongLieu b49d729
Merge pull request #88 from onomyprotocol/dong/checkStatus
DongLieu b048910
refactor swap msg
vuong177 4f09b4e
rename
DongLieu 04cd748
updates
DongLieu 1eb130a
remove noms
DongLieu ed66585
oracle script
DongLieu 86bd072
updates file proposal psm
DongLieu d89cee4
nits
DongLieu 02856bd
fix test pass ci
DongLieu 038f33b
update spec psm
DongLieu 8029fcc
Merge pull request #78 from onomyprotocol/psm/allow-multiple-currency
vuong177 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ message Params { | |
(gogoproto.nullable) = false | ||
]; | ||
|
||
string mint_denom = 2; | ||
repeated string allowed_mint_denom = 2; | ||
|
||
google.protobuf.Duration charging_period = 3 [ | ||
(gogoproto.stdduration) = true, | ||
|
@@ -33,42 +33,44 @@ message Params { | |
|
||
// VaultParams defines the parameters for each collateral vault type. | ||
message VaultMamagerParams { | ||
string min_collateral_ratio = 1 [ | ||
string mint_denom = 1; | ||
|
||
string min_collateral_ratio = 2 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(amino.dont_omitempty) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
string liquidation_ratio = 2 [ | ||
string liquidation_ratio = 3 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(amino.dont_omitempty) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
string max_debt = 3 [ | ||
string max_debt = 4 [ | ||
(cosmos_proto.scalar) = "cosmos.Int", | ||
(gogoproto.customtype) = "cosmossdk.io/math.Int", | ||
(amino.dont_omitempty) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
string stability_fee = 4 [ | ||
string stability_fee = 5 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(amino.dont_omitempty) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
string liquidation_penalty = 5 [ | ||
string liquidation_penalty = 6 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(amino.dont_omitempty) = true, | ||
(gogoproto.nullable) = false | ||
]; | ||
|
||
string minting_fee = 6 [ | ||
string minting_fee = 7 [ | ||
(cosmos_proto.scalar) = "cosmos.Dec", | ||
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec", | ||
(amino.dont_omitempty) = true, | ||
|
@@ -142,7 +144,9 @@ message VaultLiquidationStatus { | |
} | ||
|
||
message Liquidation { | ||
string denom = 1; | ||
string debt_denom = 1; | ||
|
||
string mint_denom = 2; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we should rename. Lets say debt and mint denom is same |
||
|
||
repeated Vault liquidating_vaults = 3; | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"messages": [{ | ||
"@type": "/reserve.psm.v1.MsgAddStableCoin", | ||
"authority":"onomy10d07y265gmmuvt4z0w9aw880jnsr700jqr8n8k", | ||
"denom": "usdt", | ||
"limit_total": "100000000000000000000000000000", | ||
"fee_in": "0.001000000000000000", | ||
"fee_out": "0.001000000000000000", | ||
"oracle_script": "44" | ||
}, | ||
{ | ||
"@type": "/reserve.psm.v1.MsgAddStableCoin", | ||
"authority":"onomy10d07y265gmmuvt4z0w9aw880jnsr700jqr8n8k", | ||
"denom": "usdc", | ||
"limit_total": "100000000000000000000000000000", | ||
"fee_in": "0.001000000000000000", | ||
"fee_out": "0.001000000000000000", | ||
"oracle_script": "44" | ||
}], | ||
"deposit": "100000000stake", | ||
"title": "My proposal", | ||
"summary": "A short summary of my proposal" | ||
} |
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.
should be collateral_denom I think