* fix: update supply migration to add swp token supply
* add full migration test with app initialization
* fix: use correct chain-id in test app initialization
* address review comments
* extract hard claim migration function
* tidy up claim delegator index migration
* fix invalid hard claims
* fix comment missed in merge conflict reolution
* fix tests
* minor migration refactor
* overwrite usdx claims with latest reward indexes
* add missing usdx claims in migration
* add script to calculate missing usdx rewards
* generate missing rewards using preliminary data
* add missing usdx rewards in migration
* update missing rewards data to use correct genesis
* test rewards were not decreased
* add tests for missing reward calculations
* clarify function names
* test to assert total new rewards are as expected
* remove unecessary todo item
* implement swp airdrop to usdx depositors to hard
* verify swp airdrop amount, total supply, affected users
* remove unused test code
* add map as go file
* update tests to use stored variable
* re-add snapshot test
* update snapshot testdata
* remove unused code for generating swp airdrop map
* remove snapshot test
* add swp token distribution
* bump test timeouts
* address review comments
* use global variables to simplify testing assertions on swp supply
* optional: swp migration test and small refactor (#1005)
* add test to ensure balances are not decreased
* simplify slice manipulation
* bump context deadline in circleci
Co-authored-by: Ruaridh <rhuairahrighairidh@users.noreply.github.com>
* implement swp airdrop to usdx depositors to hard
* verify swp airdrop amount, total supply, affected users
* remove unused test code
* add map as go file
* update tests to use stored variable
* re-add snapshot test
* update snapshot testdata
* remove unused code for generating swp airdrop map
* remove snapshot test
* update acceptance test to fail
* update periodic vesting reset to reflect additive period lengths, not
absolute lengths
* simplify end time logic
* remove log
* test inclusion of v0_15 migration tests
* add auth test data
* add periodic vesting account migration
* assert owned coins are equal and unchanged during migration
* add script for generating test data from a genesis file
* remove commented import
* touch ups
* don't pretty print test data for auth module; update generate script to
use jq -c option
* fix typo in comment, improve clarity of assertions
* add context to migrate auth assertions
* add 180 days check for spendable coins
* asssertion context
* pr feedback - add assertions, touch up assertion msgs, and fix migration test to correctly
type assert pointer
* move multipliers to their own file
* add multipliers per denom to MsgClaimHardReward
* claim with multipliers per denom for hard claims
* remove unused error
* add multipliers per denom to params
connect to to hard claiming
* temporary fix migration
* update usdx claiming for new multiplier params
* claim with multipliers per denom for delegator
* claim with multipliers per denom for swap rewards
* tidy up multiplier name validation
* rename new multipliers field in params
* remove old multpliers from params
* clear up various TODOs
* add tags to new structs
* remove dead code
* extract borrow sync logic into separate func
* fix borrow reward calculations
Use the normalized borrow as the source shares in reward calculations.
* extract supply sync logic into separate func
* prepare to fix supply reward calculations
* fix deposit reward calculations
Use the normalized deposit as the source shares in reward calculations.
* extract usdx sync logic into separate func
* prepare to fix usdx reward calculations
* fix cdp reward calculations
Use the normalized cdp debt as the source shares in reward calculations.
* fix compile error from messed up partial stage
* Fix incentive usdx reward bug (#976)
* minor test refactors
* fix overpayment bug
Init methods should not read params.
Add test to cover bug
* fix typos
* add test for validate multi reward periods
* tidy up: combine files
* don't accumulate global indexes containing zeros
Previously if the time since last block was 0,
indexes were added containing 0s.
Now leave them out. Missing is assumed to be 0.
* move state independent test to types folder
* clarify reward source concept to "source shares"
- rename variables and update doc comments
- extract method from swap accumulation
* tidy up and expand swap accumulation unit tests
* rename swap test file to match others
* update swap pool id format in tests
* refactor borrow accumulation, use new accumulator
* refactor supply accumulation, use new accumulator
* refactor delegator accumulation, use accumulator
* refactor usdx accumulation, use new accumulator
* fix types const
* remove unsed methods
* more usdx minting param validation.
Protect against the rewards per second denom changing.
It should always be "ukava".
* add safety check in InitGenesis
It prevents huge accumulations on the first block by limiting all
previous accumulation times to be within one year of genesis
* add todo for adding swp token distirbution info