From 4c7fd541990b601ec93a56a820b31f8606276bf4 Mon Sep 17 00:00:00 2001 From: Lasse Herskind <16536249+LHerskind@users.noreply.github.com> Date: Fri, 21 Apr 2023 10:59:46 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=8D=20(#40)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yarn-project/falafel/src/tx_receiver/tx_receiver.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yarn-project/falafel/src/tx_receiver/tx_receiver.ts b/yarn-project/falafel/src/tx_receiver/tx_receiver.ts index e0e8b1349..83826abaa 100644 --- a/yarn-project/falafel/src/tx_receiver/tx_receiver.ts +++ b/yarn-project/falafel/src/tx_receiver/tx_receiver.ts @@ -99,11 +99,13 @@ export class TxReceiver { } if (txType === TxType.DEFI_DEPOSIT) { const { bridgeCallData } = new DefiDepositProofData(proof); - const { outputAssetIdA, outputAssetIdB } = bridgeCallData; + const { inputAssetIdA, outputAssetIdA, outputAssetIdB } = bridgeCallData; if (allowedBridgeCallData.includes(bridgeCallData.toString())) { shouldReject = false; } else if (outputAssetIdB === undefined && [0, 1].includes(outputAssetIdA)) { shouldReject = false; + } else if ([5, 6, 7].includes(inputAssetIdA)) { + shouldReject = false; } else { this.log( `Rejecting defi tx for bridge ${bridgeCallData.toString()}, output assets A/B: ${outputAssetIdA}/${outputAssetIdB}`,