Skip to content

Commit c0a2774

Browse files
Merge pull request #3550 from ioBanker/patch-21
Fixing Float-to-Integer in collateral bidding
2 parents c226df9 + c812387 commit c0a2774

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/actions/AssetActions.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ class AssetActions {
105105
},
106106
bidder: account_id,
107107
additional_collateral: {
108-
amount: coll * core_precision,
108+
amount: Math.round(coll * core_precision),
109109
asset_id: core.get("id")
110110
},
111111
debt_covered: {
112-
amount: debt * asset_precision,
112+
amount: Math.round(debt * asset_precision),
113113
asset_id: asset.get("id")
114114
},
115115
extensions: []

0 commit comments

Comments
 (0)