@ape.swap/bonds-sdk 2.2.9 → 2.3.1
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/main.js +3 -3
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -71712,9 +71712,9 @@ const YourBonds = () => {
|
|
|
71712
71712
|
return;
|
|
71713
71713
|
if (sortConfig === null) {
|
|
71714
71714
|
const sortedBills = (_a = [...userBonds]) === null || _a === void 0 ? void 0 : _a.sort((a, b) => {
|
|
71715
|
-
const
|
|
71716
|
-
if (
|
|
71717
|
-
return
|
|
71715
|
+
const vestingDifference = parseFloat(vestingTimeRemainingYourBonds(b).toFixed(3)) - parseFloat(vestingTimeRemainingYourBonds(a).toFixed(3));
|
|
71716
|
+
if (vestingDifference !== 0) {
|
|
71717
|
+
return vestingDifference;
|
|
71718
71718
|
}
|
|
71719
71719
|
return 0;
|
|
71720
71720
|
});
|