Skip to content

Commit

Permalink
Revert "fix: init epoch number (#229)"
Browse files Browse the repository at this point in the history
This reverts commit 113551b.
  • Loading branch information
filo87 committed Jul 26, 2024
1 parent 113551b commit 3c59d4a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/mappings/services/outstandingOrderService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ export class OutstandingOrderService extends OutstandingOrder {
data.address,
data.poolId,
`${data.poolId}-${data.trancheId}`,
data.epochNumber,
data.timestamp,
investAmount,
redeemAmount
)
oo.investAmount = investAmount
oo.redeemAmount = redeemAmount
oo.epochNumber = data.epochNumber
return oo
}

Expand All @@ -37,7 +37,9 @@ export class OutstandingOrderService extends OutstandingOrder {
}

static async getAllByTrancheId(poolId: string, trancheId: string) {
const entities = await paginatedGetter<OutstandingOrder>(this, [['trancheId', '=', `${poolId}-${trancheId}`]])
const entities = await paginatedGetter<OutstandingOrder>(this, [
['trancheId', '=', `${poolId}-${trancheId}`],
])
return entities as OutstandingOrderService[]
}

Expand Down

0 comments on commit 3c59d4a

Please sign in to comment.