"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.WrapperTemplateTokenFetcher = void 0;
const app_token_template_position_fetcher_1 = require("../../position/template/app-token.template.position-fetcher");
class WrapperTemplateTokenFetcher extends app_token_template_position_fetcher_1.AppTokenTemplatePositionFetcher {
    getContract(address) {
        return this.appToolkit.globalContracts.erc20({ address, network: this.network });
    }
    getAddresses() {
        return __awaiter(this, void 0, void 0, function* () {
            return [this.vaultAddress];
        });
    }
    getUnderlyingTokenDefinitions(_params) {
        var _a;
        return __awaiter(this, void 0, void 0, function* () {
            return [{ address: this.underlyingTokenAddress, network: (_a = this.fromNetwork) !== null && _a !== void 0 ? _a : this.network }];
        });
    }
    getPricePerShare() {
        return __awaiter(this, void 0, void 0, function* () {
            return [1];
        });
    }
    getLiquidity({ appToken }) {
        return __awaiter(this, void 0, void 0, function* () {
            return appToken.supply * appToken.price;
        });
    }
    getReserves({ appToken }) {
        return __awaiter(this, void 0, void 0, function* () {
            return [appToken.pricePerShare[0] * appToken.supply];
        });
    }
    getApy() {
        return __awaiter(this, void 0, void 0, function* () {
            return 0;
        });
    }
}
exports.WrapperTemplateTokenFetcher = WrapperTemplateTokenFetcher;
//# sourceMappingURL=wrapper.template.token-fetcher.js.map