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
| Limit | Testnet value | Enforced by |
|---|---|---|
| Advance rate | 90% of face; the PO adds 10% | Payout rule, and the SDK's check of each advance |
| Loan per payout | at most 13,500 | Payout rule |
| PO top-up per payout | at most 1,500 | Payout rule |
| POT minted per pay-in | at most 20,000 | Mint rule |
| One release | at most 15,000 | Release rule |
| One repayment's pull from custody | at most 14,175, and at most the POT it withdraws | Repay rule |
| Line cap (debt after a draw) | 50,000 | Payout rule, and the service |
| Cover after a draw or a withdrawal | basket value at least 20% of the debt | Payout and withdraw rules |
| Liquidation | allowed while cover is below 15% of the debt; at most half the debt per liquidation; asset taken worth at most 105% of the repayment | Liquidate rule |
| Price age | at most 300 seconds, inside a fixed band per asset | Payout, withdraw, liquidate and take-over rules |
| Take-over wait | 120 ledgers, about ten minutes | Take-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
| Limit | Default | What it does |
|---|---|---|
| Daily limit | 100,000 | Loans funded in one UTC day |
| Corridors | GB-NG and US-MX, 20,000 each | Open loans per corridor; a pay-in must name a corridor the line knows |
| Market loan-to-value | 92% | No new payout above it |
| First-loss deposit | custody's balance above the working float | No loan larger than it |
| Working float | 5,000 | Custody's balance kept above the first-loss deposit for top-ups and repayments |
| Allowance floor | 20,000 | Below it the line view flags allowance_low |
| Overdue window | set per line, from one minute to 30 days | The latest expected settlement a pay-in may name; an advance past its settlement suspends new payouts |
| Deny list | per line | Receivers 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:
- The PO funds 10% of every payout and keeps a first-loss deposit it cannot withdraw without the trustee.
- The PO's basket must cover 20% of the debt after every draw, and anyone can liquidate once the cover falls below 15%.
- The payout rule checks the cover, the price age and the line cap on chain, whatever state the signing service is in.
- The signing service checks each payout against live limits before it co-signs, and stops payouts while an advance is overdue.
- The POT can be held only by the PO's settlement account and the market, so it cannot leak to outsiders.
- 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:
| Risk | What carries it today |
|---|---|
| A pay-in that never happened | The 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 compromised | Together 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 band | A 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 trustee | The 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 interpreter | The 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:
- Lending market release: the beta runs on testnet, and the OctoLend release PayFi will use on mainnet is under review before it goes live.
- Price feeds: an existing audited oracle for POT and every basket asset, in place of the admin-gated test feeds.
- Pay-in checks: checks of each pay-in with third parties.
- 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.
- Pricing: the borrower's rate, any facility fee and the LPs' return.
- 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.
- 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.