Search
Preparing search index...
The search index is not available
@augmint/js
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"src/units"
Tokens
Class Tokens
Hierarchy
FixedPoint
Tokens
Index
Constructors
constructor
Properties
amount
DIV
Methods
add
check
cmp
div
div
Floor
div
Round
div
ToRatio
eq
gte
is
Zero
lte
mul
mul
Ceil
mul
Round
sub
toJSON
to
Number
to
Rate
to
String
to
Wei
to
Wei
At
zero
ToNull
min
of
parse
Constructors
constructor
new
Tokens
(
amount
:
BN
)
:
Tokens
Parameters
amount:
BN
Returns
Tokens
Properties
Readonly
amount
amount
:
BN
Static
Readonly
DIV
DIV
:
number
= 100
Methods
add
add
(
other
:
this
)
:
this
Parameters
other:
this
Returns
this
Protected
check
check
(
other
:
FixedPoint
, type
?:
Function
)
:
void
Parameters
other:
FixedPoint
Default value
type:
Function
= this.constructor
Returns
void
cmp
cmp
(
other
:
this
)
:
number
Parameters
other:
this
Returns
number
div
div
(
ratio
:
Ratio
)
:
this
Parameters
ratio:
Ratio
Returns
this
div
Floor
div
Floor
(
ratio
:
Ratio
)
:
this
Parameters
ratio:
Ratio
Returns
this
div
Round
div
Round
(
ratio
:
Ratio
)
:
this
Parameters
ratio:
Ratio
Returns
this
div
ToRatio
div
ToRatio
(
other
:
this
)
:
Ratio
Parameters
other:
this
Returns
Ratio
eq
eq
(
other
:
this
)
:
boolean
Parameters
other:
this
Returns
boolean
gte
gte
(
other
:
this
)
:
boolean
Parameters
other:
this
Returns
boolean
is
Zero
is
Zero
(
)
:
boolean
Returns
boolean
lte
lte
(
other
:
this
)
:
boolean
Parameters
other:
this
Returns
boolean
mul
mul
(
ratio
:
Ratio
)
:
this
Parameters
ratio:
Ratio
Returns
this
mul
Ceil
mul
Ceil
(
ratio
:
Ratio
)
:
this
Parameters
ratio:
Ratio
Returns
this
mul
Round
mul
Round
(
ratio
:
Ratio
)
:
this
Parameters
ratio:
Ratio
Returns
this
sub
sub
(
other
:
this
)
:
this
Parameters
other:
this
Returns
this
toJSON
toJSON
(
)
:
string
Returns
string
to
Number
to
Number
(
)
:
number
Returns
number
to
Rate
to
Rate
(
ethers
:
Wei
)
:
Tokens
Parameters
ethers:
Wei
Returns
Tokens
to
String
to
String
(
radix
?:
number
)
:
string
Parameters
Default value
radix:
number
= 10
Returns
string
to
Wei
to
Wei
(
rate
:
Tokens
)
:
Wei
Parameters
rate:
Tokens
Returns
Wei
to
Wei
At
to
Wei
At
(
rate
:
Tokens
, price
:
Ratio
)
:
Wei
Parameters
rate:
Tokens
price:
Ratio
Returns
Wei
zero
ToNull
zero
ToNull
(
)
:
this
|
null
Returns
this
|
null
Static
min
min
(
o1
:
Tokens
, o2
:
Tokens
)
:
Tokens
Parameters
o1:
Tokens
o2:
Tokens
Returns
Tokens
Static
of
of
(
num
:
number
)
:
Tokens
Parameters
num:
number
Returns
Tokens
Static
parse
parse
(
str
:
string
)
:
Tokens
Parameters
str:
string
Returns
Tokens
Globals
"src/
Abstract
Contract"
"src/
Augmint"
"src/
Augmint
Token"
"src/
Deployed
Contract"
"src/
Deployed
Environment"
"src/
Errors"
"src/
Ethereum
Connection"
"src/
Exchange"
"src/
Loan"
"src/
Loan
Manager"
"src/
Loan
Product"
"src/
Rates"
"src/
Transaction"
"src/constants"
"src/gas"
"src/index"
"src/units"
"src/utils/generic"
"src/utils/index"
"src/utils/logger"
"src/utils/promise
Timeout"
"src/utils/sigint
Handler"
Ratio
Tokens
constructor
amount
DIV
add
check
cmp
div
div
Floor
div
Round
div
ToRatio
eq
gte
is
Zero
lte
mul
mul
Ceil
mul
Round
sub
toJSON
to
Number
to
Rate
to
String
to
Wei
to
Wei
At
zero
ToNull
min
of
parse
Wei
Generated using
TypeDoc