@ape.swap/bonds-sdk 1.0.244 → 1.0.245

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.
@@ -115,7 +115,9 @@ var BondModal = function (_a) {
115
115
  return formatUSDNumber((billValue.toNumber() * parseFloat(bond.payoutTokenPrice)).toString());
116
116
  };
117
117
  var premium = function (bond) {
118
- return (parseFloat(youGetUSD(bond)) - parseFloat(youSpendUSD(bond))).toString();
118
+ var youGetUsd = youGetUSD(bond);
119
+ var youSpendUsd = youSpendUSD(bond);
120
+ return (parseFloat(youGetUsd) - parseFloat(youSpendUsd)).toString();
119
121
  };
120
122
  var getPremiumColor = function (bond) {
121
123
  var getPremium = premium(bond);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Ape Bond SDK",
4
4
  "author": "Ape Bond",
5
5
  "license": "MIT",
6
- "version": "1.0.244",
6
+ "version": "1.0.245",
7
7
  "main": "dist/index.js",
8
8
  "module": "dist/index.es.js",
9
9
  "types": "dist/index.d.ts",