Doubt about sending other native tokens to a contract like FundMe from lesson 4 #5634
-
Hi all, I tried to search if anyone had done this question before and I didn't find anything, so if is a duplicate I would be happy if anyone could post the link to the question already done. This being said, I was watching the lesson 4 and after Patrick said that in the If I already had 1 ETH of balance in the contract, and someone send 5 MATIC, by what Patrick says in the course the transaction would go through with success and now the balance of my contract would have some ETH and MATIC as well. I was wondering if when we call the Thanks in advance for anyone joining the discussion. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@0xREALAldc Let me first clear the difference! There are two types of currencies (You should search on ChatGPT or youtube for detailed differences).
We cannot send native coins to other blockchains, such as we cannot pay with Matic on the Ethereum Blockchain. But we can use one token on any other blockchain (it is the underlying thing first we convert the native coin to ERC20 representation and then send it as an ERC20 token to other blockchains). I am not sure it makes sense to you right now but you just need to understand the difference between coin and token so search about it. |
Beta Was this translation helpful? Give feedback.
-
Hey Aly, thanks for your reply. I understand the difference between the native token and a ERC20 token, I was just wondering while watching the lesson 4 about what it would happen if someone sent to the contract that we develop another token that isn't ETH....but now thinking more about it, and after your answer also, I realized that is impossible to someone send to our contract another token that isn't ETH right? I was wondering about how a contract holds more than one token and how we can withdraw them from it, but I guess Patrick must teach us that in the DeFi lessons. Thanks for your reply my friend, you helped me to think more about my question and understand better the concept of the contract that we developed. |
Beta Was this translation helpful? Give feedback.
@0xREALAldc Let me first clear the difference!
There are two types of currencies (You should search on ChatGPT or youtube for detailed differences).
We cannot send native coins to other blockchains, such as we cannot pay with Matic on the Ethereum Blockchain. But we can use one token on any other blockchain (it is the underlying thing first we convert the native coin to ERC20 representation and then send it as…