From f28e5f080e33f5eba03c867ed2cd1736e2d919d1 Mon Sep 17 00:00:00 2001 From: qwahzi Date: Sat, 6 Nov 2021 15:36:23 -0500 Subject: [PATCH] Switching to rawToMnano and mnanoToRaw --- .../components/account-details/account-details.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/account-details/account-details.component.ts b/src/app/components/account-details/account-details.component.ts index 82657f57..24bf3b32 100644 --- a/src/app/components/account-details/account-details.component.ts +++ b/src/app/components/account-details/account-details.component.ts @@ -655,8 +655,8 @@ export class AccountDetailsComponent implements OnInit, OnDestroy { } if (!this.util.string.isNumeric(this.amountFiat)) return; const rawAmount = this.util.nano.mnanoToRaw(new BigNumber(this.amountFiat).div(this.price.price.lastPrice)); - const nanoVal = this.util.nano.rawToNano(rawAmount).floor(); - const nanoAmount = this.getAmountValueFromBase(this.util.nano.nanoToRaw(nanoVal)).floor(); + const nanoVal = this.util.nano.rawToMnano(rawAmount).floor(); + const nanoAmount = this.getAmountValueFromBase(this.util.nano.mnanoToRaw(nanoVal)).floor(); this.amount = nanoAmount.toNumber(); } @@ -738,7 +738,7 @@ export class AccountDetailsComponent implements OnInit, OnDestroy { getAmountValueFromBase(value) { switch (this.selectedAmount.value) { default: - case 'nyano': return this.util.nano.rawToNano(value); + case 'nyano': return this.util.nano.rawToMnano(value); } }