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 LPs token addresses #160

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add LPs token addresses #160

wants to merge 2 commits into from

Conversation

alecande11
Copy link
Collaborator

This PR will create a JSON file containing the LPs of each chain, and their underlying assets.
I added only LPs on Terra, we might need some script to automatically fetch this information on other chains, and update the chain file accordingly.

The idea is for station to fetch the lps.json file when starting up, then inside readNativeDenom, if the token is in the LP list it should compute the denom in this way:

const denom = `${capitalize(lp.dex)} ${lp.assets.map(asset => readNativeDenom(asset).symbol).join("-")} LP`

@alecande11 alecande11 requested a review from mwmerz June 15, 2023 10:43
@cloudflare-workers-and-pages
Copy link

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4835992
Status: ✅  Deploy successful!
Preview URL: https://c5a39993.station-assets.pages.dev
Branch Preview URL: https://feat-add-lps.station-assets.pages.dev

View logs

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

Successfully merging this pull request may close these issues.

2 participants