Returns Best Route via Fibrous Finance
getBestRoute
function finds the optimal trading route for a token swap through Fibrous Finance’s liquidity pools.
Parameter | Type | Description |
---|---|---|
amount | BigNumber | Amount to swap, formatted according to token decimals |
tokenInAddress | string | Token address to swap from |
tokenOutAddress | string | Token address to swap to |
chainName | string | Chain name where the transaction will take place |
options | RouteOverrides | Optional parameters for route customization |