Skip to main content

jiminy_distribute/
lib.rs

1#![no_std]
2//! # jiminy-distribute
3//!
4//! Weighted splits and basis-point fee extraction.
5//!
6//! Split a token amount N ways by weight, extract protocol fees, and
7//! guarantee that `sum(parts) == total` -- no dust left behind. If you've
8//! ever had a distribution that silently loses 1 lamport per split, this
9//! crate is why you don't have to debug that again.
10
11mod distribute;
12pub use distribute::*;
13pub use pinocchio;