Token swap function 'Fail with error ‘SafeERC20: low-level call failed’

Hello, thank you for the reply. (Verify ERC20 token on Etherscan) Yes, I was able to verity the contract code. I have a new issue now which I am trying to solve from past 10 hours. This is related to swap function of 1inch (1split) contract. I am trying to execute the swap between DAI stable coin to USDT Stable coin. Here the decimals for USDT coin is 6. I already tried this 3 times on mainnet. I get the following error. Can you please help?

'Fail with error ‘SafeERC20: low-level call failed’

Please note, I cannot use safeTransfer. I have to use the swap function only.

Regards,
Harish

1 Like

Hi @harishbp,

I have moved this question to a new topic. I recommend creating a new topic per question as it makes it easier for community members to answer, (and for future readers to find answers).

I assume that you have approved an allowance of DAI (Example on how to use ERC20 token in another contract).

Can you share how you are calling the function, is this via Solidity or JavaScript?

Hi @harishbp,

Were you able to resolve? Can you provide more details so that I can try to reproduce?

Hello,

Sorry for the late reply. Thank you for the wonderful support. The issue is solved now.

Regards,
Harish

1 Like