Why am I getting ‘transfer amount exceeds allowance’ when swapping? January 05, 2023 22:42 Because for ERC20 tokens, you need to set the allowance before being able to swap: https://docs.li.fi/li.fi-api/li.fi-api/transferring-tokens-example#checking-and-setting-the-allowance Related articles Which wallet provider are you using for your "connect wallet" widget on transferto.xyz? Hey can I change the apiUrl config depending on user input of testnets and mainnets? Should the JsonRpcProvider used for wallet configuration be that of the fromChain / sending chain? How to derive the fromAmount by just providing a toAmount? Can I do this?