MidTermDev (@MidTermDev) header
MidTermDev (@MidTermDev) profile picture

Founder @LeanClient

Joined November 2024
Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)Photo by MidTermDev (@MidTermDev)
23
7
44
18,998
Anticipating our swap from the C lean compiler to a fully lean native compiler today. Doing some final checks.
1
2
2
26
821
In preparation for “Q day”
2
14
1,172
Today we will be teaching you how to 1 shot your entire Fable 5.2 weekly limit in ~ 2 hours (high effort ultra code)
For our next trick, we will rewrite the lean compiler.. in Lean!
3
3
44
1,986
For our next trick, we will rewrite the lean compiler.. in Lean!
1
6
1
43
3,075
Lean Solana Kit v0.1.2 is out, and the prover now handles a lot more on its own. Since v0.1: 🔹 More programs proven with no proof by hand. A vault program now proves automatically in 6 s (the counter went from 20 s to 5 s). Loops that zero account data and both of the compiler's account-walk shapes are handled too. The prover can now state its theorem for inputs exactly as the Solana runtime lays them out. Every proof rests on Lean's three standard axioms only. 🔹 The validator's vote guard is now proven to hold across restarts. On restart it rebuilds itself from the full record on disk, and a theorem shows it refuses any vote that contradicts a vote it already sent. 🔹 Mainnet found a bug and the client stopped itself. One transaction wrote 3,400 bytes in a single instruction. Agave's built-in programs reject instruction data past 1,232 bytes, and our client didn't. The bank hash differed, so the node stopped instead of moving on. The fix is in, and 2,008 blocks have been replayed with every hash matching. 🔹 Executor speed and size. We fixed a bug in parallel execution and compacted the account log from 107 GB to 10.5 GB. Restarts now take seconds, not minutes. Still to come: automatic proofs for programs that call other programs (CPI).
3
12
60
2,027
A quick fix to improve user experience. Now back to cooking formally verified machine provable defi. 🫶
lSOL update: Unstake at full value. 1 lSOL = 1 SOL, backed by staked SOL on-chain. Unstake turns your lSOL into your own stake account, claimable as SOL when the epoch ends. Additionally, 2 hop routing is being added to the swap page in the next ~30 mins to allow users to swap any token directly to SOL through the lSol / SOL pool.
5
12
1
52
2,357
Gm. Lean validator will get some improvements today. Additionally, a 1:1 lSOL to Sol bridge will be established. Currently the options are to wait for sol to unstake to redeem, or sell on the open market for whatever the quote rate is. I will be adjusting our pool rates for the LP we added to stay as close to that 1:1 as possible for now.
7
8
1
66
13,650
Clanker says: "The executor picks up blocks quickly, but only once the gossip node has finished verifying them, so I suspect the node's block verification, as Alessandro said"
.@MidTermDev literally tell the clanker that Alessandro from anza said it’s slow at block verification and it’s not the jit.
3
3
27
2,815
Just staked 200 SOL to our @LeanClient validator and added an additional 200 sol in SOL/lSol pool on Lean AMM. This will ensure liquid payouts for sol and more people can add SOL to the pool allowing people toget around the 1 epoch delay in unstaking. Lean Client, WGMI
14
12
4
89
10,389
Incredible licks! Top 0.01%! (I still lost like $650,000 on this account since like September 😭)
8
25
2,966
I'm considering a somewhat uncharted path to making @LeanClient profitable as a new Solana validator. I'm extremely thankful that fees from our native token have covered our operating costs thus far, but I want to build something that generates genuine, sustainable value. The idea is simple: Introduce a liquid staking token (lSOL) backed by SOL staked with the Lean validator, and use it as the default quote token for launches on our 0% fee AMM. The AMM will remain permissionless and open to any quote token, but we'll encourage lSOL within our own launchpad to support a non-extractive trading ecosystem. At a 5% validator commission, we estimate needing roughly 60,000 SOL in active stake to break even on operations. Instead of extracting fees from every trade, we sustain operations through validator revenue. Users retain their staking yield through lSOL, which appreciates against SOL as staking rewards accumulate, while remaining freely tradable and redeemable for SOL. The more liquidity our ecosystem attracts, the more stake we can bring to our validator. A profitable validator, a sustainable 0% fee exchange, and an ecosystem that gives value back to its users. I think there's something worth exploring here.
29
13
6
112
27,754
Votes are hitting mainnet 🔥 explorer.solana.com/address/…
Our validator has reached voting status! Actual vote TX's should appear within a few hours as we clear our ~33k slot backlog post-update. Watch live: leanclient.app/#node
12
1
2
53
22,833
Just finished last place in the pump fun $10k trading comp 😎
15
62
4,087
Non-tek guys when they hear we're pushing lean
9
4
1
43
2,486
Just ensuring everything is working perfect, i have pushed some updates with our validator catching up past ~40,000 slots. May be a few more hours. Thank you for your patience!
The official lean client validator should be sending in its first votes in roughly 3 hours. Huge milestone
3
1
24
2,962
SoV and equity tokens should be a focus
4
32
2,298
The official lean client validator should be sending in its first votes in roughly 3 hours. Huge milestone
7
4
2
64
4,994
More updates being shipped to the Lean Solana Client. github.com/MidTermDev/lean-s…
Lean Client update. Our mainnet node now produces blocks, earns leader rewards, and executes transactions in parallel. Wallets and RPCs can send transactions straight to the node over QUIC; mainnet gossip lists it as a TPU. Before a transaction goes into a block, the leader checks everything that would get the block rejected: parsing, signatures, repeats, whether the fee payer can pay, and the block's cost limits. Blocks fill highest fee first, using the same formula Agave uses, and go out over turbine in batches while the slot is still running. We rebuilt 134 mainnet blocks this way. All were valid, and every bank hash matched the footer. Footers now carry reward certificates, which is how a leader gets paid half of what voters earn. We build them from real votes our node hears, about 112 validators per slot so far. Our checker also accepts every reward certificate Agave leaders put in 134 real mainnet footers. Transactions now run on multiple cores. Each one starts as soon as the transactions it depends on finish, and the bank hash comes out identical to running them one at a time. Over 1,700 mainnet blocks on 8 workers, every bank hash matched, at 122ms a block versus about 180ms single threaded. That's 1.45x faster. The live node runs this way now. Next is building on whichever parent the votes settle on, and moving more of each block onto the workers. All Lean, compiled by our own compiler. leanclient.app
7
5
2
42
4,184
The only Lean program with a verified build currently: solscan.io/account/AMXwyCL9a…
Lean AMM is live on Solana mainnet. An open-source AMM written in Lean, with its math formally proven: a swap can't drain a pool, and LP shares can't lose value to rounding. 0% platform fee. Every swap fee goes to LPs. amm.leanclient.app
4
3
31
2,630