import { BidderInfo, IdoPool } from 'src/constants'; export declare class IdoUtils { static parsePrice(price: string, baseDecimal: number, quoteDecimal: number): bigint; static formatPrice(price: string, baseDecimal: number, quoteDecimal: number): string; /** * 是否失败 * @param pool * @returns */ static isPoolFaild(pool: IdoPool): boolean; /** * 是否超募 * @param pool * @returns */ static isPoolOvercap(pool: IdoPool): boolean; /** * 是否开始 * @param pool * @returns */ static isPoolStart(pool: IdoPool): boolean; /** * 是否结束 * @param pool * @returns */ static isPoolEnd(pool: IdoPool): boolean; /** * 是否可购买 * @param pool * @returns */ static isCanBid(pool: IdoPool): boolean; /** * 是否可以claim base * @param pool * @returns */ static isCanClaimedBase(pool: IdoPool, bidInfo: BidderInfo): boolean; /** * 是否可以claim quote * @param pool * @returns */ static isCanClaimedQuote(pool: IdoPool, bidInfo: BidderInfo): boolean; /** * 是否可以claim * @param pool * @param bidInfo * @returns */ static isCanClaimed(pool: IdoPool, bidInfo: BidderInfo): boolean; }