Skip to content

Commit

Permalink
feat: document SHITCOINS constant
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Mar 31, 2024
1 parent 08c30d9 commit 3241f0d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eth_portfolio/_shitcoins.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

from collections import defaultdict
from typing import DefaultDict, Set

from brownie.convert import EthAddress
from y import Network, convert

shitcoins = {
Expand Down Expand Up @@ -152,6 +154,7 @@
],
}

SHITCOINS = defaultdict(set)
SHITCOINS: DefaultDict[Network, Set[EthAddress]] = defaultdict(set)
"""A dictionary that contains, for each chain, a set of shitcoins that will be fully ignored by eth_portfolio. Add your own shitcoins to this object to boost eth_portfolio's performance."""
for chain, tokens in shitcoins.items():
SHITCOINS[chain].update(convert.to_address(token) for token in tokens)

0 comments on commit 3241f0d

Please sign in to comment.