Function hydra_dx_math::omnipool::calculate_tvl_cap_difference
source · pub fn calculate_tvl_cap_difference(
asset: &AssetReserveState<Balance>,
stable_asset: &AssetReserveState<Balance>,
tvl_cap: Balance,
total_hub_reserve: Balance
) -> Option<Balance>