Skip to content

Commit

Permalink
fix: init epoch number (#229)
Browse files Browse the repository at this point in the history
* fix: allow epoch number to be null

* fix: init epoch number
  • Loading branch information
hieronx authored Jul 26, 2024
1 parent 0da65cd commit 113551b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 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,9 +37,7 @@ 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 113551b

Please sign in to comment.