Skip to content

refactor: derive getBaseFactor from statics in AbstractLightningCoin#8294

Open
lcovar wants to merge 1 commit intomasterfrom
BTC-3158-lightning-getbasefactor-statics
Open

refactor: derive getBaseFactor from statics in AbstractLightningCoin#8294
lcovar wants to merge 1 commit intomasterfrom
BTC-3158-lightning-getbasefactor-statics

Conversation

@lcovar
Copy link
Contributor

@lcovar lcovar commented Mar 13, 2026

Replace the hardcoded 1e11 return value in getBaseFactor() with Math.pow(10, this._staticsCoin.decimalPlaces), following the same pattern used by Dot, Bld, Osmo, and other coins. The statics LightningCoin already has decimalPlaces: 11 so behavior is unchanged.

BTC-3158

TICKET: BTC-3158

Replace the hardcoded 1e11 return value in getBaseFactor() with
Math.pow(10, this._staticsCoin.decimalPlaces), following the same
pattern used by Dot, Bld, Osmo, and other coins. The statics
LightningCoin already has decimalPlaces: 11 so behavior is unchanged.

BTC-3158

TICKET: BTC-3158
@lcovar lcovar marked this pull request as ready for review March 13, 2026 22:18
@lcovar lcovar requested review from a team as code owners March 13, 2026 22:18
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