fix: coupon form, styling and server handling
This commit is contained in:
parent
5045821593
commit
9d4c4041dc
7 changed files with 138 additions and 118 deletions
|
|
@ -6,7 +6,7 @@ function truncateCrypto (cryptoAtoms, cryptoCode) {
|
|||
const DECIMAL_PLACES = 3
|
||||
if (cryptoAtoms.eq(0)) return cryptoAtoms
|
||||
|
||||
const scale = 5 // TODO: change this to coins.displayScale when coins have that attribute
|
||||
const scale = coinUtils.getCryptoCurrency(cryptoCode).displayScale
|
||||
const scaleFactor = BN(10).pow(scale)
|
||||
|
||||
return BN(cryptoAtoms).truncated().div(scaleFactor)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue