microwavedcola1
cacf668999
ts: account for max swap fee rate, when swapping ( #892 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-02-23 09:23:30 +01:00
Adrian Brzeziński
6aabbb4ded
fix multi cancel ( #888 )
...
* fix multi cancel
* fix
* fix
2024-02-20 12:45:06 +01:00
microwavedcola1
f216b7b696
Mc/tcs premium auction ( #870 )
...
* tcs: move to premium auctions by default
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* tcs: error out if premium cant be computed
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-02-19 09:32:39 +01:00
Adrian Brzeziński
5bbed4a519
adjust loanoriginafeerate for untrusted ( #885 )
2024-02-16 11:26:12 +01:00
Adrian Brzeziński
6c29adddae
fix conversion for sourceamount (tokens with a lot of decimals)
2024-02-07 17:42:21 +04:00
Adrian Brzeziński
ea7eeb92dc
fix decoding of broken oracle ( #864 )
...
* fix
* fix
* fix
* fix
2024-01-31 15:52:06 +01:00
microwavedcola1
e16a7db8dd
Merge branch 'main' into deploy
2024-01-30 12:19:45 +01:00
Adrian Brzeziński
80cad71af5
add set to deepclone
2024-01-28 14:34:04 +01:00
Christian Kamm
39c5d029d0
Program version bump, changelog and idl update
2024-01-26 12:39:31 +01:00
microwavedcola1
e079f199c2
ts: use potential serum tokens in deposit limits ( #857 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-24 14:26:33 +01:00
Adrian Brzeziński
e69214f408
max borrow fix ( #855 )
...
* fix
* ts: compute correct init scaled asset weight
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-22 18:56:50 +01:00
Adrian Brzeziński
bff4828bbf
use deposit limits ( #852 )
...
* edit max source token
* deposit limits adjustments
* fix comment
* pr fixes
* fix
* fix
2024-01-18 17:47:57 +01:00
microwavedcola1
5d677b858d
ts: fix import
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-16 14:55:23 +01:00
Adrian Brzeziński
dfccdaf1fb
Feature/confirm txes fix ( #847 )
...
* connections
* merge
* use new mangolana
* v0.21.21
* fix
* fix
* fix error parsing
* fix
* fix
* fix
* v0.21.24
* fix version
* fix
* fix
2024-01-16 10:59:18 +01:00
microwavedcola1
5d186421bb
ts: take liquidation batches to a script
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-16 10:47:52 +01:00
microwavedcola1
fce4e18735
Merge branch 'mc/deposit-limits' into deploy
2024-01-16 10:22:04 +01:00
microwavedcola1
6e3c284220
ts: deposit limits
2024-01-16 10:21:15 +01:00
microwavedcola1
f7dcb99c5f
ts: fix node fetch
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-12 13:12:19 +01:00
Adrian Brzeziński
6e72188bd4
Revert "Improve tx confirmation ( #846 )"
...
This reverts commit 19a0f7d59d
.
2024-01-12 02:03:46 +01:00
Adrian Brzeziński
19a0f7d59d
Improve tx confirmation ( #846 )
...
* improve tx confirmation with mangolana
* dedupe
* support multiple connections
* fix
2024-01-11 21:14:05 +01:00
Adrian Brzeziński
68e119e726
use fast clone ( #843 )
...
* use fast clone
* fix
* add health check copy tests
* fix
* fix
* add more test
2024-01-11 21:13:41 +01:00
Lou-Kamades
c9531f4bc4
Add TxCallbackOptions ( #844 )
...
* ts: include slot when fetching LatestBlockHash
* ts: add txSignatureBlockHash to postTxConfirmationCallback
* v0.21.9
* v0.21.11
* v0.21.12
* v0.21.13 - add TxCallbackOptions
2024-01-10 14:12:04 -06:00
Lou-Kamades
0971557047
Expand usage of postTxConfirmationCallback ( #842 )
...
* ts: include slot when fetching LatestBlockHash
* ts: add txSignatureBlockHash to postTxConfirmationCallback
* v0.21.9
2024-01-09 14:38:57 -06:00
Adrian Brzeziński
bc8bdaed89
small type fixes + post tx approve fcn ( #830 )
...
* background confirmations
* fixes
* background confirmation callback
* fix
* fix
2024-01-07 20:14:26 +01:00
microwavedcola1
55d22e07c5
risk: use know mm's endpoint + add fallback to known mms pubkeys
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2024-01-03 08:43:48 +01:00
Christian Kamm
943f578bc5
Program v0.21.1 version bump, changelog draft, idl update
2023-12-31 11:45:09 +01:00
microwavedcola1
a57ec4018d
Mc/no usdc health cache ( #831 )
...
* ts: sim usdc pos for max perp trades even if no usdc token position exists
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
---------
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-12-29 14:21:01 +01:00
Lou-Kamades
48993ed130
ts: improve sending txns using muiltiple connections ( #826 )
2023-12-28 21:48:59 -06:00
microwavedcola1
ce3a243749
ts: export class
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-12-26 11:35:11 +01:00
Christian Kamm
27b1ceebe8
Accounts: Expect only the v3 MangoAccounts now ( #783 )
2023-12-19 10:08:46 +01:00
Christian Kamm
06da4768f3
Gov instruction creation helpers
...
- Add one to make a proposal for all serum markets
- Switch created proposals to be drafts
- Add PROPOSAL_LINK env arg
- Add serum3EditMarketIx()
2023-12-14 11:34:17 +01:00
microwavedcola1
66bb74c2fd
ts: add prop to serum3 markets
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-12-14 05:59:44 +01:00
microwavedcola1
e75d279b15
Merge branch 'deploy-v0.21.0' into deploy
2023-12-13 09:04:44 +01:00
microwavedcola1
95442b993f
ts: fix getMaxSerum3OrderForHealthRatio where scaled weights werent used
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-12-08 15:59:01 +01:00
Christian Kamm
f2bde7ba9f
Merge tag 'program-v0.21.0' into deploy-v0.21.0
2023-12-08 11:30:44 +01:00
Lou-Kamades
a1966dc0bc
TS: allow for multiple providers when sending transactions ( #808 )
...
* allow for multiple providers in the client
* v0.20.9
2023-12-07 15:19:25 -06:00
Christian Kamm
db4e486643
Bump program version to v0.21.0 and update idl
2023-12-05 15:57:42 +01:00
Christian Kamm
e7bfa4e03e
Deposit limits ( #806 )
...
- limit deposits (via deposit, flash loan, tcs)
- limit potential deposits via openbook settle
by restricting placable orders via potential_serum_tokens
- introduce Serum3PlaceOrderV2 for this purpose
- account for new limits in liquidator, max_swap
(cherry picked from commit 42e31ae859
)
2023-12-05 15:57:26 +01:00
Christian Kamm
f533d65a58
Openbook token tracking and price bands ( #805 )
...
- track min bid, max ask
- track maximal token outflow from oo
- add serum3_place_order_v2 with mutable receiver bank
- placing openbook orders is restricted to a certain distance from the
oracle
(cherry picked from commit 81501837a9
)
2023-12-05 15:48:57 +01:00
Christian Kamm
2829bef48e
ts: tcs hasData was renamed to isConfigured
2023-11-24 11:05:20 +01:00
microwavedcola1
048983ffe5
ts: extend errors
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-22 08:02:32 +01:00
tjs
97a2a7a194
return slot after sending a transaction
2023-11-21 17:17:01 -05:00
Christian Kamm
a96fb0f614
Revert "Bank: store interest curve scale and target util separately ( #755 )"
...
This reverts commit 3b28856692
.
It should not have been in deploy since it changes instruction ABI and
has not been released in v0.20.0
2023-11-17 07:58:41 +01:00
microwavedcola1
21b8c0dbfa
risk: disable for now
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-16 08:42:18 +01:00
Christian Kamm
2d1bf023c6
TokenRegister: Add arg for group insurance fund flag ( #782 )
2023-11-16 08:16:18 +01:00
microwavedcola1
af314d01a5
format
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-14 17:05:55 +01:00
Christian Kamm
93d85c3f71
Bank: allow maint weights to change over time ( #780 )
...
- token_edit can set it up to gradually scale to new target values
- security admin can abort an ongoing change via token_edit
- all health computations are now time dependent and get the weight
based on it
- when the change is done, the keeper "cleans up" and moves the new
values into the default fields
2023-11-14 14:52:04 +01:00
microwavedcola1
25fd722743
ts: update some typings, commented ones will be improved after next release
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-11-14 10:29:58 +01:00
Lou-Kamades
3ccf2317fe
ts: use release 20 idl
2023-11-13 18:48:46 -06:00
Lou-Kamades
56480f2268
ts: don't alter user margin trade Ixs
2023-11-13 15:04:25 -06:00