Function hydra_dx_math::omnipool::calculate_sell_hub_state_changes
source · pub fn calculate_sell_hub_state_changes(
asset_out_state: &AssetReserveState<Balance>,
hub_asset_amount: Balance,
asset_fee: Permill,
imbalance: I129<Balance>,
total_hub_reserve: Balance
) -> Option<HubTradeStateChange<Balance>>
Expand description
Calculate delta changes of a sell where asset_in is Hub Asset