Replies: 3 comments
-
Hello @weber77 , Firstly let me start with mentioning that largely there is no dumb question as far as you are asking to understand clearly what is confusing to you. So now to your questions i would answer them in the order which you asked them WHY DO SOME SMART CONTRACT NOT ACCEPT NATIVE TOKEN WHAT IS MEANT BY RE-WRAPPING A TOKEN HOW DOES RE-WRAPPING MAKE IT ACCEPTABLE HOW DOES PREVENTING A POSITION FROM BEEN LIQUIDATED HARM THE PROTOCOL imagine you borrowed $100 from a lending&borrowing platform by supplying them 2 ETH (assuming 1 ETH is $100), that means the protocol have $200 in reserve and have only given out $100, all of a sudden the value of ETH drop from (1ETH => $100) to (1ETH => $80) on seeing that the protocol tries to liquidate the position so that they end up with a balance of $160 (your 2ETH x the current price ($80)) but they was unable to do so and then the price of ETH further decline to (1ETH => $20) at this point the protocol borrowed you $100 but now all they have in reserve is $40 (your 2ETH x the current price ($20)). Now is the protocol running a profitable business or a business that would close down ? |
Beta Was this translation helpful? Give feedback.
-
@weber77 Here are the answers;
Ans: Native tokens are just limited to a blockchain. For example, ethereum has its native token
Answer: First you should understand wrapping. Wrapping is converting the actual assets such as BTC, or ETH to a wrapped token so they can perform the protocol's operations. We need this for two reasons;
Re-wrapping is just the opposite of all this. When you want your actual assets back then you go to the protocol and provide them with their wrapped tokens and in return, they provide your assets back.
Ans: The protocols give an option to users to deposit their assets (lending) to get some other tokens in return (borrowing). Users want to do this for many reasons. Let's say Alice has 1 ETH (value $2000) but he doesn't want to sell it because he knows its value will go up soon, but he needs some money urgently. So he has the option to deposit his ETH to a DeFi platform and take some USDT in return for some additional fee which he needs to pay for this service. However, protocols only allow borrowing up to 80% of the value of actual tokens (it depends on a token to token) so the protocol should always be in profit. Alice borrowed 1600 USDT worth of $1600 from a protocol and went to resolve his issues. Suddenly, the ETH price decreases to $1700 which is very near to $1600 which Alice borrowed from the protocol. Now protocol wants its money back because if it doesn't do this then soon it will be in loss. So it will allow other members of the protocol to pay Alice's borrowed amount ($1600) and get his deposited ETH (worth $1700). Others will see a $100 profit in this situation then they will happily want to this trade. This way protocol will be safe from loss. Now you can understand if anyone stops this process then soon protocol will face a loss. |
Beta Was this translation helpful? Give feedback.
-
Learning a lot from the explanations. Thanks :) @alymurtazamemon @EngrPips |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When auditing the GMX protocol there was a mention of re-wrapping a native token, in order for it to be accepted by a smart contract to prevent a DoS.
My questions:
Beta Was this translation helpful? Give feedback.
All reactions