0g-chain/x
Ruaridh 6f193c7f2a
Refactor incentive accumulators to be the same (#970)
* add test for validate multi reward periods

* tidy up: combine files

* don't accumulate global indexes containing zeros
Previously if the time since last block was 0,
indexes were added containing 0s.
Now leave them out. Missing is assumed to be 0.

* move state independent test to types folder

* clarify reward source concept to "source shares"
- rename variables and update doc comments
- extract method from swap accumulation

* tidy up and expand swap accumulation unit tests

* rename swap test file to match others

* update swap pool id format in tests

* refactor borrow accumulation, use new accumulator

* refactor supply accumulation, use new accumulator

* refactor delegator accumulation, use accumulator

* refactor usdx accumulation, use new accumulator

* fix types const

* remove unsed methods

* more usdx minting param validation.
Protect against the rewards per second denom changing.
It should always be "ukava".

* add safety check in InitGenesis
It prevents huge accumulations on the first block by limiting all
previous accumulation times to be within one year of genesis

* add todo for adding swp token distirbution info
2021-07-22 13:53:18 +01:00
..
auction add v0.13 legacy types for kava-5 (#784) 2021-02-02 15:10:57 -07:00
bep3 Misc simulation fixes (#963) 2021-07-15 10:46:56 -05:00
cdp Misc simulation fixes (#963) 2021-07-15 10:46:56 -05:00
committee Squash merge swap-acceptance branch (#956) 2021-07-13 12:38:15 +01:00
hard fix strings that said deposit instead of borrow (#962) 2021-07-15 09:16:25 -05:00
incentive Refactor incentive accumulators to be the same (#970) 2021-07-22 13:53:18 +01:00
issuance address issues from audit (#793) 2021-02-04 11:35:24 -07:00
kavadist add community multi-spend proposal (#915) 2021-06-02 11:03:25 -06:00
pricefeed fix: return nil instead of empty byte slice (#878) 2021-03-15 08:41:36 -06:00
swap Update Pool ID Separator (#968) 2021-07-15 19:09:35 -05:00
validator-vesting fix: set previous block time correctly on block one (#868) 2021-03-10 10:56:23 -07:00