import { QueryBase } from "./baseQuery";
export class CustomGasTokenQueries extends 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));
    }
}
//# sourceMappingURL=customGasToken.js.map