Maximilian Schneider
a634bd89c6
switch to switchboard
2023-11-14 14:28:26 +00:00
Maximilian Schneider
c1e2b25b54
update mainnet oracles
2022-08-17 15:02:12 +02:00
Maximilian Schneider
b863002cf3
switch devnet to mango group with pyth
2022-07-30 17:58:47 +02:00
Maximilian Schneider
15f38c14f4
update dependencies
2022-07-30 17:41:50 +02:00
Maximilian Schneider
5a0cfa413f
add support for pyth oracle
2022-07-26 22:28:34 +02:00
Maximilian Schneider
1c7749bdfc
format everything with prettier
2022-07-26 22:21:22 +02:00
Tyler Shipe
3015f73724
use getMultipleAccounts instead of gPA for serum oo
2021-09-10 12:12:50 -04:00
dboures
5b571e513e
add info to marginAccount ( #16 )
2021-07-06 12:19:21 +02:00
dd
770187c6cd
Changed interest rate
2021-07-04 10:49:06 -04:00
Riordan Panayides
1aae8a4178
Fix hasBorrows memcmp
2021-06-15 22:44:33 +01:00
dd
66e21732a1
updated collateral calculations with referrer rebates
2021-06-12 11:35:14 -04:00
dd
9bf82ed3b1
adjusted tokenToDecimals in client.ts to correctly reflect coin_lot_size for SOL/USDC and SRM/USDC
2021-06-05 14:41:08 -04:00
dd
e0627fcd34
new mango group with new oracles on mainnet
2021-06-05 12:58:29 -04:00
Maximilian Schneider
03f6c9aee2
Revert "Cex style api ( #15 )"
...
This reverts commit 3a2dbc889c
.
2021-06-05 10:57:55 -04:00
feierabend654
3a2dbc889c
Cex style api ( #15 )
...
* a simple cex style client #14
* add empty line
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* fixes from code review
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* make margin account pk mandatory
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* load attached keypair
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* try actions for yarn test
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* refactor
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* more refactoring
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* export simple client
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* remove testing code
Signed-off-by: feierabend654 <feierabend654@gmail.com>
* detect and throw error
Signed-off-by: feierabend654 <feierabend654@gmail.com>
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2021-06-05 10:23:20 -04:00
dd
6eaf842b9d
Added support for AddMarginAccountInfo instruction but NOT TESTED
2021-06-05 09:46:37 -04:00
Ralfs
48b2fc7cf5
bugfix in ids.json
2021-06-03 16:28:43 +03:00
Ralfs
90ad36361b
Updated ids.json for devnet
2021-06-03 13:56:59 +03:00
dd
6164366c55
deployed mango group on mainnet
2021-06-01 17:47:32 -04:00
dd
907e9d7e0c
fixed mainnet ids; deployed new mango program id for 5 tokens on mainnet; mango group not yet deployed
2021-06-01 17:27:18 -04:00
Ralfs
e6f273410d
Test social loss with 1 borrow
2021-06-01 16:14:29 +03:00
Ralfs
6952e68b82
Updated tests to be support more options
2021-06-01 00:04:13 +03:00
dd
87d09b0fa0
changed ids.json and uploaded new program
2021-05-31 13:07:38 -04:00
Riordan Panayides
dc52a4b151
Fix padding length
2021-05-24 22:32:02 +01:00
Ralfs
ed129179de
Added same group to mainnet to avoid errors on ui
2021-05-24 12:17:03 +03:00
Ralfs
5b50ab5ea1
Add USDC MangoGroup
2021-05-24 12:12:13 +03:00
Riordan Panayides
86788e2943
Fix type
2021-05-22 13:57:53 +01:00
Riordan Panayides
85e674385e
Add function to get token decimals by index
2021-05-22 13:54:53 +01:00
Riordan Panayides
8236f057e4
Merge branch '5_tokens' of github.com:blockworks-foundation/mango-client-ts into 5_tokens
2021-05-20 21:49:05 +01:00
Riordan Panayides
a51ac2a293
increase marginaccount padding
2021-05-20 21:49:00 +01:00
Ralfs
e4d2998912
Merge branch '5_tokens' of github.com:blockworks-foundation/mango-client-ts into 5_tokens
2021-05-20 23:35:16 +03:00
Ralfs
6e5432ce87
Placed the new group ids in mainnet to avoid errors on ui
2021-05-20 23:34:49 +03:00
Riordan Panayides
90b5a0a2c0
add hasBorrows to marginaccount layout, add function to get all accounts with borrows
2021-05-20 21:25:31 +01:00
Riordan Panayides
3e1130c0c4
Add new token decimals, get token symbols from serum
2021-05-20 21:02:51 +01:00
Ralfs
0f47d83101
Updated ids and layout
2021-05-20 21:44:11 +03:00
Maximilian Schneider
0a528077e7
maintenance ( #13 )
...
* add commitment arg to getMultipleAccounts
* upgrade dependencies
* use sequence number to continuosly read out event queue ring buffer
* add test for market order
* version 0.1.19
2021-05-13 14:32:38 +03:00
dafyddd
7dc12b8b2d
Merge pull request #11 from blockworks-foundation/reusable_srm_vault_ids
...
Implements the ids of the new reusable SRM vault
2021-04-30 11:13:58 -04:00
Maximilian Schneider
bfb6f89952
add new ids for SOL/SRM/USDT
2021-04-30 14:50:28 +00:00
Ralfs
5c360a644a
Implements the ids of the new reusable SRM vault
2021-04-30 16:52:41 +03:00
Tyler Shipe
2e30ca4824
remove rounding in deposit and borrow function
2021-04-29 17:22:31 -04:00
Ralfs
475b5cf30b
Add SOL and SRM to mainnet ids ( #10 )
...
* added SOL and SRM oracles to mainnet ids
* Added SRM/USDT spot market address
* remove unused USDC markets
Co-authored-by: Maximilian Schneider <mail@maximilianschneider.net>
2021-04-28 14:57:20 +03:00
Ralfs
8db1458dbe
Added new BTC_ETH_USDT MangoGroup
2021-04-27 17:38:40 +03:00
Ralfs
f371dde5c7
added SOL_SRM_USDT mango group
2021-04-27 10:53:05 +03:00
dd
1de41048c9
changed interest rate vars OPTIMAL_RATE and MAX_RATE
2021-04-26 14:11:01 -04:00
dd
5496005868
updated devnet oracles
2021-04-25 22:07:30 -04:00
Tyler Shipe
a203b31eab
add borrowAndWithdraw function
2021-04-20 14:10:20 -04:00
dd
d7f9600ac9
got rid of index.ts tests
2021-04-20 11:05:04 -04:00
dd
ec10681c75
Added different confirm levels for transactions in the client; Removed useless log statements
2021-04-20 10:56:07 -04:00
dd
0c3859fb24
Added limit to ForceCancelOrders
2021-04-09 16:35:47 -04:00
dd
767734b224
Added beingLiquidated to MarginAccount
2021-04-09 16:35:47 -04:00