Skip to content

Commit

Permalink
feat: sync staging → main
Browse files Browse the repository at this point in the history
Signed-off-by: Griko Nibras <griko@nibras.co>
  • Loading branch information
grikomsn committed Jan 24, 2024
2 parents 5ee3d78 + 377a455 commit 21060db
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/components/RouteDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -456,12 +456,7 @@ function RouteDisplay({ route, isRouteExpanded, setIsRouteExpanded, broadcastedT
return;
}

let sourceChain = "";
if ("cctpTransfer" in operation) {
sourceChain = operation.cctpTransfer.fromChainID;
} else {
sourceChain = operation.transfer.chainID;
}
const sourceChain = operation.transfer.chainID;

let destinationChain = "";
if (i === route.operations.length - 1) {
Expand All @@ -478,8 +473,6 @@ function RouteDisplay({ route, isRouteExpanded, setIsRouteExpanded, broadcastedT
}
} else if ("axelarTransfer" in nextOperation) {
destinationChain = nextOperation.axelarTransfer.toChainID;
} else if ("cctpTransfer" in nextOperation) {
destinationChain = nextOperation.cctpTransfer.toChainID;
} else {
destinationChain = nextOperation.transfer.chainID;
}
Expand All @@ -493,11 +486,7 @@ function RouteDisplay({ route, isRouteExpanded, setIsRouteExpanded, broadcastedT
id: `transfer-${transferCount}-${i}`,
});

if ("cctpTransfer" in operation) {
asset = operation.cctpTransfer.burnToken;
} else {
asset = operation.transfer.destDenom;
}
asset = operation.transfer.destDenom;
transferCount++;
});

Expand Down

0 comments on commit 21060db

Please sign in to comment.