@@ -82,7 +82,12 @@ export const createContext = Effect.fn((
8282 args . fee . baseToken ,
8383 )
8484
85- const shouldIncludeFees = shouldChargeFees ( args . fee , uiStore . edition , args . sourceChain )
85+ const shouldIncludeFees = shouldChargeFees (
86+ args . fee ,
87+ uiStore . edition ,
88+ args . sourceChain ,
89+ args . destinationChain ,
90+ )
8691
8792 const produceBatch = Effect . gen ( function * ( ) {
8893 if ( shouldIncludeFees ) {
@@ -173,7 +178,12 @@ export const createContext = Effect.fn((
173178)
174179
175180const createIntents = ( args : TransferArgs , baseAmount : TokenRawAmount ) : Intent [ ] => {
176- const shouldIncludeFees = shouldChargeFees ( args . fee , uiStore . edition , args . sourceChain )
181+ const shouldIncludeFees = shouldChargeFees (
182+ args . fee ,
183+ uiStore . edition ,
184+ args . sourceChain ,
185+ args . destinationChain ,
186+ )
177187 const baseIntent = createBaseIntent ( args , baseAmount )
178188
179189 return Match . value ( args . sourceChain . rpc_type ) . pipe (
@@ -241,7 +251,19 @@ const createBaseIntent = (
241251} )
242252
243253// Fee strategy: BTC edition only charges fees when going FROM Babylon
244- const shouldChargeFees = ( fee : FeeIntent , edition : string , sourceChain : Chain ) : boolean => {
254+ const shouldChargeFees = (
255+ fee : FeeIntent ,
256+ edition : string ,
257+ sourceChain : Chain ,
258+ destinationChain ?: Chain ,
259+ ) : boolean => {
260+ const skip = [ "union.union-1" , "union.union-testnet-10" ]
261+ if (
262+ skip . includes ( sourceChain . universal_chain_id )
263+ || ( destinationChain && skip . includes ( destinationChain . universal_chain_id ) )
264+ ) {
265+ return false
266+ }
245267 if ( fee . baseAmount === 0n ) {
246268 return false
247269 }
0 commit comments