Skip to content

Commit

Permalink
remove references to dexter
Browse files Browse the repository at this point in the history
Dexter was the first CPMM on tezos and is long defunct, there is no
longer a need to special-case it
  • Loading branch information
nicolasochem committed Jul 25, 2024
1 parent ab8f87a commit e75fcc0
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 127 deletions.
Empty file removed src/Dexter/__init__.py
Empty file.
113 changes: 0 additions & 113 deletions src/Dexter/dexter_utils.py

This file was deleted.

4 changes: 0 additions & 4 deletions src/api/reward_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@
class RewardApi(ABC):
def __init__(self):
super().__init__()
self.dexter_contracts_set = []

@abstractmethod
def get_rewards_for_cycle_map(self, cycle, rewards_type):
pass

def set_dexter_contracts_set(self, dexter_contracts_set):
self.dexter_contracts_set = dexter_contracts_set
1 change: 0 additions & 1 deletion src/model/baking_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
TOB = "TOB"
TOE = "TOE"
MIN_DELEGATION_KEY = "mindelegation"
DEXTER = "dexter"

# Unique object to signify that no default value has been provided
_NO_DEFAULT = object()
Expand Down
9 changes: 0 additions & 9 deletions src/pay/payment_producer.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,6 @@ def __init__(
api_base_url,
)

dexter_contracts_set = baking_cfg.get_contracts_set()
if len(dexter_contracts_set) > 0 and not (self.reward_api.name == "tzpro"):
logger.warning(
"The Dexter functionality is currently only supported using tzpro."
"The contract address will be treated as a normal delegator."
)
else:
self.reward_api.set_dexter_contracts_set(dexter_contracts_set)

self.rewards_type = baking_cfg.get_rewards_type()
if self.rewards_type != RewardsType.ACTUAL:
logger.error(
Expand Down

0 comments on commit e75fcc0

Please sign in to comment.