Skip to content

Commit

Permalink
add pBTC, sBTC, imBTC, and logic for unknown icon address
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemcdonald committed Apr 7, 2020
1 parent bcea57b commit 6ebf49d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
Binary file added public/empty-token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/components/TokenPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ const IconAndNameContainer = styled.div`
export const TokenIconAddress = address => {
if (address === 'ether') {
return `https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png`;
} else if (address === 'unknown') {
return './empty-token.png';
} else {
return `https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/${isAddress(
address
Expand Down
24 changes: 24 additions & 0 deletions src/deployed.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,30 @@
"decimals": 8,
"iconAddress": "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",
"precision": 2
},
{
"symbol": "imBTC",
"address": "0x3212b29E33587A00FB1C83346f5dBFA69A458923",
"decimals": 8,
"iconAddress": "0x3212b29E33587A00FB1C83346f5dBFA69A458923",
"precision": 4,
"chartColor": "#99ddf1"
},
{
"symbol": "pBTC",
"address": "0x5228a22e72ccC52d415EcFd199F99D0665E7733b",
"decimals": 18,
"iconAddress": "unknown",
"precision": 2,
"chartColor": "#efcef3"
},
{
"symbol": "sBTC",
"address": "0xfE18be6b3Bd88A2D2A7f928d00292E7a9963CfC6",
"decimals": 18,
"iconAddress": "unknown",
"precision": 2,
"chartColor": "#1dcec0"
}
]
}
Expand Down

0 comments on commit 6ebf49d

Please sign in to comment.