Explore DefiLords

Automate the full spectrum of on-chain earning — so anyone with a wallet can access strategies that today require a trading desk. Here is what the protocol does, why it exists, and where it is headed.

Protocol Overview
Version 1.0
Table of Contents
1.

Mission & Vision

Automate the full spectrum of on-chain earning — so anyone with a wallet can access strategies that today require a trading desk.

Every meaningful way to earn on-chain — lending, staking, liquidity provision, delta-neutral basis trades, directional trading, perpetuals — is operationally demanding. Each requires monitoring, timing, rebalancing, and risk management that most capital cannot justify paying for.

DefiLords is building a single deposit surface over all of it: you deposit once, the protocol runs the strategy, and the accounting tells you the truth about what you earned.

Vision

Two commitments define the protocol:

1. Every earning primitive, one roof

Lending and borrowing markets. Staking. Concentrated liquidity. Market-neutral yield. Directional trading. Perpetuals. Each as a vault you can enter with a single deposit, each managed by automation that never sleeps.

2. Every number traces to an on-chain fact

The industry norm is dashboards showing gross yield without impermanent loss, APYs annualised from a single lucky day, and "total earned" figures that quietly include your own returned principal. We build the opposite.

The second commitment is the harder one, and it is what we intend to be known for.

2.

The Problem

On-chain earning is operationally expensive

A concentrated Uniswap V3 position stops earning the moment price exits its range. Lending positions need monitoring for rate changes and utilisation risk. Trading strategies need constant execution discipline. Doing any of these properly is a full-time job — and doing all of them is a team.

Yield reporting across DeFi is systematically misleading

Three failure modes we have measured in our own contracts and fixed:

FailureWhat it looks like to a userReality
Recycled principal counted as yield"You earned $35 this harvest"Most of it was the vault's own capital being swept back and taxed as profit
Withdrawals liquidating shared positionsSmall exit, whole vault's LP closedEvery remaining depositor pays swap costs and stops earning until redeployment
Yield shown gross of impermanent loss"$8.57 in fees earned"Position simultaneously below its cost basis

We do not present these as hypotheticals. Each was found in our own code, reproduced with tests, and fixed — details in .

There is no per-user yield attribution in most vaults

Auto-compounding vaults fold yield into share price. That is efficient, but neither the protocol nor the user can then answer "how much did I actually earn?" without off-chain reconstruction that breaks whenever someone deposits or withdraws between harvests.

3.

How It Works

LIVE ARCHITECTURE
User deposit → ERC-4626 Vault → Strategy Adapter → Protocol (Aave / Morpho / Uniswap V3 / Pendle)
                    ↑
             Keeper (automation): deployIdle · rebalance · harvest

Vaults hold deposits and issue ERC-4626 shares (or an ERC-721 receipt for the NFT-based LP vault). Adapters are swappable modules holding the actual position — this is what lets the protocol add new strategies without migrating user funds. The keeper is an off-chain bot executing on cron schedules, restricted on-chain to onlyKeeper functions: it can operate positions but cannot change ownership, alter fees, or withdraw funds.

Signal engine — current status

A Python service computes market signals across on-chain metrics, social sentiment (FinBERT), macro regime classification, and portfolio optimisation (mean-variance / Black-Litterman / risk parity by regime).

Status: research and monitoring. These signals inform operator decisions and are surfaced on the AI Vaults platform. They do not currently execute on-chain allocation — live vault behaviour is governed by deterministic rules. Connecting the engine to live allocation is a roadmap item, gated on the safety work in Security.

Security model

RoleHolderPowers
OwnerCold wallet (hardware)Set adapter/keeper/fees, pause, emergency exit
KeeperHot EOA (automation)deployIdle, harvest, rebalance only
GuardianOptional fast-response keypause only — cannot unpause or move funds
Fee recipientGnosis Safe multisigReceives performance fees

Deployment scripts transfer ownership to the cold wallet atomically within the deploy transaction — there is no window in which a hot key controls a live vault.

4.

Engineering

This section exists because we think it is the most honest signal of engineering quality available. Each item is a real defect found in our own contracts, with the fix.

4.1 Partial withdrawals

Problem

The vault's withdraw path closed the entire shared position regardless of withdrawal size. A $150 exit from a $1,200 position stopped every remaining depositor from earning and imposed swap costs on them.

Fix

The adapter now performs a proportional liquidity decrease sized to the withdrawal plus a swap-cost margin, with a full-close fallback only when a partial cannot serve the request. Verified on mainnet: a $150 withdrawal removed 2.6% of the position and it stayed open and earning.

4.2 Harvest accounting

Problem

harvest() returned the adapter’s entire loose balance as "profit," so capital left over from a rebalance was reported as yield and charged a performance fee.

Fix

Loose principal returns to the vault untaxed; profit is measured strictly as freshly-collected fees. A two-pass dust sweep prevents swap output stranding in the adapter.

4.3 Per-user yield attribution

Problem

Auto-compounding leaves no per-user record of earned yield.

Fix

An on-chain reward-per-share index (Q128 fixed point) advances once per harvest — O(1), no iteration over depositors — with lazy per-user settlement on any balance change. lifetimeYield(address) returns a user's exact attributed yield directly on-chain. Late depositors receive nothing retroactively; exiting users keep what they earned.

4.4 MEV and slippage protection

Problem

Swaps executed with no minimum-output floor — sandwichable.

Fix

A 30-minute TWAP-derived floor rejects any swap returning less than 99.5% of the oracle-implied price.

4.5 Challenges we have not solved

  • Impermanent loss is not eliminated by any of the above. Concentrated liquidity carries directional risk; LP vaults can and do fall below cost basis during price moves.
  • Keeper liveness. The keeper is off-chain. During an outage, funds remain safe and withdrawable, but yield pauses. Automated health alerting is a roadmap item.
  • Per-harvest historical attribution. The index gives exact lifetime totals, but reconstructing a user's share of a specific past harvest requires historical balances not preserved on-chain.
5.

How We Compare

Yield aggregatorsAutomated LP managersLending front-endsDefiLords
Lending & borrowing marketsYesNoYesYes
Automated LP range managementNoYesNoYes
Partial withdrawal without disturbing shared positionn/aVariesn/aYes
Per-user on-chain yield attributionShare price onlyShare price onlyManualYes — lifetimeYield()
Harvest excludes recycled principalGenerallyGenerallyn/aExplicitly enforced
Trading / perpetuals under same roofNoNoNoIn development
Independent auditMature protocols: yesYesYesPartial
Track record / TVLYears, $100M+Years, $10M+Years, $1B+Months, early-stage

Where we're genuinely ahead

Accounting correctness, withdrawal mechanics, and breadth of strategy under one deposit.

Where we're behind, plainly

Audit coverage, operating history, and scale. We are early-stage software and a reader comparing us to established protocols should weight that honestly.

6.

Roadmap

Near term

  1. Completing independent audit coverage across all vault contracts.
  2. Automated keeper health monitoring and alerting.
  3. Per-user yield attribution extended to the remaining vaults.
  4. Timelock on privileged admin operations.

DefiLords Alpha Hunter

Prototype

Our directional-trading and perpetuals roadmap is being built as Alpha Hunter, an autonomous on-chain trading agent, developed for the BNB Hack 2026 Onchain Trading Agent track and running on BNB Chain via PancakeSwap V2.

What exists today

ComponentDetail
Signal engine v2RSI, MACD, EMA on 4h candles, combined into a 0–100 score: momentum 35%, volume 20%, trend 20%, category 15%, market regime 10%
Watchlist109 tokens, live CoinMarketCap pricing, scored and ranked continuously
Regime awarenessFear & Greed index and market-regime classification adjust scoring and sizing
Liquidity GuardBlocks any trade in a pool below $50k depth or exceeding 2% price impact — thin-liquidity tokens are flagged and refused rather than traded badly
Risk controlsConfigurable trading modes (Conservative / Balanced / Aggressive / Scalp-Lock) governing position size, stop-loss, take-profit, poll interval, daily trade cap, and minimum score threshold
Kill switchExecution can be paused independently of the agent, with dry-run and live-trading flags gated separately
Key isolationThe agent's private key stays server-side and is never connected to a frontend

Status: experimental prototype. Not available to depositors, and not managing user funds. It trades a small dedicated wallet for research purposes and is currently paused. Performance to date is a development dataset on small position sizes, not a track record — we will publish verified performance only after the strategy runs an extended live period under stable parameters.

The path to production is the same discipline applied to the vaults: risk limits enforced in code, an independent review, a small canary deployment, and honest reporting of results — including losses — before any user capital is accepted.

Longer term

  1. Perpetual-funding capture as a market-neutral vault strategy.
  2. Hedged/borrowing strategies with explicit leverage limits and disclosure.
  3. Connecting the signal engine to live vault allocation, behind circuit breakers.
  4. Cross-chain expansion beyond Arbitrum.
  5. Public bug bounty programme.

Roadmap items are intentions, not commitments, and are not ordered by date.

7.

Security & Risk

Important: DefiLords is beta software. The protocol is early-stage, operating at small scale, and under active development. Do not deposit more than you can afford to lose.

Audit coverage is partial. Independent security review is underway; not all contracts have been audited. Findings are remediated through new contract deployments and migration, since vault contracts are immutable by design.

Risks users are accepting

RiskDescription
Smart contract riskEarly-stage code holding funds; not all contracts independently audited
Impermanent lossLP vaults can fall below deposited value on price moves
Keeper dependencyIf automation stops, yield pauses (deposits stay withdrawable)
Variable yieldHistorical APY is not a forecast; returns can be zero or negative
Protocol riskUnderlying lending markets carry their own smart-contract and liquidity risk
Admin keysOwner can change adapters and fees; no timelock currently

What protects users

  • Withdrawals are never blocked by pause() — pausing halts deposits only.
  • Owner is a hardware cold wallet; the keeper is a restricted role that cannot move funds.
  • Performance fee capped at 20% in contract code; currently 10%.
  • Emergency exit unwinds positions to redeemable stablecoins.
  • Reserve ratio keeps a portion of every vault liquid for ordinary withdrawals.

Full legal terms and risk disclaimer: Terms of Service →

Ready to Start Earning?

Deposit once and let the protocol run the strategy — with accounting that tells you the truth about what you earned.

Protocol Overview • Version 1.0