@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/lib/index.js
CHANGED
|
@@ -1382,10 +1382,7 @@ var BitcoinLock = class _BitcoinLock {
|
|
|
1382
1382
|
]);
|
|
1383
1383
|
const liquidityPromised = utxo.liquidityPromised.toBigInt();
|
|
1384
1384
|
const ownerAccount = utxo.ownerAccount.toHuman();
|
|
1385
|
-
const securitizationRatio = fromFixedNumber(
|
|
1386
|
-
utxo.securitizationRatio.toBigInt(),
|
|
1387
|
-
FIXED_U128_DECIMALS
|
|
1388
|
-
).toNumber();
|
|
1385
|
+
const securitizationRatio = !!utxo.securitizationRatio ? fromFixedNumber(utxo.securitizationRatio.toBigInt(), FIXED_U128_DECIMALS).toNumber() : 1;
|
|
1389
1386
|
const satoshis = utxo.satoshis.toBigInt();
|
|
1390
1387
|
const utxoSatoshis = utxo.utxoSatoshis?.isSome ? utxo.utxoSatoshis.value.toBigInt() : void 0;
|
|
1391
1388
|
const vaultPubkey = utxo.vaultPubkey.toHex();
|