From b2b2344844fade9dca96974a04142b967c2614f4 Mon Sep 17 00:00:00 2001 From: CM Date: Sun, 8 Sep 2024 19:19:47 +0100 Subject: [PATCH] Update Predictions.jsx --- src/components/Predictions.jsx | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/Predictions.jsx b/src/components/Predictions.jsx index fb6841e..67e6545 100644 --- a/src/components/Predictions.jsx +++ b/src/components/Predictions.jsx @@ -813,17 +813,15 @@ export default function Predictions(properties) { headerText={t(`Predictions:dialogContent.header_issue`)} trxJSON={[{ funding_account: usr.id, - /* delta_collateral: { amount: blockchainFloat(existingCollateral + issueAmount, res.precision), asset_id: res.id }, delta_debt: { - amount: blockchainFloat(existingCollateral + issueAmount, res.backingAsset.precision), - asset_id: res.backingAsset.id + amount: blockchainFloat(existingCollateral + issueAmount, _backingPrecision), + asset_id: _backingAssetID }, - extensions: [] - */ + extensions: {} }]} /> : null @@ -1048,7 +1046,7 @@ export default function Predictions(properties) { }, expiration: expiry, fill_or_kill: expiryType === "fkill" ? true : false, - extensions: [] + extensions: {} }]} /> : null @@ -1288,7 +1286,7 @@ export default function Predictions(properties) { }, expiration: expiry, fill_or_kill: expiryType === "fkill" ? true : false, - extensions: [] + extensions: {} }]} /> : null @@ -1407,7 +1405,7 @@ export default function Predictions(properties) { amount: blockchainFloat(claimAmount, res.precision).toFixed(0), asset_id: res.id }, - extensions: [] + extensions: {} }]} /> : null @@ -1543,7 +1541,7 @@ export default function Predictions(properties) { asset_id: _backingAssetID } }, - extensions: [] + extensions: {} }]} /> : null @@ -1670,7 +1668,7 @@ export default function Predictions(properties) { asset_to_update: res.id, new_feed_producers: priceFeeders.map((_usr) => _usr.id), }, - extensions: [] + extensions: {} }]} /> : null @@ -1911,7 +1909,7 @@ export default function Predictions(properties) { }, expiration: expiry, fill_or_kill: false, - extensions: [] + extensions: {} }]} /> : null