mirror of
https://github.com/lux-amm/v4-sdk.git
synced 2026-10-30 20:47:33 +00:00
8 lines
263 B
TypeScript
8 lines
263 B
TypeScript
import { Currency } from '@luxamm/sdk-core'
|
|
|
|
export function sortsBefore(currencyA: Currency, currencyB: Currency): boolean {
|
|
if (currencyA.isNative) return true
|
|
if (currencyB.isNative) return false
|
|
return currencyA.wrapped.sortsBefore(currencyB.wrapped)
|
|
}
|