Skip to content

feat(sdk-coin-sol): add scaled-UI uiAmount/raw conversion util - #9747

Merged
abhishekagrawal080 merged 1 commit into
masterfrom
CSHLD-1688
Sep 16, 2026
Merged

abhishekagrawal080 merged 1 commit into
masterfrom
CSHLD-1688

Conversation

@abhishekagrawal080

@abhishekagrawal080 abhishekagrawal080 commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

TICKET: CSHLD-1688

Add exact multiplier-aware conversions for Solana Token-2022 ScaledUiAmount mints: rawToUiAmountString (ui = raw * multiplier / 10^decimals, exact by construction — the divisor is a power of ten so the expansion terminates) and uiAmountToRaw (inverse, floored to integer base units). All math is BigInt scaled-integer; floats are never used, so results are deterministic across runtimes.

@abhishekagrawal080
abhishekagrawal080 requested a review from a team as a code owner September 16, 2026 07:04
@linear-code

linear-code Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

CSHLD-1688

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Unit tests are failing on Node 26.x (Current release line, non-blocking). This is not an LTS version yet, so it does not block merge, but it signals an incompatibility to fix before Node 26.x becomes LTS.

View run

@abhishekagrawal080
abhishekagrawal080 merged commit a44dec6 into master Sep 16, 2026
26 checks passed
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.

2 participants