You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 24, 2022. It is now read-only.
/** * Creates a trade without computing the result of swapping through the route. Useful when you have simulated the trade * elsewhere and do not have any tick data * @template TInput The input token, either Ether or an ERC-20 * @template TOutput The output token, either Ether or an ERC-20 * @template TTradeType The type of the trade, either exact in or exact out * @param constructorArguments The arguments passed to the trade constructor * @returns The unchecked trade */publicstaticcreateUncheckedTrade<TInputextendsCurrency,TOutputextendsCurrency,TTradeTypeextendsTradeType>(constructorArguments: {route: Route<TInput,TOutput>inputAmount: CurrencyAmount<TInput>outputAmount: CurrencyAmount<TOutput>tradeType: TTradeType}): Trade<TInput,TOutput,TTradeType>{returnnewTrade({
...constructorArguments,routes: [{inputAmount: constructorArguments.inputAmount,outputAmount: constructorArguments.outputAmount,route: constructorArguments.route}]})}/** * Creates a trade without computing the result of swapping through the routes. Useful when you have simulated the trade * elsewhere and do not have any tick data * @template TInput The input token, either Ether or an ERC-20 * @template TOutput The output token, either Ether or an ERC-20 * @template TTradeType The type of the trade, either exact in or exact out * @param constructorArguments The arguments passed to the trade constructor * @returns The unchecked trade */publicstaticcreateUncheckedTradeWithMultipleRoutes<TInputextendsCurrency,TOutputextendsCurrency,TTradeTypeextendsTradeType>(constructorArguments: {routes: {route: Route<TInput,TOutput>inputAmount: CurrencyAmount<TInput>outputAmount: CurrencyAmount<TOutput>}[]tradeType: TTradeType}): Trade<TInput,TOutput,TTradeType>{returnnewTrade(constructorArguments)}
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
createUncheckedTrade
is a way of simulating trades, this may be desirable feature for userssee https://github.com/Uniswap/v3-sdk/blob/7c3aedd0cf9441d03607e258734eada44a73863d/src/entities/trade.ts#L346
The text was updated successfully, but these errors were encountered: