Skip to content

Commit

Permalink
fixes per comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivanov N committed Dec 26, 2024
1 parent 2867908 commit fe08d66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/SendFundsForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ import QrcodeCapture from '@/components/QrcodeCapture.vue'
import QrcodeScannerDialog from '@/components/QrcodeScannerDialog.vue'
import get from 'lodash/get'
import { BigNumber } from 'bignumber.js'
import * as transactions from '@klayr/transactions'
import { KLY_DECIMALS } from '@/lib/klayr/klayr-constants'
import {
INCREASE_FEE_MULTIPLIER,
Expand Down Expand Up @@ -532,7 +534,9 @@ export default {
const isKlyTransfer = this.currency === Cryptos.KLY
if (!isKlyTransfer) return true
const MAX_UINT64 = BigInt('18446744073709551615')
const isKlyTransferAllowed = isKlyTransfer && this.transferFee && v < MAX_UINT64
const isKlyTransferAllowed =
this.transferFee &&
transactions.convertklyToBeddows(v.toFixed(KLY_DECIMALS)) < MAX_UINT64
return isKlyTransferAllowed || this.$t('transfer.error_incorrect_amount')
}
]
Expand Down

0 comments on commit fe08d66

Please sign in to comment.