v1SwapSimulatePost method
@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>> v1SwapSimulatePost({
required String? offerAddress,
required String? askAddress,
required String? units,
required String? slippageTolerance,
String? referralAddress,
}) {
generatedMapping.putIfAbsent(SimulateSwapResponse$Response,
() => SimulateSwapResponse$Response.fromJsonFactory);
return _v1SwapSimulatePost(
offerAddress: offerAddress,
askAddress: askAddress,
units: units,
slippageTolerance: slippageTolerance,
referralAddress: referralAddress);
}