Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 78889

React (also known as React.js or ReactJS) is a JavaScript library for building user interfaces. It uses a declarative paradigm and aims to be both efficient and flexible.

0 votes
1 answer
1k views

Error when trying to divide value after calling getAmountsOut from uniswap router 02

I am having a lot of problems implement a swap via metamask using the uniswap router 02. I am able to call the getAmountsOut function but get an error when trying to do the following: const getAmountO …
blockchainWizard's user avatar
1 vote
Accepted

Error when trying to divide value after calling getAmountsOut from uniswap router 02

Thanks to Ismael for helping solve the issue. The problem was solved by converting the amounts[1] to a number. Here's what I did and it works: // in useeffect const getAmountOutMin = async () => { …
blockchainWizard's user avatar