Skip to content

Commit 19c20e6

Browse files
committed
Moved asset check to top of _checkBalance
1 parent 0f8e25b commit 19c20e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contracts/contracts/vault/OETHVaultCore.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,12 @@ contract OETHVaultCore is VaultCore {
397397
override
398398
returns (uint256 balance)
399399
{
400-
balance = super._checkBalance(_asset);
401-
402400
if (_asset != weth) {
403401
return 0;
404402
}
405403

404+
balance = super._checkBalance(_asset);
405+
406406
WithdrawalQueueMetadata memory queue = withdrawalQueueMetadata;
407407
// If there is not enough WETH in the vault and strategies to cover the outstanding withdrawals.
408408
// It can happen if more than half of the users have requested a withdrawal but have not claimed.

0 commit comments

Comments
 (0)