"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.GET_USER_POSITIONS = exports.GET_POSITIONS = void 0;
const graphql_request_1 = require("graphql-request");
exports.GET_POSITIONS = (0, graphql_request_1.gql) `
  query getPositions($first: Int, $lastId: String) {
    positions(where: { status_in: [ACTIVE, COMPLETED], id_gt: $lastId }, first: $first) {
      id
      totalExecutedSwaps
      user
      from {
        address: id
        decimals
        name
        symbol
        underlyingTokens {
          address: id
          decimals
          name
          symbol
          type
        }
      }
      to {
        address: id
        decimals
        name
        symbol
        underlyingTokens {
          address: id
          decimals
          name
          symbol
          type
        }
      }
      status
      swapInterval {
        interval
      }
      rate
      depositedRateUnderlying
      remainingSwaps
      remainingLiquidity
      toWithdraw
      toWithdrawUnderlyingAccum
    }
  }
`;
exports.GET_USER_POSITIONS = (0, graphql_request_1.gql) `
  query getUserPositions($address: String!, $first: Int, $lastId: String) {
    positions(where: { user: $address, status_in: [ACTIVE, COMPLETED], id_gt: $lastId }, first: $first) {
      id
      totalExecutedSwaps
      user
      from {
        address: id
        decimals
        name
        symbol
        underlyingTokens {
          address: id
          decimals
          name
          symbol
          type
        }
      }
      to {
        address: id
        decimals
        name
        symbol
        underlyingTokens {
          address: id
          decimals
          name
          symbol
          type
        }
      }
      status
      swapInterval {
        interval
      }
      rate
      depositedRateUnderlying
      remainingSwaps
      remainingLiquidity
      toWithdraw
      toWithdrawUnderlyingAccum
    }
  }
`;
//# sourceMappingURL=mean-finance.dca-position.queries.js.map