0g-chain/x
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
..
auction Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
bep3 Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
cdp Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
committee Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
earn Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
evmutil Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
hard Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
incentive Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
issuance Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
kavadist Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
liquid Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
pricefeed Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
router Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
savings Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
swap Refactor Buf Usage (#1399) 2022-11-22 16:22:07 -07:00
validator-vesting gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00