UNPKG

@moonwell-fi/moonwell-sdk

Version:

TypeScript Interface for Moonwell

15 lines 618 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getUserRewards = getUserRewards; const index_js_1 = require("../../../common/index.js"); const common_js_1 = require("./common.js"); async function getUserRewards(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.getUserRewardsData)({ environment, account: userAddress, }))); return result.flat(); } //# sourceMappingURL=getUserRewards.js.map