v1ReverseSwapSimulatePost method

Future<Response<SimulateSwapResponse$Response>> v1ReverseSwapSimulatePost({
  1. required String? offerAddress,
  2. required String? askAddress,
  3. required String? units,
  4. required String? slippageTolerance,
  5. String? referralAddress,
})

@param offer_address The address of the token we want to sell @param ask_address The address of the token we want to buy @param units Number of token units we want to sell @param slippage_tolerance The maximum possible difference between the rates that we expect and which will actually be, in fractions (for example, 0.001 is 0.1%) @param referral_address Referral address

Implementation

Future<chopper.Response<SimulateSwapResponse$Response>>
    v1ReverseSwapSimulatePost({
  required String? offerAddress,
  required String? askAddress,
  required String? units,
  required String? slippageTolerance,
  String? referralAddress,
}) {
  generatedMapping.putIfAbsent(SimulateSwapResponse$Response,
      () => SimulateSwapResponse$Response.fromJsonFactory);

  return _v1ReverseSwapSimulatePost(
      offerAddress: offerAddress,
      askAddress: askAddress,
      units: units,
      slippageTolerance: slippageTolerance,
      referralAddress: referralAddress);
}