Alonso de Gortari Profile picture
Jul 29 โ€ข 21 tweets โ€ข 6 min read
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?? ๐Ÿซค๐Ÿ˜ณ๐Ÿง
14: introducing #Sui storage fund:

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. ๐Ÿ’ง๐Ÿ’ง๐Ÿ’ง

You can read more here: docs.sui.io/learn/tokenomiโ€ฆ

โ€ข โ€ข โ€ข

Missing some Tweet in this thread? You can try to force a refresh
ใ€€

Keep Current with Alonso de Gortari

Alonso de Gortari Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @alonsodegortari

May 9
What's going on with #LUNA and #UST? Quick comment on the economic design on stablecoins, from a paper @ccatalini and I wrote last year.

Ultimately, #stablecoin design is all about the risk profile of the reserve's assets. What does that mean? ๐Ÿงต๐Ÿ‘‡1/n

papers.ssrn.com/sol3/papers.cfโ€ฆ
First off, what's a stablecoin?

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
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(