defirisk.co
rubric v1.7.0

LP token balanceOf used for pricing

PancakeSwap'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 #

AMM V2/V3 pricing is based on the reserve ratio from pool contract internal state. Standard Uniswap V2/V3 AMM design — does not use balanceOf of LP tokens in a separate contract for pricing. Donation to a V2 pool changes reserves and therefore price, but this is the standard AMM mechanism, not the LP-token balanceOf pricing pattern this factor targets.

Sources #

  • GitHub
    pancake-smart-contracts — GitHubPancakeSwap V2/V3 are confirmed Uniswap V2/V3 forks — standard reserve-ratio pricing confirmed by fork lineageretrieved 2026-04-28

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 pancakeswap factor RD-F-061 score green collected_at 2026-04-28 19:10:57