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

Trading bonds and shares

Selling and buying SigmaFi bonds and shares through asks, splitting a bond into shares, share-vault auctions, lot auctions and custody wraps.

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

A SigmaFi loan is a token, so it can change hands before it ends. This page covers selling and buying bond units and shares, splitting a unit into shares, the auctions that sell a liquidated loan's collateral, and wrapping a token that must not travel raw. Lend offers, which buy from asks automatically, are on Lending.

Selling with an ask#

An ask offers bond units or shares you hold for sale. In the panel use Create > Sell a bond. Through the API call POST /sigmafi/zc/asks/check then POST /sigmafi/zc/asks.

You choose one of the following pricings:

PricingContractThe price
FixedSaleOrderA total price for the units, paid pro rata on partial fills
YieldPricedAskThe buyer pays your repayment discounted at a yield you name, optionally moving in a straight line by the ask's expiry. A fixed floor still binds
Fixed, guardedPricedAskA fixed price that stops selling while the bond's cover is under a ratio you set

An ask also takes the following:

OptionWhat it sets
minFillThe fewest raw units one purchase may take. Default 1
Sale guardA cover ratio and oracle age under which the ask does not sell. See Why a sale guard
ExpiryFrom then, anyone may return the units to you. Default 5,040 blocks (about 7 days)

You can cancel an ask at any time. Partial fills leave the rest on sale at the same terms.

Warning
An ask's box ERG is a closing fee

An ask box holds 0.003 ERG: the 0.001 ERG box minimum and a 0.002 ERG refund fee. When the ask sells in full, that ERG goes to the buyer or the batcher that fills it, not back to you. On expiry it pays the batcher that returns the units. An ERG ask priced at or under 0.003 ERG pays you nothing.

The client refuses to list a bond that is already under its own oracle ratio. Anyone could liquidate it instead, which pays the holder, you, all the collateral.

Why a sale guard#

An ask on a bond close to its ratio is a free option for buyers: a buyer pays at most the repayment, then liquidates for all the collateral. A sale guard stops the ask selling while the bond's collateral is worth less than your ratio of the repayment at a fresh oracle. While the guard holds the ask still, you can liquidate the bond yourself and claim the vault with your unit.

Buying from an ask#

Browse asks in the panel's Market view, or GET /sigmafi/zc/markets/{market}/asks. Buy with the ticket, or POST /sigmafi/zc/asks/{boxId}/buy with the number of units, which defaults to all of them.

Before you buy, the client checks the token's origin on chain:

  • A bond unit must come from a genuine SigmaFi fill.
  • Shares must come from a genuine share mint holding a genuine unit. Unproven shares are refused.
  • Any other token is bought with a warning, because nothing proves what it is.

A yield-priced ask is quoted at the most it asks over the next 3 blocks, as a fill is. The client also refuses to buy a claim on a bond already under its own ratio, and points you to liquidating it instead.

Shares#

A bond unit can be split into shares, so a loan can be sold in parts or held by many people. By default a unit becomes 100 shares with 6 decimals, so 1.000000 share is 1% of the loan.

Splitting a unit into shares#

Use Create > Split into shares, or POST /sigmafi/zc/bonds/{assetId}/fractionalize. Your unit goes into a mint request. A batcher then mints the shares for the mint fee:

  • You receive 100 shares.
  • 100 shares plus one more stay locked in a share vault, beside the bond unit.
  • The share token's id is the request's box id, and the token is named ZCS-Bond-Shares- and the bond's first six characters.

You choose one of the following vaults:

VaultAfter a liquidation
Selective (default)Collateral that splits pro rata is paid out in kind. Only items too thin to split, under 100 raw units such as an NFT, go to auction
DutchAll the collateral goes to auction for the loan's currency
PlainEverything is paid out in kind. Lend offers do not buy plain shares

A Selective or Dutch vault also takes auction terms: an opening and a floor price, in percent of the repayment, an auction length (default 720 blocks) and an expiry (default the greater of 2,160 blocks and the length). The mint fee and the pull fee default to 0.005 ERG each.

Note
A Dutch vault on a SigUSD loan always auctions

Every box keeps 0.001 ERG, and on a SigUSD loan that ERG is not the loan's currency. So after a liquidation a Dutch vault on a SigUSD loan always opens an auction, and partial claims wait for it.

Claiming with shares#

When the loan ends, anyone may pull the settlement into the share vault for the pull fee: POST /sigmafi/zc/vaults/{boxId}/pull. Batchers do this for you. Shareholders then claim in the following ways:

ClaimWhat you get
PartialBurn some shares and take your share of each asset: floor(balance × shares burned / shares outstanding). Waits for the pull and for any open auction
FinalBurn every outstanding share and take everything left in the vault
Un-fractionalizeBefore the pull, burn every share to get the bond unit back

Rounding down means a tiny claim can round an asset to zero. The client sells and claims in lots big enough that the loan's currency never rounds to zero, and warns when a collateral token would.

Shares are priced as a percentage of face: what shares cost compared with the repayment they claim. That figure compares across loans of any size.

Share-vault auctions#

When a liquidated loan's settlement is pulled into a Selective or Dutch vault, an auction may open. No auction opens unless some collateral item is too thin to split: under 100 raw units in a Selective vault, and every item in a Dutch vault. Which auction opens is fixed at the pull:

AuctionOpens whenA buyer
Floor auctionThe vault holds less of the loan's currency than the floor targetBrings the vault's currency up to the target, which falls in a straight line from the opening to the floor over the length and then holds, and takes the whole lot
Excess auctionThe vault already holds the floor targetPays a price falling from the opening to zero over the length, and takes only the thin items. Everything else stays for pro rata claims

A floor auction that reaches its expiry unsold ends, and claims take the collateral in kind. An excess auction that reaches zero ends the same way. The guarantee to shareholders: after a liquidation the vault holds at least the floor in the loan's currency, unless the collateral all splits pro rata or the floor auction expires unsold.

Buy an open vault auction from the panel's Auctions view, or POST /sigmafi/zc/vaults/{boxId}/buy.

Selling collateral in a lot auction#

A lot auction sells a basket of tokens whole, to the first buyer, for one currency. It is how a lender paid in kind turns collateral back into the loan's currency without staying online. Use Create > Sale auction, or POST /sigmafi/zc/lots.

A lot has the following terms:

TermWhat it sets
MarketThe currency it sells for, ERG or SigUSD
ItemsThe tokens sold. A SigUSD lot may also sell ERG, and may not hold SigUSD itself
Opening, floorThe price until the start, and from the end on
Start, endBetween them the price falls in a straight line. Start defaults to now
ExpiryFrom then, anyone may return the lot to you for the refund fee. Default the end
Refund feeDefault 0.002 ERG. On a SigUSD lot the buyer takes all the box's ERG, this fee included

The price only falls, so a purchase priced now stays valid. On an ERG lot the box's own ERG comes back to you with the payment. Lend offers never buy lots, because a lot is not a bond.

Wrapping a token#

Some tokens grant authority wherever they appear in a transaction. A LithosDex liquidity position's owner NFT is one: any transaction that spends a box holding it can claim or resize the position. Put such a token raw into an order, bond or ask, and a stranger running a SigmaFi step could drain the position.

A wrap prevents that. Use Create > Wrap an NFT, or POST /sigmafi/zc/wraps:

  1. The token goes into a wrap request. A batcher mints three receipt units for the mint fee.
  2. You receive one receipt unit, named ZCS-Wrap- and the token's first six characters.
  3. The token and the other two units stay in a wrap vault, which nothing else can be spent beside.

Pledge, sell or auction the receipt instead of the token. Whoever holds the receipt can unwrap: POST /sigmafi/zc/wraps/{receiptId}/unwrap burns all three units and returns the token. A wrap costs about 0.038 ERG: two box minimums, a 0.03 ERG refresh reserve that keeps the vault ahead of storage rent for about six years, the 0.005 ERG mint fee and the miner fee. The client refuses a LithosDex position NFT in a lot and asks you to wrap it.

Next steps#

  • Lending: lend offers that buy from asks automatically.
  • Borrowing: buying back a claim on your own loan.
  • Pricing: how yield asks and share prices are computed.
  • The Lithos client and panel: the Market and Auctions views.
Edit this page on GitHubsynced from 8d4d4d8
← PreviousLendingNext →The Lithos client and panel
On this page
  • Selling with an ask
  • Why a sale guard
  • Buying from an ask
  • Shares
  • Splitting a unit into shares
  • Claiming with shares
  • Share-vault auctions
  • Selling collateral in a lot auction
  • Wrapping a token
  • Next steps