"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ArbitrumDopexDpxSsovContractPositionFetcher = void 0;
const position_template_decorator_1 = require("../../../app-toolkit/decorators/position-template.decorator");
const dopex_ssov_contract_position_fetcher_1 = require("../common/dopex.ssov.contract-position-fetcher");
let ArbitrumDopexDpxSsovContractPositionFetcher = class ArbitrumDopexDpxSsovContractPositionFetcher extends dopex_ssov_contract_position_fetcher_1.DopexSsovContractPositionFetcher {
    constructor() {
        super(...arguments);
        this.groupLabel = 'SSOVs';
    }
    getContract(address) {
        return this.contractFactory.dopexDpxSsov({ address, network: this.network });
    }
    getSsovDefinitions() {
        return [
            {
                address: '0x0359b4dcd2412ff0dafa8b020bcb57aa8bd13a33',
                depositTokenAddress: '0x6c2c06790b3e3e3c38e12ee22f8183b37a13ee55',
                extraRewardTokenAddresses: ['0x32eb7902d4134bf98a28b963d26de779af92a212'],
            },
            {
                address: '0x48252edbfcc8a27390827950ccfc1c00152894e3',
                depositTokenAddress: '0x6c2c06790b3e3e3c38e12ee22f8183b37a13ee55',
                extraRewardTokenAddresses: ['0x32eb7902d4134bf98a28b963d26de779af92a212'],
            },
            {
                address: '0xbb741dc1a519995eac67ec1f2bfeecbe5c02f46e',
                depositTokenAddress: '0x6c2c06790b3e3e3c38e12ee22f8183b37a13ee55',
                extraRewardTokenAddresses: ['0x32eb7902d4134bf98a28b963d26de779af92a212'],
            },
        ];
    }
    getTotalEpochStrikeDepositBalance({ contract, contractPosition, }) {
        const { epoch, strike } = contractPosition.dataProps;
        return contract.totalEpochStrikeBalance(epoch, strike);
    }
    getTotalEpochStrikeRewardBalances({ contract, contractPosition, }) {
        const { epoch, strike } = contractPosition.dataProps;
        return contract.totalEpochStrikeRdpxBalance(epoch, strike);
    }
};
ArbitrumDopexDpxSsovContractPositionFetcher = __decorate([
    (0, position_template_decorator_1.PositionTemplate)()
], ArbitrumDopexDpxSsovContractPositionFetcher);
exports.ArbitrumDopexDpxSsovContractPositionFetcher = ArbitrumDopexDpxSsovContractPositionFetcher;
//# sourceMappingURL=dopex.dpx-ssov.contract-position-fetcher.js.map