File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
app2/src/lib/transfer/shared/services/filling Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -176,20 +176,6 @@ const calculateNativeValue = (
176
176
}
177
177
}
178
178
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
-
193
179
// Convert map to array
194
180
const nativeFunds = Array . from ( nativeTokensMap . entries ( ) ) . map ( ( [ token , amount ] ) => ( {
195
181
baseToken : token ,
You can’t perform that action at this time.
0 commit comments