Withdrawal fee rule | Maticslot
This page defines the fee accounting rules used in Maticslot’s wallet-based crypto casino model. See Maticslot: Wallet-Based Crypto Casino.
Overview
Some withdrawal transactions include a fee transfer in the same transaction as the user payout.
Deterministic invariant:
- amount_total_raw = amount_to_user_raw + amount_fee_raw
- All relevant token Transfer logs for a withdrawal transaction are emitted by the token contract and have topic0 = Transfer(address,address,uint256).
Each withdrawal ledger row includes amount_total_raw, amount_to_user_raw, and amount_fee_raw for the transaction.
Return to withdrawal proof.