News for hackers. Stuff that matters.
Re:Tether starting to lose its peg too, after Terra did by tcharlton on Thursday May 12, 2022 @03:49AM (#31350546)
Matt Levine did a great write up of algorithmic stablecoins here: https://www.bloomberg.com/opinion/articles/2022-05-11/terra-...

"1. You wake up one morning and invent two crypto tokens.

2. One of them is the stablecoin, which I will call “Terra,” for reasons that will become apparent.

3. The other one is not the stablecoin. I will call it “Luna.”

4. To be clear, they are both just things you made up, just numbers on a ledger. (Probably the ledger is maintained on a decentralized blockchain, though in theory you could do this on your computer in Excel.)

5. You try to find people to buy them.

6. Luna will trade at some price determined by supply and demand. If you make it up on your computer and keep the list in Excel and smirk when you tell people about this, that price will be zero, and none of this will work.

7. But if you do a good job of marketing Luna, that price will not be zero. If the price is not zero then you’re in business.

8. You promise that people can always exchange one Terra for $1 worth of Luna. If Luna trades at $0.10, then one Terra will get you 10 Luna. If Luna trades at $20, then one Terra will get you 0.05 Luna. Doesn’t matter. The price of Luna is arbitrary, but one Terra always gets you $1 worth of Luna. (And vice versa: People can always exchange $1 worth of Luna for one Terra.)

9. You set up an automated smart contract — the “algorithm” in “algorithmic stablecoin” — to let people exchange their Terras for Lunas and Lunas for Terras.

10. Terra should trade at $1. If it trades above $1, people — arbitrageurs — can buy $1 worth of Luna for $1 and exchange them for one Terra worth more than a dollar, for an instant profit. If it trades below $1, people can buy one Terra for less than a dollar and exchange it for $1 worth of Luna, for an instant profit. These arbitrage trades push the price of Terra back to $1 if it ever goes higher or lower.

11. The price of Luna will fluctuate. Over time, as trust in this ecosystem grows, it will probably mostly go up. But that is not essential to the stablecoin concept. As long as Luna robustly has a non-zero value, you can exchange one Terra for some quantity of Luna that is worth $1, which means Terra should be worth $1, which means that its value should be stable.

All of this is, I think, quite straightforward and correct, except for Point 7, which is insane. If you overcome that — if you can find a way to make Luna worth some nonzero amount of money — then everything works fine. "

Re:Tether starting to lose its peg too, after Terra did by ezzaf on Thursday May 12, 2022 @03:57AM (#31350591)
An important distinction between Terra (what is being described there) and Tether (what this thread is discussing), is that Tether claims to be backed by real assets.
Re:Tether starting to lose its peg too, after Terra did by robocat on Thursday May 12, 2022 @05:16AM (#31351231)
There is no strong distinction in backing: USDT just has a slightly more believable story.

Also the price of a stablecoin can shift from it's peg, even if it has 100% backing, when there is latency/congestion/spread/volume for the arbitrage trade.

That said, there is a whole heap of plenty of evidence that USDT is not backed by dollars 1:1.

Re:Tether starting to lose its peg too, after Terra did by bspammer on Thursday May 12, 2022 @04:57AM (#31351066)
One thing I don’t understand here: where does the smart contract get the information of the current luna/usd exchange rate? It can’t be an api call surely, it must be on-chain somehow.
Re:Tether starting to lose its peg too, after Terra did by charcircuit on Thursday May 12, 2022 @07:42AM (#31352527)
Validators vote on the current exchange rate.

https://docs.terra.money/docs/develop/module-specifications/...

Re:Tether starting to lose its peg too, after Terra did by Sandworm5639 on Thursday May 12, 2022 @09:28AM (#31353843)
Do I understand this correctly: there's no inherent incentive to put the "correct" price, they just need to agree with each other. Essentially playing "Guess 2/3 of the average" but it's just "Guess the average".
Re:Tether starting to lose its peg too, after Terra did by charcircuit on Thursday May 12, 2022 @07:10PM (#31361194)
Validators have staked a lot of LUNA and it's in their best interest not to crash the ecosystem.
Re:Tether starting to lose its peg too, after Terra did by bspammer on Thursday May 12, 2022 @07:48AM (#31352573)
Ah, that makes more sense. Thanks for the link, all this stuff is so interesting from a thought experiment point of view.
Re:Tether starting to lose its peg too, after Terra did by charcircuit on Thursday May 12, 2022 @06:21PM (#31360809)
It's really fascinating all of the stuff that exists or at least has been tried out in the cryptocurrency space.
Re:Tether starting to lose its peg too, after Terra did by buzzin_ on Thursday May 12, 2022 @08:00AM (#31352712)
Miners put the price (in dollars) in the blocks, and the medium price is taken as the price. You get penalized if the price you put in is 1 standard dev. or more off. You get 1% less of the block award you would get normally.
Re:Tether starting to lose its peg too, after Terra did by kevingadd on Thursday May 12, 2022 @07:15AM (#31352300)
Things like this rely on off-chain "oracles"
Re:Tether starting to lose its peg too, after Terra did by bspammer on Thursday May 12, 2022 @07:41AM (#31352520)
I know the thing is crashing and burning as we speak, but that seems like a crazy single point of failure for something claiming to be decentralized...

What if the oracle has downtime?

Re:Tether starting to lose its peg too, after Terra did by rawoke083600 on Thursday May 12, 2022 @09:58AM (#31354268)
Many Many nodes :) i.e distributed
Re:Tether starting to lose its peg too, after Terra did by Scarblac on Thursday May 12, 2022 @04:11AM (#31350689)
There is also the point that once trust in this ecosystem erodes, there will be tremendous pressure on Luna as people try to get rid of both their Luna and their Terra, and whatever you did to achieve 7 may just suddenly disappear. The spiral that's happening now.

And what coins do is in effect marketing for all other coins. If one stablecoin crashes, trust in others will erode.

Re:Tether starting to lose its peg too, after Terra did by nullc on Thursday May 12, 2022 @07:54AM (#31352644)
> All of this is, I think, quite straightforward and correct, except for Point 7, which is insane. If you overcome that — if you can find a way to make Luna worth some nonzero amount of money — then everything works fine. "

Their solution was to staple a HYIP scheme to the side of it-- a service where you can deposit coins and get a 20% annual return.

...

Re:Tether starting to lose its peg too, after Terra did by meigwilym on Thursday May 12, 2022 @05:26AM (#31351329)
> If you make it up on your computer and keep the list in Excel and smirk when you tell people about this, that price will be zero, and none of this will work.

This made me genuinely laugh out loud! But not just because it's funny, but it's also the essence of all digital coinage.

Re:Tether starting to lose its peg too, after Terra did by randomsearch on Thursday May 12, 2022 @04:32AM (#31350849)
I don't understand.

How do you ensure you have enough Luna to maintain the exchange? If you hold enough Luna but then the price of Luna goes down, where do you get your extra Luna from? A run on your promise kills you.

Re:Tether starting to lose its peg too, after Terra did by FeepingCreature on Thursday May 12, 2022 @04:35AM (#31350871)
You just mint Luna at will.

The problem occurs when the amount of Luna that trades for $1 becomes undefined because nobody is willing to do the trade anymore.

Re:Tether starting to lose its peg too, after Terra did by randomsearch on Thursday May 12, 2022 @05:12AM (#31351198)
Eh, but minting Luna increases the supply of Luna and thus devalues it, therefore a run means that the price of Luna increasingly drops as you mint more, meaning you have to mint more Luna, it heads to zero, you're dead. It's the opposite of stable, because a run actually accelerates itself. What am I missing here?
Re:Tether starting to lose its peg too, after Terra did by Khoth on Thursday May 12, 2022 @05:26AM (#31351332)
When the price drops, people on reddit start saying "buy the dip it's going to the moon!" to lure in some new marks.

In the long run you're right though. Eventually you run out of people who believe them and you get the events of the last few days.

Re:Tether starting to lose its peg too, after Terra did by wikfwikf on Thursday May 12, 2022 @05:36AM (#31351413)
You're not missing anything, that is literally how it works and the reason it is now failing.
Re:Tether starting to lose its peg too, after Terra did by FeepingCreature on Friday May 13, 2022 @06:19AM (#31365463)
The balance is ostensibly that you do get some tangible rewards for Luna. But when the expected value of those drops below the outstanding balance as well, you still have a death spiral.
Re:Tether starting to lose its peg too, after Terra did by pyinstallwoes on Thursday May 12, 2022 @04:54AM (#31351025)
So you’re saying it’s always been a contest of belief.
Re:Tether starting to lose its peg too, after Terra did by rocqua on Thursday May 12, 2022 @05:01AM (#31351113)
It very definitely is.
Re:Tether starting to lose its peg too, after Terra did by rocqua on Thursday May 12, 2022 @05:01AM (#31351108)
You print luna and 'burn' terra. Or when people get terra you print terra and burn luna. The luna tokens supposedly have value because they get a share of the transaction fees.

The printing of luna when people sell terra should be offset by luna having been burned when the terra was printed. Ideally (when the price of luna is growing) then you print less luna at sale time than you burned earlier when the terra was printed. This decreases supply of luna, making luna worth more.

Re:Tether starting to lose its peg too, after Terra did by prox on Thursday May 12, 2022 @04:08AM (#31350674)
So why would one want to have Luna when you got Terra? I know Terra is backed, I know Luna is speculation, not any different from doing a roulette game.
Re:Tether starting to lose its peg too, after Terra did by Dagonfly on Thursday May 12, 2022 @05:13AM (#31351209)
Because it's an intentionally obtuse Ponzi scheme. You can stake Terra on Anchor protocol which was advertised as up to 20% yoy return for lending your Terra. This creates demand for Terra, which in turn creates demand for Luna, as you can only mint new Terra by burning Luna. As long as there are newcomers buying into the ecosystem, Luna will increase in value.
Re:Tether starting to lose its peg too, after Terra did by neilwilson on Thursday May 12, 2022 @04:52AM (#31351015)
Luna gets the returns from the assets the 'real money' was invested in. Terra doesn't.

The people using Terra give up their returns to Luna holders for the convenience of a universally acceptable exchange medium that is pegged to something else of value that isn't universally acceptable.

As with all leveraged investments to problems occur when the underlying real assets fail to perform as expected. Or at worst don't exist at all.

Re:Tether starting to lose its peg too, after Terra did by unmole on Thursday May 12, 2022 @05:32AM (#31351379)
There is no upside to holding Terra. If the system works, it'll always be grounded to 1 dollar. Luna on the other hand can go to the moon.

The names are the cleverest part of the whole scheme.

Re:Tether starting to lose its peg too, after Terra did by bspammer on Thursday May 12, 2022 @04:37AM (#31350885)
More accurately why would you want either when the whole thing is propped up by marketing hype.

To properly answer your question, Terra has no upside: no way to 10x. So yes, gambling.

Re:Tether starting to lose its peg too, after Terra did by leodriesch on Thursday May 12, 2022 @04:37AM (#31350884)
Terra does not move in value. It’s like owning cash vs owning stocks.

The cash is less risky but it’s value does not change (apart from inflation).

Stocks are more risky but may give you profit over time.

Re:Tether starting to lose its peg too, after Terra did by prox on Thursday May 12, 2022 @05:47AM (#31351497)
But could I trade Terra outside of this system? And say to my buddy, here is 50 Terra, and he expect it to be 50 dollars? And wouldn’t that also create an economic impetus to trade it a like a stock?
Re:Tether starting to lose its peg too, after Terra did by charcircuit on Thursday May 12, 2022 @04:29AM (#31350825)
>So why would one want to have Luna when you got Terra?

There are 3 different things: Governance related, market module related, and staking related.

You can spend 50 LUNA to submit a governance proposal. The second is to stake your LUNA. When your LUNA is staked the first benefit is that you can vote on governance proposals. Proposals can be onchain changes such as modifying a parameter or an offchain change which people should respect even if there is nothing technically forcing them to follow it.

There is a limited amount of UST that exists so what happens if more people want UST? You can burn LUNA to mint new UST. In times where the demand for UST is strong enough to make UST go above $1 it may be profitable for someone to burn their LUNA to mint UST.

Every transaction has gas fees. Any swaps between stable coins have a tobin tax. Using the market module to exchange UST for LUNA has a spread fee. All of these fees are collected and then distributed to the stakers. To help protect against times when the protocol is less active the fees are actually spread out over time. Right now every 5 blocks 5/9400000 of the reward pool is paid out to people staking. 9400000 is how many blocks there are in 2 years.

Re:Tether starting to lose its peg too, after Terra did by FabHK on Thursday May 12, 2022 @06:32AM (#31351897)
> an offchain change which people should respect even if there is nothing technically forcing them to follow it

Ah, the good old trust-less blockchain. Proved by maths, not by trust and decency and conventions like traditional finance.

Re:Tether starting to lose its peg too, after Terra did by charcircuit on Thursday May 12, 2022 @07:31AM (#31352428)
The vote is still proved by maths. Sometimes you want to just be able to poll the community. For example you may want to have your project translated into Spanish so you create a proposal to pay someone from the community fund $500 for translating the project's site and documentation.