GithubHelp home page GithubHelp logo

arbitrage-bot-between-uniswap-and-sushiswap-with-flashloans's Introduction

πŸ‘¨β€πŸ’» Ignacio Ceaglio πŸ’»πŸš€

Senior Solidity Developer + Technical Project Architect + People's Person = Blockchain C.T.O. On-Demand

πŸ‘¨πŸ»β€πŸ’»My Professional Passion is in Planning, Architecting, Developing and Testing projects like Open Art Market and AngelBlock that help to democratize Valuable Investment opportunities for the common people and connect Real Word Assets (R.W.A.) to the Blockchain.

My clients and co-workers (Recommendations below) have praised me for being, in their own words; β€œvery curious, pro-active, positive, humble, helpful, diligent, intelligent, passionate and ambitious”.πŸ‘¨πŸ»β€πŸ’»

πŸ”­ Artizen.Fund Early Adopter.
β›“ Open Art Market (Production) Foundational Solidity Smart Contracts Developer.
πŸ“Š AngelBlock Early Investor.
🌦 ANZAIRU and ⚽️VERTULO ex-C.T.O.

followers total stars profile views linkedin upwork


πŸ› οΈ Languages and Tools

Solidity

JavaScript

TypeScript

Hardhat

HTML

CSS

React

Redux

NodeJS

mongodb

GitHub

Git




πŸ—³οΈ What people say:

Reviews in Linkedin

Review in UpWork #1

Review in UpWork #2

Review in UpWork #3

Review in UpWork #4

πŸ† GitHub Trophies:

πŸ‘¨β€πŸ’» About me:

πŸ‘¨πŸΌβ€πŸ’»Blockchain C.T.O./Tech Guy for HireπŸ’»: πŸ€”Are you a Blockchain Start-Up that doesn't have a C.T.O./Have one without Real Life Coding Skills?πŸ€” πŸ’’No problem! I can support you if you Temporarily need a C.T.O. for:

✳️ Hiring a Software Development/Technical Talent for creating your M.V.P.
✳️ Understanding the processes and struggles of Blockchain Software Development.
βœ”οΈ"It's not about the finished Product; it's about the Process".
βœ”οΈ"It's not about Coding, it's about Communication".
βœ…I Understand for you the Complex Technical things that you need to know, and I Communicate for you to the Developers the needs that you don't know how to explain.

πŸ“”I feel very comfortable teaching things to others and leading small teams.
πŸ“ˆPassionate about Investments, GeoPolitics and Economics.
πŸ“šI am very ambitious and curious and I am continually learning new things.

⌨️I get a lot of messages from recruiters. To respect both of our time, instead of messaging me, please fill out this form: https://forms.gle/tdW6E2nHVWxmAh9Z9

πŸ˜‚ Random Dev Meme


arbitrage-bot-between-uniswap-and-sushiswap-with-flashloans's People

Contributors

gwmccubbin avatar nachoxt17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

arbitrage-bot-between-uniswap-and-sushiswap-with-flashloans's Issues

Where is the "dApp"

Hi, I've set up the repository via the .env configuration. I have successfully deployed the contract on the Ropsten test network.
It says in the documentation that the "dApp" runs on localhost:3000, however I don't see any code in this repo creating a user interface or even running a server on localhost:3000. Any clarification on this?

Issue on npm start after deploying contract to ropsten testnet

I have successfully deployed the contract on the Ropsten test network.

0x582C29C954f4C6dB9D63Ab16b80a0b17Ea4174E6

When running npm start, I receive this error stating that the getPair function may be having an issue? I have the index.js file configured as default from the repository. Seems that the script index.js is failing in the provider.on("block", async (blockNumber) => { try block, but I can't sort out exactly why this error is occurring. Any help is greatly appreciated, and thanks for putting this code out there!

$ npm start

Error:

DAI Amount:_ 500
Bot started!
(node:42905) UnhandledPromiseRejectionWarning: Error: call revert exception (method="getPair(address,address)", errorSignature=null, errorArgs=[null], reason=null, code=CALL_EXCEPTION, version=abi/5.1.2)
    at Logger.makeError (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/logger/lib/index.js:180:21)
    at Logger.throwError (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/logger/lib/index.js:189:20)
    at Interface.decodeFunctionResult (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/abi/lib/interface.js:289:23)
    at Contract.<anonymous> (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/contracts/lib/index.js:329:56)
    at step (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/contracts/lib/index.js:48:23)
    at Object.next (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/contracts/lib/index.js:29:53)
    at fulfilled (/home/eric/Desktop/projects/crypto_shit/Arbitrage-Bot-between-UniSwap-and-SushiSwap-with-FlashLoans/node_modules/@ethersproject/contracts/lib/index.js:20:58)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
(node:42905) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:42905) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Unable to deploy the ArbitrageFlashLoaner SC

I'm getting the following error when trying to deploy the ArbitrageFlashLoaner SC to Ropsten through Infura.io.
Hardhat v2.7.1.

C:\DEV\Arbitrage-Uniswap-Sushiswap>npx hardhat run scripts/deploy.js --network ropsten
Error HH606: The project cannot be compiled, see reasons below.

The Solidity version pragma statement in these files don't match any of the configured compilers in your config. Change the pragma or configure additional compiler versions in your hardhat config.

  * contracts/ArbitrageFlashLoaner.sol (^0.6.6)

To learn more, run the command again with --verbose

Read about compiler configuration at https://hardhat.org/config

Here is my hardhat.config.js:


require("@nomiclabs/hardhat-waffle");

const INFURA_API_KEY = "MY INFURA API KEY";

// Replace this private key with your Ropsten account private key
// To export your private key from Metamask, open Metamask and
// go to Account Details > Export Private Key
// Be aware of NEVER putting real Ether into testing accounts
const ROPSTEN_PRIVATE_KEY = "MY METAMASK PRIVATE KEY";

/**
 * @type import('hardhat/config').HardhatUserConfig
 */
module.exports = {
    solidity: "0.7.3",
    networks: {
        ropsten: {
            url: `https://ropsten.infura.io/v3/${INFURA_API_KEY}`,
            accounts: [`${ROPSTEN_PRIVATE_KEY}`]
        }
    }
};

In addition, can you please explain the following in .env:

  • Please explain FLASH_LOANER="0x455835F93a2eAb153B5f5D6F387C49AaA8ab9007"
  • Difference between PRIVATE_KEY and ROPSTEN_PRIVATE_KEY (from your Metamask wallet?)
  • INFURA_KEY - Is this the Infura Project ID?

Cannot find path to SafeMath.sol when deploying SC.

I have gotten to the point of trying to deploy the ArbitrageFlashLoaner SC but there appears to be some odd issue with the pathto SafeMath.sol:

image

Unable to find @openzeppelin/contracts/math/SafeMath.sol from contracts/UniswapV2Library.sol. Here are the files in my project:

image

Is there a way to be able to debug the deployment process where I could pause it and see the variable values throughout the process?

getPair failing for SushiSwap

any idea why the getPair function is failing on SushiSwap? The same call to Uniswap works!

// Ropsten testnet
const daiAddress = "0xf80a32a835f79d7787e8a8ee5721d0feafd78108";
const wethAddress = "0xf70949bc9b52deffcda63b0d15608d601e3a7c49";

sushiEthDai = new ethers.Contract(
await sushiFactory.getPair(wethAddress, daiAddress),
UniswapV2Pair.abi,
wallet
);
reason: null,
code: 'CALL_EXCEPTION',
method: 'getPair(address,address)',
errorSignature: null,
errorArgs: [ null ],
address: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac',
args: [
'0xf70949bc9b52deffcda63b0d15608d601e3a7c49',
'0xf80a32a835f79d7787e8a8ee5721d0feafd78108'
],
transaction: {
data: '0xe6a43905000000000000000000000000f70949bc9b52deffcda63b0d15608d601e3a7c49000000000000000000000000f80a32a835f79d7787e8a8ee5721d0feafd78108',
to: '0xC0AEe478e3658e2610c5F7A4A2E1777cE9e4f2Ac',
from: '0x6616CC3E907a84Bf40578D3b455233bA3C7D4309'
}

Cannot find ./abi folder and json

Hi, congratulations on this development

I'm trying to get it up and running so I can build on it.

I run into the problem that after successfully deploying my contract on the network. I throw the run command and it returns me that it cannot find the files inside the abi / folder. I don't know if I should fill this in manually. This is the mistake I take

ffvfvfvfvfvf

Still download json files to complete it but I'm afraid they are from other versions. These jsons inside abi / the ones I got from another repo, I'm afraid the versions and compilation don't match.

vffvvffvvvfvf

When I throw the first command

npx hardhat run scripts/deploy.js --network ropsten

vffvvfvfvfv

If I add the abi / xx.json manually the error that I find is this

vfvfvfvfvfvfvfvfvfvf

In the end, I think that the necessary .abi / will not be generated. Thanks for your time

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.