On-chain compression for inactive accounts to recover locked rent #2162
ZygmuntJakub
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks! I was curious how much rent could be unlocked on Drift using on-chain compression, so I scanned all 207,987
Useraccounts on mainnet (filtered by discriminator +dataSize: 4376). "Inactive" = no transaction in the last 30 days.Scan script here
That's a lot of 4,376 B accounts sitting idle.
I then ran an on-chain benchmark using densol, a
no_stdLZ4 library that compresses inside the SBF VM. It fetched 100 random inactive accounts from mainnet and ran compression on localnet:Benchmark script here
Estimated total recoverable across all inactive accounts is ~5,600 SOL. Compression could be reversed automatically when an account sees traffic again. Decompress on first access, recompress if it goes quiet.
Has this ever been considered? Would love to hear your thoughts on this.
Beta Was this translation helpful? Give feedback.
All reactions