Skip to content

Commit

Permalink
adding lords as asset supported (#86)
Browse files Browse the repository at this point in the history
* adding lords as asset supported

* fix: fmt
  • Loading branch information
JordyRo1 authored Mar 7, 2024
1 parent 1d32254 commit 04910b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions pragma/core/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class PragmaOnchainAsset(TypedDict):
{"type": "SPOT", "pair": ("BTC", "USDT"), "decimals": 6},
{"type": "SPOT", "pair": ("STRK", "USD"), "decimals": 8},
{"type": "SPOT", "pair": ("BTC", "ETH"), "decimals": 8},
{"type": "SPOT", "pair": ("ETH", "LORDS"), "decimals": 8},
]


Expand Down
8 changes: 7 additions & 1 deletion pragma/publisher/fetchers/starknetamm.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)

SUPPORTED_ASSETS = [("ETH", "STRK"), ("STRK", "USD"), ("STRK", "USDT")]
SUPPORTED_ASSETS = [
("ETH", "STRK"),
("STRK", "USD"),
("STRK", "USDT"),
("LORDS", "USD"),
("ETH", "LORDS"),
]


class StarknetAMMFetcher(PublisherInterfaceT):
Expand Down

0 comments on commit 04910b5

Please sign in to comment.