Class: DAI
Defined in: bee-js/src/utils/tokens.ts:102
Properties
DIGITS
readonlystaticDIGITS:18=18
Defined in: bee-js/src/utils/tokens.ts:103
Methods
divide()
divide(
other):DAI
Defined in: bee-js/src/utils/tokens.ts:169
Does not mutate the current DAI instance.
Parameters
other
bigint
Divisor
Returns
DAI
New DAI instance
eq()
eq(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:189
Parameters
other
DAI
Returns
boolean
exchangeToBZZ()
exchangeToBZZ(
daiPerBzz):BZZ
Defined in: bee-js/src/utils/tokens.ts:193
Parameters
daiPerBzz
DAI
Returns
gt()
gt(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:173
Parameters
other
DAI
Returns
boolean
gte()
gte(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:177
Parameters
other
DAI
Returns
boolean
lt()
lt(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:181
Parameters
other
DAI
Returns
boolean
lte()
lte(
other):boolean
Defined in: bee-js/src/utils/tokens.ts:185
Parameters
other
DAI
Returns
boolean
minus()
minus(
other):DAI
Defined in: bee-js/src/utils/tokens.ts:159
Does not mutate the current DAI instance.
Parameters
other
DAI instance, or amount in PLUR
string | bigint | NumberString | DAI
Returns
DAI
New DAI instance
plus()
plus(
other):DAI
Defined in: bee-js/src/utils/tokens.ts:149
Does not mutate the current DAI instance.
Parameters
other
DAI instance, or amount in PLUR
string | bigint | NumberString | DAI
Returns
DAI
New DAI instance
toDecimalString()
toDecimalString():
string
Defined in: bee-js/src/utils/tokens.ts:131
Returns
string
toFloat()
toFloat():
number
Defined in: bee-js/src/utils/tokens.ts:139
Returns
number
toSignificantDigits()
toSignificantDigits(
digits):string
Defined in: bee-js/src/utils/tokens.ts:135
Parameters
digits
number
Returns
string
toWeiBigInt()
toWeiBigInt():
bigint
Defined in: bee-js/src/utils/tokens.ts:127
Returns
bigint
toWeiString()
toWeiString():
string
Defined in: bee-js/src/utils/tokens.ts:123
Returns
string
fromDecimalString()
staticfromDecimalString(string):DAI
Defined in: bee-js/src/utils/tokens.ts:111
Parameters
string
string
Returns
DAI
fromFloat()
staticfromFloat(float):DAI
Defined in: bee-js/src/utils/tokens.ts:119
Parameters
float
number
Returns
DAI
fromWei()
staticfromWei(wei):DAI
Defined in: bee-js/src/utils/tokens.ts:115
Parameters
wei
string | bigint | NumberString
Returns
DAI