diff --git a/src/mappings/handlers/blockHandlers.ts b/src/mappings/handlers/blockHandlers.ts index 5fb5c84b..c3dfc3d2 100644 --- a/src/mappings/handlers/blockHandlers.ts +++ b/src/mappings/handlers/blockHandlers.ts @@ -40,7 +40,6 @@ async function _handleBlock(block: SubstrateBlock): Promise { const pools = await PoolService.getCfgActivePools() for (const pool of pools) { await pool.updateState() - await pool.updateNAV() await pool.resetDebtOverdue() // Update tranche states @@ -72,6 +71,9 @@ async function _handleBlock(block: SubstrateBlock): Promise { } await pool.updateNumberOfActiveAssets(BigInt(Object.keys(activeLoanData).length)) + // NAV update requires updated offchain cash value + await pool.updateNAV() + //PoolFees operations const accruedFees = await pool.getAccruedFees() for (const accruals of accruedFees) {