Hi everyone,
I'm having some issues that I can't seem to get around. I wrote a simple contract that deposits erc20 usdt into the contract using deposit and another function to withdraw. I tested this contract on the testnet w testnet tokens and all worked well. I went to the token itself to approve my contract to use an allowance and all. The contract worked flawlessly on the testnet. Verified and all. But when I launched the contract on the mainnet, suddenly I get an error trying to call the deposit function. The gas fee is over 1k in eth and says it may fail. I tried in both solidity and connecting on etherscan w metamask. I looked at this over and over again and I'm not sure why it would work on the testnet but not the mainnet. Here is the contract.. again just a simple deposit / withdraw.
Any help or direction would be appreciated.
Thanks in advance.
J.Coffee