Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Bug: Payload generates negative USDC transfer for Beets when fees are zero #300

Description

@jalbrekt85

In fee_allocator.py:380-381, all usdc transfer amounts unconditionally subtract 1000 wei as a rounding buffer:

beets_fee_usdc = round(beets_df["amount"] * 1e6) - 1000

When beets fees are zero, this produces -1000. The combined payload then sums v2 and v3 entries to -2000.

Observed in the 2026-02-12 → 2026-02-26 run (PR #298). Manually removed from payloads.

Fix: Skip the transfer (or skip the -1000 subtraction) when the amount is zero.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions