Module 5: Maker fee
A broker or a desk can be paid inside the same transaction. The maker sets the share, at most 10%, and names the wallet. The taker pays the same amount either way. There is no protocol fee and no treasury.
Status
Ready
Signed
Share + recipient
Code · OrbuSettlementDesk.sol
uint256 fee = (paid * o.policy.feeBps) / 10_000; // ... o.buyToken.pull(msg.sender, o.maker, paid - fee); if (fee != 0) o.buyToken.pull(msg.sender, recipient, fee);
Tests that cover it
test_makerFeeComesOutOfTheMakersProceeds test_feeRecipientCannotFill testFuzz_feeNeverExceedsCapAndAddsUp
What it does
Optional. A signed share of the maker's proceeds goes to a named recipient. Default none.
On chain
- Desk
- Not deployed yet
- Enforced
- —
- Roster
- Opens after the token launches
- Reads
- the fill amount
