LithosDocs
ProtocolPayoutsTokenStatsDocs
Start mining
Documentation home
Protocol
  • Lithos Protocol
  • LFSM
    • Rollups
    • NISPs
    • Emissions
    • Mining on Lithos
    • Candidate building
    • Ergo Voting
  • LithosDex
    • Choosing a pool
    • Trading with orders
    • Providing liquidity
    • Creating a pool
  • SigmaFi
    • Borrowing
    • Lending
    • Trading bonds and shares
    • The Lithos client and panel
      • Contracts
      • zcs1 off-chain standard
      • Pricing
      • Building on the Lithos API
    • Difficulty forwards
Run Lithos
  • Startup guide
    • Setting up an Ergo node
  • Configuration
    • Node connection and security
    • Stratum and difficulty
    • Block packages
    • Batching and orders
    • Collateral and emission
    • Wallet and consolidation
    • Statistics and web panels
    • Synchronization and storage
    • Tasks and dispatchers
    • Failure modes
    • Reporting issues
    • Renting hashrate into Lithos
    • Checking your wallet
Client API
  • Overview
    • getLithos client information
    • getList UTXO ids for blocks
    • getUTXO ids by block height
    • getBlock info by UTXO id
    • postBlock info for multiple UTXO ids
    • getGet a block's miner set
    • getList all pool blocks
    • getGet Lithos payouts
    • getStatistics overview
    • getMining and payment totals
    • getMining statistics by hour or day
    • getEstimate Lithos hashrate
    • getNetwork difficulty by epoch
    • getThis client's own hashrate
    • getThis client's hashrate over time
    • getThis client's payouts and claims
    • getCollateral inventory
    • getThis wallet's lending earnings
    • getLocal mining activity
    • getCollateral market snapshot
    • getList queue boxes
    • getList the active set
    • getPermit price history
    • getYour lending status
    • postQuote joining the queue
    • postJoin the collateral queue
    • getLithosDex pool state
    • getEvery LithosDex pool
    • getOne LithosDex pool and its vault
    • getList your outstanding orders on any pool
    • postQuote a direct swap on any pool
    • postSwap directly on any pool
    • postQuote a direct deposit on any pool
    • postDeposit directly on any pool
    • postQuote a direct redemption on any pool
    • postRedeem a provision directly on any pool
    • getList your provisions on any pool
    • postClaim a provision's fees on any pool
    • postCheck a flush on any pool
    • postFlush any pool
    • getA verified pool's price history
    • getA verified pool's fee history
    • getA verified pool's recent activity
    • getA provision's fee history on a verified pool
    • postQuote a new LithosDex pool
    • postCreate a LithosDex pool
    • postQuote a swap order on any pool
    • postPlace a swap order on any pool
    • postQuote a deposit order on any pool
    • postPlace a deposit order on any pool
    • postQuote a redeem order on any pool
    • postPlace a redeem order on any pool
    • getLithosDex fee vault state
    • getList your outstanding orders
    • postQuote a swap order
    • postPlace a swap order
    • postQuote a deposit order
    • postPlace a deposit order
    • postQuote a redeem order
    • postPlace a redeem order
    • postCancel an order
    • postQuote a swap
    • postQuote a swap by desired output
    • postExecute a swap
    • postQuote a liquidity deposit
    • postDeposit liquidity
    • postQuote a liquidity redemption
    • postRedeem liquidity
    • getList liquidity provisions
    • postLook up provision NFTs
    • postClaim settled fees for a provision
    • postQuote a provision resize
    • postResize a provision
    • postCheck a pending fee flush
    • postFlush pending fees to the vault
    • getPool-wide fee history
    • getPool price history
    • getRecent pool activity
    • getFee history for one provision
    • getDifficulty accumulator and the next epoch's difficulty
    • getList open offers
    • postCreate an offer
    • postQuote an offer
    • postQuote filling an offer
    • postFill an offer
    • postQuote cancelling an offer
    • postCancel an offer
    • getThe whole market
    • getYour settled positions and closed offers
    • getList your positions and offers
    • postQuote settling a position
    • postSettle a position
    • getList open orders
    • postCreate an order
    • postQuote an order
    • postQuote cancelling an order
    • postCancel an order
    • postQuote filling an order
    • postFill an order
    • getList live bonds
    • postQuote repaying a bond
    • postRepay a bond
    • postQuote liquidating a bond
    • postLiquidate a bond
    • postQuote a claim
    • postClaim a settled bond
    • postLook up bond assets
    • getThis wallet in SigmaFi
    • getZC market info
    • getList asks
    • getList lend offers
    • getBid and ask curves
    • getOrder book
    • getFill history
    • getWhat a box would match
    • postSimulate a draft
    • getOpen auctions
    • getLook up an id
    • getSearch by id prefix
    • postDescribe tokens
    • getThis wallet in ZC
    • getThis wallet's ZC activity
    • postCreate an order (quote)
    • postCreate an order
    • postCreate a lend offer (quote)
    • postCreate a lend offer
    • postCreate an ask (quote)
    • postCreate an ask
    • postCreate a lot auction (quote)
    • postCreate a lot auction
    • postFill an order (quote)
    • postFill an order
    • postBuy from an ask (quote)
    • postBuy from an ask
    • postBuy a lot (quote)
    • postBuy a lot
    • postBuy a vault auction (quote)
    • postBuy a vault auction
    • postPull a settled bond (quote)
    • postPull a settled bond
    • postFractionalize a bond unit (quote)
    • postFractionalize a bond unit
    • postRepay a bond (quote)
    • postRepay a bond
    • postAdd collateral (quote)
    • postAdd collateral
    • postLiquidate a bond (quote)
    • postLiquidate a bond
    • postExtinguish a bond (quote)
    • postExtinguish a bond
    • postClaim a settled bond (quote)
    • postClaim a settled bond
    • postWrap a token (quote)
    • postWrap a token
    • postUnwrap (quote)
    • postUnwrap
    • postRun a mint (quote)
    • postRun a mint
    • postCancel a box (quote)
    • postCancel a box
    • getList configured oracle feeds
    • getCurrent oracle state and recent confirmed history
    • getWallet balances
    • getYour block rewards
    • postClaim unlocked block rewards
    • getVerified tokens
    • getArb stake
    • postReclaim the arb stake
    • postResume arb after a reclaim
    • getGet Stratum information
    • getGet candidate settings
    • getGet difficulty commitment
    • postCommit a difficulty
    • getGet best NISP at height
Lithos

A decentralized mining pool protocol on Ergo. Miners build their own blocks; contracts pay them for proven work.

Live on Ergo mainnet
Protocol
  • How Lithos works
  • Mining on Lithos
  • NISPs
  • Emissions
  • LFSM contracts
Run Lithos
  • Startup guide
  • Configuration
  • LithosDex
  • Difficulty forwards
  • Client API
  • Failure modes
Network
  • Live stats
  • Public stats API
  • Ergo Platform↗
  • SOAT Miner↗
Community
  • Telegram↗
  • X / Twitter↗
  • GitHub↗
Lithos
© 2026 Lithos Protocol. The Lithos client, its contracts and Lithos Launcher are open source under CC0.λίθος — stone
Docs/Protocol/SigmaFi

Lending on SigmaFi

Filling SigmaFi orders, posting standing lend offers with yield curves, liquidating, and claiming when a loan ends.

Advanced6 min readAssumes you know what a token and a block height are, and have read the SigmaFi overview.

This page covers the lender's side: filling one order yourself, posting a lend offer that buys loans for you, and getting paid when a loan ends. Buying existing bonds and shares from other holders is on Trading bonds and shares. The yield maths is on Pricing.

Two ways to lend#

You can lend in either of the following ways:

WayYou chooseWho runs it
Fill an orderOne specific order, nowYou, from your wallet
Post a lend offerThe yields you accept at each maturity, and the risk you acceptBatchers, whenever an order or ask meets your terms, while you are offline

Either way you end up holding the loan's circulating unit, or shares of it.

Filling an order#

Pick an order in the panel's Market view and fill it from the order ticket, or call POST /sigmafi/zc/orders/{boxId}/fill/check then POST /sigmafi/zc/orders/{boxId}/fill. A fill does the following:

  1. Pays the principal to the borrower, from your wallet.
  2. Adds the fee reserve to the bond: ERG that pays whoever liquidates the loan, and comes back to the vault if the loan is repaid. It is at least 0.05 ERG, which is also the default.
  3. Mints the bond token. One unit, named ZCS-Bond-Unit- and the first six characters of its id, comes to your wallet. Two stay locked with the bond.

A fill takes the following options:

OptionWhat it sets
maturityWindow orders only: the maturity you pick inside the borrower's window. Default the earliest multiple of 21,600 blocks in it, else the window's shortest maturity
reserveNanoErgThe fee reserve, at least 50000000 nanoERG (0.05 ERG)
allowLiquidatableFill even though the new bond would start under its own oracle ratio. Off by default, and a fill guard can never be overridden

A yield-priced order is quoted at the most it asks over the next 3 blocks, because your fill lands at a later height and the price can move either way. The bond records what you actually paid.

The client refuses a fill that the order's fill guard would refuse, and a fill that would start a bond already liquidatable under its own oracle rule. In that second case the right move is to wait, since anyone could liquidate the new bond at once.

Posting a lend offer#

A lend offer holds your capital in a box and buys whatever loans meet your terms, at any time, while you are offline. Batchers do the buying and earn a fee you set per fill. In the panel use Create > Lend. Through the API call POST /sigmafi/zc/offers/check then POST /sigmafi/zc/offers.

An offer has the following terms:

TermWhat it sets
CapitalWhat the offer may spend, in the market's currency
Minimum yieldThe least yield the offer ever accepts, in basis points per 262,800 blocks
CurveUp to 20 points of (blocks left to maturity, yield). Between points the yield it requires is on the straight line, beyond the ends it is flat, and never below the minimum
Maturity windowThe fewest and most blocks to maturity it buys. Default 1 to 262,800
Collateral floorThe least cover, in percent of the repayment, a bond must have when bought
Oracle ageThe oldest oracle the offer trusts for that check. Default 30 blocks. A bond's own rule must allow an oracle at least this old
Fee reserveThe reserve each new bond it creates gets. Default 0.05 ERG
Batcher feeERG offers: what each fill pays the batcher, at least 0.002 ERG. Default 0.005 ERG
SigUSD fundingSigUSD offers: ERG carried for fees (default 0.5 ERG), the least fill (default 1% of the capital) and a total reward budget (default 0.2 ERG)
Share boundsWhether it buys shares, and the least auction floor and longest auction expiry it accepts. Left out, it buys no shares
DeliveryWhere a bought bond unit goes: to you, or into a Selective or Dutch share mint so you receive shares instead
ExpiryFrom then, anyone may return the remaining capital to you for one batcher fee. Default 5,040 blocks

An offer buys only loans with the oracle liquidation rule, because it measures cover at the oracle price. The bond's own rule must fire at or above your collateral floor, and the collateral must be worth the floor when bought.

What an offer buys#

An offer can buy from three kinds of source:

  1. New loans. It fills an open order directly. One new loan per transaction.
  2. Existing bond units from any ask, after checking on chain that the unit is a genuine bond token and that the loan is still live.
  3. Shares from any ask, only Selective or Dutch shares whose auction terms clear your share bounds.

For each candidate the offer runs its yield test: the price, plus the batcher fee on an ERG offer, must earn at least the yield your curve requires at the bond's blocks left. A bought loan never earns less than your curve. The formula is in Pricing.

Which loans a batcher matches first#

Batchers that follow zcs1 match in one fixed order, so every batcher picks the same trades:

  1. Offers go first by the largest batcher reward still left.
  2. Each offer takes the order or ask that gives it the highest yield.
  3. Ties go to the lower box id.

Nothing on chain enforces best execution. A batcher may route through any ask your offer accepts, but your offer still never pays more than its curve allows.

Changing or ending an offer#

An offer cannot be edited. Cancel it and post a new one: Portfolio > Cancel, or POST /sigmafi/zc/boxes/{boxId}/cancel. After its expiry anyone may return the rest of the capital to you.

Note
Small loans may not match at the yield you expect

Each fill pays a fixed batcher fee. On a short or small loan, that fee can be larger than the interest, so the offer's yield test fails even when the quoted rates look close.

When a loan ends#

A loan ends with a repayment or a liquidation, and in both cases the money goes to the bond's vault. Whoever holds the circulating unit then claims the vault: Portfolio > Claim, or POST /sigmafi/zc/claims/{tokenId} with the unit's token id. The claim burns all three units and pays you everything in the vault.

How the loan endedThe vault holds
RepaidThe repayment, plus the fee reserve back
LiquidatedAll the collateral, ERG and tokens. The fee reserve paid the liquidator

A liquidation pays you in kind: you receive the collateral tokens themselves. To turn them back into the loan's currency, sell them in a lot auction.

Liquidating a loan yourself#

Anyone may liquidate a loan once its rule allows: Portfolio or the bond's page, or POST /sigmafi/zc/bonds/{assetId}/liquidate. The liquidator keeps the fee reserve, less the miner fee. If you hold the loan, liquidating it yourself keeps that reserve too. Batchers liquidate due loans quickly, so you usually only claim.

Risks a lender takes#

The following risks are yours:

  • The collateral may be worth less than the repayment. A maturity-rule loan is never liquidated early, whatever happens to the price. An oracle loan is liquidated below its ratio, but a fast price move can still pass the ratio before a liquidation lands.
  • Tokens no one prices. Collateral tokens other than ERG and SigUSD add nothing to the oracle cover, and may be hard to sell after a liquidation.
  • Fake tokens. A token can carry any name. Buy only units and shares whose origin the client proves, which the Lithos panel shows for every listing.
  • A yield is conditional. It assumes full repayment. It is not a valuation of the collateral.

Next steps#

  • Trading bonds and shares: selling your unit before maturity, or splitting it into shares.
  • Borrowing: what the borrower can do with the loan you funded.
  • Pricing: the offer's yield test and curve.
  • The Lithos client and panel: how your client batches offers for everyone.
Edit this page on GitHubsynced from 8d4d4d8
← PreviousBorrowingNext →Trading bonds and shares
On this page
  • Two ways to lend
  • Filling an order
  • Posting a lend offer
  • What an offer buys
  • Which loans a batcher matches first
  • Changing or ending an offer
  • When a loan ends
  • Liquidating a loan yourself
  • Risks a lender takes
  • Next steps