Skip to main content

Limits and protections

A line has two sets of limits. The on-chain limits sit in the rules when they are installed, and changing one means installing that rule again with both owners' keys. The signing service's limits sit in the line's records, and Untangled's admin can change some of them with a signed request. The values below are the testnet lines'; a production line sets its own.

On-chain limits​

LimitTestnet valueEnforced by
Advance rate90% of face; the PO adds 10%Payout rule, and the SDK's check of each advance
Loan per payoutat most 13,500Payout rule
PO top-up per payoutat most 1,500Payout rule
POT minted per pay-inat most 20,000Mint rule
One releaseat most 15,000Release rule
One repayment's pull from custodyat most 14,175, and at most the POT it withdrawsRepay rule
Line cap (debt after a draw)50,000Payout rule, and the service
Cover after a draw or a withdrawalbasket value at least 20% of the debtPayout and withdraw rules
Liquidationallowed while cover is below 15% of the debt; at most half the debt per liquidation; asset taken worth at most 105% of the repaymentLiquidate rule
Price ageat most 300 seconds, inside a fixed band per assetPayout, withdraw, liquidate and take-over rules
Take-over wait120 ledgers, about ten minutesTake-over rule

The basket on testnet is XLM, counted at 80% of its price, and a test USDC, counted at 95%. The lending market has a liquidation threshold (LLTV) of 95% of the POT posted, against the 90% advance.

Signing-service limits​

LimitDefaultWhat it does
Daily limit100,000Loans funded in one UTC day
CorridorsGB-NG and US-MX, 20,000 eachOpen loans per corridor; a pay-in must name a corridor the line knows
Market loan-to-value92%No new payout above it
First-loss depositcustody's balance above the working floatNo loan larger than it
Working float5,000Custody's balance kept above the first-loss deposit for top-ups and repayments
Allowance floor20,000Below it the line view flags allowance_low
Overdue windowset per line, from one minute to 30 daysThe latest expected settlement a pay-in may name; an advance past its settlement suspends new payouts
Deny listper lineReceivers always refused

Untangled's admin changes a line's overdue window and its line cap with a signed request. The line cap may be at most the payout rule's cap on chain.

What protects the liquidity providers​

Several layers stand between the LPs and a loss:

  1. The PO funds 10% of every payout and keeps a first-loss deposit it cannot withdraw without the trustee.
  2. The PO's basket must cover 20% of the debt after every draw, and anyone can liquidate once the cover falls below 15%.
  3. The payout rule checks the cover, the price age and the line cap on chain, whatever state the signing service is in.
  4. The signing service checks each payout against live limits before it co-signs, and stops payouts while an advance is overdue.
  5. The POT can be held only by the PO's settlement account and the market, so it cannot leak to outsiders.
  6. After a default Untangled can take over basket assets, at a price the chain checks when the take-over runs.

What the rules leave open​

The on-chain rules bound each position. Some risks sit outside what a rule can see, and other measures carry them:

RiskWhat carries it today
A pay-in that never happenedThe service ties each advance to the PO's confirmation of a pay-in. For the beta, due diligence on the PO, the first-loss deposit and the overdue suspension carry this risk; production adds checks of each pay-in with third parties
The PO's operations key and the signing service both compromisedTogether they can release up to 15,000 to any address in one transaction. The service's limits, the release cap, the first-loss deposit and the trustee's seat on custody bound the damage
A wrong price inside the bandA stolen feeder key can set a wrong price within the freshness bound. The 90% advance and the per-draw and line caps stay in force; production uses an existing audited oracle
Custody with the trusteeThe PO's custody account, with its trustee, can cancel a stored take-over. The trustee's mandate says it never co-signs that while the line has debt
The policy interpreterThe rules are only as sound as the deployed interpreter, which is deployed once per chain

Before real money​

These items come before a line runs with real money:

  1. Lending market release: the beta runs on testnet, and the OctoLend release PayFi will use on mainnet is under review before it goes live.
  2. Price feeds: an existing audited oracle for POT and every basket asset, in place of the admin-gated test feeds.
  3. Pay-in checks: checks of each pay-in with third parties.
  4. Key custody: each key in its own store, the signing service on its own host or hardware security module, and Untangled's admin seats behind a multisig with the LPs' representative.
  5. Pricing: the borrower's rate, any facility fee and the LPs' return.
  6. Legal terms: the agreement with the PO, and the trustee's and LPs' rights, including how the first-loss deposit is applied in a default.
  7. Mainnet: a real stablecoin in place of TUSD, the SDK's mainnet code pins, and a mainnet deployment with one market and one POT per PO.