Skip to content

Commit

Permalink
more generic who routed detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Oct 10, 2024
1 parent 6436598 commit ce80072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function notInRouter({siblings}) {

function routeExecutedHandler({event, siblings}) {
const {who} = siblings.find(({method}) => method === 'TransactionFeePaid')?.data
|| siblings.find(({method}) => method === 'Withdrawn')?.data;
|| siblings[0]?.data;
let {assetIn, assetOut, amountIn, amountOut} = event.data;
if (isBuy({event, siblings})) {

Expand Down

0 comments on commit ce80072

Please sign in to comment.