Summary
The DividendDistributed event must contain accurate values for all fields at the time of distribution. A unit test should assert each field individually to catch any mismatch between the stored data and the emitted event.
Scope
- Distribute a known amount to a creator with a known supply
- Capture the emitted
DividendDistributed event
- Assert
creator_id, total_amount, snapshot_supply, and ledger all contain correct values
- Assert
total_amount reflects the gross amount before protocol fee deduction
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The
DividendDistributedevent must contain accurate values for all fields at the time of distribution. A unit test should assert each field individually to catch any mismatch between the stored data and the emitted event.Scope
DividendDistributedeventcreator_id,total_amount,snapshot_supply, andledgerall contain correct valuestotal_amountreflects the gross amount before protocol fee deductionAcceptance Criteria
creator_idmatches the creator usedtotal_amountmatches the gross distributed amountsnapshot_supplymatches total supply at distribution timeledgeris a positive non-zero valueETA: 12 hours
Coordinate on Telegram