Ejemplo n.º 1
0
 def from_token(cls, token: Token):
     return cls(
         token.address,
         token.name,
         token.symbol,
         token.get_full_logo_uri(),
     )
 def from_token(cls, token: Token, logo_uri: Optional[str] = None):
     return cls(token.address, token.name, token.symbol,
                logo_uri if logo_uri else token.get_full_logo_uri())
 def get_logo_uri(self, obj: Token) -> str:
     return obj.get_full_logo_uri()