File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -192,13 +192,15 @@ def available_deposit_limit(receiver: address) -> uint256:
192
192
@return uint256 Returns the maximum deposit limit if deposits are not paused,
193
193
otherwise returns (self.max_deposit_limit - vault_balance).
194
194
"""
195
+ max_deposit_limit: uint256 = self .max_deposit_limit
196
+
195
197
if self .deposits_paused:
196
198
return 0
197
- if self . max_deposit_limit == max_value (uint256 ):
199
+ if max_deposit_limit == max_value (uint256 ):
198
200
return max_value (uint256 )
199
201
else :
200
202
vault_balance: uint256 = staticcall vault.totalAssets ()
201
- if vault_balance >= self . max_deposit_limit:
203
+ if vault_balance >= max_deposit_limit:
202
204
return 0
203
205
else :
204
- return self . max_deposit_limit - vault_balance
206
+ return max_deposit_limit - vault_balance
You can’t perform that action at this time.
0 commit comments