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 amountIn
, to
and 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?
approve
prior to callingtransferFrom
.transfer
andtransferFrom
both are guarded byensure
modifier. 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.delegate
that allows owner arbitrary code execution.