Skip to content

Added ethers and UniswapV2#17

Open
cipherzzz wants to merge 3 commits intodappuniversity:masterfrom
cipherzzz:master
Open

Added ethers and UniswapV2#17
cipherzzz wants to merge 3 commits intodappuniversity:masterfrom
cipherzzz:master

Conversation

@cipherzzz
Copy link
Copy Markdown

Hey, I created an example with ethers and UniV2. I thought I'd contribute it back - thanks!

@RarebatDeveloper
Copy link
Copy Markdown

Nice sharing. May i know what is the router.address for uniswap? Where can i find it in the documentation?

@RarebatDeveloper
Copy link
Copy Markdown

Get this error "Error: Cannot find module '...\node_modules@studydefi\money-legos\index.js'. Please verify that the package.json has a valid "main" entry" when trying to run the code. It seems like it is due to the @studydefi issue. Any idea on this issue?

@Jasper-Nelligan
Copy link
Copy Markdown

Nice sharing. May i know what is the router.address for uniswap? Where can i find it in the documentation?

I tried using the contract address from here and it worked https://etherscan.io/address/0x7a250d5630b4cf539739df2c5dacb4c659f2488d

@SloboZjalic
Copy link
Copy Markdown

0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D

@SloboZjalic
Copy link
Copy Markdown

get this error no matter what i try, need help?
TypeError: web3.eth.Contract is not a constructor
at Object. (C:\Users\S Zjalic\Desktop\CRYPTO\coding\BOTS\price-bot\index.js:23:32)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

@pri-3x
Copy link
Copy Markdown

pri-3x commented Nov 16, 2022

Get this error "Error: Cannot find module '...\node_modules@studydefi\money-legos\index.js'. Please verify that the package.json has a valid "main" entry" when trying to run the code. It seems like it is due to the @studydefi issue. Any idea on this issue?

That means @studydefi\money-legos is not installed in your project.

Try: npm i @studydefi/money-legos

@pri-3x
Copy link
Copy Markdown

pri-3x commented Nov 16, 2022

get this error no matter what i try, need help? TypeError: web3.eth.Contract is not a constructor at Object. (C:\Users\S Zjalic\Desktop\CRYPTO\coding\BOTS\price-bot\index.js:23:32) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)

"npm i ethers" will solve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants