UNPKG

@moonwell-fi/moonwell-sdk

Version:

TypeScript Interface for Moonwell

15 lines 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getUserPositions = getUserPositions; const index_js_1 = require("../../../common/index.js"); const common_js_1 = require("./common.js"); async function getUserPositions(client, args) { const { userAddress } = args; const environments = (0, index_js_1.getEnvironmentsFromArgs)(client, args); const result = await Promise.all(environments.map((environment) => (0, common_js_1.getUserPositionData)({ environment, account: userAddress, }))); return result.flat(); } //# sourceMappingURL=getUserPositions.js.map