Skip to content

Commit

Permalink
enable pp deployment without sdl pool
Browse files Browse the repository at this point in the history
  • Loading branch information
BkChoy committed Nov 28, 2024
1 parent f7e31ea commit 4f9e567
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contracts/core/priorityPool/PriorityPool.sol
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,9 @@ contract PriorityPool is UUPSUpgradeable, OwnableUpgradeable, PausableUpgradeabl

for (uint256 i = 0; i < reSDLBalances.length; ++i) {
address account = accounts[i];
reSDLBalances[i] = sdlPool.effectiveBalanceOf(account);
reSDLBalances[i] = address(sdlPool) == address(0)
? 0
: sdlPool.effectiveBalanceOf(account);
queuedBalances[i] = accountQueuedTokens[account];
}

Expand Down

0 comments on commit 4f9e567

Please sign in to comment.