Merge branch 'main' into deploy
This commit is contained in:
commit
c40bffb047
19
CHANGELOG.md
19
CHANGELOG.md
|
@ -4,7 +4,22 @@ Update this for each program release and mainnet deployment.
|
|||
|
||||
## not on mainnet
|
||||
|
||||
### v0.17.0, 2023-6-
|
||||
### v0.17.1, 2023-7-
|
||||
|
||||
- Remove extra Pyth oracle status check added in v0.17.0
|
||||
|
||||
The Pyth oracle status also reverts to Unknown if not enough publishers have
|
||||
reported in a 25 slot window. So checking for the "Trading" status means an
|
||||
implicit staleness limit of 25 slots.
|
||||
|
||||
This staleness limit is much more strict than the ones configured on the
|
||||
oracles currently used by Mango and caused occasional transaction failures.
|
||||
|
||||
## mainnet
|
||||
|
||||
### v0.17.0, 2023-7-3
|
||||
|
||||
Deployment: Jul 3, 2023 at 09:46:14 Central European Summer Time, https://explorer.solana.com/tx/4G6b1uihopkHqp968sq3RYacYHn5ND8mMmeNd1RfswTCmiqeappTN2747JTvswVXxs7oqgfU6M3VKPGVRFPGJYuL
|
||||
|
||||
- Configurable perp market settle token (#550)
|
||||
|
||||
|
@ -41,8 +56,6 @@ Update this for each program release and mainnet deployment.
|
|||
- Improve docs (#590, #594)
|
||||
- Use workspace dependencies (#588)
|
||||
|
||||
## mainnet
|
||||
|
||||
### v0.16.0, 2023-5-19
|
||||
|
||||
Deployment: May 19, 2023 at 15:35:12 Central European Summer Time, https://explorer.solana.com/tx/22fEcghPGgAnYCZkfjTxTeKQwX5rzWSx3c5CV9TikJmaAKWCpubCZYBx5ZJJPeNG1xWUPWMw3ooDhFBRYCR3tKYU
|
||||
|
|
|
@ -2928,7 +2928,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "mango-v4"
|
||||
version = "0.17.0"
|
||||
version = "0.17.1"
|
||||
dependencies = [
|
||||
"anchor-lang",
|
||||
"anchor-spl",
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"version": "0.17.0",
|
||||
"version": "0.17.1",
|
||||
"name": "mango_v4",
|
||||
"instructions": [
|
||||
{
|
||||
|
|
|
@ -2,7 +2,7 @@ cargo-features = ["workspace-inheritance"]
|
|||
|
||||
[package]
|
||||
name = "mango-v4"
|
||||
version = "0.17.0"
|
||||
version = "0.17.1"
|
||||
description = "Created with Anchor"
|
||||
edition = "2021"
|
||||
|
||||
|
|
|
@ -165,17 +165,6 @@ pub fn oracle_price_and_state(
|
|||
let price_data = price_account.to_price();
|
||||
let price = I80F48::from_num(price_data.price);
|
||||
|
||||
// Don't use price_data.status, because that has its own built-in staleness detection,
|
||||
// check PriceAccount::to_price() impl.
|
||||
if price_account.agg.status != pyth_sdk_solana::PriceStatus::Trading {
|
||||
msg!(
|
||||
"Pyth price status isn't 'Trading': status: {}",
|
||||
price_data.status as u64
|
||||
);
|
||||
|
||||
return Err(MangoError::OracleStale.into());
|
||||
}
|
||||
|
||||
// Filter out bad prices
|
||||
if I80F48::from_num(price_data.conf) > (config.conf_filter * price) {
|
||||
msg!(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
export type MangoV4 = {
|
||||
"version": "0.17.0",
|
||||
"version": "0.17.1",
|
||||
"name": "mango_v4",
|
||||
"instructions": [
|
||||
{
|
||||
|
@ -10004,7 +10004,7 @@ export type MangoV4 = {
|
|||
};
|
||||
|
||||
export const IDL: MangoV4 = {
|
||||
"version": "0.17.0",
|
||||
"version": "0.17.1",
|
||||
"name": "mango_v4",
|
||||
"instructions": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue