"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.ArbitrumDopexRdpxSsovContractPositionFetcher = 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 ArbitrumDopexRdpxSsovContractPositionFetcher = class ArbitrumDopexRdpxSsovContractPositionFetcher extends dopex_ssov_contract_position_fetcher_1.DopexSsovContractPositionFetcher {
    constructor() {
        super(...arguments);
        this.groupLabel = 'SSOVs';
    }
    getContract(address) {
        return this.contractFactory.dopexRdpxSsov({ address, network: this.network });
    }
    getSsovDefinitions() {
        return [
            {
                address: '0xfe351e85eb6b4292088dc28b66e9e92ab62fb663',
                depositTokenAddress: '0x32eb7902d4134bf98a28b963d26de779af92a212',
                extraRewardTokenAddresses: ['0x6c2c06790b3e3e3c38e12ee22f8183b37a13ee55'],
            },
            {
                address: '0xd4cafe592be189aeb7826ee5062b29405ee63488',
                depositTokenAddress: '0x32eb7902d4134bf98a28b963d26de779af92a212',
                extraRewardTokenAddresses: ['0x6c2c06790b3e3e3c38e12ee22f8183b37a13ee55'],
            },
            {
                address: '0x0393352c7c28903e7deaa5508f01cc89f25bcb5c',
                depositTokenAddress: '0x32eb7902d4134bf98a28b963d26de779af92a212',
                extraRewardTokenAddresses: ['0x6c2c06790b3e3e3c38e12ee22f8183b37a13ee55'],
            },
        ];
    }
    getTotalEpochStrikeDepositBalance({ contract, contractPosition, }) {
        const { epoch, strike } = contractPosition.dataProps;
        return contract.totalEpochStrikeBalance(epoch, strike);
    }
    getTotalEpochStrikeRewardBalances({ contract, contractPosition, }) {
        const { epoch, strike } = contractPosition.dataProps;
        return contract.totalEpochStrikeDpxBalance(epoch, strike);
    }
};
ArbitrumDopexRdpxSsovContractPositionFetcher = __decorate([
    (0, position_template_decorator_1.PositionTemplate)()
], ArbitrumDopexRdpxSsovContractPositionFetcher);
exports.ArbitrumDopexRdpxSsovContractPositionFetcher = ArbitrumDopexRdpxSsovContractPositionFetcher;
//# sourceMappingURL=dopex.rdpx-ssov.contract-position-fetcher.js.map