Christian Kamm
0349ace3b6
Downgrade the `fixed` crate to v1.11.0 ( #500 )
2023-03-12 08:50:42 +01:00
Christian Kamm
68f9f38a3c
Update idl for v0.9.0
2023-03-12 08:37:52 +01:00
Christian Kamm
c7dd6cd9e3
Bump program version to v0.9.0
2023-03-12 08:19:05 +01:00
Christian Kamm
7803c47912
Liquidator: Withdraw full dust amount on rebalance ( #499 )
...
The amount was sometimes too high (stale?), causing withdraw errors.
2023-03-09 10:01:02 +01:00
Christian Kamm
9a8cb3c7a9
Add idl-compare script to check for binary incompatibilities ( #498 )
2023-03-09 08:32:59 +01:00
Christian Kamm
6ee3cb1e19
Perp: More comments on fields and funding computation ( #497 )
2023-03-07 20:53:07 +01:00
tjs
0625fabf2c
do not emit when calling tsc
2023-03-07 11:35:13 -05:00
Christian Kamm
305e646262
CI pipeline for verifiable builds ( #496 )
2023-03-07 17:28:26 +01:00
microwavedcola1
522ee41262
v0.5.27
2023-03-07 13:13:27 +01:00
microwavedcola1
cb8ee54d0f
Fix price unit used in health sim
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 13:08:54 +01:00
microwavedcola1
aa8214412b
v0.5.26
2023-03-07 12:54:04 +01:00
microwavedcola1
c7f577fc8e
Fix price unit used in get max perp trade size
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 12:50:41 +01:00
microwavedcola1
cfdfd2f8a0
cleanup
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 12:34:49 +01:00
microwavedcola1
dc2a3b79de
fix
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 12:34:19 +01:00
microwavedcola1
5cd9279a21
add todo
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 10:05:02 +01:00
Christian Kamm
15d1ab02d8
Update release script for DAO program upgrades ( #495 )
2023-03-07 09:42:18 +01:00
microwavedcola1
09c8be1c61
add idl to repo ( #494 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 09:18:19 +01:00
microwavedcola1
a00c65155a
quote more
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 08:33:29 +01:00
microwavedcola1
d9181fc4b5
Merge branch 'deploy-mm' into dev
2023-03-07 08:32:52 +01:00
microwavedcola1
679f8dd29b
some more logginh
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-07 08:32:44 +01:00
Christian Kamm
552edc8b83
Minor changelog amends
2023-03-06 14:48:06 +01:00
Nicholas Clarke
97895dfb1e
buyback fees with mngo logging ( #489 )
...
* buyback fees with mngo logging
* add logging of usdc balances for account_buyback_fees_with_mngo
2023-03-06 14:42:10 +01:00
Christian Kamm
e61820ce07
Changelog for program-v0.8.0 ( #493 )
2023-03-06 14:40:48 +01:00
microwavedcola1
fbeaf1d282
add sol qouting to config
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-04 12:51:09 +01:00
microwavedcola1
2d1f9bb207
add sol qouting to config
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-04 12:50:28 +01:00
Christian Kamm
252210d194
Serum settle funds V2: fees can go to users ( #484 )
...
Co-authored-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-03 14:04:45 +01:00
microwavedcola1
1950d8c84a
support name edit for token and program ( #488 )
...
* support name edit for token and program
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* undo
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-03-03 10:05:12 +01:00
Christian Kamm
f29fffd331
Perp: User-selected reduce-only behaves more intuitively ( #483 )
...
The previous strict behavior of taking existing open orders into account
is only used when the perp market itself is also flagged as reduce-only.
2023-03-03 09:53:27 +01:00
microwavedcola1
71ef2c2d0b
add helper script to decode oracles
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-02 16:56:27 +01:00
microwavedcola1
3793ea0819
Fix
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-02 11:04:27 +01:00
microwavedcola1
b38bca5517
easy building of governance ixs
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-02 09:20:49 +01:00
microwavedcola1
8ec2a458a8
v0.5.25
2023-03-01 12:41:49 +01:00
microwavedcola1
f192c19fb8
Fix type
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-01 12:28:59 +01:00
microwavedcola1
cd87b33400
v0.5.24
2023-03-01 12:20:50 +01:00
microwavedcola1
925440b47e
Fix type
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-01 12:17:46 +01:00
microwavedcola1
6c5c88b1e6
fix access specifier
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-03-01 12:12:01 +01:00
Christian Kamm
255c6fb138
Fee buyback: Limit MNGO price by stable price ( #485 )
...
This makes it much harder to temporarily manipulate the MNGO price to
get a more favorable buyback deal.
2023-03-01 09:58:47 +01:00
microwavedcola1
c48d9c94d9
Fix types
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-28 15:04:28 +01:00
microwavedcola1
07c46d0129
Revert "fix account in client ix"
...
This reverts commit 1343e70cc6
.
2023-02-28 14:46:22 +01:00
microwavedcola1
1343e70cc6
fix account in client ix
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-28 14:45:25 +01:00
microwavedcola1
73b626efff
ts client for max buyback of fees with mngo ( #480 )
...
* ts client for max buyback of fees with mngo
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-02-28 12:05:02 +01:00
Christian Kamm
46c79af430
Security admin: Allow disabling token/perp init collateral ( #482 )
...
This allows the security council to say "users can't create new borrows
against this token/perp anymore". In some emergency situations this can
help reduce risk exposure.
For example, if the price of a wrapped asset permanently depegs from
its underlying or there is a successful long-term attack on an oracle,
this (and reduce-only) would significantly reduce exploitability until
the DAO's decision for how to resolve the issue goes through.
2023-02-28 11:49:07 +01:00
Christian Kamm
df4a7b0474
Fees buyback: Credit users for ui part of serum fees ( #481 )
...
At least for markets with USDC quote currency.
2023-02-28 09:48:15 +01:00
Christian Kamm
9a13c1366a
Fee buyback: Credit only perp fees that go to the dao ( #479 )
2023-02-27 19:51:09 +01:00
microwavedcola1
16599dd506
admins can also register trustless tokens ( #477 )
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-27 16:37:57 +01:00
Christian Kamm
e4d46c3c5b
Buyback fees: Add staggered expiry ( #478 )
2023-02-27 16:36:27 +01:00
microwavedcola1
25d94b0e7b
Fix idl
...
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-27 08:49:43 +01:00
microwavedcola1
d88d44b34a
buyback perp fees with mngo at a discount ( #464 )
...
buyback perp fees with mngo
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
2023-02-25 20:34:16 +01:00
Christian Kamm
5c7a2e3e10
Use the overflow-checks=true equivalent with the fixed crate ( #476 )
...
* Vendor `fixed` crate to have checked math in release mode
* remove all cm!()
* drop superfluous parens
* drop use of checked_math crate
* manual removal of redundant checked_* functions
2023-02-24 11:56:33 +01:00
microwavedcola1
330739364f
ts: add function on perp position to get notional value ( #474 )
...
* ts: add function on perp position to get notional value
Signed-off-by: microwavedcola1 <microwavedcola@gmail.com>
* Fixes from review
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-02-24 10:43:37 +01:00