Tests - operation in Hive - claim reward
Operations:
claim_reward_balance_operation, // 39
Test cases
-
1. User claims a reward in Hive - the all calculated Hive. -
2. User claims a reward in HBD - the all calculated HBD.
Preconditions (test 1 and 2):
- User has a calculated rewards in HIVE, HBD and HP.
Steps:
Step 1:
User claims reward in HIVE/HBD - the all calculated amount.
Expected results:
- After operation: The HIVE/HBD balance is increased by the transferred amount.
- After operation: The HIBE/HBD sub balance for the reward is reduced by the transferred amount - should be empty.
- After operation: RC is reduced.
Test cases
-
3. User claims a reward in HP - the all calculated HP.
Preconditions :
- User has a calculated rewards in HP.
Steps:
Step 1:
User claims reward in HP - the all calculated amount.
Expected results:
- After operation: The HP balance is increased by the transferred amount.
- After operation: The HP sub balance for the reward is reduced by the transferred amount - should be empty.
- After operation: The governance voting power is increased.
- After operation: RC is reduced.
Test cases
-
4. User claims a reward in Hive - the part of the calculated Hive. -
5. User claims a reward in HBD - the part of the calculated HBD.
Preconditions (test 4 and 5):
- User has a calculated rewards in HIVE, HBD and HP.
Steps:
Step 1:
User claims reward in HIVE/HBD - the part of the calculated amount.
Expected results:
- After operation: The HIVE/HBD balance is increased by the transferred amount.
- After operation: The HIBE/HBD sub balance for the reward is reduced by the transferred amount.
- After operation: RC is reduced.
Test cases
-
6. User claims a reward in HP - the part of the calculated HP.
Preconditions :
- User has a calculated rewards in HP.
Steps:
Step 1:
User claims reward in HP - the part of the calculated amount.
Expected results:
- After operation: The HP balance is increased by the transferred amount.
- After operation: The HP sub balance for the reward is reduced by the transferred amount.
- After operation: The governance voting power is increased.
- After operation: RC is reduced.
Test cases
-
7. User claims a reward in Hive and HBD - the all calculated amounts. -
8. User claims a reward in Hive and HBD - the part of the calculated amounts.
Preconditions (test 7 and 8):
- User has a calculated rewards in HIVE, HBD and HP.
Steps:
Step 1:
User claims reward in HIVE/HBD - the all calculated amounts (HIVE and HBD).
Expected results:
- After operation: The HIVE balance is increased by the transferred amount.
- After operation: The HBD balance is increased by the transferred amount.
- After operation: The HIVE sub balance for the reward is reduced by the transferred amount.
- After operation: The HBD sub balance for the reward is reduced by the transferred amount.
- After operation: RC is reduced.
Test cases
-
9. User claims a reward in Hive, HBD and HP - the all calculated amounts. -
10. User claims a reward in Hive, HBD and HP - the part of the calculated amounts.
Preconditions (test 9 and 10):
- User has a calculated rewards in Hive, HBD and HP.
Steps:
Step 1:
User claims reward in HIVE, HBD and HP - the all calculated amounts (HIVE, HBD and HP).
Expected results:
- After operation: The HIVE balance is increased by the transferred amount.
- After operation: The HBD balance is increased by the transferred amount.
- After operation: The HP balance is increased by the transferred amount.
- After operation: The HIVE sub balance for the reward is reduced by the transferred amount.
- After operation: The HBD sub balance for the reward is reduced by the transferred amount.
- After operation: The HP sub balance for the reward is reduced by the transferred amount.
- After operation: The governance voting power is increased.
- After operation: RC is reduced.
Edited by Radosław Masłowski