Dynamic Flashloans Execution
Project detail
* First Milestone
Given an atomic transaction ID, we need an API call that returns whether it is profitable to copy/imitate that transaction in the current time.
https://bscscan.com/tx/0x8e5140348b69453eb5e368da3d2c2b3667ebe23c04345f18d2801490f2dffbba
is one example of these transactions. The guy who did this transaction started with 0.027497 BNB, swapped them to Kinka token via Pancakeswap, then sold them on Apeswap and ended up with 0.029699 BNB. The profit from this transaction is around 0.002 BNB. We will be probing transactions on BSC to avoid high gas fees.
I will ask you to deploy this API somewhere to be able to call it without knowing the code yet. You’ll give us at least two days where we will test your API against multiple transactions. If the similar transaction deems to be not profitable your code will test with a smaller amount and return the profitable amount.
The expected output of the API includes the following:
1. The relative profit compared to the original transaction.
2. The absolute value of the profit in the token in which it’s executed (if the cyclic transaction starts with BNB and ends in BNB, then display the net amount of BNB to gain from this transaction).
3. The profit displayed in USD terms
4. The input amount of tokens to start the transaction with (or at least the relative amount compared to the original transaction)
5. The gas fees and the flashloan interest
Don’t attempt to pressure to release the milestone before testing your API. If we identify flaws in your API we will ask you return the milestone amount.
Afterwards, we expect the freelancer to deliver the above code and assist us with deploying that code on our servers/VPS.
* Second Milestone
Write code that will execute the copycat transaction. We expect this code to operate via flashloans. We will create a small wallet for this purpose. Your code needs to be able to execute transactions without human intervention. We will use the inputs from the code in the first milestone to interact with the last code.
Notice that if it’s more easy for you to create a Web3 front-end for your smart contract, you can do that instead of providing an API.
Please adhere to your bid amount. Freelancers who change their bid amounts after being awarded the project will be blacklisted for future projects.