@argonprotocol/mainchain 1.4.11-dev.f3bdc948 → 1.4.12-dev.2c3a5160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/index.js +1 -4
- package/browser/index.js.map +1 -1
- package/lib/index.cjs +1 -4
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +1 -4
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/browser/index.js
CHANGED
|
@@ -1386,10 +1386,7 @@ var BitcoinLock = class _BitcoinLock {
|
|
|
1386
1386
|
]);
|
|
1387
1387
|
const liquidityPromised = utxo.liquidityPromised.toBigInt();
|
|
1388
1388
|
const ownerAccount = utxo.ownerAccount.toHuman();
|
|
1389
|
-
const securitizationRatio = fromFixedNumber(
|
|
1390
|
-
utxo.securitizationRatio.toBigInt(),
|
|
1391
|
-
FIXED_U128_DECIMALS
|
|
1392
|
-
).toNumber();
|
|
1389
|
+
const securitizationRatio = !!utxo.securitizationRatio ? fromFixedNumber(utxo.securitizationRatio.toBigInt(), FIXED_U128_DECIMALS).toNumber() : 1;
|
|
1393
1390
|
const satoshis = utxo.satoshis.toBigInt();
|
|
1394
1391
|
const utxoSatoshis = utxo.utxoSatoshis?.isSome ? utxo.utxoSatoshis.value.toBigInt() : void 0;
|
|
1395
1392
|
const vaultPubkey = utxo.vaultPubkey.toHex();
|