Search
Preparing search index...
The search index is not available
@augmint/js
Options
All
Public
Public/Protected
All
Inherited
Menu
Globals
"src/units"
Ratio
Class Ratio
Hierarchy
FixedPoint
Ratio
Index
Constructors
constructor
Properties
amount
DIV
DIV_
BN
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
String
zero
ToNull
of
parse
Constructors
constructor
new
Ratio
(
amount
:
BN
)
:
Ratio
Parameters
amount:
BN
Returns
Ratio
Properties
Readonly
amount
amount
:
BN
Static
Readonly
DIV
DIV
:
number
= 1000000
Static
Readonly
DIV_
BN
DIV_
BN
:
BN
= new BN(Ratio.DIV)
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
String
to
String
(
radix
?:
number
)
:
string
Parameters
Default value
radix:
number
= 10
Returns
string
zero
ToNull
zero
ToNull
(
)
:
this
|
null
Returns
this
|
null
Static
of
of
(
num
:
number
)
:
Ratio
Parameters
num:
number
Returns
Ratio
Static
parse
parse
(
str
:
string
)
:
Ratio
Parameters
str:
string
Returns
Ratio
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
constructor
amount
DIV
DIV_
BN
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
String
zero
ToNull
of
parse
Tokens
Wei
Generated using
TypeDoc