Skip to content

agent: add remaining-spend helper and harden amount conversion #193

Description

@karagozemin

usdcToStroops currently accepts negative and non-finite amounts, silently producing invalid stroop values. Harden it to reject non-finite/negative input.

Also add a remainingAppraisalSpend helper so the bidder can report its remaining appraisal budget against the mandate cap.

Activity

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

Metadata

Metadata

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions