mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 16:25:21 +00:00
22843cd3df
* 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
10 lines
236 B
Bash
Executable File
10 lines
236 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "Usage: ./generate-test-incentive-data.sh genesis.json"
|
|
exit 1
|
|
fi
|
|
|
|
jq < "$1" -c '{"incentive": .app_state.incentive, "cdp": .app_state.cdp }' > testdata/kava-7-test-incentive-state.json
|