Expand description
§jiminy-distribute
Weighted splits and basis-point fee extraction.
Split a token amount N ways by weight, extract protocol fees, and
guarantee that sum(parts) == total – no dust left behind. If you’ve
ever had a distribution that silently loses 1 lamport per split, this
crate is why you don’t have to debug that again.
Re-exports§
pub use pinocchio;
Functions§
- extract_
fee - Extract a fee from
amountand return(net, fee). - proportional_
split - Split
totalproportionally byshares, writing results toout.