Skip to content
This repository has been archived by the owner on Jun 3, 2022. It is now read-only.

Commit

Permalink
fix(whale-api): activateAfterBlock: 0 for CollateralToken to prevent …
Browse files Browse the repository at this point in the history
…downstream regression (#986)

fix(whale-api): add activateAfterBlock: 0 for CollateralToken to prevent downstream regression
  • Loading branch information
fuxingloh authored May 30, 2022
1 parent 5c34bfd commit ca7871e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.api/loan.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class LoanController {
tokenId: detail.tokenId,
token: mapTokenData(id, tokenInfo),
factor: detail.factor.toFixed(),
activateAfterBlock: detail.activateAfterBlock.toNumber(),
activateAfterBlock: detail?.activateAfterBlock?.toNumber() ?? 0,
fixedIntervalPriceId: detail.fixedIntervalPriceId,
activePrice: await this.getActivePrice(detail.fixedIntervalPriceId)
}
Expand Down

0 comments on commit ca7871e

Please sign in to comment.