Add your hooks to a route request, or widget

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,
};

Last updated