exactOut static method

Trade exactOut(
  1. Route route,
  2. CurrencyAmount amountOut
)

Constructs an exact out trade with the given amount out and route @param route route of the exact out trade @param amountOut the amount returned by the trade

Implementation

static Trade exactOut(Route route, CurrencyAmount amountOut) {
  return Trade(route, amountOut, TradeType.EXACT_OUTPUT);
}