Skip to content

Commit 1e633cb

Browse files
authored
fix(app): fix (#4840)
2 parents ec09f5a + 9886b81 commit 1e633cb

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

app2/src/lib/transfer/shared/services/filling/create-context.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,6 @@ const calculateNativeValue = (
176176
}
177177
}
178178

179-
if (chainGasDenom) {
180-
const nativeToken = normalizeToken(chainGasDenom.address, args.sourceChain.rpc_type)
181-
const nativeIntents = intents.filter(intent =>
182-
normalizeToken(intent.baseToken, args.sourceChain.rpc_type) === nativeToken
183-
)
184-
185-
const totalAmount = nativeIntents.reduce((sum, intent) => sum + intent.baseAmount, 0n)
186-
if (totalAmount > 0n) {
187-
const preferredBaseToken = nativeIntents.at(-1)?.baseToken || nativeToken
188-
const currentAmount = nativeTokensMap.get(preferredBaseToken) || 0n
189-
nativeTokensMap.set(preferredBaseToken, currentAmount + totalAmount)
190-
}
191-
}
192-
193179
// Convert map to array
194180
const nativeFunds = Array.from(nativeTokensMap.entries()).map(([token, amount]) => ({
195181
baseToken: token,

0 commit comments

Comments
 (0)