Skip to content

Conversation

guibescos
Copy link
Contributor

@guibescos guibescos commented Mar 11, 2024

This fixes the bug where some addPrice proposals didn't work.
I also refactor the fee logic to move it inside solana-utils

The key change is we need to change MAX_EXECUTOR_PAYLOAD_SIZE

@guibescos guibescos changed the title Make room for compute ixs fix: Make room for compute ixs Mar 11, 2024
Copy link

vercel bot commented Mar 11, 2024

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

Name Status Preview Comments Updated (UTC)
xc-admin-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 11, 2024 6:36pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
example-oracle-amm ⬜️ Ignored (Inspect) Visit Preview Mar 11, 2024 6:36pm


export const MAX_EXECUTOR_PAYLOAD_SIZE = PACKET_DATA_SIZE - 687; // Bigger payloads won't fit in one addInstruction call when adding to the proposal
export const MAX_EXECUTOR_PAYLOAD_SIZE =
PACKET_DATA_SIZE_WITH_ROOM_FOR_COMPUTE_BUDGET - 687; // Bigger payloads won't fit in one addInstruction call when adding to the proposal
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The key change is we make more space by replacing PACKET_DATA_SIZE by PACKET_DATA_SIZE_WITH_ROOM_FOR_COMPUTE_BUDGET

@guibescos guibescos merged commit 926aa55 into main Mar 11, 2024
@guibescos guibescos deleted the fix/make-room-for-compute-ixs branch March 11, 2024 18:58
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.

2 participants