UNPKG

@melonproject/token-math

Version:

A small helper library to do precision safe calculations

13 lines (12 loc) 567 B
import ConvertableBigInteger from "../bigInteger/ConvertableBigInteger"; import QuantityInterface from "../quantity/QuantityInterface"; import TokenInterface from "../token/TokenInterface"; import PriceInterface from "../price/PriceInterface"; export declare type IsEqual = { (a: ConvertableBigInteger, b: ConvertableBigInteger): boolean; (a: PriceInterface, b: PriceInterface): boolean; (a: QuantityInterface, b: QuantityInterface): boolean; (a: TokenInterface, b: TokenInterface): boolean; }; declare const isEqual: IsEqual; export default isEqual;