microwavedcola1
|
70c8f49624
|
update idl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-31 15:58:18 +02:00 |
microwavedcola1
|
78df0082c4
|
Some progress on initial ts example
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-31 15:58:18 +02:00 |
Christian Kamm
|
56e3bd8740
|
Rearrange accounts to avoid padding bytes
|
2022-03-31 14:37:05 +02:00 |
Christian Kamm
|
9cf4f1a748
|
Rearrange MangoAccount to avoid padding bytes
|
2022-03-31 14:01:08 +02:00 |
Christian Kamm
|
5470dc998a
|
Idl: Add a script to replace type aliases with the underlying type.
This allows typescript to work with TokenIndex etc based on just the
idl.
|
2022-03-31 11:53:21 +02:00 |
Christian Kamm
|
85b0b420d4
|
Disable address lookup tables
Because the ALT program isn't available on devnet yet, so prohibits
testing there.
|
2022-03-31 09:25:47 +02:00 |
microwavedcola1
|
1bdcf869ac
|
fix address
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-30 17:41:37 +02:00 |
microwavedcola1
|
795fa532da
|
update program, and deploy to devnet
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-30 17:16:32 +02:00 |
microwavedcola1
|
faba5c47bf
|
remove unwanted code
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-30 17:03:56 +02:00 |
microwavedcola1
|
dc439c8327
|
add null checks
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-30 14:02:19 +02:00 |
microwavedcola1
|
46cb811c99
|
Merge branch 'mc/consume_events'
|
2022-03-30 13:22:31 +02:00 |
Christian Kamm
|
afbfd3b7f9
|
serum3_register_market: better validation
Previously we just trusted the base and quote token index to be correct,
now the appropriate banks are validated.
|
2022-03-30 12:24:49 +02:00 |
Christian Kamm
|
babbff6bec
|
Add is_bankrupt check to most instructions
|
2022-03-30 12:24:49 +02:00 |
microwavedcola1
|
00ac0dfce9
|
comments and test
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-30 11:58:45 +02:00 |
Christian Kamm
|
14d4147efa
|
liq test: Cover more cases
|
2022-03-30 09:37:31 +02:00 |
Christian Kamm
|
d6ebffd346
|
liq: functionality fixes and test
|
2022-03-29 17:47:19 +02:00 |
Christian Kamm
|
69426d6d96
|
liq: Introduce HealthCache to get init/maint health after liquidation
The concept only works if all serum3 open orders have been fully
cancelled and settled.
|
2022-03-29 09:18:13 +02:00 |
microwavedcola1
|
64e3ba0d7c
|
--wip-- [skip ci]
|
2022-03-28 21:13:16 +02:00 |
Christian Kamm
|
a6ff388e20
|
health: avoid divisions, reducing compute needs
|
2022-03-27 14:47:42 +02:00 |
Christian Kamm
|
d9ac178481
|
liq token: Adjust fee handling
Use the sum of the fees configured for the tokens.
|
2022-03-27 14:47:42 +02:00 |
Christian Kamm
|
82819720e0
|
liq token: progress
Change bank.deposit()/withdraw() to work with I80F48 values so we don't
need to round during liquidation.
|
2022-03-27 14:46:51 +02:00 |
Christian Kamm
|
c391c29347
|
liq token: Instruction outline
|
2022-03-27 14:46:51 +02:00 |
microwavedcola1
|
b139f6beab
|
ask example test
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-26 17:27:50 +01:00 |
microwavedcola1
|
b851dd13ad
|
add new ask
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-26 17:06:55 +01:00 |
microwavedcola1
|
c83be301e4
|
extend
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-26 06:41:39 +01:00 |
microwavedcola1
|
1e5a6f90bc
|
extend
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-26 06:37:32 +01:00 |
microwavedcola1
|
223179b278
|
basic test to measure cu
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-26 06:16:52 +01:00 |
microwavedcola1
|
c7bf53659c
|
fix warning
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-25 20:44:06 +01:00 |
microwavedcola1
|
00da3460ab
|
cleanuo
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-25 20:35:19 +01:00 |
microwavedcola1
|
860b7aa1d4
|
cleanup
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-25 20:03:44 +01:00 |
microwavedcola1
|
27eaa5f8f5
|
ported fees
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-25 09:46:38 +01:00 |
microwavedcola1
|
3036ffa45c
|
clippy
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 19:27:00 +01:00 |
microwavedcola1
|
671c06da89
|
events
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 19:20:56 +01:00 |
microwavedcola1
|
0e953f5e80
|
more
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 19:15:46 +01:00 |
microwavedcola1
|
f895467bf5
|
weights
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 17:29:30 +01:00 |
microwavedcola1
|
21073d6b71
|
cleanup
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 16:12:55 +01:00 |
microwavedcola1
|
de0ce5ad8f
|
cleanup
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 15:29:42 +01:00 |
microwavedcola1
|
baf4b255c8
|
remove more dead code
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 14:48:11 +01:00 |
microwavedcola1
|
1eaf58812f
|
remove more dead code
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 14:46:09 +01:00 |
microwavedcola1
|
ba4300accc
|
simplify
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 14:40:08 +01:00 |
microwavedcola1
|
4a3d61a0b0
|
cleanup unused
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 14:08:10 +01:00 |
microwavedcola1
|
e6ee72b8b0
|
remove unused
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-24 13:45:46 +01:00 |
microwavedcola1
|
4f7eb1b38f
|
add ts basic example, cleanup release script, update idl
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-23 15:39:11 +01:00 |
microwavedcola1
|
4459369c23
|
Merge pull request #30 from blockworks-foundation/mc/clippy
fix clippy warnings
|
2022-03-23 10:04:01 +01:00 |
microwavedcola1
|
5919a5a1df
|
Merge branch 'main' into mc/clippy
|
2022-03-23 09:53:50 +01:00 |
microwavedcola1
|
f135ca4d9b
|
fix clippy warnings
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-23 09:33:51 +01:00 |
microwavedcola1
|
fde4bce86f
|
Merge pull request #29 from blockworks-foundation/mc/event_queue
add event queue
|
2022-03-23 08:54:11 +01:00 |
microwavedcola1
|
b0d6a14d00
|
fix clippy warnings
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-23 08:34:23 +01:00 |
microwavedcola1
|
f7fb9b7e35
|
add event queue
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
|
2022-03-23 07:53:45 +01:00 |
Christian Kamm
|
696806ee77
|
Add liq_token_with_token file outline
|
2022-03-22 19:25:33 +01:00 |