Minimum withdrawals and fees, driven by settings
Compute the fee once, show the net before they confirm, and keep every threshold in the settings table so repricing is not a code change.
4 entries
Compute the fee once, show the net before they confirm, and keep every threshold in the settings table so repricing is not a code change.
Earn in integer credits, convert to coin only at withdrawal, and keep the rate in settings. Repricing the whole site becomes one field.
Auto-pay when the API answers, hold when it does not, and never refund on a timeout. The three-state queue that keeps a faucet solvent.
Debit on request, not on approval. The state machine that makes double payouts and phantom balances impossible.