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?
nikanj|3 years ago
Retail investors try reading it, give up, and quietly agree that the emperor’s new clothes are lovely
wvlia5|3 years ago
3np|3 years ago
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
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
solumos|3 years ago
Terra (Classic): https://docs.wcdc.me/docs/index.html
Anchor: https://docs.anchorprotocol.com/protocol/overview
baby|3 years ago
dsr_|3 years ago
mhluongo|3 years ago
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
HN is better than this.
iqkznnft|3 years ago