"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomGasTokenQueries = void 0;
const baseQuery_1 = require("./baseQuery");
class CustomGasTokenQueries extends baseQuery_1.QueryBase {
    customGasTokenSymbol;
    constructor(args) {
        super(...args.queryBaseArgs);
        this.customGasTokenSymbol = args.customGasTokenSymbol;
    }
    async getTokenPrice(tokenSymbol) {
        const [customGasTokenPrice, tokenPrice] = await Promise.all([
            super.getTokenPrice(this.customGasTokenSymbol),
            super.getTokenPrice(tokenSymbol),
        ]);
        return Number((tokenPrice / customGasTokenPrice).toFixed(this.symbolMapping[this.customGasTokenSymbol].decimals));
    }
}
exports.CustomGasTokenQueries = CustomGasTokenQueries;
//# sourceMappingURL=customGasToken.js.map