Migration to Version 1.0
Overview Of Changes
SOR Library
const SOR = new sor.SOR(Provider, GasPrice, MaxPools, ChainId, PoolsUrl)
const SOR = new sor.SOR(Provider, GasPrice, MaxPools, ChainId, PoolsUrl)await SOR.setCostOutputToken(tokenOut)
await SOR.setCostOutputToken(tokenOut)const isSuccess = await SOR.fetchPools()
const isSuccess = await SOR.fetchPools()const [swaps, amount] = await SOR.getSwaps(tokenIn, tokenOut, swapType, swapAmount)
const [swaps, amount] = await SOR.getSwaps(tokenIn, tokenOut, swapType, swapAmount)ExchangeProxy Contract
Further Information
Last updated
Was this helpful?