Smart Contract failing

:1234: Code to reproduce


:laptop: Environment

Hello, I'm deploying my arbitrage flashloan contract through Remix, here's my issue I can't figure out why it's failing it compiles fine and everything, I get green checks even after deployment, can find it on etherscan, but when it comes time to collect profit, it never returns anything, I'm consistently losing money, i also have a arbitrage bot, that has issues with it always gives me info that it hasn't been successful, I'm not sure what to do could you help please, thank you

Hi, welcome to the community! :wave:

I think you can debug your contract to find out what happened. Maybe you can use Tenderly or console.log in your Hardhat or Foundry project.