Lesson4: simple question about price converter #191
-
Why I sent 0.02ETH in terms of USD into the FundMe contract is greater than MIMIMUM_USD value of 5e18? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@NanaChiki that depends on the price of an ether. If 0.02 ETH in wei is 20000000000000000. |
Beta Was this translation helpful? Give feedback.
-
It depends on the price of the oracle itself.
|
Beta Was this translation helpful? Give feedback.
It depends on the price of the oracle itself.
Say the price of ETH is $2000, then 0.02ETH * $2000 = $40. In you case, if 0.05ETH is less than $5, then the price should be less than this: 0.02ETH * $250 = $5.
There are 2 options for you: