router_dry.gno

DrySwapRoute

func DrySwapRoute(
	inputToken string,
	outputToken string,
	specifiedAmount string,
	swapTypeStr string,
	strRouteArr string,
	quoteArr string,
	tokenAmountLimit string
) (string, string, bool)

DrySwapRoute simulates a swap route without executing it.

Parameters

Name
Type
Description

inputToken

string

path of input token

outputToken

string

path of output token

specifiedAmount

string

specified amount for the swap

swapTypeStr

string

swap type string ("ExactIn" or "ExactOut")

strRouteArr

string

encoded route array

quoteArr

string

encoded quote array

tokenAmountLimit

string

token amount limit

Return Values

Name
Type
Description

amountIn

string

estimated input amount

amountOut

string

estimated output amount

ok

bool

success status

Last updated