0g-chain/x/incentive/keeper
Ruaridh 38a98ac4fc
Refactor incentive payout (#953), Users can claim swap rewards (#955)
* split up payout.go file

* extract genesis builders to new testutil package

* move claim integration tests out of keeper

* convert claim integration tests to handler tests

* combine claim usdx minting keeper methods

* combine hard claim keeper methods

* combine delegator claim keeper methods

* add multiply coins helper method

* rename file to better match contents

* add basic claiming unit tests

* add claiming subset of delegator reward denoms

* refactor msg tests

* add msg ValidateBasic tests

* connect swap hooks into keeper methods

* tidy up delegator handler tests

* add swap claiming msgs and keeper method

* add swap claiming to client

* add subset claiming to other msg types

* split up handler test file

* connect up subset claiming for swap

* make multiplier name validation more strict

* fix: struct tag typo in swap incentives

* connect up subset claiming for hard

* connect up subset claiming for delegator

* fix: register cli tx routes for swp claiming

* fix claim amount in claim event

* fix token name in cli help docs

* remove unused field in msg tests

* tidy up swap and delegator handler tests

* refactor hard handler tests

* refactor usdx handler tests

* remove unused constant

Co-authored-by: karzak <kjydavis3@gmail.com>
2021-07-15 15:05:54 +01:00
..
cdp_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
claim_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
claim.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
diff_test.go Fix: delete incentive reward factors on full withdraw/repay (#885) 2021-03-23 17:28:03 -06:00
hooks.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
integration_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
keeper_test.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
keeper.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
params.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
payout_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
payout.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
querier.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
rewards_borrow_init_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_borrow_sync_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_borrow_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_borrow_update_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_borrow.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_delegator_init_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_delegator_sync_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_delegator_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_delegator.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_supply_init_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_supply_sync_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_supply_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_supply_update_test.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_supply.go Refactor to DelegatorClaim and implement new MsgClaimDelegatorReward (#948) 2021-07-07 18:50:14 +02:00
rewards_swap_init_test.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
rewards_swap_sync_test.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00
rewards_swap_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_swap.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_usdx_test.go Refactor incentive payout (#953), Users can claim swap rewards (#955) 2021-07-15 15:05:54 +01:00
rewards_usdx_unit_test.go Swaps accumulate global rewards (#947) 2021-07-07 14:23:06 +01:00
rewards_usdx.go Incentive refactor: hard rewards (#929) 2021-06-21 22:05:17 +01:00
unit_test.go Swap users accumulate rewards (#950) 2021-07-13 13:35:02 +01:00