Skip to content

Commit

Permalink
finding who for eth executions
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed May 8, 2024
1 parent 8511061 commit 72ae478
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/handlers/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ export function notInRouter({siblings}) {
}

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

Expand Down

0 comments on commit 72ae478

Please sign in to comment.