Tests - operation in Hive - Transfer to savings
Operation: transfer_to_savings_operation, // 32
Test cases:
-
1. User sends HIVE to their own savings balance. -
2. User sends HBD to the own savings balance -
3. User sends Hive to someone else's savings balance. -
4. User sends HBD to someone else's savings balance.
Expected results - to be checked in all above test cases:
- {from} balance is reduced by {amount}.
- {to} balance is increased by {amount}.
- RC is reduced.
Remark:
The interests are calculated in case of changes of balans. The change from 0 is not treated as change, so it is required to create additional transfer.
- Only for transfer in HBD: Interests are calculated.
- Only for transfer in HBD: Virtual operation: interest_operation is generated.
- Only for transfer in Hive: Interests are not calculated.
- Only for transfer in Hive: Virtual operation: interest_operation is not generated.
Edited by Aleksandra Grabowska