Skip to content

fix(sdk): document DailyLimitStatus stroops units and add stroopsToUsdc helper (#676)#735

Merged
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
AnnabelJoe:fix/676-daily-limit-status-docs
Jun 1, 2026
Merged

fix(sdk): document DailyLimitStatus stroops units and add stroopsToUsdc helper (#676)#735
Haroldwonder merged 1 commit into
Haroldwonder:mainfrom
AnnabelJoe:fix/676-daily-limit-status-docs

Conversation

@AnnabelJoe
Copy link
Copy Markdown

Closes #676

Problem

DailyLimitStatus.remaining and limit fields had no documentation of their units, causing ambiguity between stroops and USDC in callers like SendMoneyFlow.tsx.

Fix

  • Added JSDoc to all three numeric fields (limit, used, remaining) explicitly stating the unit is stroops (1 USDC = 10,000,000 stroops).
  • Added stroopsToUsdc(stroops: bigint): number helper function for converting to human-readable USDC amounts.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@AnnabelJoe is attempting to deploy a commit to the Harold's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Jun 1, 2026

@AnnabelJoe Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Haroldwonder Haroldwonder merged commit b20a217 into Haroldwonder:main Jun 1, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sdk/src/types.ts DailyLimitStatus missing 'remaining' field documentation

2 participants