This repository contains scripts and utilities for managing the Superfluid token list(s). The scripts update or filter tokens based on various criteria, such as solvency categories or token types.
[npm install | yarn add | pnpm add] @superfluid-finance/tokenlist
import tokenlist, {
extendedSuperTokenList,
tierATokenListJSON,
tierBTokenListJSON,
tierCTokenListJSON
} from "@superfluid-finance/tokenlist"
// ...later
const underlyingTokens = extendedTokenlist.tokens.filter((token) => token.tags.includes("underlying"))
If you'd like to have a token added to our token list or updated with regards to its solvency category, please follow the steps below:
- Prepare all necessary token information, such as token contract address, token symbol, token name, decimals, logo URI, and other relevant data.
- Fork the repository.
- Add or update the token's details in the appropriate JSON file.
- Create a pull request with a clear title and description detailing the changes and the reasons behind them.
- Our team will review the proposal, which might include verifying the token's authenticity, its source code (if available), liquidity, market cap, and other essential metrics.
- If further information is required, our team will comment on the pull request.
- Based on the feedback, update the pull request if necessary. Respond to any comments and provide clarifications where needed.
- Once the review process is complete and the token meets all criteria, the pull request will be approved.
- The changes will be merged, and the token will be listed, and a new package version will be released.
- Once listed, the token's solvency category might be updated periodically based on ongoing assessments.
- Users and token owners can provide feedback and request re-evaluation if they believe a token's category needs to be updated.
Note: Listing is not an endorsement. Always do your own research before interacting or investing in any token.
Tokens are classified into specific types:
- Wrapper: A supertoken that wraps a regular token (eg. USDC - USDCx).
- Native Asset: A supertoken related to the blockchain's native token (eg. ETH - ETHx).
- Pure: Supertokens that neither wrap other assets nor are they related to the native asset.
- Underlying: Regular (ERC20) tokens, which are the underlying tokens of some supertoken.
Underlying tokens always get included in the respective lists.
superfluid.tokenlist.json
: The default Superfluid token list, containing only solvency category A, and B tokens.superfluid.extended.tokenlist.json
: An extended list all of the listed tokens.superfluid.tier-a.tokenlist.json
: List of tokens with solvency categoryA
.superfluid.tier-b.tokenlist.json
: List of tokens with solvency categoryB
.superfluid.tier-c.tokenlist.json
: List of tokens with solvency categoryC
.
Solvency categories are classifications assigned to tokens to represent their perceived financial stability or risk. The categories help users make informed decisions when dealing with tokens, especially in financial contexts. All token issuers are recommended to run their own Sentinel to make sure their token remains solvent.
-
Category A (
tier_a
): Chain native tokens and well-known stable-coins (e.g. USDCx, ETHx, MATICx etc.). -
Category B (
tier_b
): A delegate for the token is known by Superfluid who is committed to ensuring the solvency of the token which is used by their platform or service. -
Category C (
tier_c
): Any token not in the above two categories.
Users are encouraged to perform their due diligence and research before making any financial moves, even with tokens from Category A. If you want to know more how you ensure solvency of your token please reach out to us on Discord.
Tokens are categorized using tags for quicker identification:
underlying
: Marks a token as an underlying asset for another token.supertoken
: Marks a token as a supertoken.tier_a
: Indicates tokens of solvency category A.tier_b
: Indicates tokens of solvency category B.tier_c
: Indicates tokens of solvency category C.testnet
: Testnet tokens such as fUSDC & fUSDCx.
Purpose: Read subgraphs, and generate the extended token list.
- Read Superfluid's subgraphs
- Collect the listed tokens, and their respective data
- attach metadata (token type, logoURI, some tags)
- Output the resulting list to
superfluid.extended.tokenlist.json
.
Purpose: Attach solvency tags to tokens.
- Reads from
superfluid.extended.tokenlist.json
. - Utilizes solvency data from a CSV file.
- Updates non-"underlying" tokens with the corresponding solvency tags (
tier_a
,tier_b
, ortier_c
). - Validates the updated token list.
- Saves the final list to
superfluid.extended.tokenlist.json
.
Purpose: Split tokens into separate files, based on their solvency tags.
- Reads from
superfluid.extended.tokenlist.json
. - Filters and divides tokens into distinct lists using solvency tags.
- Creates separate lists for
tier_a
,tier_b
,tier_c
, and a combined one fortier_a
andtier_b
. - Validates each split list.
- Outputs each list to a corresponding JSON file.
Execute the desired script using an appropriate Node.js environment.