@ape.swap/bonds-sdk 1.0.310 → 1.0.311
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.
|
@@ -68,6 +68,7 @@ import { getFirstNonZeroDigits } from '../../utils/roundNumber';
|
|
|
68
68
|
import { formatNumberSI } from '../../utils/formatNumber';
|
|
69
69
|
import useCurrentTime from '../../hooks/useTimer';
|
|
70
70
|
import { getPendingVesting } from '../../hooks/usePendingVesting';
|
|
71
|
+
import axios from 'axios';
|
|
71
72
|
var YourBonds = function (_a) {
|
|
72
73
|
var connectionString = _a.connectionString;
|
|
73
74
|
var _b = useWeb3React(), account = _b.account, isActive = _b.isActive;
|
|
@@ -116,12 +117,12 @@ var YourBonds = function (_a) {
|
|
|
116
117
|
// const vestingTime = (vestingTerm: number) => {
|
|
117
118
|
// return getTimePeriods(vestingTerm ?? 0, true);
|
|
118
119
|
// }
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
useEffect(function () {
|
|
121
|
+
axios.get('https://realtime-api.ape.bond/bonds').then(function (response) {
|
|
122
|
+
var bonds = response.data.bonds;
|
|
123
|
+
setBondData(bonds);
|
|
124
|
+
});
|
|
125
|
+
}, []);
|
|
125
126
|
// useEffect(() => {
|
|
126
127
|
// axios.get('https://apeswap-strapi.herokuapp.com/hot-bonds').then((response) => {
|
|
127
128
|
// const hotBondAddresses = response.data.map((bond: { BondAddress: string }) =>
|