From 39f2fed3692e7ed9a5377a71a7037694582cea58 Mon Sep 17 00:00:00 2001 From: Eric Hegnes Date: Wed, 3 Sep 2025 16:46:47 -0400 Subject: [PATCH] fix(app): typo Signed-off-by: Eric Hegnes --- .../shared/services/filling/create-context.ts | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/app2/src/lib/transfer/shared/services/filling/create-context.ts b/app2/src/lib/transfer/shared/services/filling/create-context.ts index c2913d57e3..d472c9c148 100644 --- a/app2/src/lib/transfer/shared/services/filling/create-context.ts +++ b/app2/src/lib/transfer/shared/services/filling/create-context.ts @@ -82,7 +82,12 @@ export const createContext = Effect.fn(( args.fee.baseToken, ) - const shouldIncludeFees = shouldChargeFees(args.fee, uiStore.edition, args.sourceChain) + const shouldIncludeFees = shouldChargeFees( + args.fee, + uiStore.edition, + args.sourceChain, + args.destinationChain, + ) const produceBatch = Effect.gen(function*() { if (shouldIncludeFees) { @@ -173,7 +178,12 @@ export const createContext = Effect.fn(( ) const createIntents = (args: TransferArgs, baseAmount: TokenRawAmount): Intent[] => { - const shouldIncludeFees = shouldChargeFees(args.fee, uiStore.edition, args.sourceChain) + const shouldIncludeFees = shouldChargeFees( + args.fee, + uiStore.edition, + args.sourceChain, + args.destinationChain, + ) const baseIntent = createBaseIntent(args, baseAmount) return Match.value(args.sourceChain.rpc_type).pipe( @@ -241,7 +251,19 @@ const createBaseIntent = ( }) // Fee strategy: BTC edition only charges fees when going FROM Babylon -const shouldChargeFees = (fee: FeeIntent, edition: string, sourceChain: Chain): boolean => { +const shouldChargeFees = ( + fee: FeeIntent, + edition: string, + sourceChain: Chain, + destinationChain?: Chain, +): boolean => { + const skip = ["union.union-1", "union.union-testnet-10"] + if ( + skip.includes(sourceChain.universal_chain_id) + || (destinationChain && skip.includes(destinationChain.universal_chain_id)) + ) { + return false + } if (fee.baseAmount === 0n) { return false }