Skip to content

Commit

Permalink
Fix/token list (#276)
Browse files Browse the repository at this point in the history
* Revert "Revert "compress logos + replace svg by png""

This reverts commit 786e1cc.

* Revert "Revert "fix""

This reverts commit 89ac256.

* edit Readme

---------

Co-authored-by: indaviande <[email protected]>
  • Loading branch information
BaptistG and indaviande authored Jul 25, 2024
1 parent 786e1cc commit ddc47f9
Show file tree
Hide file tree
Showing 42 changed files with 32 additions and 95 deletions.
28 changes: 14 additions & 14 deletions ERC20_LIST.json
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
"address": "0xc944E90C64B2c07662A292be6244BDf05Cda44a7",
"decimals": 18,
"hasPermit": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/GRT.svg",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/GRT.png",
"name": "Graph Token",
"symbol": "GRT",
"useInSwap": false
Expand Down Expand Up @@ -899,7 +899,7 @@
"decimals": 18,
"hasPermit": false,
"wrappingMethod": "Curve",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/LUSD3CRV.svg",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/LUSD3CRV.png",
"name": "Curve.fi Factory USD Metapool: Liquity",
"symbol": "LUSD3CRV",
"underlyingTokens": [
Expand Down Expand Up @@ -941,7 +941,7 @@
"decimals": 18,
"description": "<p class=\"text-sm\">sd-crvLUSD3CRV is the token you get when staking on <a href=\"https://lockers.stakedao.org\" class= \"underlined\">StakeDAO</a> the LP token of the <a href=\"https://curve.fi/#/ethereum/pools/lusd/deposit\" class= \"underlined\">LUSD-DAI-USDC-USDT (LUSD3CRV) Curve pool</a>. <br />This token accumulates SDT and CRV rewards on top of transaction fees from the LUSD3CRV Curve pool.</p>",
"hasPermit": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/sd-crvLUSD3CRV.svg",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/sd-crvLUSD3CRV.png",
"name": "Angle Curve.fi Factory USD Metapool: Liquity Stake DAO Staker",
"symbol": "sd-crvLUSD3CRV",
"underlyingTokens": [
Expand Down Expand Up @@ -1192,7 +1192,7 @@
"symbol": "PT-weETH-27JUN2024",
"hasPermit": false,
"wrappingMethod": "Pendle",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/PTweETH.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/PTweETH.png"
},
"0x6ee2b5E19ECBa773a352E5B21415Dc419A700d1d": {
"address": "0x6ee2b5E19ECBa773a352E5B21415Dc419A700d1d",
Expand All @@ -1204,7 +1204,7 @@
"symbol": "PT-weETH-26DEC2024",
"hasPermit": false,
"wrappingMethod": "Pendle",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/PTweETH.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/PTweETH.png"
},
"0xf7906F274c174A52d444175729E3fa98f9bde285": {
"address": "0xf7906F274c174A52d444175729E3fa98f9bde285",
Expand All @@ -1216,7 +1216,7 @@
"symbol": "PT-ezETH-26DEC2024",
"hasPermit": false,
"wrappingMethod": "Pendle",
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/PTweETH.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/PTweETH.png"
},
"0xa0021EF8970104c2d008F38D92f115ad56a9B8e1": {
"address": "0xa0021EF8970104c2d008F38D92f115ad56a9B8e1",
Expand Down Expand Up @@ -1402,7 +1402,7 @@
"symbol": "VELO",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/VELO.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/VELO.png"
},
"0x3eaEb77b03dBc0F6321AE1b72b2E9aDb0F60112B": {
"address": "0x3eaEb77b03dBc0F6321AE1b72b2E9aDb0F60112B",
Expand Down Expand Up @@ -1556,7 +1556,7 @@
"symbol": "WRBTC",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/RBTC.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/RBTC.png"
}
},
"56": {
Expand Down Expand Up @@ -1938,7 +1938,7 @@
"symbol": "SWCH",
"useInSwap": false,
"hasPermit": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/SWCH.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/SWCH.png"
},
"0xdBb5Da27FFcFeBea8799a5832D4607714fc6aBa8": {
"address": "0xdBb5Da27FFcFeBea8799a5832D4607714fc6aBa8",
Expand Down Expand Up @@ -2442,7 +2442,7 @@
"symbol": "fxA3A",
"useInSwap": false,
"hasPermit": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/A3A.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/A3A.png"
},
"0xD14D1e501b2b52D6134dB1aD0857Aa91f9BFe2dd": {
"address": "0xD14D1e501b2b52D6134dB1aD0857Aa91f9BFe2dd",
Expand Down Expand Up @@ -2505,7 +2505,7 @@
"symbol": "AMBO",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/AMBO.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/AMBO.png"
},
"0x119fd89E56e3845B520644dCEDf4A86Cd0B66aA6": {
"address": "0x119fd89E56e3845B520644dCEDf4A86Cd0B66aA6",
Expand Down Expand Up @@ -3419,7 +3419,7 @@
"symbol": "DJUMP",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/DJUMP.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/DJUMP.png"
},
"0xcDa802a5BFFaa02b842651266969A5Bba0c66D3e": {
"address": "0xcDa802a5BFFaa02b842651266969A5Bba0c66D3e",
Expand Down Expand Up @@ -3510,7 +3510,7 @@
"symbol": "DUKE",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/DUKE.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/DUKE.png"
},
"0x51fC0f6660482Ea73330E414eFd7808811a57Fa2": {
"address": "0x51fC0f6660482Ea73330E414eFd7808811a57Fa2",
Expand Down Expand Up @@ -4100,7 +4100,7 @@
"symbol": "FFM",
"hasPermit": false,
"useInSwap": false,
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/FFM.svg"
"logoURI": "https://raw.githubusercontent.com/AngleProtocol/angle-token-list/main/src/assets/tokens/FFM.png"
},
"0xACC51FFDeF63fB0c014c882267C3A17261A5eD50": {
"address": "0xACC51FFDeF63fB0c014c882267C3A17261A5eD50",
Expand Down
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,21 @@ interface TokenInfo {

## Images guidelines

- 400px wide maximum
- If the file is vectorial, you can use SVG which is the most lightweight format. But sometimes, files are so complex than SVG can be heavier than JPG or PNG (if needs to manage transparency).
So please take care of having a visual which is no more than 70Ko (which is already a lot).
- Throw the images in ImageOptim to get the best compression/quality ratio
- A token SVG file should be around 1ko or 2ko.
- But sometimes it has to be converted into JPG/PNG, so let's fix a **limit of 70Ko per file** (which is a lot).
- Reduce dimensions (in Figma) so that it fits a 400px square wide maximum (in 1x resolution, or 200px in 2x resolution).
- Throw the images in [ImageOptim](https://imageoptim.com/mac) to get the best compression/quality ratio.


### A few words about SVGs
SVG is a vectorial format and is the most lightweight format, except in two situations:

1. Some SVG files can contains so many vectors (such as Curve logo) that SVG can be heavier than JPG or PNG.
2. If you open the SVG file with a code editor, you might sometimes notice a data:image base64 tag with thousands of code lines, it means that a JPG/PNG is encapsulated inside the SVG. So the SVG is not actually vectorial.

In these two situations, you should convert the file into JPG or into PNG if it needs to support transparency.

### How to convert images?

1. Use Figma, and export the file in the good format.
2. Sometimes, the SVG doesn't show in Figma. In this case, use an online converter such as [SVGtoPNG](https://svgtopng.com/), and pay attention to the output so that the file isn't cropped.
Binary file added src/assets/tokens/A3A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/tokens/A3A.svg

This file was deleted.

Binary file added src/assets/tokens/AMBO.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/tokens/AMBO.svg

This file was deleted.

Binary file modified src/assets/tokens/ASTR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/tokens/DJUMP.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/tokens/DJUMP.svg

This file was deleted.

Binary file modified src/assets/tokens/DONUT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/tokens/DUKE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/tokens/DUKE.svg

This file was deleted.

Binary file modified src/assets/tokens/ESE.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/tokens/FFM.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/tokens/FFM.svg

This file was deleted.

Binary file modified src/assets/tokens/GLMR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/tokens/GLORY.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/tokens/GRT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/assets/tokens/GRT.svg

This file was deleted.

Binary file modified src/assets/tokens/LAND.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit ddc47f9

Please sign in to comment.