Skip to content

Commit

Permalink
🦍 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
LHerskind committed Apr 21, 2023
1 parent 18f2858 commit 4c7fd54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion yarn-project/falafel/src/tx_receiver/tx_receiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down

0 comments on commit 4c7fd54

Please sign in to comment.