@volare.finance/utils.js
Version:
The Blockchain Utils
14 lines (13 loc) • 531 B
TypeScript
/**
* @file index.ts
* @author astra <astra@volare.finance>
* @date 2022
*/
import { BigNumber as BN } from '@ethersproject/bignumber';
import { BigNumber as BNJS } from 'bignumber.js';
export declare const e: (x: number | string) => BNJS;
export declare const e18: BNJS;
export type BigNumberish = BNJS | BN | string | number;
export declare function convert(x: BigNumberish): BNJS;
export declare function $(x: BigNumberish, decimals?: number): BNJS;
export declare function $float(x: BigNumberish, decimals?: number): BNJS;