-
Notifications
You must be signed in to change notification settings - Fork 84
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
Conversation
6a439a0
to
d5442ce
Compare
); | ||
|
||
let extraComputeUnitBuffer = estimatedComputeUnitUsage * buffer; | ||
if (extraComputeUnitBuffer > MAX_CU_BUFFER) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
6807f07
to
c21090e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can u rebase?
c21090e
to
95fba0a
Compare
No description provided.