Velocore pools from deposits to LP tokens
Velocore V2 coordinated pool deposits through a vault. Pool assets were exchanged for liquidity provider (LP) tokens representing a liquidity position, using the same operation framework as token swaps.
Token Terminal's project status notice reports that the website is inactive and that the project may be discontinued. The pool operations described here belong to its historical design.
How the vault connected assets and pools
In
Stuart's July 4, 2024 postmortem for Zokyo, the vault's
execute()
entrypoint received token references and operation descriptions, then called the pool's
velocore__execute()
function. The pool calculated balance changes. The analysis covered the USDC-ETH
constant product pool
on Linea.
Example: Distinguishing a trade from a liquidity contribution
Consider two hypothetical operation descriptions for that V2 USDC-ETH pool:
-
USDC enters and ETH leaves; the operation is tagged
SWAP. -
USDC and ETH enter and the pool's LP token leaves; the operation is also tagged
SWAP.
The first describes a token trade. The second describes liquidity provision. The
SWAP
tag alone cannot distinguish them; the token directions and the LP token's role supply the answer.
Deposit amounts and the LP output floor
The illustrated deposit payload fixed the USDC and ETH inputs with
EXACTLY
and set a zero minimum LP output. Input amounts and the output floor were separate constraints.
Pool type and incident scope
Bittime's June 3, 2024 incident report described volatile pools on Linea and zkSync Era as drained and the stable pool as unaffected by that attack.
LP units and vault valuation
DefiLlama's V2 TVL methodology counts tokens held in the vault. Its dollar valuation measures a different quantity from the number of LP tokens representing a pool position. A vault-wide TVL figure alone cannot determine the LP output for a particular deposit.
last updated