Security
How DLTX's contracts are built and checked, where the audit stands, and how to report a vulnerability.
Note
DLTX's contracts are the strategy contracts your wallet owns: a hub on the long leg's chain (Ethereum or Arbitrum) and its legs on Ethereum, Arbitrum and HyperEVM, with a kernel, a registry and a builder at one address on every chain. No outside firm has published an audit of them yet: see Audits.
Report a vulnerability
Write to security@dltx.org, or use the private Report a vulnerability form in the Security tab of the contracts' repository. Please include:
- the contract and function, or the page of the app, concerned;
- what an attacker could do, and what it would cost them;
- the steps to reproduce it, ideally as a test on a fork.
Please give DLTX time to fix it before telling anyone else, and do not use it against money that is not yours. Test on a fork of the chain, never against live positions.
Note
There is no bug bounty today. A report is still welcome, and will be credited on this page if you wish.
Source code
The contracts' source code, tests and deploy scripts are public at github.com/dltx-org/contracts. Anyone may read and audit them, run their tests, and check that the code deployed on chain is the code published there. The code is source available, not open source: under the DLTX Source License it may not be deployed in production by anyone else.
A public repository makes the code readable, not audited: the audit's status is below.
Audits
| Contract | Status |
|---|---|
| The strategy contracts: the kernel, its member proxy, the registry, the builder, the hub, the Aave leg and the Hyperliquid leg | No outside audit report published yet. |
| The repay-with-collateral contract, which a long leg calls to repay its debt from its collateral | No outside audit report published yet. |
Each audit report will be published here, in full, with the version of the code it covered.
How the contracts are built
- Your wallet owns your strategy. Each contract of a strategy records one owner, the wallet that created it. Money leaves a strategy only to that wallet, and only that wallet can change its settings or move it to another release. There is no second owner and no reset.
- No DLTX key can send money out of your strategy. DLTX's execution key can trade and move money between your strategy's own contracts within its limits; it has no function that takes a recipient. The only other payments are DLTX's fees, to the fee address the registry names.
- No open-ended call. The contracts make no call to a target their input chooses, and no
selfdestruct. Theirdelegatecalls go only to fixed code: a contract's own modules, fixed in its code, and the release its owner chose. Money can only go where the code allows, as How your money is held lists. - Few keys, each with a narrow power. DLTX's execution keys, one per group of strategies, can only make the calls the contract pages list under their name, within each strategy's limits, and your Stop revokes them on your strategy. DLTX's admin key lists releases, kinds and profiles at once (it is a multisig), sets the execution keys, names the fee address and sets the fees within the caps compiled into the code. It cannot touch your money, change your limits or settings, or move your strategy to another release.
- Your changes apply when you sign. A change to a limit, a profile or the code takes effect when your wallet signs or sends it, and nothing waits, so nothing needs cancelling. The app asks for a short deadline, and a signed change cannot be withdrawn before it: a signature you were tricked into is yours to bear. A stop of the strategy drops a performance-fee raise still waiting.
- Every hub beside its long leg, on Ethereum or Arbitrum. A leg on another chain obeys your wallet's own signature, checked at the leg, and its hub's messages, which Circle carries. A message from the hub can start a run, stop it, report a value and carry money; it cannot upgrade a leg, change a setting or name a destination.
- No exit depends on DLTX's registry. The two registry reads an exit makes (is DLTX still checking in, and where DLTX's fee goes) are bounded and fail safe: a registry that fails reads as stopped and as no fee address.
- Checked cryptography. Your wallet's signatures are verified with OpenZeppelin's ECDSA code, not code of DLTX's own. A contract wallet's own ERC-1271 check is read on Ethereum only, which is why a strategy with a leg on another chain needs an ordinary wallet.
- A way out without DLTX. You can stop a strategy and have it pay your wallet with your wallet alone, and if DLTX stops checking in for 7 days the escape hatch opens: anyone can stop and unwind your strategies, and the settlement pays your wallet. See Exit and the exit tool.
Who can change the code
Every contract of a strategy is a fixed proxy (ERC-1967) whose code runs through one immutable kernel. Its address never changes; the code it runs can, and only by its owner. This is what that means for you:
- Only your wallet upgrades your strategy. One signature moves the whole strategy, hub and legs, to the newest release of its kind. It takes effect when you sign, at each contract. A strategy only moves forward, to a newer release. If you never sign, it stays on its release: nothing forces you, and no DLTX key can upgrade it.
- Only listed releases. DLTX lists kinds, releases, profiles and builders in a public registry on each chain, at once, so anyone can read the code. The admin key is a multisig: several signers must agree, so one stolen key lists nothing. The app offers a new strategy only releases its code has pinned after review, on the newest listed release of its kind. A move to a new registry is refused if that registry has already stopped the strategy's group.
- The kernel guards itself. The kernel holds the owner and the release, and refuses any call that would change the proxy's code pointer or its own records, so a release cannot rewrite who owns the strategy.
- What the admin key can do. List releases, kinds, profiles, builders and successor registries, at once. Set the execution keys. Name DLTX's fee address: the new address accepts it, it takes effect then, and you have no veto; it only moves where DLTX's fees go, never your money. Set the performance fee within the cap the code compiles in: a cut applies at once; a raise applies from the next charge, with no veto of yours, and a performance fee raise never reaches profit earned before it.
- What it cannot do. Move any strategy to another release or registry, sign for you, change your limits or settings, or touch your money.
What remains: a listed release is not proof that it is harmless. If DLTX's admin key and its website were both compromised, an attacker could list a release of their own and ask you to sign the move to it. The multisig, the app's pinned list, and your wallet showing what you sign are the defences. A signed move applies at once, so read it before you sign.
How the contracts are tested
- Hundreds of tests across the contract projects: the kernel, the registry, the builder, the hub and its legs, and the repay-with-collateral contract.
- Tests against the live protocols. The contracts call Aave, Spark, Uniswap, Circle, Chainlink, Sky's USDS converter and Hyperliquid, so their tests run on copies of Ethereum, Arbitrum and HyperEVM (forks) against the real deployed protocols, Circle's bridge included, not imitations of them.
- Upgrades are tested. A strategy made on an earlier release is upgraded to the current one in every order of its contracts, with money and messages in flight between them.
- The reference stays true. The contract pages are generated from the contracts' code, and the build fails when a function, an event or an error is added or removed without them.
Tests are evidence, not proof, and so is an audit. The risks that remain, and what limits each, are on Fees and risks.
Verify it yourself
- Every address DLTX publishes is on Contract addresses, generated from the code, with a link to a block explorer.
- Every function, who may call it and what it checks is on the contract pages.
- What a compromised DLTX could and could not do is on How your money is held.