File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/transaction-interpreter/interpreters Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @3loop/transaction-interpreter ' : patch
3+ ---
4+
5+ Fix logic in CT lookup
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ export async function transformEvent(
178178 const marketData = context . marketData as any
179179 const user = { address : userAddress , name : null }
180180 const baseContext = { proxyWallets : signersAndProxies , ...context }
181- const lookupTokenId = userIsBuying ? takerAssetId : tokenId
181+ const lookupTokenId = userAddress && tokenId ? tokenId : userIsBuying && userIsMaker ? takerAssetId : makerAssetId
182182 const outcome = marketData ?. tokens . find ( ( t : any ) => t . tokenId === lookupTokenId ) ?. outcome
183183 const outcomeText = outcome ? `'${ outcome } '` : 'outcome tokens'
184184 const marketText = marketData ?. question ? ` in the market '${ marketData . question } '` : ''
You can’t perform that action at this time.
0 commit comments