Arb-flash bot needed

Job ID: 33499695

Budget: $250 – $750 USD

First and foremost, submit your actual offer. Read through this posting thoroughly. Do NOT submit a low-ball offer, and then, in the middle of our negotiations, decide to double or more your offer. You should be able to tell how much the project will be, based on the descriptions, and the posting. If one replies to the project with questions that are already posted, I'll refer you back to this post. Please note that I will be talking with multiple freelancers on this project, so be patient for replies. I also have other projects, unrelated to this, that I'm working on, too.

I also need someone who is experienced in a variety of programming. If you're only familiar with one option, like aave, then this post isn't for you. You need to be familiar with Cream Finance's flash options, possibly dydx and/or euler. For example, dydx's flash loan data was for layer 1; what, if anything, has changed with layer 2? You need to have familiarity with how to do flashes on multiple platforms.

What I need is an "arb bot." However, the bot is not merely looking for the price of a crypto on one AMM at a low price, and reselling it for a higher price on another. As you will note from the attached file, people have been getting stable coins from the flash loan provider, swapping them (generally on curve.fi), and repaying the flash and keeping the profit. A similar project is being worked on by HodlTree:

https://medium.com/hodltree/hodltree-introducing-flash-loans-2-0-b3829b2e5424

"the team also plans to expand Flash Loans 2.0 range for other tokens pegged to the same benchmarks, for example WBTC/renBTC."

While I would like to swap the various BTC pegs (wbtc, renbtc, pbtc, etc), my initial sims on AMMs indicate that they're not profitable. This is either due to high slippage unable to repay the flash, or, depending on the AMMs, before swapping between different btc pegs, they swap to a wrapped asset (weth, wbnb, or wmatic), which further decreases profits. I haven't tested to see if under 20 btc pegs for swaps will work. Maybe a flash loan + arb bot will work better? Thus, at this time--unless using the above url as a reference, and you can make btc pegs work--then I'm looking to swap stable coins.

I'm looking to use matic/poly, as the gas prices are still minor. While ETH has more assets, and more on curve.fi, gas has been anywhere between $50 - $100, or more, per action. While BSC is a "middle ground," I believe that there are enough exchanges & assets on poly to do so (uni & sushi swap both have poly options, and many others), and unless you know of a lower one, cream's 0.03% is lower than aave's and unilend's. Only dydx's 2 wei and euler's 0 are lower, but are currently (to my knowledge) only on eth.

Lastly, as I note in the file, I want to make sure the arb-flash isn't victim to attacks: MEV, front running, sandwiching, etc. I outline the info I have on the 3 chains to help cope with these, but am unsure as to the exact nature of poly's protections, and seek your professional knowledge on this matter. I need an understanding of how the transactions will be secure.

When you reach out, I not only need your price bid, but also, how much I need for gas, and other expenses, to run the project. I assume that, as needed, I can add more gas. An estimate is helpful.