Function compute_fee_shares_from_assets

Source
pub fn compute_fee_shares_from_assets(
    fee_assets: Number,
    cur_total_assets: Number,
    total_supply: Number,
) -> Number
Expand description

Computes fee shares to mint from a raw fee_assets amount, given current total assets and supply. Returns 0 when fee is zero, supply is zero, or fee consumes all assets.