Skip to main content

apply_tax

Function apply_tax 

Source
pub fn apply_tax(amount: u64, tax_basis_points: u64) -> u64
Expand description

The tax owed on amount at tax_basis_points (1 bp = 0.01%) — the automated cross- jurisdictional tax-schema shunt. Saturating (u128 intermediate).