pub fn calculate_buy_for_hub_asset_state_changes(
asset_out_state: &AssetReserveState<Balance>,
asset_out_amount: Balance,
asset_fee: Permill,
imbalance: I129<Balance>,
total_hub_reserve: Balance
) -> Option<HubTradeStateChange<Balance>>
Expand description
Calculate delta changes of a buy trade where asset_in is Hub Asset