0g-chain/x/incentive
Derrick Lee 651de460ca
Add weighted bkava support for earn incentives (#1299)
* Add bkava handler for earn incentives

* Add bkava accum tests

* Add bkava denoms in index state

* Set storeTimeEquals to default value

* Add supply expected keepers

* Add tests for proportional adjustment

* Add liquid keeper to incentive keeper

* Use weighted reward periods for bkava

* Add liquid keeper to tests

* Add Accumulate override rewards period with deccoins

* Adjust test to handle sub unit coins

* Add liquid keeper to test

* Fix div by zero for proportional rewards

* Update test for actual expected values

* Update expected indexes to be same for different vaults

* Allow no stored time for vaults that have no indexes or state

* Add test for partial bkava deposit

* Add math check to test

* Deterministically iterate over bkava denoms

* Remove unused expected liquid method GetAllDerivativeDenoms
2022-09-23 09:38:22 -07:00
..
client Add base earn incentives (#1292) 2022-09-22 11:26:08 -07:00
keeper Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07: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 gofumpt - apply format changes for readability and consistency (#1248) 2022-05-09 11:37:36 -07:00
types Add weighted bkava support for earn incentives (#1299) 2022-09-23 09:38:22 -07:00
abci.go Add base earn incentives (#1292) 2022-09-22 11:26:08 -07:00
genesis_test.go Add base earn incentives (#1292) 2022-09-22 11:26:08 -07:00
genesis.go Add base earn incentives (#1292) 2022-09-22 11:26:08 -07: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