LP token balanceOf used for pricing
Orca'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 #
Orca does not use balanceOf of LP tokens for pricing. CLMM pricing is based on sqrt_price and tick state in the Whirlpool state account. LP positions are represented as NFT position accounts, not fungible LP tokens with balanceOf semantics. Additionally, Solana does not have Solidity-style EVM function calls — the EVM-specific balanceOf donation-manipulation pattern is architecturally inapplicable. gap_reason: not_applicable (non-EVM substrate + NFT-based position accounting).
Sources #
- GitHubState directory — whirlpool.rs uses sqrt_price; position.rs uses NFT receipt, not fungible LP tokenorca-so/whirlpools — programs/whirlpool/src/state/whirlpool.rs (sqrt_price field) and state/position.rs (NFT-based position)retrieved 2026-05-16
- Coverage flag: non_evm_substrate — Chainlink aggregator factor EVM-specific00-data-cache.json coverage_flags.non_evm_substrate = trueretrieved 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 →