You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// The Issue: FOR SETTLERINTENT TXNS only - The taker address passed into calculateNativeTransfer is not the actual takers address, causing nativeAmountToTaker to be 0 when it shouldn't be
68
-
// Potential Solution: we need to determine if the txn is a settlerIntent txn, if so we
69
-
// can determine the taker from the to address in the last trace call.
@@ -136,7 +157,7 @@ export async function parseSwap({
136
157
if(multicallArgs[0]){
137
158
const{args: settlerArgs}=decodeFunctionData({
138
159
abi: SETTLER_META_TXN_ABI,
139
-
data: multicallArgs[0][1].callData,
160
+
data: multicallArgs[0][1]?.callData,
140
161
});
141
162
142
163
consttakerForGaslessApprovalSwap=
@@ -238,22 +259,14 @@ export async function parseSwap({
238
259
};
239
260
}
240
261
241
-
if(!output){
242
-
if(!logs.length)/* v8 ignore next */returnnull;
243
-
constlastTransfer=logs[logs.length-1];
244
-
return{
245
-
tokenIn: {
246
-
symbol: input.symbol,
247
-
amount: input.amount,
248
-
address: input.address,
249
-
},
250
-
tokenOut: {
251
-
symbol: lastTransfer.symbol,
252
-
address: lastTransfer.address,
253
-
amount: lastTransfer.amount
254
-
}
255
-
};
256
-
}
262
+
/* v8 ignore start */
263
+
if(!output){
264
+
console.error(
265
+
"File a bug report here, including the expected results (URL to a block explorer) and the unexpected results: https://github.com/0xProject/0x-parser/issues/new/choose."
0 commit comments