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

Optimize compute unit limit request #127

Merged
merged 9 commits into from
Dec 17, 2024
Merged

Optimize compute unit limit request #127

merged 9 commits into from
Dec 17, 2024

Conversation

codewithgun
Copy link
Contributor

No description provided.

@codewithgun codewithgun changed the title Fix CU limit Optimize compute unit limit request Dec 12, 2024
@codewithgun codewithgun force-pushed the fix/cu-limit branch 2 times, most recently from 6a439a0 to d5442ce Compare December 13, 2024 10:47
);

let extraComputeUnitBuffer = estimatedComputeUnitUsage * buffer;
if (extraComputeUnitBuffer > MAX_CU_BUFFER) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this util should not limit to add liquidity function?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It applies to all functions. It clamps only the extra CU buffer, not the estimated CU used.

Copy link
Contributor

@00xSam 00xSam left a comment

Choose a reason for hiding this comment

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

Can u rebase?

@codewithgun codewithgun merged commit cdabc02 into main Dec 17, 2024
8 checks passed
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