Skip to Content

Contracts

Every function of DLTX’s own contracts, what it does, who may call it, when, and what it checks.

Each of DLTX’s own contracts has a page listing every function anyone can call on it: what it does, who may call it, when, and what the contract checks before it acts.

Their source code, tests and deploy scripts are public at github.com/dltx-org/contracts, under the DLTX Source License: anyone may read, audit and test them, and compare them with the deployed contracts.

ContractDescription
HubA strategy’s account, on the chain its kind names: it holds the owner’s money between the legs, sends them their money, stores their reports, values the strategy, takes DLTX’s fees within their caps and pays the owner back.
AAVE V3 legA strategy’s long on an AAVE V3 family market: its profile’s asset supplied and USDC borrowed, operated by DLTX’s execution key within limits that survive that key’s compromise.
Hyperliquid legA strategy’s short on Hyperliquid: the contract is the Hyperliquid account, trading only through its own CoreWriter, with no trading agent, within bands, a leverage cap and a daily growth budget.
BuilderOne per chain, at one address everywhere: creates every member of a strategy, at an address fixed by its owner and its configuration, and on the hub’s chain funds it in the same transaction.
RegistryOne per chain, at one address everywhere: a generic list of entries (kinds, versions, asset profiles, successors, and any other category a reader names) the admin lists in one call, plus DLTX’s execution keys, check-ins and fee address.
Member proxyThe fixed proxy of every strategy member: no constructor argument, no admin, every call delegated to the kernel.
KernelThe one fixed upgrade mechanism under every member of a strategy: owner-only upgrades, applied when the owner calls or signs, the owner’s Stop, the transfer of its ownership, and a guard that logic cannot change.
Repay-with-collateral contractRepays an Aave V3 position's debt out of its own collateral, in one transaction, moving only what the call itself brings.

Each signature, and each constant’s value, is read from the contract’s source when the site is built, and a test fails the build when a function is added or removed without these pages.

These pages describe the first release of the strategy contracts. Each one is a fixed proxy under the kernel, whose code only its owner moves: by the owner’s wallet, when the owner signs or sends it, and only to its line’s newest release, which DLTX listed through its multisig. DLTX cannot move it. The strategy contracts’ one pause, the AAVE V3 leg’s execution key’s own, blocks its supply and borrow only, never protection, money between the strategy’s contracts, a sale or the unwind. The only keys with powers of their own are the ones listed below, and none of them can send money anywhere but where these pages say. Their addresses are on the contract addresses page.

Who may call

CallerMeaning
The owner’s wallet, by signatureA message signed by the member’s owner, one wallet: an ECDSA signature on every chain or, on Ethereum only, ERC-1271 for a contract wallet. Anyone may submit the transaction; submitting it gives no power, the signature does.
The owner’s walletThe member’s owner, one wallet (a Safe included), calling it directly, and nothing else.
DLTX’s execution keyThe execution key of the strategy’s group, read from its chain’s registry; the owner may revoke it on each contract of the strategy. It acts within the contract’s limits and can pay only the strategy’s own contracts, or the owner’s wallet from the hub.
DLTX’s admin key, on the registryDLTX’s offline key, the admin of the registry. It may list entries (kinds, versions, asset profiles, a successor registry, builders), each open at once, retire a listed entry, set each group’s execution key, propose a new fee address and a new admin, each of which takes effect only when that address accepts; it never touches an owner’s money and never moves a strategy contract to another version.
The kernelThe contract’s own kernel, running in the contract: it calls these hooks itself (at the creation, after an upgrade, for the owner’s Stop and a transfer of ownership) and refuses them from anyone else.
Another contract of the strategyThe strategy’s hub or one of its legs, on the same chain: the contracts that make one strategy, and nothing else.
Circle’s message transmitterCircle’s CCTP MessageTransmitterV2 on that chain, delivering a message Circle attested from another contract of the same strategy on another chain.
AnyoneAny address. These functions take no recipient and act only as the code allows: they move nothing anywhere the owner did not choose.
The position’s own walletAny address, acting on its own Aave position only: the debt, the collateral and the permit are the caller’s.
The contract itselfCalled only by the contract on itself, from inside one of its own functions, so that one part can fail without undoing the rest; refused from anyone else.
CallbacksCalled back by a protocol in the middle of the contract’s own operation, and refused from anyone else.
Read-onlyViews and constants: they change nothing, and anyone may read them.

On this page