LP token balanceOf used for pricing
SUNSwap (sun.io)'s assessment for RD-F-061 — scored not_applicable on the v1.7.0 rubric. The evidence below is the curator's reasoning for this score.
Evidence summary #
SUNSwap does not derive pricing from LP token balanceOf. V2/V3 pricing is reserve-based (stored reserve state variables updated via _update() on each interaction, not live balanceOf() — donation manipulation via direct transfer does not affect reserve accounting in the same tx). V4 uses VaultToken accounting. The donation-manipulation vector is therefore not applicable as an oracle pricing path.
Sources #
- GitHubSunswapV2Pair.sol — reserve vs balanceOf pricingsun-protocol/sunswap-v2-contracts: contracts/SunswapV2Pair.sol — reserve-based pricing via _update(), not balanceOf()retrieved 2026-05-17
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 →