Skip to content

Commit

Permalink
Merge branch 'master' into feature/anchor-29
Browse files Browse the repository at this point in the history
  • Loading branch information
skrrb committed Mar 11, 2024
2 parents 591c193 + 7ff8b26 commit 2112b92
Show file tree
Hide file tree
Showing 13 changed files with 557 additions and 239 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ available under GPL.

| tag  | network | program ID |
| ---- | ------- | ------------------------------------------- |
| v1.1 | mainnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.1 | devnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.1 | testnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.7 | mainnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.7 | devnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |
| v1.7 | testnet | opnb2LAfJYbRMAHHvqjCwQxanZn7ReEHp1k81EohpZb |

## Building & testing

Expand Down
5 changes: 2 additions & 3 deletions lib/client/src/book.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ use openbook_v2::state::{
Market, Orderbook, Side, DROP_EXPIRED_ORDER_LIMIT, FILL_EVENT_REMAINING_LIMIT,
};

// TODO Adjust this number after doing some calculations
pub const MAXIMUM_TAKEN_ORDERS: u8 = 8;
const MAXIMUM_REMAINING_ACCOUNTS: usize = 4;
pub const MAXIMUM_TAKEN_ORDERS: u8 = 45;
const MAXIMUM_REMAINING_ACCOUNTS: usize = 0;

pub struct Amounts {
pub total_base_taken_native: u64,
Expand Down
Loading

0 comments on commit 2112b92

Please sign in to comment.