init
This commit is contained in:
commit
44f31f8b9f
402 changed files with 47865 additions and 0 deletions
6
utils/numberUtils.js
Normal file
6
utils/numberUtils.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
import { BigNumber as BN } from 'bignumber.js'
|
||||
|
||||
// return the number of decimal places of the value
|
||||
export function decimalPlaces(value) {
|
||||
return new BN(value).dp()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue