-
Notifications
You must be signed in to change notification settings - Fork 286
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
[Feature] Improve oracle spec #325
Conversation
…ist param structure to include illiquid factor on denom property
…send associate oracle prevote & vote
Codecov Report
@@ Coverage Diff @@
## develop #325 +/- ##
===========================================
- Coverage 72.87% 71.01% -1.86%
===========================================
Files 73 75 +2
Lines 3089 3605 +516
===========================================
+ Hits 2251 2560 +309
- Misses 731 899 +168
- Partials 107 146 +39 |
…om oracle slashing, change sdk.DecCoins to types.ExchangeRateTuples on types.AggregateExchangeRateVote
…atils err for aggregate prevote/vote
c05901d
to
1e44cc1
Compare
…revent unnecessary bech32fy works
@YunSuk-Yeo instead of |
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.
Good work, overall:
- some tests to be added
- consider using unique tobin taxes per denom instead of creating illiquidfactor weights
- some variable name changes suggested
@@ -399,7 +399,7 @@ func testAndRunTxs(app *TerraApp) []simulation.WeightedOperation { | |||
{ | |||
func(_ *rand.Rand) int { | |||
var v int | |||
ap.GetOrGenerate(cdc, OpWeightMsgUnjail, &v, nil, | |||
ap.GetOrGenerate(cdc, OpWeightMsgSend, &v, nil, |
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.
Note: not relevant to oracle improvement, tag along to the PR
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.
Just a few wording changes!
Summary of changes
Whitelist
struct to includeTobinTax
VoteTargets
in the KeeperThis will enable the voters to do oracle multiple votes with an aggregate msg which is highly downsized compared with normal prevote/vote.
The param structure change will enable to enter illiquid factor, which determines the swap spread, at whitelist registration step via gov proposal.
The core directly refer
params.Whitelist
to check oracle slashing at columbus-3. If a new denom is appended toparams.Whitelist
, then it can cause some validators miss a oracle vote because it comes middle of a oracle vote period. In order to prevent this confusion, the oracle keeper will keepVoteTargets
and update it at the end of vote period withparams.Whitelist
.See discussion: Agora link
Report of required housekeeping
(FOR ADMIN) Before merging