Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
v1nvn committed Jun 15, 2023
2 parents 11f7679 + f37489b commit e076f00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ History

0.8.116 [2023-06-11]
* feat: support polygon ledger
* feat: add .has_dex_price() to network

0.8.115 [2023-06-03]
* fix: disable BSC ledger
Expand Down
4 changes: 4 additions & 0 deletions credmark/cmf/types/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def chain_id(self):
def has_ledger(self):
return self in [Network.Mainnet]

@property
def has_dex_price(self):
return self in [Network.Mainnet, Network.BSC, Network.Polygon]

@property
def has_node(self):
return self in [Network.Mainnet,
Expand Down

0 comments on commit e076f00

Please sign in to comment.