Stockline.liquidate. The core gates regime and pause, then LiquidationModule sizes the seize.
Many crypto lending markets use a fixed bonus and a permissionless race. Stock tokens have thin onchain exit. Stockline ramps a Dutch auction, seizes the minimum, and stores an allowlist flag. The module does not enforce that flag today.
Stockline.liquidate accrues the account, requires LIVE or DARK, requires not paused, and reverts NotLiquidatable if healthy. The first unhealthy block stores liquidatableSince.
discountOf is a linear ramp from 0 to maxLiqDiscount(book) over auctionWindow (2 hours). ARCHITECTURE.md says from near zero. The code starts at exactly zero until one second has elapsed.
Tier caps: A 5%, B 6%, C 8%.
targetHealth (1e18). If leftover debt is under dustDebt (10 USDG), the module closes the book in full.
protocolLiqFeeShare (10%) of the discount bonus is seized to FeeCollector.
RiskRegistry.liquidatorAllowlist is true at launch. LiquidationModule.liquidate does not read that flag. NatSpec: liquidations are permissionless.