@@ -77,8 +77,17 @@ const convertRequestToEvent = (
77
77
? {
78
78
blockNumber : depositTx . block ! ,
79
79
txHash : depositTx . hash as string ,
80
- from : ( depositTx . data as any ) . to ,
81
- to : ( depositTx . data as any ) . from ,
80
+ timestamp : depositTx . timestamp ! * 1000 ,
81
+ from : ( depositTx . data as any ) . from
82
+ ? ( depositTx . data as any ) . from
83
+ : depositTx . data
84
+ ? ( depositTx . data as any ) . signer
85
+ : undefined ,
86
+ to : ( depositTx . data as any ) . to
87
+ ? ( depositTx . data as any ) . to
88
+ : withdrawTx ?. data
89
+ ? ( withdrawTx . data as any ) . signer
90
+ : undefined ,
82
91
token : deposit ?. currency ?. address ! ,
83
92
amount : deposit ?. amountUsd as any ,
84
93
isDeposit : true ,
@@ -91,8 +100,13 @@ const convertRequestToEvent = (
91
100
? {
92
101
blockNumber : withdrawTx . block ! ,
93
102
txHash : withdrawTx . hash ! ,
94
- from : ( withdrawTx . data as unknown as any ) . from ,
95
- to : ( withdrawTx . data as unknown as any ) . to ,
103
+ timestamp : withdrawTx . timestamp ! * 1000 ,
104
+ from : ( withdrawTx . data as any ) . from
105
+ ? ( withdrawTx . data as any ) . from
106
+ : withdrawTx . data
107
+ ? ( withdrawTx . data as any ) . signer
108
+ : undefined ,
109
+ to : ( withdrawTx . data as any ) . to ? ( withdrawTx . data as any ) . to : request . data ?. metadata ?. recipient ,
96
110
token : withdraw ?. currency ?. address ! ,
97
111
amount : withdraw ?. amountUsd as any ,
98
112
isDeposit : false ,
0 commit comments