Skip to main content

split_fee_amount

Function split_fee_amount 

Source
pub fn split_fee_amount(args: FeeSplitArgs) -> Option<(u64, u64, u64, u64)>
Expand description

Splits fee_amount into (protocol, lp, creator, sniper). LP and creator round down. Protocol gets the decay premium and the remainder. sniper is the premium part of protocol.