Squid Dev Documentation
Ask or search…
K

Add your hooks to a route request, or widget

First Tab
Second Tab
const params = {
fromAddress: signer.address,
fromChain: ethereumId,
fromToken: repayAsset,
fromAmount: repayAmount,
toChain: binanceSmartChainId,
toToken: nativeToken,
toAddress: binanceAddress,
slippage: 1,
slippageConfig: {
autoMode: 1,
},
quoteOnly: false,
preHooks: preHooks,
postHooks: postHooks,
};