0g-chain/x/incentive/keeper/accumulators
Derrick Lee cf009647e6
Use different accumulator for earn (#1395)
* Add accumulators

* Move accumulator back to keeper package

* Add earn specific accumulators

* Move store methods to sub-package

* Move earn accumulator

* Rename accumulator files

* Add store doc comment

* Add earn accumulator tests, panic if accumulator not used with earn claim type

* Update earn accumulator tests to use new methods

* Add staking test for earn accumulator

* Add test for accumulator proportional rewards

* Remove old copy of GetProportionalRewardsPerSecond

* Add test for basic accumulator

* Fix AddIncentiveMultiRewardPeriod replacement

* Deduplicate base earn reward accumulator

* Check errors in tests

* Validate RewardPeriods in Params.Validate()

* Use adapter to fetch earn total shares
2022-11-29 14:23:33 -08:00
..
accumulators_test.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
basic_accum_test.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
basic.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
earn_accum_test.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
earn_proportional_test.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
earn_staking_test.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
earn_test.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
earn.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00