diff --git a/core/constraints/arbitrum.py b/core/constraints/arbitrum.py index bc80222..611d3d8 100644 --- a/core/constraints/arbitrum.py +++ b/core/constraints/arbitrum.py @@ -125,8 +125,8 @@ def is_observed(self, *args, **kwargs) -> bool: for user_address in self.user_addresses: try: address = token_client.to_checksum_address(user_address) - delegated_address = token_client.get_delegates_address() - if ( + delegated_address = token_client.get_delegates_address(user_address) + if not delegated_address or ( ConstraintParam.ADDRESS.name in self.param_keys() and delegated_address.lower() != self.param_values[ConstraintParam.ADDRESS.name].lower() diff --git a/core/constraints/optimism.py b/core/constraints/optimism.py index fe4a1c1..4c51c66 100644 --- a/core/constraints/optimism.py +++ b/core/constraints/optimism.py @@ -53,8 +53,8 @@ def is_observed(self, *args, **kwargs) -> bool: for user_address in self.user_addresses: try: address = token_client.to_checksum_address(user_address) - delegated_address = token_client.get_delegates_address() - if ( + delegated_address = token_client.get_delegates_address(user_address) + if not delegated_address or ( ConstraintParam.ADDRESS.name in self.param_keys() and delegated_address.lower() != self.param_values[ConstraintParam.ADDRESS.name].lower()