@kimafinance/kima-transaction-widget 1.0.8 → 1.0.9
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/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6738,6 +6738,7 @@ function useServiceFee() {
|
|
|
6738
6738
|
var originFee = _ref[0],
|
|
6739
6739
|
targetFee = _ref[1];
|
|
6740
6740
|
var fee = parseFloat(estimation.estimateTransfer.TakerPenalty) + parseFloat(estimation.estimateTransfer.MakerPenalty) - parseFloat(estimation.estimateTransfer.TakerBounty) - parseFloat(estimation.estimateTransfer.MakerBounty) + parseFloat(estimation.estimateTransfer.NetworkFee) + originFee + targetFee;
|
|
6741
|
+
fee = fee < 0 ? 0 : fee;
|
|
6741
6742
|
setServiceFee(parseFloat(fee.toFixed(2)));
|
|
6742
6743
|
});
|
|
6743
6744
|
});
|