Smart Contract - flashloan Arbitrage
Budget: $30 – $250 USD
smart-contract is able to automatically discovering, evaluating, rating, pair matching, routing,submitting for possible arbitrage opportunities then execute arbitrage between currencies, using flash loans, between multiple DEX exchanges
Smart Contract for arbitrage trading between DEXs only on multiple chains or starting with MATIC,binance smart chain.. Not using centralized exchanges.All decentralised exchanges using AMMs or DEXs..
The smart contract should contain a function to trade from ex: Uniswap to Sushiswap, and a function to trade from Sushiswap to Uniswap. These functions shall only be called by the contract owner.
The two functions should take the following parameters:
-Token Address of the token to be borrowed from Aave (usually DAI, if possible WETH).
-Token address of the token which is to be bought in Exchange A (this can be the same as the first parameter, then this token is not to be bought from Exchange A but is to be continued with the selling in Exchange B)
-Token address of the token to be sold in Exchange B
-Token amount to be borrowed from Aave, which will be used for the trade.
An arbitrage trade should be executed as follows:
1. flash loan of specified tokens (e.g. DAI, WETH) in the specified amount from Aave.
2. perform an exchange with the borrowed tokens into the specified token on Exchange A (or skip this step if the borrowed token is the same as the token to be bought)
3. swap the exchanged tokens again on Exchange B into the other specified token.
4. check if the exchange + aave fee has made a profit > 0, otherwise you will get an error message.
5. pay back the flash loan + fee to Aave
Need to use CHI token to make the fee cheaper and optimize the code to use the least gas
run on either Windows or Linux CLI
If you understand the requirements, I would be happy to place an award
have you been one in the past we can customize for my use? have you built an arbitrage scanner/ trading in the past, I really would prefer to work with someone familiar with this type of project. If you can similar work you can show me that would help.
Smart Contract for arbitrage trading between DEXs only on multiple chains or starting with MATIC,binance smart chain.. Not using centralized exchanges.All decentralised exchanges using AMMs or DEXs..
The smart contract should contain a function to trade from ex: Uniswap to Sushiswap, and a function to trade from Sushiswap to Uniswap. These functions shall only be called by the contract owner.
The two functions should take the following parameters:
-Token Address of the token to be borrowed from Aave (usually DAI, if possible WETH).
-Token address of the token which is to be bought in Exchange A (this can be the same as the first parameter, then this token is not to be bought from Exchange A but is to be continued with the selling in Exchange B)
-Token address of the token to be sold in Exchange B
-Token amount to be borrowed from Aave, which will be used for the trade.
An arbitrage trade should be executed as follows:
1. flash loan of specified tokens (e.g. DAI, WETH) in the specified amount from Aave.
2. perform an exchange with the borrowed tokens into the specified token on Exchange A (or skip this step if the borrowed token is the same as the token to be bought)
3. swap the exchanged tokens again on Exchange B into the other specified token.
4. check if the exchange + aave fee has made a profit > 0, otherwise you will get an error message.
5. pay back the flash loan + fee to Aave
Need to use CHI token to make the fee cheaper and optimize the code to use the least gas
run on either Windows or Linux CLI
If you understand the requirements, I would be happy to place an award
have you been one in the past we can customize for my use? have you built an arbitrage scanner/ trading in the past, I really would prefer to work with someone familiar with this type of project. If you can similar work you can show me that would help.