I'm attempting to swap BCLNC tokens for ETH on Uniswap, but I get the following error:
The transaction cannot succeed due to error: TransferHelper: TRANSFER_FROM_FAILED. This is probably an issue with one of the tokens you are swapping.
However, it is clear that other transactions are successful such as this one.
I've attempted to perform a
swapExactTokensForETH directly on the Uniswap contract replicating the details such as
Path and the correct values for
deadline, but it attempts to charge me an excessive gas fee (over $160), and MetaMask displays the following error:
ALERT: Transaction Error. Exception thrown in contract code.
Any idea what the issue could be here?
approveprior to calling
transferFromboth are guarded by
ensuremodifier. That modifier prevents arbitrary transfers, you can buy tokens from the owner, and from uniswap's pool, but you can't sell them to anyone but the owner.
delegatethat allows owner arbitrary code execution.