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

Program: more explicit error when missing bank/oracle for placing spot order #978

Open
wants to merge 36 commits into
base: dev
Choose a base branch
from

Conversation

farnyser
Copy link
Contributor

No description provided.

farnyser and others added 30 commits March 20, 2024 15:25
liquidator: split TCS triggering and liquidation job

Concurrent execution of candidate lookup and tx building/sending
- Also added an health assertion IX to protect liqor in multi liquidation scenario
- And a timeout for jupiter v6 queries (avoid blocking liquidation because of slow TCS)
…ing at every try if one token is having an issue (#921)
* liquidator: forcefully exit process if snapshot job die

* client: return snapshot_job join handle so it can be watched for early unexpected exit
liquidator: add a sequence check in rebalancing
liquidator: add sanctum swap
This is necessary for new liquidator feature of rebalancing using limit orders:
We need to close the token and market slot so that it's available for new liquidation, but at the same time, it's possible that the min order quantity for a given market is still bigger than allowed max withdrawal.
liquidator: rebalance with limit order
Co-authored-by: Tyler <[email protected]>
Co-authored-by: Christian Kamm <[email protected]>
Co-authored-by: Serge Farny <[email protected]>
Co-authored-by: microwavedcola1 <[email protected]>
This ensures casts of local variables don't run into alignment
differences.
microwavedcola1 and others added 6 commits May 30, 2024 12:56
* program: do not charge collateral fees below a certain amount

Signed-off-by: microwavedcola1 <[email protected]>

* program: fix integration tests

---------

Signed-off-by: microwavedcola1 <[email protected]>
Co-authored-by: Serge Farny <[email protected]>
* Cancel openbook v2 by client order id
* Programs: remove anchor close has it is done manually anyway

* Programs: fix a bug where a pegged order might be skipped even if it was valid
Program: switchboard on-demand oracle

---------

Co-authored-by: Mitch Gildenberg <[email protected]>
Program: skip index and rate update when oracle is invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
program On-chain program changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants