Lesson 10 Code-Walk-Get-Amounts-In: Mentioning getAmountOut instead of getAmountIn — Mistake? #13
EvolOfThings
started this conversation in
General
Replies: 1 comment 2 replies
-
|
Hello @EvolOfThings, That was a mistake, I believe. He wanted to say |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Lesson 10, during the explanation of the first iteration of the for-loop, the instructor mentions that the amount of token out (which we already know) is stored in
amounts[n-1], and that thegetAmountOutfunction is used to calculate the token in needed. This occurs at 1:47 in the video.Was this a misspeak, or do we actually call getAmountOut for the first iteration in this context? I'm a bit confused. Can anyone clarify?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions