DeFi Lending Position Tracking: Collateral, Debt, and a Liquidation Risk (2026)
DeFi Lending Position Tracking: Collateral, Debt, and a Liquidation Risk (2026)
Reviewed by Wag3s Editorial Team — verified against the general DeFi lending model (supply/borrow accrual, health metric, liquidation), anchored on the Aave V3 mechanics · Last reviewed May 2026
DeFi Lending Position Tracking: Collateral, Debt, and a Liquidation Risk
Every DeFi lending position has the same skeleton: an asset you supplied that quietly grows, an asset you owe that quietly grows faster, and a number that can liquidate both. Trackers that read only the supply side miss two-thirds of it. This guide is the general lending shape and how to track it.
TL;DR
- A lending position is a pair: collateral leg (supply, accrues supply interest) + debt leg (borrow, accrues borrow interest).
- A health metric + liquidation threshold can liquidate both legs on an oracle move.
- The verified Aave V3 model (aTokens / variableDebtTokens / Health Factor) is the clearest instance; the same shape recurs across Compound, Morpho, Spark-type lending (protocol-specific in detail).
- Supply-only views overstate the net position and miss the growing liability + liquidation risk.
- Balances often change without a transfer (interest accrual) — read derived state, not transfer events.
- Tax is jurisdiction-specific — track mechanics, confirm tax separately.
The general shape
Concrete protocols differ, but a DeFi lending position almost always has the same skeleton:
| Leg | Behaviour |
|---|---|
| Collateral (supplied) | Typically accrues supply interest (often into the balance) |
| Debt (borrowed) | Accrues borrow interest — the liability grows |
| Health metric | Moves with oracle prices + accruals; below threshold → liquidation |
The verified concrete instance is Aave V3: aTokens (supply, balance grows), variableDebtTokens (debt, grows), Health Factor (risk). The same collateral/debt/health shape recurs in Compound, Morpho, and Spark-type lending — the detail differs by protocol (so confirm each protocol's specifics), but the tracking discipline is the shape, not one protocol's token names.
Why supply-only tracking fails
Reading only the supply leg:
- overstates the net economic exposure (ignores the debt);
- misses a growing liability (the debt accrues too);
- misses liquidation risk (an oracle move can seize collateral and clear debt).
A correct lending view always nets collateral against debt and models the health metric — the same "track the pair, not one side" rule as the Aave V3 article.
Accrual without a transaction
Many lending protocols accrue interest into the position, not via discrete transfers (the Aave scaled-balance / aToken model is the verified example). So a tracker that ingests only explicit transfer events misses interest accrual on both sides. It must read the derived position state and attribute the changes — the same lesson as stETH rebasing and Aave accrual.
Liquidation is its own event
A liquidation is a distinct economic event: collateral is seized (part or whole), debt is reduced or cleared, usually with a penalty. A tracker that does not model liquidation shows an unexplained collapse in both legs. Liquidation is not a transfer to classify casually — it is its own event with its own consequences for the position and any gain/loss (the same "model the event, not a mystery balance change" point as internal transfer vs disposal).
Tax is jurisdiction-specific
Whether supplying, accrual, borrowing, repaying, or liquidation is taxable is framework- and jurisdiction-specific and must not be assumed (see cost-basis methods). The collateral/debt/health/liquidation mechanics are the tracking layer; the tax characterisation is separate and adviser-confirmed.
Practical guidance
- Track the pair — net collateral against debt, never supply-only.
- Read derived state, not transfer events — accrual is silent on both legs.
- Model the health metric so liquidations are explained, not mysteries.
- Treat liquidation as its own event (seizure + debt clearing + penalty).
- Confirm each protocol's specifics — the shape generalises, the detail does not.
- Confirm tax characterisation per jurisdiction; apply the mandated cost-basis method.
How vendor tools handle DeFi lending
Koinly and CoinTracker model lending positions across major protocols. Confirm the tool nets collateral against debt, reads derived (accruing) balances not transfer-only, models liquidations as events, and handles per-protocol differences rather than one hard-coded shape — supply-only tracking is the recurring lending error.
How Wag3s helps
Wag3s Folio tracks DeFi lending as a collateral/debt pair, reads accruing derived balances on both legs, models the health metric and liquidations as events across Aave-, Compound-, Morpho- and Spark-type protocols, and surfaces the data for the jurisdiction-specific tax characterisation. See the Folio product page.
Further reading
- Aave V3 Position Tracking
- Rebasing vs Non-Rebasing Token Tracking
- DeFi Position Reconciliation
- Yield Farming Tracking
- Crypto Cost Basis Methods 2026
- Internal Transfer vs Disposal in Crypto
Sources
- General DeFi lending model (collateral leg + debt leg + health metric/liquidation), anchored on the verified Aave V3 mechanics (aTokens, variableDebtTokens, Health Factor, scaled balances)
- Interest accrual into the position (read derived state, not transfer events); liquidation as a distinct event (collateral seizure + debt clearing + penalty)
- Protocol-specific detail varies across Compound/Morpho/Spark-type lending — confirm each protocol; tax characterisation jurisdiction-specific
Pendle PT/YT Tracking: One Asset Split Into Two, With a Clock (2026)
Pendle splits a yield-bearing asset into a Principal Token and a Yield Token. PT redeems 1:1 for the underlying at maturity and trades at a discount before; YT carries the future yield and decays to zero at maturity. Why PT+YT is a time-bound decomposition a portfolio must not value at par early.
Rebasing vs Non-Rebasing Token Tracking: Where the Yield Hides (2026)
A rebasing token grows your balance with no transfer; a non-rebasing wrapper keeps the balance fixed and moves the value into a price. stETH, aTokens and their wrappers are the same exposure in two forms — and a tracker that confuses them produces phantom inflows or a hidden gain. The general model.
Every chain, integration, and competitor mentioned in this article gets its own page — coverage detail, comparison signals, and the audit trail your finance team needs.
- Integration
Aave
Lending protocol with interest accrual.
View page - Chain
Ethereum
ERC-20, DeFi, gas, restaking — the largest ecosystem.
View page - Chain
Solana
SPL tokens, native stake, Jupiter, Metaplex NFTs.
View page - Integration
NetSuite integration
Mid-market and enterprise crypto subledger.
View page - Integration
QuickBooks integration
SMB GL with daily JE sync.
View page - Integration
Safe integration
DAO and corporate multi-sig accounting.
View page