quote method

CurrencyAmount quote(
  1. CurrencyAmount currencyAmount
)

Return the amount of quote currency corresponding to a given amount of the base currency @param currencyAmount the amount of base currency to quote against the price

Implementation

CurrencyAmount quote(CurrencyAmount currencyAmount) {
  assert(currencyAmount.currency == baseCurrency, 'TOKEN');
  final result = super.multiply(currencyAmount);
  return CurrencyAmount.fromFractionalAmount(
      quoteCurrency, result.numerator, result.denominator);
}