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

How to fetch Quotes for Polygon supported tokens #46

Open
Jithendra-transfi opened this issue Jun 21, 2023 · 0 comments
Open

How to fetch Quotes for Polygon supported tokens #46

Jithendra-transfi opened this issue Jun 21, 2023 · 0 comments

Comments

@Jithendra-transfi
Copy link

const SFL_TOKEN = new Token(
ChainId.POLYGON,
"0xD1f9c58e33933a993A3891F8acFe05a68E1afC05",
18,
"SFL",
"Sunflower Land"
);

const USDC_TOKEN = new Token(
ChainId.POLYGON,
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
6,
"USDC",
"USD Coin"
);

const CurrentConfig = {
rpc: {
mainnet:
"https://polygon-mainnet.g.alchemy.com/v2/OQu5rBT9v5gr-5zOU2ZvwNzJhaNzTGvj",
},
tokens: {
in: USDC_TOKEN,
amountIn: 1,
out: SFL_TOKEN,
poolFee: FeeAmount.MEDIUM,
},
};

This is my configuration file not able to fetch quotes for SFL_TOKEN swap

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