TVL can be calculated either using events or token transfers.
When using Add/Remove Liquidity events, do note to account for swap fees which are accumulated in the LP position.
For TJ v2, note that each bin has its own individual events. Eg. when LP is added across 5 bins, there's 5 individual events being emitted during the tx.
Swaps are better calculated using events since there's additional information included in the event logs.
This may include protocol fees and swap fees which are otherwise manually calculated.
Logs are decoded in this sample query for reference.

The Mantle network is a Layer 2 scaling solution network on Ethereum. It is EVM-compatible and allows the cross-deployment of applications from the mainnet and other EVM chains.
Mantle network offers an improved user experience without sacrificing security and decentralization by modularizing blockchain operations.
Mantle network leverages optimistic rollups to execute transactions in batches and a sequencer to arrange the blocks and publish them to the mainnet, saving time and fees.
Information on rolled-up transactions is stored on Mantle’s novel Data Availability nodes powered by EigenDA and available for retrieval and easy access on the Ethereum mainnet.
There has been growing DeFi activity on the Mantle Blockchain, particularly driven by its liquid staking protocol (mETH).
To gain deeper insights into this burgeoning ecosystem, we leverage Flipside's Mantle Data to analyze on-chain events across various Mantle protocols.
The objective of this dashboard is to build out sample queries of various protocols on mantle using Flipside's fact_event_logs
or ez_decoded_event_logs
tables.
For any questions/request, do contact me at @cloud_r3n
on Twitter.



