Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for custom token configurations in the DEX Widget #20

Open
mikedeanlive opened this issue Jan 19, 2025 · 0 comments
Open

Add support for custom token configurations in the DEX Widget #20

mikedeanlive opened this issue Jan 19, 2025 · 0 comments

Comments

@mikedeanlive
Copy link

Use Case

Many projects need to integrate specific tokens that aren't in the default list, especially newer or project-specific tokens.

Proposed Solution

Add a customTokens configuration option that accepts an array of token objects:

const params = {
  // ... existing params
  customTokens: [
    {
      "symbol": "ALIENX",
      "name": "ALIENX",
      "address": "0x3512Ef267aaF735D235CE8A802B50C32cfd8F60a",
      "decimals": 18,
      "chainId": 1,
      "logoURI": "https://dd.dexscreener.com/ds-data/tokens/ethereum/0x3512ef267aaf735d235ce8a802b50c32cfd8f60a.png"
    }
    // ... more tokens
  ]
}
@mikedeanlive mikedeanlive changed the title Add support for custom token configurations in the DEX Widget to allow developers to add their own tokens alongside the default list. Add support for custom token configurations in the DEX Widget Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant