mirror of
https://github.com/Brotocol-xyz/bro-sdk.git
synced 2026-01-12 22:25:00 +08:00
fix: toSDKNumberOrUndefined returned 1e-9 when given 0.000000001
This commit is contained in:
@@ -3,6 +3,9 @@ import { OneOrMore } from "./typeHelpers"
|
||||
import { last } from "./arrayHelpers"
|
||||
import { reduce } from "./arrayHelpers"
|
||||
|
||||
Big.PE = 21
|
||||
Big.NE = -21
|
||||
|
||||
export type BigNumberSource = number | bigint | string | Big | BigNumber
|
||||
|
||||
const toBig = (num: BigNumberSource): Big => {
|
||||
|
||||
Reference in New Issue
Block a user