UNPKG

@shogun-sdk/money-legos

Version:

Shogun Money Legos: clients and types for quotes, memes, prices, balances, fees, validations, etc.

16 lines (12 loc) 322 B
export function compareStrings(a: string, b: string): boolean { if (typeof a !== 'string' || typeof b !== 'string') { return false; } return a.toLowerCase() === b.toLowerCase(); } export function isSpotAsset(asset?: string): boolean { if (!asset) { return false; } return asset.includes('-SPOT'); }