Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/curvefi/curve-assets
https://github.com/curvefi/curve-assets
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/curvefi/curve-assets
- Owner: curvefi
- Created: 2021-09-17T11:58:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-01T00:02:17.000Z (8 days ago)
- Last Synced: 2025-01-01T00:23:18.136Z (8 days ago)
- Language: Python
- Size: 22.2 MB
- Stars: 58
- Watchers: 9
- Forks: 274
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Assets used on Curve
This repository contains token icons and platform logos used on Curve and any other websites that which to use them:
- Token icons are under [`/images`](https://github.com/curvefi/curve-assets/tree/main/images)
- Platform logos are under [`/platforms`](https://github.com/curvefi/curve-assets/tree/main/platforms)## Adding a token icon
Everyone can create a pool on Curve. In this repo, everyone can add token icons for tokens contained in Curve pools.
Once a token icon is added to this repository, that token icon will be visible on all Curve websites.To add a token icon:
1. Choose the right folder: under [`/images`](https://github.com/curvefi/curve-assets/tree/main/images), if the token is on Ethereum, then please choose the `assets` folder. If the token is on any other chain, then please choose the appropriate folder.
2. In that folder, upload the token icon. It **must** be a PNG image, and its dimensions **must** be 200x200. The filename **must** be the token's address, in lowercase.Example:
- This is a correct filename for the CRV token on Ethereum: `/images/assets/0xd533a949740bb3306d119cc777fa900ba034cd52.png`
- This is NOT a correct filename for the CRV token on Ethereum: `/images/assets/0xD533a949740bb3306d119CC777fa900bA034cd52.png` (filename is not lowercase)
- This is NOT a correct filename for the CRV token on Ethereum: `/images/assets-polygon/0xd533a949740bb3306d119cc777fa900ba034cd52.png` (incorrect folder)
- This is NOT a correct filename for the CRV token on Ethereum: `/images/assets/0xd533a949740bb3306d119cc777fa900ba034cd52.jpg` (incorrect file extension)Once you've opened a PR, we'll review and merge it. Once the PR is merged, the token icon should show up on all sites within minutes.
## Using this repository's icons on your website
We use [jsDelivr](https://github.com/jsdelivr/jsdelivr), a free CDN for open-source files, which allows to serve any file found in this repo in a fast and reliable way, for free.
It's simple:
1. This is the base url: `https://cdn.jsdelivr.net/gh/curvefi/curve-assets/`
2. Append to it the relative path of any icon in this repository: for example, for the CRV icon on Ethereum: `images/assets/0xd533a949740bb3306d119cc777fa900ba034cd52.png`
3. That's it, you can serve icon anywhere you want with the complete url: for example, for the CRV icon: [`https://cdn.jsdelivr.net/gh/curvefi/curve-assets/images/assets/0xd533a949740bb3306d119cc777fa900ba034cd52.png`](https://cdn.jsdelivr.net/gh/curvefi/curve-assets/images/assets/0xd533a949740bb3306d119cc777fa900ba034cd52.png)