@coinmasters/helpers
Advanced tools
Comparing version 11.0.22 to 11.0.23
@@ -663,3 +663,7 @@ var be = Object.defineProperty; | ||
); | ||
}, O = 8, v = (r) => 10n ** BigInt(r), I = (r) => Math.log10(parseFloat(r.toString())); | ||
}, O = 8, v = (r) => { | ||
console.log("toMultiplier input decimal:", r); | ||
const e = 10n ** BigInt(r); | ||
return console.log("toMultiplier result:", e), e; | ||
}, I = (r) => Math.log10(parseFloat(r.toString())); | ||
function H({ | ||
@@ -666,0 +670,0 @@ value: r, |
@@ -11,5 +11,5 @@ { | ||
"vitest": "0.34.6", | ||
"@internal/config": "2.7.22", | ||
"@coinmasters/tokens": "3.7.22", | ||
"@coinmasters/types": "4.7.22" | ||
"@coinmasters/tokens": "3.7.23", | ||
"@internal/config": "2.7.23", | ||
"@coinmasters/types": "4.7.23" | ||
}, | ||
@@ -20,4 +20,4 @@ "eslintConfig": { | ||
"peerDependencies": { | ||
"@coinmasters/tokens": "3.7.22", | ||
"@coinmasters/types": "4.7.22" | ||
"@coinmasters/types": "4.7.23", | ||
"@coinmasters/tokens": "3.7.23" | ||
}, | ||
@@ -47,3 +47,3 @@ "exports": { | ||
"types": "./dist/index.d.ts", | ||
"version": "11.0.22", | ||
"version": "11.0.23", | ||
"scripts": { | ||
@@ -50,0 +50,0 @@ "build": "vite build", |
@@ -17,3 +17,10 @@ import { BaseDecimal } from '@coinmasters/types'; | ||
const DEFAULT_DECIMAL = 8; | ||
const toMultiplier = (decimal: number) => 10n ** BigInt(decimal); | ||
const toMultiplier = (decimal: number): bigint => { | ||
console.log('toMultiplier input decimal:', decimal); | ||
const result = 10n ** BigInt(decimal); | ||
console.log('toMultiplier result:', result); | ||
return result; | ||
}; | ||
// const toMultiplier = (decimal: number) => 10n ** BigInt(decimal); | ||
const decimalFromMultiplier = (multiplier: bigint) => Math.log10(parseFloat(multiplier.toString())); | ||
@@ -20,0 +27,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
240090
4053