"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BACKEND_QUERIES = exports.PENDLE_V2_GRAPHQL_ENDPOINT = void 0;
const graphql_request_1 = require("graphql-request");
exports.PENDLE_V2_GRAPHQL_ENDPOINT = 'https://api-v2.pendle.finance/core/graphql';
exports.BACKEND_QUERIES = {
    getMarkets: (0, graphql_request_1.gql) `
    query getMarket($chainId: Int!) {
      markets(chainId: $chainId, where: { isWhitelistedPro: true }) {
        results {
          address
          aggregatedApy
          ytFloatingApy
          impliedApy
          underlyingApy
          ptDiscount
          proName
          proIcon
          expiry
          sy {
            address
            proName
            proIcon
            price {
              usd
            }
          }
          pt {
            address
            proName
            simpleName
            proIcon
            price {
              usd
            }
          }
          yt {
            address
            proName
            proIcon
            price {
              usd
            }
          }
          lp {
            price {
              usd
            }
          }
        }
      }
    }
  `,
};
//# sourceMappingURL=pendle-v2.constant.js.map