Skip to content

Commit

Permalink
Changelog and version bump for program v0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Aug 18, 2023
1 parent 27097fa commit a0e1b9a
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 8 deletions.
53 changes: 50 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,56 @@ Update this for each program release and mainnet deployment.

## not on mainnet

### v0.18.0, 2023-7-21
### v0.19.0, 2023-8-

- Token deposits and withdraws: Allow full withdraw or full borrow repays
even when the oracle is stale (#646, #675)

Stale oracles are a problem for Mango because the risk engine can then no
longer safely determine if a user action is safe or not. Before, a stale oracle
would completely block interactions with an account until the oracle got
updated again.

This change allows some actions even while an oracle is stale:

- Users with deposits in a token with a stale oracle can now withdraw tokens
as long as their account health provided by tokens with non-stale oracles
remains positive.
- Users with borrows of a token with a stale oracle can now repay the borrows
(unless they were being liquidated at the time).

These actions can be used to unblock an account by removing the offending token
from its balance sheet.

- Expiring delegate: Accounts can now have a short-term delegate (#663)

This might allow users to temporarily delegate to an in-memory key, so they
can trade without having to re-approve every transaction on their wallet.

- Flash loan: Start allowing Mango instructions after flash_loan_end (#681)

Liquidators may be interested in performing actions in the same transaction
as a flash loan swap.

- Flash loan swaps: The DAO can now charge a fee (#660)

The DAO can now configure a fee on flash loan based swaps. Previously flash
loans that did not use more than the user's deposits were free.

- Stop loss: Respect net borrow limits and change low-health completion (#677)
- Stop loss: Store helpful UI fields (#654, #667)
- Stop loss: Fees are configured by-token instead of globally (#659)
- Stop loss: Avoid expensive health cache for expired orders (#682)
- Account creation: Add account_create_v2 instruction (#680)
- Token register: Revamp API for simpler use from governance (#665)
- Token register untrusted: Adjust default oracle staleness (#678)
- Fix typo in name of admin_token_withdraw_fees instruction (#655)

## mainnet

### v0.18.0, 2023-7-28

Deployment: Jul 28, 2023 at 08:29:46 Central European Summer Time, https://explorer.solana.com/tx/TaPcQ8dUDyFEaqprasGVEeG3x4Z2nMT7jY9tr2G8KVVf3kvDUQv8TRTjzDirasx3YkyYq3PmQcmcMbCcHsAnUNT

- Introduce limit and stop loss orders for arbitrary spot pairs (#604, #634)

Expand All @@ -25,8 +74,6 @@ Update this for each program release and mainnet deployment.
- Pyth: Fix reading most recent valid price (#631)
- Introduce mechanism for moving collected fees to DAO (#644)

## mainnet

### v0.17.1, 2023-7-6

Deployment: Jul 6, 2023 at 20:26:34 Central European Summer Time, https://explorer.solana.com/tx/4kiVtR1G3xNh8bTP4FetfG7rjPjLThFjrQNzMMs2TfQHnw7Ezp6JX4rboQbGrJsfZDd6zaMuEa1ZTxahRwPPb9JR
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion mango_v4.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.18.0",
"version": "0.19.0",
"name": "mango_v4",
"instructions": [
{
Expand Down
2 changes: 1 addition & 1 deletion programs/mango-v4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cargo-features = ["workspace-inheritance"]

[package]
name = "mango-v4"
version = "0.18.0"
version = "0.19.0"
description = "Created with Anchor"
edition = "2021"

Expand Down
4 changes: 2 additions & 2 deletions ts/client/src/mango_v4.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export type MangoV4 = {
"version": "0.18.0",
"version": "0.19.0",
"name": "mango_v4",
"instructions": [
{
Expand Down Expand Up @@ -12452,7 +12452,7 @@ export type MangoV4 = {
};

export const IDL: MangoV4 = {
"version": "0.18.0",
"version": "0.19.0",
"name": "mango_v4",
"instructions": [
{
Expand Down

0 comments on commit a0e1b9a

Please sign in to comment.