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

fix: fix nativeToken price for corn #436

Merged
merged 3 commits into from
Dec 31, 2024
Merged

Conversation

fedorovdg
Copy link
Contributor

No description provided.

@fedorovdg fedorovdg merged commit e480c06 into master Dec 31, 2024
1 check passed
@@ -476,7 +476,11 @@ export const _getUsdRate = async (assetId: string): Promise<number> => {
}

if (nativeTokenName === undefined) {
throw Error('nativeTokenName not found')
if(curve.isLiteChain && curve.constants.API_CONSTANTS?.wrappedNativeTokenAddress.toLowerCase() && curve.constants.API_CONSTANTS?.wrappedNativeTokenAddress.toLowerCase() in pricesFromApi) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if(curve.isLiteChain && curve.constants.API_CONSTANTS?.wrappedNativeTokenAddress.toLowerCase() && curve.constants.API_CONSTANTS?.wrappedNativeTokenAddress.toLowerCase() in pricesFromApi) {
const nativeToken = curve.constants.API_CONSTANTS?.wrappedNativeTokenAddress.toLowerCase() ?? ''
if(curve.isLiteChain && nativeToken in pricesFromApi) {

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.

3 participants