IDL and client changes

This commit is contained in:
Conj0iner 2022-09-23 01:03:45 +08:00
parent 55f77ad6c6
commit a8ae59f0fe
2 changed files with 34 additions and 2 deletions

View File

@ -1322,6 +1322,7 @@ export class MangoClient {
liquidationFee: number,
makerFee: number,
takerFee: number,
feePenalty: number,
minFunding: number,
maxFunding: number,
impactQuantity: number,
@ -1356,6 +1357,7 @@ export class MangoClient {
new BN(impactQuantity),
groupInsuranceFund,
trustedMarket,
feePenalty
)
.accounts({
group: group.publicKey,
@ -1422,6 +1424,7 @@ export class MangoClient {
liquidationFee: number,
makerFee: number,
takerFee: number,
feePenalty: number,
minFunding: number,
maxFunding: number,
impactQuantity: number,
@ -1451,6 +1454,7 @@ export class MangoClient {
new BN(impactQuantity),
groupInsuranceFund,
trustedMarket,
feePenalty
)
.accounts({
group: group.publicKey,

View File

@ -2315,6 +2315,10 @@ export type MangoV4 = {
{
"name": "trustedMarket",
"type": "bool"
},
{
"name": "feePenalty",
"type": "f32"
}
]
},
@ -2429,6 +2433,12 @@ export type MangoV4 = {
"type": {
"option": "bool"
}
},
{
"name": "feePenaltyOpt",
"type": {
"option": "f32"
}
}
]
},
@ -4014,12 +4024,16 @@ export type MangoV4 = {
"defined": "I80F48"
}
},
{
"name": "feePenalty",
"type": "f32"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
112
108
]
}
}
@ -8412,6 +8426,10 @@ export const IDL: MangoV4 = {
{
"name": "trustedMarket",
"type": "bool"
},
{
"name": "feePenalty",
"type": "f32"
}
]
},
@ -8526,6 +8544,12 @@ export const IDL: MangoV4 = {
"type": {
"option": "bool"
}
},
{
"name": "feePenaltyOpt",
"type": {
"option": "f32"
}
}
]
},
@ -10111,12 +10135,16 @@ export const IDL: MangoV4 = {
"defined": "I80F48"
}
},
{
"name": "feePenalty",
"type": "f32"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
112
108
]
}
}