Compile fix and idl update

This commit is contained in:
Christian Kamm 2023-04-26 09:07:05 +02:00
parent ea357f2e95
commit 4504ed8ff9
3 changed files with 4 additions and 106 deletions

View File

@ -182,7 +182,7 @@
"accounts": [
{
"name": "group",
"isMut": true,
"isMut": false,
"isSigner": false
},
{
@ -7185,40 +7185,6 @@
]
}
},
{
"name": "CheckLiquidatable",
"type": {
"kind": "enum",
"variants": [
{
"name": "NotLiquidatable"
},
{
"name": "Liquidatable"
},
{
"name": "BecameNotLiquidatable"
}
]
}
},
{
"name": "CheckLiquidatable",
"type": {
"kind": "enum",
"variants": [
{
"name": "NotLiquidatable"
},
{
"name": "Liquidatable"
},
{
"name": "BecameNotLiquidatable"
}
]
}
},
{
"name": "OracleType",
"type": {

View File

@ -27,7 +27,7 @@ pub fn serum3_edit_market(
if let Some(force_close) = force_close_opt {
if force_close {
require!(serum3_market.reduce_only, MangoError::SomeError);
require!(serum3_market.is_reduce_only(), MangoError::SomeError);
}
msg!(
"Force close: old - {:?}, new - {:?}",

View File

@ -182,7 +182,7 @@ export type MangoV4 = {
"accounts": [
{
"name": "group",
"isMut": true,
"isMut": false,
"isSigner": false
},
{
@ -7185,40 +7185,6 @@ export type MangoV4 = {
]
}
},
{
"name": "CheckLiquidatable",
"type": {
"kind": "enum",
"variants": [
{
"name": "NotLiquidatable"
},
{
"name": "Liquidatable"
},
{
"name": "BecameNotLiquidatable"
}
]
}
},
{
"name": "CheckLiquidatable",
"type": {
"kind": "enum",
"variants": [
{
"name": "NotLiquidatable"
},
{
"name": "Liquidatable"
},
{
"name": "BecameNotLiquidatable"
}
]
}
},
{
"name": "OracleType",
"type": {
@ -9231,7 +9197,7 @@ export const IDL: MangoV4 = {
"accounts": [
{
"name": "group",
"isMut": true,
"isMut": false,
"isSigner": false
},
{
@ -16234,40 +16200,6 @@ export const IDL: MangoV4 = {
]
}
},
{
"name": "CheckLiquidatable",
"type": {
"kind": "enum",
"variants": [
{
"name": "NotLiquidatable"
},
{
"name": "Liquidatable"
},
{
"name": "BecameNotLiquidatable"
}
]
}
},
{
"name": "CheckLiquidatable",
"type": {
"kind": "enum",
"variants": [
{
"name": "NotLiquidatable"
},
{
"name": "Liquidatable"
},
{
"name": "BecameNotLiquidatable"
}
]
}
},
{
"name": "OracleType",
"type": {