What to collect
- Pool implementation and called function
- Underlying token movements
- Liquidity-token or position changes
Do not add shares and underlying assets as though they were separate losses. Logs need context from the contract and receipt.
Test the idea
A user deposits assets and receives pool shares. Is receiving shares a second independent gain?
Reveal the explanation
No. The shares represent the position acquired for the deposit. Account for the exchange of assets and claims.