-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(oracle): implement reward allocation for oracles (#839)
* add: wire oracle * temp: attempt to fix localnet.sh * upgrade changelog * add: slash logging * add: miss counters logging * tmp * fix: almost there.... * add: finalize first oracle scenario integration test * add: function to find private key info for an address * fix: test * chore: move oracle to simapp * chore: lint * chore: docs and function simplification * chore: CHANGELOG.md * chore: move update exchange rates logic to another function * fix: make clear exchange rates semantically correct * change: rename Claim to ValidatorPerformance * change: rename Claim to ValidatorPerformance 2 * change: rename Claim to ValidatorPerformance 3 * chore: document function * temp: move app_test.go to a separate pkg * refactor: move exchange rate update logic to the keeper * chore: simplify genesis tests * chore: move abci_test to keeper * change: move slash_test package to keeper_test * change: move slashing tests to slash_test.go * chore: rename abci_test to update_exchange_rate_test.go * chore: lint * chore: CHANGELOG.md * chore: remove unused function * change: rename GetRewardsPool to GetRewardsForPair * change: remove distribution window parameter * change: adjust RewardBallotWinners * chore: adjust doc * add: rewards protos * temp: panics so i don't forget * add: initial keeper methods * chore: adjust genesis * change: move rewardsforpair from alias_functions.go to reward.go * add: rewards distribution logic * fix: err check * chore: adjust TestOracleRewardDistribution * chore: document test * chore: rename variables to clarify scenario * chore: adjust test in update_exchange_rate_test.go * chore: rename denom reference to pair * chore: remove unused test * chore: adjust update_exchange_rate_test.go * add: rewards tests * change: API name * chore: lint * chore: update CHANGELOG.md Co-authored-by: Agent Smith <agentsmith@matrixsystems.co>
- Loading branch information
1 parent
a321f52
commit eccb38b
Showing
26 changed files
with
937 additions
and
411 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
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.