File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,8 @@ export async function updateDepositRequest({
6868 undefined ,
6969 true
7070 ) ) as PendingInvestOrderService ;
71- const { createdAtTxHash } = pendingInvestOrder . read ( ) ;
72- const isNewOrder = createdAtTxHash === event . transaction . hash ;
73-
7471 pendingInvestOrder . updateQueuedAmount ( queuedUserAssetAmount ) ;
75- if ( isNewOrder || queuedUserAssetAmount === 0n )
76- pendingInvestOrder . updatePendingAmount ( pendingUserAssetAmount ) ;
72+ if ( queuedUserAssetAmount === 0n ) pendingInvestOrder . updatePendingAmount ( pendingUserAssetAmount ) ;
7773 await pendingInvestOrder . saveOrClear ( event ) ;
7874
7975 // TODO: DEPRECATED to be deleted in future releases
@@ -153,12 +149,8 @@ export async function updateRedeemRequest({
153149 undefined ,
154150 true
155151 ) ) as PendingRedeemOrderService ;
156- const { createdAtTxHash } = pendingRedeemOrder . read ( ) ;
157- const isNewOrder = createdAtTxHash === event . transaction . hash ;
158-
159152 pendingRedeemOrder . updateQueuedAmount ( queuedUserShareAmount ) ;
160- if ( isNewOrder || queuedUserShareAmount === 0n )
161- pendingRedeemOrder . updatePendingAmount ( pendingUserShareAmount ) ;
153+ if ( queuedUserShareAmount === 0n ) pendingRedeemOrder . updatePendingAmount ( pendingUserShareAmount ) ;
162154
163155 await pendingRedeemOrder . saveOrClear ( event ) ;
164156
You can’t perform that action at this time.
0 commit comments