Search Results
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 |
Uniswap is a decentralized finance protocol that is used to exchange cryptocurrencies.
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. …
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 () => {
…