ProtocolSupply holds those dollars as sUSDG and tracks the principal. Principal is locked, then leaves only through the Timelock, after notice, in small tranches.
ETH from the STK auction becomes USDG in the pool. Interest above principal goes to auction buyers for a fixed term.
Most lending markets start empty and pay emissions to attract the first deposits. Stockline seeds the pool with auction proceeds instead, and locks them, so borrowers do not depend on a supplier showing up.
The design set has no protocol-owned supply diagram yet. This section will be completed when the diagram ships. The flowchart above is a stand-in drawn from
ProtocolSupply.sol.What it is
After the STK auction settles, the treasury wallet swaps its share of the ETH to USDG in published tranches and callsProtocolSupply.deposit. The contract deposits into USDGPool and receives sUSDG like any supplier. Unlike other suppliers, it remembers how much principal went in. Everything the position is worth above that principal is yield.
Only two addresses can deposit: the treasury wallet and the Timelock. Both are set at construction. Nobody else can add principal, and nobody can add principal on the treasury’s behalf.
The lock
Principal cannot leave beforelockUntil. The date is immutable. The Guardian cannot shorten it. The Timelock cannot shorten it. A pause does not extend it, but a pause does block withdraw and harvest while it lasts, the same as for any other depositor.
The withdrawal rules
After the lock, principal leaves in three steps, all by the Timelock:notice(amount)records the intent and the time. The public Timelock delay applies before this call, and the notice period applies after it.- Wait
noticeDays. withdraw()moves the smallest of: the noticed amount, the unused tranche room for this period (maxTranchePctof the current position), the remaining principal, and the pool’s idle cash.
CapExceeded. A withdrawal never touches yield, and a pool with no idle cash cannot be drained.
Where the yield goes
harvest() is permissionless. It redeems the value above principal, capped by pool cash. Until yieldTermEnd the USDG goes to AuctionYield, where auction buyers who staked their won STK share it pro rata. After yieldTermEnd it goes to the treasury. A pause that spans yieldTermEnd sends the next harvest to the treasury.
Yield is interest, and interest needs borrowers. Before borrowing opens on a book, there is nothing to harvest. Rate today on Earn is the reading, not a forecast.
Why it protects borrowers
A borrower needs three things from the pool: dollars to draw, dollars that stay, and a rate that does not spike because one supplier left. Protocol-owned supply gives all three.
The lock also protects suppliers who arrive later. The protocol’s dollars sit alongside theirs under the same share price and the same pause. The protocol earns no priority.
Related: STK, Uniswap, Earn, Interest rates, ProtocolSupply, Access controls.