top | item 31636047

(no title)

denvercoder904 | 3 years ago

I find the concept of Curve pools (liquidity pools) like UST/3CRV, dual token systems, algorithmic pegged stablecoins, and services like Achor very complicated to follow. Is there any good literature that I can read the help understand the relationship between these components. Do they map existing components in traditional finance?

discuss

order

nikanj|3 years ago

They are complicated on purpose, as they’re designed to hide the fact it’s just hot air supported by more hot air.

Retail investors try reading it, give up, and quietly agree that the emperor’s new clothes are lovely

wvlia5|3 years ago

theory of: uniswap AMM, dai, ust/luna, is exactly as complicated as it needs to be (not complicated at all if you did calculus 1)

3np|3 years ago

Not a specific resource but a good one to start with would be MakerDAO DAI. Note that when people in the space talk about "will algorithmic stablecoins ever work?" They'r usually referring specifically to noncollateralized or undercollateralized stablecoins (like UST). DAI is overcollaterallized so its fundamental model is not really under debate recently. However, DAI is the first major decentralized stablecoin and a lot of concepts and terminology reappear in later ones so understanding what it does and how it works is a great base for understanding algorithmic stablecoins. Much like understanding Bitcoin is useful when looking at other blockchains.

For AMMs, same applies to Uniswap. Their whitepapers(V1,V2,V3) are both accessible and formal enough to be useful.

Also this paper from Curve https://curve.fi/files/stableswap-paper.pdf

Projects like Terra and Anchor are messy enough (some might say willfully misleading and opaque) that you want to be able to recognize lingo and patterns (and, ideally, source code) to come out with somewhat useful results. In some cases, you'll need to be monitoring their Discord, Twitter, and/or Telegram groups to follow them properly - though in those cases, I've taken that as enough of a red flag in itself to disqualify the entire project from my attention.

frobisher|3 years ago

imo the problem with UST vs DAI was not under vs over collateralisation, but rather that Luna supporting UST had its value tied to UST adoption. On the other hand, DAI is collateralised by things like Eth, which could also in theory crash, but get their value from a much wider ecosystem than just DAI - hence one potentially avoids the circularity.

For a great read on this and more, check out Vitalik's post: https://vitalik.ca/general/2022/05/25/stable.html

pcthrowaway|3 years ago

I second the recommendation to learn about Uniswap. Uniswap was really the beginning of the defi explosion of the last couple of years

baby|3 years ago

Usually DeFi platforms will have a lot of tutorials and documentation. Usually the price of an asset in a pair is computed automatically using the ratio asset1:asset2. Stablecoins also have their own docs. For example, terra’s whitepaper explains the fundamentals (mint tokens if the price is too high, burn tokens if the price is too low).

dsr_|3 years ago

Yes. There is extensive literature on bank runs and similar failures caused by fractional or fraudulent reserves and lack of confidence, insurance, and regulation.

mhluongo|3 years ago

Eh, Curve pools and other invariant-based AMMs have some interesting properties outside traditional finance, bank runs, etc.

I'd read up on the Uniswap constant product invariant (xy=k) and consider reading the Uniswap v2 code (it's a pleasure to read) [0].

Then check out the StableSwap paper by Curve founder Michael Egorov [1]

Finally if you want a well-documented implementation to read in Solidity, check out Saddle [2]. Disclaimer, I helped write the first iteration.

[0] https://github.com/Uniswap/v2-core [1] https://curve.fi/files/stableswap-paper.pdf [2] https://github.com/saddle-finance/saddle-contract/blob/maste...

puranjay|3 years ago

Really unhelpful and not pertinent to the question OP asked at all

HN is better than this.

iqkznnft|3 years ago

You have been radicalized.