From 57723d10b1b35e46ed847eff62a479106f963936 Mon Sep 17 00:00:00 2001 From: Eumaios1212 Date: Thu, 27 Nov 2025 04:31:16 -0500 Subject: [PATCH] fix(mayachain-query): add TradeAsset to CompatibleAsset type The CompatibleAsset type was missing TradeAsset, even though TradeAsset is already imported and the package has trade asset methods like getTradeAssetUnits() and getAddressTradeAccounts(). This causes TypeScript errors when using trade assets with mayachain-amm, which uses CryptoAmount in its function signatures. This aligns mayachain-query with thorchain-query, which already includes TradeAsset in its CompatibleAsset type. --- packages/xchain-mayachain-query/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/xchain-mayachain-query/src/types.ts b/packages/xchain-mayachain-query/src/types.ts index cf5da067e..6c397181c 100644 --- a/packages/xchain-mayachain-query/src/types.ts +++ b/packages/xchain-mayachain-query/src/types.ts @@ -12,7 +12,7 @@ import { } from '@xchainjs/xchain-util' import type BigNumber from 'bignumber.js' -export type CompatibleAsset = Asset | TokenAsset | SynthAsset +export type CompatibleAsset = Asset | TokenAsset | SynthAsset | TradeAsset /** * Represents fees associated with a swap.