Skip to content

Commit

Permalink
moar logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EdNoepel committed Aug 28, 2023
1 parent 9fad65f commit 2563632
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/pool/pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ export function updatePool(pool: Pool): void {
unnormalizedTokenBalance = getERC721TokenBalance(Address.fromBytes(pool.collateralToken), poolAddress)
log.info("calculated scalefactor {} for {} pool", [scaleFactor.toString(), pool.poolType])
}
log.info("multiplying token balance {} by scalefactor {} gives {}", [unnormalizedTokenBalance.toString(), scaleFactor.toString(), unnormalizedTokenBalance.times(scaleFactor).toString()])
pool.collateralBalance = wadToDecimal(unnormalizedTokenBalance.times(scaleFactor))

// update rates and fees which change irrespective of borrow rate
Expand Down

0 comments on commit 2563632

Please sign in to comment.