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

WIP: Pan/openbook v2 fixes #962

Open
wants to merge 55 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
f54bb6f
Serge/liquidator split tcs and liquidation (#914)
farnyser Mar 20, 2024
ceeac9d
service-mango-health: use jemalloc (#922)
farnyser Mar 27, 2024
e3a7ed9
liquidator: randomly select token/perps for rebalancing to avoid fail…
farnyser Mar 27, 2024
0b7e62e
liquidator: do not panic if token or perp rebalancing fails (#927)
farnyser Apr 1, 2024
2520c7d
liquidator: forcefully exit process if snapshot job die (#924)
farnyser Apr 1, 2024
e38798e
liquidator: add a sequence check in rebalancing (#926)
farnyser Apr 3, 2024
55105e0
rust client: add a CU estimate for token withdrawal (#934)
farnyser Apr 8, 2024
9df73a0
Audit: Remove unused fn, add comments (#935)
ckamm Apr 8, 2024
653cf9f
token_withdraw: avoid silencing errors with is_ok() (#936)
ckamm Apr 8, 2024
01d5237
Liquidator: add Sanctum swap (#919)
farnyser Apr 10, 2024
75a07e9
program: remove delegate account withdrawal limit (#939)
farnyser Apr 10, 2024
d0125e9
liquidator: rebalance with openbook (limit order) (#938)
farnyser Apr 10, 2024
fe86295
program; fix health check ix gate (#940)
farnyser Apr 11, 2024
ccc479b
add audit report for v0.24.0 (#941)
thibaultosec Apr 15, 2024
4c3814c
Changelog for v0.24.0 (#942)
farnyser Apr 15, 2024
c0b61b3
liquidator: add more LST for sanctum swap (#944)
farnyser Apr 18, 2024
2a6532f
Openbook V2 Integration (#836)
riordanp Apr 22, 2024
ec2d10a
Allow the insurance fund to be for any bank (#946)
ckamm Apr 23, 2024
8fd7a5c
Merge deploy into dev
ckamm Apr 23, 2024
1ea4528
Merge remote-tracking branch 'origin/dev' into dev
ckamm Apr 23, 2024
7e3a720
Program: fix openbook-v2 integration tests (stack overflow issue) (#950)
farnyser Apr 23, 2024
ed715ce
Changelog for v0.25.0
farnyser Apr 23, 2024
e4098b4
RustClient: propagate error in chain data fetcher instead of panickin…
farnyser Apr 25, 2024
d9c4f69
Fix alignment of ordertree nodes (#954)
ckamm Apr 29, 2024
98e6f14
Liquidator: do not try to settle/close open orders when not using lim…
farnyser May 6, 2024
2d9f248
liquidator: settle and close open orders in that order (#959)
farnyser May 6, 2024
d27307b
don't try to load fallbacks with pubkey default
riordanp May 16, 2024
b2456cf
create oo if not exists
riordanp May 16, 2024
3f6cb93
health cache, close oo account fix, some typings, idl update
microwavedcola1 May 16, 2024
dcb88f7
use openbook-v2 anchor 0.29.0 dev branch
riordanp May 17, 2024
86068e6
update openbook-v2
riordanp May 17, 2024
1fe54c3
openbook integration (#963)
mschneider May 18, 2024
369c282
correct length for nodes
mschneider May 18, 2024
6e139bf
batch OO fetches as much as possible
mschneider May 19, 2024
af7e7d2
use new account create ix
microwavedcola1 May 21, 2024
b99d2f5
Liquidator: update integration tests for openbook v2
farnyser May 21, 2024
6d013c5
Fix order type used
microwavedcola1 May 21, 2024
23d437c
Liquidator: update integration tests setup for obv2
farnyser May 21, 2024
d4e58bf
Fix check for indexer
microwavedcola1 May 21, 2024
d819026
fix error in selecting oo account, and account create for liqtest
microwavedcola1 May 21, 2024
852c0a5
format
microwavedcola1 May 21, 2024
57c3a59
Liquidator: fix make-candidate script
farnyser May 22, 2024
2124200
program: code format
farnyser May 22, 2024
ac73a42
fix module var
abrzezinski94 May 22, 2024
0aba19f
fix target var
abrzezinski94 May 22, 2024
2b00d15
oracle price band
microwavedcola1 May 30, 2024
d059926
add debug code
microwavedcola1 May 30, 2024
4c1196e
Fix build error
microwavedcola1 May 30, 2024
33f4524
disable for now
microwavedcola1 May 30, 2024
b6619d3
do only for 1st mango account
microwavedcola1 May 30, 2024
c74f524
fix health remaining accounts
riordanp May 30, 2024
229865c
fix
microwavedcola1 May 30, 2024
bded9b1
Merge branch 'pan/openbook-v2-fixes' of github.com:blockworks-foundat…
riordanp May 30, 2024
697638b
add interface
microwavedcola1 May 30, 2024
664c591
add obv2 modify order method to client
microwavedcola1 Jun 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-code-review-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ on:
env:
CARGO_TERM_COLOR: always
SOLANA_VERSION: '1.16.14'
RUST_TOOLCHAIN: '1.69.0'
RUST_TOOLCHAIN: '1.70.0'
LOG_PROGRAM: '4MangoMjqJ2firMokCjjGgoK8d4MXcrgL7XJaL3w6fVg'

jobs:
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'

- name: Install dependencies
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci-code-review-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'

- name: Install dependencies
Expand All @@ -37,7 +37,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'

- name: Install dependencies
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'

- name: Duplicates check
Expand All @@ -72,7 +72,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '16'
node-version: '20'
cache: 'yarn'

- name: Install dependencies
Expand Down
24 changes: 17 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,29 @@ Update this for each program release and mainnet deployment.

## not on mainnet

### v0.24.0, 2024-4-
### v0.25.0, 2024-4-

- Openbook-v2 integration (#836)

- Remove delegate to owner withdrawal limitation (#939)

- Allows the insurance fund to be any bank (#946)

## mainnet

### v0.24.0, 2024-4-18

Deployment: Apr 18, 2024 at 14:53:24 Central European Summer Time, https://explorer.solana.com/tx/2TFCGXQkUjRvkuuojxmiKefUtHPp6q6rM1frYvALByWMGfpWbiGH5hGq5suWEH7TUKoz4jb4KCGxu9DRw7YcXNdh

- Allow skipping banks and invalid oracles when computing health (#891)

This is only possible when we know for sure that the operation would not put the account into negative health zone.
This is only possible when we know for sure that the operation would not put the account into negative health zone.

- Add support for Raydium CLMM as oracle fallback (#856)

- Add a `TokenBalanceLog` when charging collateral fees (#894)

- Withdraw instruction: remove overflow error and return appropriate error message instead (#910)
- Withdraw instruction: remove overflow error and return appropriate error message instead (#910)

- Banks: add more safety checks (#895)

Expand All @@ -24,9 +36,7 @@ Update this for each program release and mainnet deployment.

- Add a sequence check instruction (#909)

Assert that a transaction was emitted and run with a correct view of the current mango state.

## mainnet
Assert that a transaction was emitted and run with a correct view of the current mango state.

### v0.23.0, 2024-3-8

Expand Down
Loading
Loading