Skip to content

DeFi Transactions

Decentralized finance (DeFi) interactions are among the most complex events to account for. CryptaCount provides a dedicated DeFi module with pipeline processing, position tracking, bridge reconciliation, gas fee analysis, and derivatives support.

The DeFi module is available on qualifying plans. When enabled, the following sections become available in the sidebar:

Sidebar LabelFeature
DeFi → PipelineAccounting pipeline — process and review DeFi events
DeFi → PositionsDeFi positions — LP, lending, staking positions
DeFi → BridgesBridge tracking — cross-chain transfers
DeFi → Gas FeesGas fee analysis and reporting

The pipeline under DeFi → Pipeline processes DeFi events through a status workflow:

PENDING → CLASSIFIED → POSTED (or FAILED / MANUAL_REVIEW / SKIPPED)

Events enter as PENDING, are classified by the engine, and then posted as journal entries. Events that can’t be auto-classified go to MANUAL_REVIEW for human intervention.

The pipeline view shows:

  • Pending events awaiting classification
  • Events in review status needing manual attention
  • Status counts per stage
  • Multi-leg transaction groups (DeFi operations that span multiple legs)

Track active DeFi positions under DeFi → Positions:

  • All positions — Complete list of DeFi positions across protocols
  • Active positions — Currently open positions
  • LP positions — Liquidity pool positions with impermanent loss tracking
  • Lending positions — Deposits and borrows in lending protocols

Position data includes:

  • Protocol and pool/vault identifier
  • Deposited assets and quantities
  • Current value vs. deposited value
  • Accumulated rewards
  • Rebase token tracking for rebasing assets

DeFi transactions in the transaction list

Type: SWAP

Trading one token for another on DEXes (Uniswap, SushiSwap, Curve, etc.). The disposal triggers a realized gain/loss on the source token. The destination token is acquired at FMV.

Types: LP_ADD, LP_REMOVE

  • Add: Deposited assets are transferred to the pool. LP tokens acquired at the combined FMV.
  • Remove: LP tokens are disposed. Received assets are acquired at current FMV. Difference represents gain/loss (may include impermanent loss).

Types: STAKE, UNSTAKE, CLAIM_REWARD

  • Stake: Assets are locked but typically not disposed (still owned). No taxable event in most jurisdictions.
  • Unstake: Assets unlocked and returned.
  • Claim Reward: Reward tokens recognized as income at FMV at time of claim.

Types: BORROW, REPAY, LENDING_DEPOSIT, LENDING_WITHDRAW, LIQUIDATION

  • Lending deposits: Assets deposited, receipt tokens received
  • Interest earned: Recognized as income at FMV when claimed
  • Borrowing: Not income — creates a liability. Repayment reduces the liability.
  • Liquidation: Forced position closure — recorded with appropriate gain/loss

Types: WRAP, UNWRAP

Converting between native and wrapped versions (ETH ↔ WETH). Treated as non-taxable conversion — cost basis carries over.

Type: YIELD_CLAIM

Claiming accumulated yield from DeFi protocols. Recognized as income at FMV at time of claim.

Types: BRIDGE_OUT, BRIDGE_IN

Bridge tracking under DeFi → Bridges manages cross-chain asset movements:

  • Stale bridge detection — Identifies BRIDGE_OUT transactions without matching BRIDGE_IN
  • Resolution — Manually resolve stale bridges by linking the corresponding transaction on the destination chain
  • Cost basis carries over across the bridge. Bridge fees recorded as expenses.

Gas fee reporting under DeFi → Gas Fees provides:

  • Per-wallet gas fee totals
  • Gas fees by chain
  • Gas fee trends over time
  • Gas fees as a percentage of transaction value

This data feeds into the expense categories in financial reports.

CryptaCount supports derivatives accounting with dedicated sections:

Sidebar LabelFeature
DerivativesDerivatives dashboard — overview of all derivative positions
Derivatives → MarginMargin positions — open/close, collateral tracking, interest, liquidations
Derivatives → Futures & OptionsFutures and options — positions, funding rates, mark-to-market, premium tracking

Track margin positions with collateral movements, interest accrual, and liquidation events.

Track futures positions with funding rate payments, mark-to-market valuations, and settlement. Options tracking includes premium, exercise, and expiry events.

  • P&L Report — Profit and loss across all derivative positions
  • Funding Report — Futures funding rate payments and receipts
  • Open Positions — Current derivative exposure summary