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
| Action | What happens | Question to answer |
|---|---|---|
| Swap | One token for another | Priced at the time of the swap? |
| Add liquidity | Tokens into a pool for an LP token | Is this a disposal of the tokens? |
| Remove liquidity | LP token back for pool tokens | What came back, and at what value? |
| Lend or deposit | Tokens into a lending protocol | Is a receipt token a new asset? |
| Borrow and repay | Loan taken out and paid back | Interest paid, and any liquidation? |
| Wrap | ETH to WETH and similar | Is it treated as the same asset? |
| Rewards | Protocol pays out tokens | Income, 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
- 1Group the raw transactions into actions by transaction hash and time.
- 2Classify each action using a written policy, so the same action is treated the same way every time.
- 3Price every leg at the time of the action.
- 4Check the wallet balance afterwards. Missed receipt tokens and fees show up here.
- 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