Commit Graph

236 Commits

Author SHA1 Message Date
dd d3d7c254b3 Added more checking 2021-05-12 12:36:15 -04:00
dd a96eff6ed0 added more checked math 2021-05-12 12:36:11 -04:00
dd 532aa92c9b Updated interest rates to account for added risk at the 100% bound. 2021-05-12 12:36:07 -04:00
Riordan Panayides 0dbe98fefe
Add basic borrow tests (#22)
* Add a test for borrow instruction happy path
* Add a test for borrow instruction failure when the borrow would exceed the user's leverage limit
* Add a test for settle_borrow instruction happy path
2021-05-07 17:35:46 +03:00
Riordan Panayides cbc527f587
Add basic Travis CI config 2021-05-05 17:23:07 +01:00
kevlubkcm 5d28cef78c
Test to make sure SRM withdrawal fails if quantity is larger than balance (#21)
* add test for withdrawal failure

Co-authored-by: Kevin Lu <kevin@bkcm.co>
2021-05-05 17:26:42 +03:00
Riordan Panayides 1ff2ec9e5c
Add deposit tests (#20) 2021-05-05 17:26:17 +03:00
Maximilian Schneider fc67807f3c
test srm withdrawal (#19)
* correctly setup signing to prevent silent TX rejection
* check balances & run rustfmt
2021-05-05 04:35:33 +03:00
kevlubkcm 971a8df0b8
Add test for IniMarginAccount (#18)
* split out srm tests. add init margin account test

Co-authored-by: Kevin Lu <kevin@bkcm.co>
2021-05-03 09:54:33 +03:00
kevlubkcm b4e360f037
Test harness refactor and DepositSrm test (#17)
* refactoring test harness into TestMangoGroup
* move mango group init code into helper
* add deposit srm test
* test flags and readme update

Co-authored-by: Kevin Lu <kevin@bkcm.co>
2021-05-01 01:38:24 +03:00
dd 734e9500d7 clarified new_group.md some more 2021-04-30 11:28:33 -04:00
Maximilian Schneider b7b85ab75c update serum_dex commit hash in cargo.lock 2021-04-30 10:28:30 +03:00
kevlubkcm ef9eb55f18
InitMangoGroup basic test (#15)
* also need to install libssl-dev to get a clean build
* additional deps for spl-token-cli
* also update solana version
* dex mock
* update readme

Co-authored-by: Kevin Lu <kevin@bkcm.co>
2021-04-30 01:11:09 +03:00
dd 2fc5289c21 SOL and SRM added to devnet.env 2021-04-28 15:12:22 -04:00
dd 9a10391005 new_group.md fixed crank isntruction 2021-04-28 12:05:14 -04:00
dd d5f8e96efd Added more checking 2021-04-26 13:52:36 -04:00
dd 2b7e619f48 added more checked math 2021-04-26 13:52:36 -04:00
dd 55883ef873 Added help on how to deploy a new group 2021-04-26 13:52:36 -04:00
dd 565b43c3be Added help on how to deploy a new group 2021-04-26 13:52:36 -04:00
dd 48095b30bd Added more help to devnet_deploy.sh 2021-04-26 13:52:36 -04:00
dd 884fe87660 Fixed settle borrow rounding error 2021-04-26 13:52:36 -04:00
dd 476b84a5eb Added help on how to deploy a new group 2021-04-26 10:05:52 -04:00
dd 16f9cad69f Added help on how to deploy a new group 2021-04-26 10:02:00 -04:00
dd 369e96c3d5 Added more help to devnet_deploy.sh 2021-04-26 00:59:55 -04:00
dafyddd 896a3c66ad
Merge pull request #14 from blockworks-foundation/borrow_rounding
Fixed settle borrow rounding error
2021-04-22 12:54:07 -04:00
dd a28d3923d9 Fixed settle borrow rounding error 2021-04-22 12:51:21 -04:00
dd 1fb1cc5eba Updated interest rates to account for added risk at the 100% bound. 2021-04-22 10:57:52 -04:00
dd bed898093c updated version 2021-04-15 10:03:40 -04:00
dafyddd e60c4f6094
Merge pull request #11 from blockworks-foundation/remove_borrow_limits
Removed borrow limit checks
2021-04-15 10:02:42 -04:00
dd f9b5abaa2d Removed borrow limit checks 2021-04-15 10:01:40 -04:00
dafyddd 183b5f86e1
Merge pull request #10 from blockworks-foundation/partial_bug0
increased deficit calculation number in partial liquidation
2021-04-14 19:24:54 -04:00
dd 3fda4095b3 increased deficit calculation number in partial liquidation 2021-04-14 19:05:56 -04:00
kevlubkcm a0318ef810
README fixes (#9)
* also need to install libssl-dev to get a clean build

* additional deps for spl-token-cli

* also update solana version

Co-authored-by: Kevin Lu <kevin@bkcm.co>
2021-04-12 14:22:58 +02:00
dd 3e2dc31e17 Fixed small typo in common/lib.rs 2021-04-09 20:16:00 -04:00
dd 44a303a513 Updated verson number; cleaned up TODO messages 2021-04-09 19:55:02 -04:00
dafyddd 425485b8d8
Merge pull request #8 from blockworks-foundation/partial_liq
Partial liq
2021-04-09 19:26:25 -04:00
dd 66d23f4af3 cleaned up ForceCancel instruction 2021-04-09 19:11:58 -04:00
dd 14637a2015 Updated ForceCancel with limit param 2021-04-08 14:07:41 -04:00
dd dd12afa65c fixed invoke_cancel_orders so that events on event queue are now taken into account 2021-04-07 20:48:08 -04:00
dd 81ab0f7680 Added token program id to partial liquidate instruction 2021-04-06 20:37:56 -04:00
dd e2bde96d1c finished adding instructions in rust 2021-04-04 16:23:41 -04:00
dd 31f8a54125 added socialize loss functionality 2021-04-04 15:53:21 -04:00
dd a52f7a1ca8 split it into ForceCancelOrders and PartialLiquidate; PL still not complete 2021-04-04 15:37:20 -04:00
dd 0d910cb0ee upgraded to version 1.6.3 2021-04-03 11:52:06 -04:00
dd 7ebdf6d075 finished rust side partial_liquidation instruction; no tests done yet 2021-04-03 11:43:14 -04:00
dd 39f5d8d0ce Removed assertion errors 2021-04-03 11:23:51 -04:00
dd f6101d9292 Merge remote-tracking branch 'origin/partial_liq' into partial_liq
# Conflicts:
#	program/src/processor.rs
2021-04-03 09:29:10 -04:00
dd ccbe33d907 added partial liquidation 2021-04-03 09:27:57 -04:00
dafyddd d6234ea4ee
Merge pull request #7 from blockworks-foundation/errors
Errors
2021-03-29 17:47:21 -04:00
dd 4378a18ca7 updated version number 2021-03-29 17:46:59 -04:00