How is TVL calculated for a ShibaSwap liquidity pool?
Calculate ShibaSwap pool TVL by multiplying each token reserve by its USD price and adding the results, using prices from the same source and time.
Crypto Talk Editorial2 min read
A ShibaSwap liquidity pool’s TVL is the USD value of both token reserves added together. Each reserve is multiplied by its token’s USD price because TVL expresses the pool’s balances in one common currency.
TVL means “total value locked”: the combined value of assets held in a pool. If you are getting to grips with the term, this shiba swap TVL pool example shows how a pool calculation fits the wider idea; shiba swap uses the same reserve-and-price logic.
The two reserves determine the pool’s TVL
To calculate pool TVL, read how many units of each paired token the pool contract holds, then value each reserve in USD.
The formula is: TVL (USD) = reserve A × price A (USD) + reserve B × price B (USD). Use the price for each token, then add the two dollar values. Counting only one side leaves out part of the pool’s assets.
Say a hypothetical pool holds 2 ETH and 4,000 USDC. At prices of $2,000 per ETH and $1 per USDC, the calculation is:
- 2 ETH × $2,000 = $4,000.
- 4,000 USDC × $1 = $4,000.
- $4,000 + $4,000 = $8,000 in TVL.
The $8,000 is an estimate of the pool’s assets at those prices. If a pool pairs BONE with another token, use the BONE reserve and its USD price in the same formula.
One valuation time keeps the estimate consistent
Value both reserves using USD prices from the same source and timestamp. Token prices move, so combining a recent ETH price with an older USDC or BONE price can produce a total that does not reflect one moment in time.
In practice, a person checking a ShibaSwap pool first reads each token reserve, then gets both USD prices for the same valuation time, multiplies each reserve by its price, and sums the results. When using Dig to add paired assets, those reserve amounts are the pool balances to value; an SSLP position relates to a share of the pool, while this calculation values the whole pool.
TVL changes when reserves or token prices change. State the valuation time alongside the result so the dollar estimate is clear.