LP token balanceOf used for pricing
QuickSwap's assessment for RD-F-061 — scored green on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
Not applicable — QuickSwap DEX does not use LP token balanceOf for pricing. V2 pair contracts track reserves separately via internal _reserve0/_reserve1 state variables updated in _update() after each interaction, explicitly preventing donation-manipulation. V3/Algebra uses tick state, not balanceOf. This is the canonical manipulation-resistance design of Uniswap v2 forks.
Sources #
- GitHubQuickSwap V2 UniswapV2Pair.sol — _update() reserve trackingUniswapV2Pair.sol _update(uint balance0, uint balance1, uint112 _reserve0, uint112 _reserve1) — reserves updated from balances post-transfer; invariant check uses reserves not live balanceOfretrieved 2026-05-16
Methodology #
Determine whether protocol pricing is derived from the `balanceOf` of LP tokens in a contract (manipulable by direct token transfer / donation).
See the full factor methodology and distribution across all protocols →
rubric_version v1.7.0 protocol quickswap factor RD-F-061 score green collected_at 2026-05-16 08:48:31