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

liquidator: add a sequence check in rebalancing #926

Merged
merged 5 commits into from
Apr 3, 2024

Conversation

farnyser
Copy link
Contributor

No description provided.

@farnyser farnyser force-pushed the serge/liquidator-rebalance-wtih-seq-check branch from ac3df60 to 2482412 Compare March 28, 2024 08:00
@farnyser farnyser marked this pull request as ready for review March 29, 2024 14:48
lib/client/src/client.rs Outdated Show resolved Hide resolved
lib/client/src/client.rs Outdated Show resolved Hide resolved
.mango_client
.sequence_check_instruction(&self.mango_account_address, account)
.await?;
tx_builder.append(seq_check_ix);
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: In cases where we have prepared instructions (ixs) I think it's preferable to add the seq-check-ix to that, to make its cu budget estimate be included when .to-instructions() is called

@farnyser farnyser merged commit e38798e into dev Apr 3, 2024
13 checks passed
@farnyser farnyser deleted the serge/liquidator-rebalance-wtih-seq-check branch April 3, 2024 09:55
farnyser added a commit that referenced this pull request Aug 9, 2024
liquidator: add a sequence check in rebalancing
farnyser added a commit that referenced this pull request Aug 10, 2024
liquidator: add a sequence check in rebalancing
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