Skip to main content

order_fee

Function order_fee 

Source
pub fn order_fee(amount: u64, bps: u64, decimals: u8) -> u64
Expand description

The fee a funder pays ON TOP of an order’s amount, exactly as knos_pay 2.2 computes it: bps (FEE_BPS for a wallet’s order) of the amount, rounded down; at least ORDER_FEE_MIN; no maximum and no tiers. FundOrderWallet moves amount + order_fee(amount).