0g-chain/x/incentive
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
..
client Add /incentive/apy query endpoint (#1328) 2022-10-05 11:39:50 -07:00
keeper Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
legacy Add base earn incentives (#1292) 2022-09-22 11:26:08 -07:00
simulation gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
spec update incentive spec (#982) 2021-08-06 08:12:08 -06:00
testutil Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
types Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
abci.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
genesis_test.go Add generic incentive AccumulateRewards method (#1392) 2022-11-29 13:59:11 -08:00
genesis.go Use different accumulator for earn (#1395) 2022-11-29 14:23:33 -08:00
integration_test.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00
module.go Upgrade to sdk v0.44.5 and add IBC (#1106) 2022-01-07 17:39:27 -07:00