@jup-ag/plugin 1.0.6 → 1.0.7

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 CHANGED
@@ -85,7 +85,7 @@ var require_package = __commonJS({
85
85
  "package.json"(exports2, module2) {
86
86
  module2.exports = {
87
87
  name: "@jup-ag/plugin",
88
- version: "1.0.6",
88
+ version: "1.0.7",
89
89
  private: false,
90
90
  license: "MIT",
91
91
  scripts: {
@@ -3026,7 +3026,7 @@ function useLstApyFetcher() {
3026
3026
  return (0, import_react_query6.useQuery)({
3027
3027
  queryKey: ["lst-apy"],
3028
3028
  queryFn: () => __async(this, null, function* () {
3029
- const lstApy = yield fetch(`https://worker.jup.ag/lst-apys`);
3029
+ const lstApy = yield fetch(`https://worker.jup.ag/lst-apys-v2`);
3030
3030
  const apyResult = yield lstApy.json();
3031
3031
  return apyResult;
3032
3032
  }),
@@ -3045,7 +3045,7 @@ var LSTTag = ({ mintAddress }) => {
3045
3045
  const { data: lstApy } = useLstApyFetcher();
3046
3046
  const apy = (0, import_react21.useMemo)(() => {
3047
3047
  if (!lstApy) return;
3048
- const value = lstApy.apys[mintAddress];
3048
+ const value = lstApy[mintAddress];
3049
3049
  if (value && hasNumericValue(value)) {
3050
3050
  return new import_decimal8.default(value).mul(100).toDP(2).toString();
3051
3051
  }