File tree 2 files changed +461
-721
lines changed
2 files changed +461
-721
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ export const createOTokenWithdrawalsProcessor = ({
60
60
log : Context [ 'blocks' ] [ number ] [ 'logs' ] [ number ] ,
61
61
) => {
62
62
const data = oethVault . events . WithdrawalRequested . decode ( log )
63
-
63
+ const id = ` ${ ctx . chain . id } : ${ oTokenAddress } : ${ data . _withdrawer . toLowerCase ( ) } : ${ data . _requestId } `
64
64
const withdrawalRequest = new OTokenWithdrawalRequest ( {
65
- id : ` ${ data . _withdrawer . toLowerCase ( ) } : ${ data . _requestId } ` ,
65
+ id,
66
66
chainId : ctx . chain . id ,
67
67
blockNumber : block . header . height ,
68
68
timestamp : new Date ( block . header . timestamp ) ,
@@ -84,7 +84,7 @@ export const createOTokenWithdrawalsProcessor = ({
84
84
log : Context [ 'blocks' ] [ number ] [ 'logs' ] [ number ] ,
85
85
) => {
86
86
const data = oethVault . events . WithdrawalClaimed . decode ( log )
87
- const id = `${ data . _withdrawer . toLowerCase ( ) } :${ data . _requestId } `
87
+ const id = `${ ctx . chain . id } : ${ oTokenAddress } : ${ data . _withdrawer . toLowerCase ( ) } :${ data . _requestId } `
88
88
let updated
89
89
if ( result . withdrawalRequests . has ( id ) ) {
90
90
updated = result . withdrawalRequests . get ( id )
You can’t perform that action at this time.
0 commit comments