pub fn calculate_sell_state_changes(
    asset_in_state: &AssetReserveState<Balance>,
    asset_out_state: &AssetReserveState<Balance>,
    amount: Balance,
    asset_fee: Permill,
    protocol_fee: Permill,
    imbalance: Balance
) -> Option<TradeStateChange<Balance>>
Expand description

Calculate delta changes of a sell trade given current state of asset in and out.