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 reading meteora #450

Merged
merged 46 commits into from
Jan 26, 2024
Merged

fix reading meteora #450

merged 46 commits into from
Jan 26, 2024

Conversation

silviutroscot
Copy link
Contributor

No description provided.

packages/kamino-sdk/src/Kamino.ts Show resolved Hide resolved
}

if (tokenBAmount === undefined || tokenBAmount.eq(ZERO)) {
return [tokenAAmount, tokenAAmount.div(ratio)];
let amountB = tokenAAmount.div(ratio) || new Decimal(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please make sure ratio !== 0 here as well, otherwise infinity issue again

packages/kamino-sdk/src/services/MeteoraService.ts Outdated Show resolved Hide resolved
@silviutroscot silviutroscot merged commit 0cfc746 into master Jan 26, 2024
3 checks passed
@silviutroscot silviutroscot deleted the silviu/fix-reading-meteora branch January 26, 2024 14:08
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