Skip to content

V2 single-leg swap fee not min-protected (residual of #733) #919

Description

@FonsSicca

Source: data-quality audit of deployment 8fcf9a8 (2026-07-07). Full findings: Notion audit.

What to build

Min-protect the V2 single-leg swap fee. The V2 single-leg fee is not min-protected, a small over-count on one-sided V2 swaps. It affects Pool.totalFeesGenerated0/1/USD and UserStatsPerPool.totalFeesContributedUSD/0/1. CL is exact. This is the named residual of #733, whose min-of-legs protection covers the two-legged case but not the single-leg V2 path.

Acceptance criteria

Blocked by

None — can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agentFully specified, ready for an AFK agent

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions