Lesson 4 function fund minimumUsd = 50 * 1e18 #1316
Answered
by
eli5mecoding
eli5mecoding
asked this question in
Q&A
-
Why we need to multiply 50 * 1e18 if (getConversionRate(msg.value) is already without the 18 exponential? Let's say I add now 6000000000000000000 at Value (6 eth) (getConversionRate(msg.value) would have to be now around 9000 how can this be ever > 50 * 1e18? |
Beta Was this translation helpful? Give feedback.
Answered by
eli5mecoding
Jul 25, 2022
Replies: 1 comment
-
nevermind, please disregard. I forgot a basic math concept that 1500 * 1e18 * 1e18 = 1e36 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eli5mecoding
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nevermind, please disregard. I forgot a basic math concept that 1500 * 1e18 * 1e18 = 1e36