Liquidity Injector
LiquidityInjector mints unbacked BT to bootstrap fixed-rate lending markets with initial loan token supply.
Contract summary
The LiquidityInjector has a special privilege to call BondToken.mintByLI() to create BT without backing FW. This is the only way BT can be minted outside the normal FW→BT+CT yield-split path.
Functions
injectLiquidity(params, amount)
Validates
params.irm == address(0)(fixed-rate market identifier)Calls
BondToken.mintByLI(address(this), amount)to create BTApproves and supplies BT to the lending market via
lendingMarket.supply()Increments
marketStats[marketId]
withdrawLiquidity(params, amount)
Checks available liquidity (total supply − total borrows, capped by balance)
Withdraws BT from the lending market
Burns BT via
BondToken.burnByLI()Decrements
marketStats[marketId]
Invariants
Owner-only for inject and withdraw
BT is never held in a resting state — always in the lending market or burned
marketStatstracks net injected amount per marketAvailable liquidity check prevents disrupting existing borrows
Last updated