1: storing data on a blockchain has lots of funky economic implications. who pays for it? how? when? for how long?
here's some thoughts on this thorny ๐ต challenge and how we deal with storage #tokenomics@Mysten_Labs, introducing the #Sui storage fund ๐ฝ๐ซ๐ฅค
2: like other databases, blockchains are useful because you can write stuff into them and read later. โ๏ธ๐
the challenge is what happens in between? someone has to store the data from the moment it's written to the moment it's read. this has a financial cost. ๐ค
3: why is figuring out the tokenomics of storage a new problem? ๐ต๐ด๐ถ๐ท
well, because back in the "old days of blockchain", it was so expensive to write anything on-chain that nobody cared too much about the economics of storage.
4: writing into gold ๐ฅ vs clay ๐งฑ tablets is a useful analogy.
it's so expensive to write on gold, that nobody will care about the costs of storing those tablets. but once you have clay, everyone can write tablets and storage quickly becomes a financial burden.
5: until very recently, blockchain space was so precious, that storage was an afterthought. on Ethereum, writing 1MB of data can easily cost you tens to hundreds of thousands of dollars! ๐ณ
but now, blockchain space has evolved from being a luxury good to a commodity. ๐โก๏ธ๐ฝ
6: what happens if the tokenomics of storage are left unaddressed? ๐ฝ
blockchain storage is a market failure. validators operate the network and need viable business models. so if validators need to store lots of data to operate, they will pass these costs on to the end user๐ฒ๐
7: but remember that the whole issue of storage is one of timing. if i write data into storage and don't pay for it, then validators will pass on those future storage costs to future users. โฒ๏ธโ๏ธ
8: this is what economists call an externality. users who write data into storage today don't internalize its cost, while future users are forced to pay for past storage that they don't own.
when blockchains become like clay tablets, these externalities become BIG ๐ฆฃ๐ณ๐ป
9: externalities occur everywhere, blockchain storage is kind of similar to climate change๐ก๏ธ
current generations (us!) don't internalize that the planet will need to store all our carbon emissions. future generations will face the costs of living with them... that's not fair๐
10: how to solve the tokenomics of storage?
the first step is easy, make sure that if you use storage you pay for it. just like you pay for dropbox or other cloud storage. this shifts the cost of storage to the user who writes data and eliminates the externality. โ ๐
11: in theory everything makes sense. but the tricky details are always in implementation. ๐ฉโ๐ป
since storage is all about timing, the key tokenomics challenge is: if you're going to charge for storage, for how long? โณ๐งต
12: there's two broad ways to deal with storage: for a FINITE or INFINITE amount of time.
FINITE means you pay storage upfront for a fixed period of time and then you either pay more fees or the data is deleted. โฑ๏ธ
INFINITE means you pay for storage once and forever. โพ
13: the INFINITE approach is very hard to design because INFINITE time is a veeeery long time.
how could you possibly ever charge enough fees to cover storage costs foreeeever?? ๐ซค๐ณ๐ง
in Sui, users pay for storage upfront and these fees are deposited in a fund. the fund's size is taken into account when distributing stake rewards and validators receive relatively more rewards than SUI delegators when the fund is larger๐งง๐งง
15: users who store data today pay for it. validators who store the data tomorrow are rewarded for it.
this solves the storage externality. future Sui users are happy, because they need not pay for the storage costs of past users. ๐พ๐๐ช ๐
16: a simple interpretation: it is as if validators borrowed SUI tokens from the storage fund at zero interest, while borrowing SUI tokens from delegators at a positive rate. hence, validators earn relatively more rewards when the storage fund is large. ๐๐น
17: the storage fund design has one key property: it never pays out tokens directly out of its capital!
instead, by indirectly distributing tokens from stake rewards, it can fund storage costs in perpetuity. #Sui's storage fund deals with the storage externality forever. ๐๐ช ๐
18: we designed #Sui's tokenomics to address storage costs forever because we thought it would deliver much better user experience than finite rent models. doing the mental accounting of preparing liquidity and paying for storage on an ongoing basis is very taxing. #relief ๐ฎโ๐จ
19: the cherry ๐ on top is that we've also designed an economic mechanism to incentivize people to delete data: rebates! ๐๐
once on-chain data is no longer useful, users can tell Sui to delete it and they get a partial rebate of their fees in return. ๐
20: new storage writes and rebates of old transactions imply the storage fund's size moves in sync with the amount of data held in on-chain storage. thus ensuring validators are compensated in proportion to how much storage they hold! ๐๐ฆธโโ๏ธ
21: in sum, #Sui's storage fund is at the frontier of blockchain storage tokenomics and optimized for user experience. it eliminates the externality of mis-pricing storage costs and creates incentives to delete stale data. ๐ง๐ง๐ง
Stablecoins are tokens designed such that their market price tracks that of an external asset. Can be linked to gold, to oil, to Bitcoin, pretty much anything. In practice the most successful stablecoins by market cap track the US dollar. 2/n
How do stablecoins maintain their peg?
You need RESERVE ASSETS.
When token price falls below $1: protocol sells reserve assets for tokens, burns tokens, reduces supply, thus increasing price and restoring the peg. 3/n