Summary
The fee split function divides the total fee between the protocol treasury and the creator's fee recipient according to configured basis points. Unit tests should confirm the split is exact, that the two amounts sum to the total fee, and that no stroop is lost to rounding.
Scope
- Test a total fee of 1000 stroops split 70/30 returns 700 to protocol and 300 to creator
- Test a total fee of 1001 stroops split 70/30 — assert the remainder stroop goes to protocol (floor division)
- Test a split of 100/0 returns the full fee to protocol and 0 to creator
- Test a split of 0/100 returns 0 to protocol and the full fee to creator
- Assert protocol_amount + creator_amount always equals total_fee
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram
Summary
The fee split function divides the total fee between the protocol treasury and the creator's fee recipient according to configured basis points. Unit tests should confirm the split is exact, that the two amounts sum to the total fee, and that no stroop is lost to rounding.
Scope
Acceptance Criteria
ETA: 12 hours
Coordinate on Telegram