Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Feb 13, 2025
1 parent 7a73398 commit 2c4b818
Showing 1 changed file with 0 additions and 40 deletions.
40 changes: 0 additions & 40 deletions centrifuge-app/src/components/Report/InvestorTransactions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,46 +159,6 @@ export function InvestorTransactions({ pool }: { pool: Pool }) {
}

return transactions
?.filter((tx) => {
if (txType === 'all') {
return true
}

if (
txType === 'orders' &&
(tx.transactionType === 'INVEST_ORDER_UPDATE' ||
tx.transactionType === 'REDEEM_ORDER_UPDATE' ||
tx.transactionType === 'INVEST_ORDER_CANCEL' ||
tx.transactionType === 'REDEEM_ORDER_CANCEL')
) {
return true
}

if (
txType === 'executions' &&
(tx.transactionType === 'INVEST_EXECUTION' || tx.transactionType === 'REDEEM_EXECUTION')
) {
return true
}

if (
txType === 'transfers' &&
(tx.transactionType === 'INVEST_COLLECT' ||
tx.transactionType === 'REDEEM_COLLECT' ||
tx.transactionType === 'INVEST_LP_COLLECT' ||
tx.transactionType === 'REDEEM_LP_COLLECT' ||
tx.transactionType === 'TRANSFER_IN' ||
tx.transactionType === 'TRANSFER_OUT')
) {
return true
}

return false
})
.filter((tx) => {
if (!network || network === 'all') return true
return network === (tx.chainId || 'centrifuge')
})
.map((tx) => {
const token = pool.tranches.find((t) => t.id === tx.trancheTokenId)!
return {
Expand Down

0 comments on commit 2c4b818

Please sign in to comment.