Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

feat: balancer#22

Open
kitanovicd wants to merge 3 commits intomainfrom
feat/balancer
Open

feat: balancer#22
kitanovicd wants to merge 3 commits intomainfrom
feat/balancer

Conversation

@kitanovicd
Copy link
Copy Markdown

Resolves #21

@kitanovicd kitanovicd requested a review from fredwes December 21, 2023 21:20
@vercel
Copy link
Copy Markdown

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
token-geyser-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 22, 2023 10:05am

const price = await getCurrentPrice(symbol)
return price
} else {
const { price } = await uniswapV2Pair(tokenAddress, signerOrProvider, 'UniswapV2', 'UNI')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likely the LP token we would want to get the price of would be an aaveV3 LP token not Uniswap

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it. Assuming that aUSDC has the same price as USDC. Now we support both aave token and uni tokens. We could do it another way around by just mapping atoken to coingecko id of underlying asset. If you think that solutions is better i can correct it it is just a matter of minutes

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for balancer lp tokens

2 participants