UNPKG

@melonproject/token-math

Version:

A small helper library to do precision safe calculations

8 lines (7 loc) 283 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const isEqual = (a, b) => a.symbol === b.symbol && (a.address && a.address.toLowerCase()) === (b.address && b.address.toLowerCase()) && a.decimals === b.decimals; exports.default = isEqual;