This local-only settlement executes both net deliveries in one transaction, and a failed delivery reverts execution.
A local-only XvP settlement nets every position and delivers it inside one transaction, or the whole settlement reverts. Once a revealed hashlock secret commits a settlement with an external leg, a delivery the token refuses is parked for its recipient to claim, and every other delivery still completes. The deliveries of an asset that refuses one of its senders are held the same way until the asset accepts that sender again.
Each sender approves, which locks their assets in the settlement contract. Execution then moves one net amount per participant per asset.
The cutoff date lets an uncommitted settlement refund. Revealing a valid secret commits it and closes that refund path. When a leg lives on another chain, a hashlock coordinates its release through a shared secret, and the parties verify the external lock, the deadlines, and execution on each system themselves.
Why an exchange needs to settle without principal risk
When two parties exchange tokenised assets (a bond for cash, or one currency for another), whoever delivers first carries principal risk until the counterparty pays. XvP Settlement covers both Delivery versus Payment (DvP) and Payment versus Payment (PvP).
For local legs on DALP, all net deliveries execute inside one transaction after each sender approves and escrows its net contribution. For a leg on another chain or external system, a hashlock coordinates release through a shared secret rather than one atomic transaction, so the parties verify external locks, deadlines and finality before revealing the secret. DALP neither prices trades nor charges a settlement fee.
Why this settlement runs on the platform, not beside it
An external escrow agent or clearing link keeps its own view of who may hold assets, separate from the token's on-chain compliance rules, creating a seam where escrow allows a transfer the token refuses.
Every local flow on a regulated token is checked at execution, because the token sees the settlement, not the sender, as the source of the delivery (plain ERC-20 tokens have no compliance contract). Before a revealed secret commits the settlement, a flow whose sender is frozen on the token or that the token's compliance rules refuse stops execution. After the reveal, the settlement still executes but holds that asset's deliveries until the asset accepts the sender again. Settling trades belongs to the Service stage of the Asset Lifecycle and lands directly in the asset's indexed record.
Escrowed assets sit in the dedicated settlement contract rather than a platform or counterparty wallet, released only by execution or refund. System-level overrides still reach them: a System manager can upgrade factory settlement logic, an asset Custodian can freeze or force-transfer out of the settlement address, and the Emergency role can pause the token.
Running a settlement day to day
In the Console, manage exchanges from Settlements. Create a settlement with all flows and a cutoff date, collect each sender's approval, and track it to one of three terminal states: Executed, Cancelled or Expired.
Approvals run sender by sender, locking each sender's net contribution into escrow. DALP grants any missing ERC-20 allowance before approving (insufficient allowance returns DALP-1105). Once all senders approve, the settlement moves to “Ready” (or “Waiting for secret”, then “Ready after reveal”). Any account can trigger execution, or optional auto-execute fires it as soon as it is ready.
An approval escrows each sender's full net amount of every asset, or nothing. If an asset's transaction fee deducts a non-zero transfer fee from escrow deposits, the contract refuses approval with DALP-4541.
POST /api/ also checks indexed fee settings up front and refuses fee-bearing transfer legs with HTTP 422 before queueing:
- Non-zero transfer fees that shorten escrow return DALP-4541.
- Fee-recipient senders or assets with an external transaction fee on transfer return DALP-12324, because the settlement contract would owe fees on delivery or refund.
- Unreadable fee settings return HTTP 503 DALP-12326, which can succeed on retry. Mint-only, burn-only and transaction fee accounting fees leave transfers untouched.
Because creation checks indexed settings for DALP fee features only, any transfer fee added after approval still affects delivery and refunds (and an external fee attached after approval blocks settlement until removed or forced out by the Custodian). To settle a fee-bearing asset, zero its transfer fee via Set transaction fee rates in Fee administration, or replace a frozen fee feature from the Features tab menu.
Creation also checks on chain for a matured bond and refuses it with DALP-12324 before queueing, because matured bonds block ordinary transfers. A bond maturing after creation fails at approval or execution with DALP-1092.
Creation also refuses a local leg whose asset has Booked movements attached, with DALP-12324 before queueing, because Booked movements refuse every transfer the administrator did not book, so the escrow deposit could never succeed. Booked movements attached after creation make approval fail with DALP-4481.
A local leg must move a token issued on your DALP system or an external token your organisation accepted by registering it by hand on External tokens. Creation refuses any other local asset with DALP-4567 before queueing, and the factory refuses it on chain too, so a token that was only detected in a wallet, a dismissed token or a contract nobody registered cannot be escrowed. An external leg is not checked, because its asset lives on another chain. A settlement created while its token was accepted still settles after the token is dismissed.
Three exits protect local participants when a settlement does not execute:
- Revoke. Before execution, a sender can revoke approval to recover escrowed assets. With an external leg, revocation closes once every sender has approved.
- Cancel. Any local participant can cancel before execution. Once a settlement with an external leg is fully approved and waiting for its secret, cancellation requires a unanimous vote of local participants.
- Withdraw after the cutoff. Past the cutoff date, an uncommitted settlement can no longer execute, and any account can trigger one withdrawal refunding every sender (repeating returns DALP-2007). If a token blocks one refund, that refund parks for its sender to claim later while other refunds finish. Committed settlements stay outside expiry refunds (see How it works and what it covers).
The cutoff date must sit strictly in the future at creation, or the factory returns DALP-2011. Cutoffs cannot be extended: size them to give every sender time to approve without locking capital unnecessarily.
A settlement starts Pending, becomes Ready or Waiting for secret once every sender approves, and ends Executed, Cancelled or Expired.
How it works and what it covers
Each XvP settlement deploys its own escrow contract from the system's XvP factory, open to any user except participants restricted from securities transfers. Creation moves nothing: assets lock into escrow only when each named sender approves its own leg. That contract is the source of truth for local flows, approvals, deadline and outcome.
Execution nets positions per asset across all local flows: net payers are debited from escrow, net receivers receive one delivery, and offsetting participants lock nothing (though they still approve). Net positions per asset must sum to zero, or the settlement fails closed with DALP-1068. Before paying out, the contract verifies every sender's escrowed balance matches its net requirement, halting cleanly if any mismatch exists.
Gross flows, where → pays and ← receives, collapse into one net amount per participant: positive for a net payer whose escrow is debited, negative for a net receiver who is delivered that amount. The column must sum to zero per asset, or the settlement fails closed.
Before hashlock commitment, any failed delivery reverts the entire transaction. For external legs, the contract stores a hashlock and settles local legs once the matching secret is revealed before the deadline, while the external system runs its own lock independently.
Revealing the secret commits the settlement: cancellation, refunds and expiry close, execution remains open past the cutoff, and any blocked delivery parks for later claiming while other deliveries complete. Every settlement reads its logic from its factory, so a System manager repointing the factory updates open settlements too. Any account can trigger execution, and parties must size cross-chain deadlines so the leg consuming the secret stays open longer.
The integration contract
Through the Platform API, a settlement supports creating, approving, executing, storing, decrypting and revealing secrets, revoking approval, cancelling or voting to cancel, withdrawing after expiry, and claiming parked amounts (including for recovered wallets). Only the creator wallet can store and decrypt its sealed secret, while anyone holding the secret can reveal it once all senders approve and before the cutoff (reveals outside that window are refused before broadcast so the secret never leaks on a failing transaction).
Create a settlement from a non-empty flows array (empty lists return DALP-2012). Local flows specify asset, sender, recipient and amount. External flows add external chain ID and asset decimals as coordination references and require either a raw secret or precomputed 32-byte hashlock (otherwise creation returns DALP-2010).
Approval is per sender and escrows that sender's assets. Execution requires every sender's approval plus a revealed secret when external flows exist, and optional auto-execute (off by default) triggers execution immediately upon readiness.
Read exchange outcomes from the settlement's state (executed, cancelled or expired), not from HTTP acceptance, while tracking individual calls through their Settlement Verdict.
The platform submits each call to the settlement contract: create, approve per sender, reveal if a hashlock applies, execute, then read the terminal state.
When a corporate action changes the escrowed token
A stock split, bonus issue or other corporate action that changes every holder's units by a ratio also changes what a settlement escrows. The platform sizes the settlement's units from its per-owner deposits, and the action mints to or burns from the settlement the sum.
From the action's record date until the action ends, the settlement refuses new deposits, execution before the reveal, the withdrawal of a cancel vote, and claims of that token. The action never stops the reveal, a cancellation, a revoked approval or an expiry refund. A revealed settlement executes: it delivers every other asset and holds that token's deliveries for their recipients until the action ends. A cancellation, a revoked approval or an expiry refund pays every other asset back and holds that token's deposit, which its sender claims once the action ends, on the new basis. The action's step cancels a settlement that is still unarmed, and once the action ends it refunds on the new basis. A settlement that is armed (it has a flow on another chain and every local sender approved) or whose secret is revealed is not cancelled: it executes on the re-based amounts. Settlements cancelled before the freeze stay cancelled. A refund of a cancelled settlement pays every asset with no action in progress and keeps only the frozen asset back. Round-up-to-one lifts each participant's refunded deposit once, and never lifts a single flow of an armed or revealed settlement. Until the action's step is written, the freeze counts for at most 30 days from the record date. Once it is written, the freeze holds until the action ends.
A cash dividend or distribution never pays the settlement. It pays each participant for the units the settlement held for them at the record date: before the settlement executes, what the participant had locked less what was refunded, and after it executes, a delivery it still held for the recipient. Both are counted on the basis of any corporate action the settlement had absorbed by then, and when a ratio action ends it pushes its step into every settlement, so a record date after the action counts the re-based units. Units the settlement held for no participant take no dividend (Contracts that hold the token).
Controls and evidence
Execution is the compliance enforcement point: the token sees the settlement as the sender of every delivery, so the settlement checks each local flow's sender itself, closing any timing gap if a participant is frozen or loses eligibility after approving. For an uncommitted settlement, a sender frozen on the token stops execution with DALP-4551, and every flow is re-checked against the token's transfer restrictions. Because the settlement contract sits on the compliance bypass list for escrow deposits, execution explicitly restores per-flow sender-to-recipient checks and refuses recipients on the bypass list.
Once a revealed secret commits a settlement, unwinding closes, but each sender is still checked at execution. When an asset reports a sender frozen, or its compliance rules refuse both the flow and a zero-amount transfer by the sender alone, the settlement executes and holds every delivery of that asset for its recipients instead of paying it. The other assets settle as usual. A sender that identity recovery marked lost after it escrowed is checked against a transfer to its replacement wallet, since a lost wallet may send only there, so its escrowed units still settle unless its other rules refuse it. A refusal that comes only from a recipient does not hold anyone else: the token refuses that one delivery, and it parks for later claim while other participants complete. After the reveal, each sender check runs with a fixed gas allowance. An execution sent with too little gas for these checks is refused with DALP-4550. Each delivery after the reveal, each refund and each claim also calls its asset with a fixed allowance of 1,030,000 gas and reads at most 32 bytes of the answer. An asset that fails or uses up the allowance parks that amount and the others complete, so one asset cannot stall the settlement. A transaction sent with too little gas for one allowance is refused with DALP-4563. An asset whose transfer costs more than the allowance stays parked until its issuer makes the transfer cheaper. The settlement reads each asset's corporate action record with a fixed allowance too. An asset whose record fails or gives an answer no record could give holds its own deliveries and refunds, which stay parked until the record answers,. Until then the settlement refuses approvals, secret reveals and execution before the reveal. Freezing the settlement address or pausing the token still blocks all flows in that asset until lifted.
Participants claim parked amounts via Actions → Claim parked amount in the Console or Investor portal, or via POST /api/ (which pays only the claiming wallet and refuses empty claims with DALP-3028). Any still-blocked asset stays parked while allowed assets pay out. A held delivery is paid only once its asset accepts every sender of that asset again. A claim that finds only held deliveries is refused with DALP-4549, which names the asset and the sender.
If an asset's identity registry marks a claiming wallet lost, self-claims hold that asset back (returning DALP-4531 if all assets are held). Anyone can trigger POST /api/ to pay each asset directly to the replacement wallet registered for it (returning DALP-4532 if none exists). Direct contract calls to claimRefund or claimSettled enforce the same self-only and lost-wallet protections.
All settlement evidence is on chain: gross flows as written, approvals, revocations, secret reveals, cancellations, execution, refunds, parked legs and claims carry block timestamps so auditors can reconstruct the exchange without off-platform logs.
Frequently asked questions
Can a settlement be made up entirely of external flows?
No. Every settlement requires at least one local flow whose sender sits on this chain, or creation returns DALP-4242. Local flows provide an on-chain participant to escrow assets and trigger execution.
Who signs an approval, and who holds the escrowed assets?
Each approval is an on-chain transaction from the sender's wallet (signed with the wallet's managed key after wallet verification). The dedicated settlement contract holds escrowed assets rather than DALP or any counterparty, subject only to the system-level overrides noted under Why this settlement runs on the platform, not beside it.
Who pays the transaction costs?
The settlement contract charges no settlement fee. Transactions still consume gas, funded by the participant, relayer or sponsor according to the signing and sponsorship configuration.
Does the record show my trades as written, or only the net amounts?
Both. The settlement stores every gross flow as created so trade tickets reconcile line by line, while execution transfers only the net amount per participant per asset. Reconcile trade tickets against stored gross flows and treat net transfers as a derived check.
Which hash function produces the hashlock?
keccak256, the EVM's native hash function. The contract accepts a reveal only when the keccak256 hash of the secret matches the stored hashlock, so external systems coordinating a leg must lock against the same keccak256 hash rather than SHA-256.
Is this a clearing house?
No. There is no central counterparty and no cross-settlement pooling: each settlement is an isolated escrow contract between its named participants that nets only within itself.