Hey all. I was looking into `xUSD` by stream finance collapse and had a different question.

I wonder how `xUSD` was 1$. Here is why I ask this.

* Alice deposits 100 USDC and gets exactly 100 StableWrapper amount tokens. * Alice stakes 100 StableWrapper into Vault(which is exactly `xUSD`). * Later on, Alice ends up with 100 shares – which is basically the balance of alice on `xUSD` token.

Later on, off-chain service uses users’ depositted funds(100 USDC in this case) to make some farming in other defi projects. Assume it made profit.

So now, Alice can use 100 shares of balance(which is basically 100xUSD Alice owns) which gets her more than 100 USDC.

So how was `xUSD` pegged to 1$ ? I was looking into https://github.com/StreamDefi/contracts/tree/main/src where `StreamVault` is the `xUSD` contract basically.

submitted by /u/SubjectMoney3641 [link] [comments]r/CryptoCurrencyRead More

You might also be interested in reading Swedish gunman appears to have shot himself, police say – but motive still unclear.