Commit 74bc6bb
fix: handle optional binArrayBitmapExtension account in LbClmm parser (#27)
Three LbClmm instructions (AddLiquidityByStrategyOneSide,
AddLiquidityOneSide, AddLiquidityOneSidePrecise) were using
next_program_id_optional_account for binArrayBitmapExtension, which
always expects the account to be present in the list (set to program ID
if unused). However, Meteora's on-chain program allows truly omitting
this optional account, resulting in 11 accounts instead of 12.
Switch to next_optional_account which handles both cases:
- 12 accounts: optional account present, consume it
- 11 accounts: optional account omitted, return None
Fixes: "Too few accounts provided: expected 12, got 11" errors.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 3067f14 commit 74bc6bb
1 file changed
Lines changed: 6 additions & 6 deletions
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
| 531 | + | |
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | 535 | | |
536 | | - | |
| 536 | + | |
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| |||
552 | 552 | | |
553 | 553 | | |
554 | 554 | | |
555 | | - | |
| 555 | + | |
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| 560 | + | |
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
| 1172 | + | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
| 1177 | + | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
| |||
0 commit comments