Skip to content
All guides

Staking and DeFi · All teams · Oct 14, 2026 · 2 min read

DeFi transactions: a classification guide for reviewers

Swaps, liquidity pools, lending and wrapping explained in plain terms, with the questions each one raises.

By ChainLedger editorial team · Crypto audit, tax and fund reporting · Last reviewed

Key takeaways

  • One DeFi action can create several on-chain transactions. Classify the action, not each line.
  • Swaps are generally treated as selling one asset and buying another.
  • Where the treatment is unclear, record the judgment and the reason.

A single click in a DeFi app can produce a handful of on-chain transactions: an approval, a transfer in, a transfer out and a fee. The reviewer's job is to see the action behind them and classify it consistently.

Common DeFi actions

ActionWhat happensQuestion to answer
SwapOne token for anotherPriced at the time of the swap?
Add liquidityTokens into a pool for an LP tokenIs this a disposal of the tokens?
Remove liquidityLP token back for pool tokensWhat came back, and at what value?
Lend or depositTokens into a lending protocolIs a receipt token a new asset?
Borrow and repayLoan taken out and paid backInterest paid, and any liquidation?
WrapETH to WETH and similarIs it treated as the same asset?
RewardsProtocol pays out tokensIncome, valued when received?

Swaps are generally treated as selling one asset and buying another. Several other actions, especially liquidity and wrapping, have no settled guidance, so the treatment is a judgment for the client's tax adviser.

A review routine

  1. 1Group the raw transactions into actions by transaction hash and time.
  2. 2Classify each action using a written policy, so the same action is treated the same way every time.
  3. 3Price every leg at the time of the action.
  4. 4Check the wallet balance afterwards. Missed receipt tokens and fees show up here.
  5. 5Record any judgment call with the reason and who made it.

ChainLedger reads swaps, lending and liquidity activity on EVM chains and Solana, flags anything it can't classify with confidence, and logs every classification your team changes with who, when and why.

This guide is general information, not legal, tax or investment advice. Rules change and depend on the facts; confirm the treatment for any client with a qualified tax professional.

Related product page: Staking and DeFi reporting