Skip to content

Commit

Permalink
idl update
Browse files Browse the repository at this point in the history
  • Loading branch information
ckamm committed Nov 2, 2023
1 parent ef13924 commit 9edcff1
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 6 deletions.
40 changes: 38 additions & 2 deletions mango_v4.json
Original file line number Diff line number Diff line change
Expand Up @@ -7039,12 +7039,33 @@
"name": "flashLoanSwapFeeRate",
"type": "f32"
},
{
"name": "interestTargetUtilization",
"docs": [
"Target utilization: If actual utilization is higher, scale up interest.",
"If it's lower, scale down interest (if possible)"
],
"type": "f32"
},
{
"name": "interestCurveScaling",
"docs": [
"Current interest curve scaling, always >= 1.0",
"",
"Except when first migrating to having this field, then 0.0"
],
"type": "f64"
},
{
"name": "depositsInSerum",
"type": "i64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
2092
2072
]
}
}
Expand Down Expand Up @@ -8580,12 +8601,27 @@
"name": "lowestPlacedAsk",
"type": "f64"
},
{
"name": "baseDepositsReserved",
"docs": [
"Tracks the amount of deposits that flowed into the serum open orders account.",
"",
"The bank still considers these amounts user deposits (see deposits_in_serum)",
"and they need to be deducted from there when they flow back into the bank",
"as real tokens."
],
"type": "u64"
},
{
"name": "quoteDepositsReserved",
"type": "u64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
48
32
]
}
}
Expand Down
80 changes: 76 additions & 4 deletions ts/client/src/mango_v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7039,12 +7039,33 @@ export type MangoV4 = {
"name": "flashLoanSwapFeeRate",
"type": "f32"
},
{
"name": "interestTargetUtilization",
"docs": [
"Target utilization: If actual utilization is higher, scale up interest.",
"If it's lower, scale down interest (if possible)"
],
"type": "f32"
},
{
"name": "interestCurveScaling",
"docs": [
"Current interest curve scaling, always >= 1.0",
"",
"Except when first migrating to having this field, then 0.0"
],
"type": "f64"
},
{
"name": "depositsInSerum",
"type": "i64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
2092
2072
]
}
}
Expand Down Expand Up @@ -8580,12 +8601,27 @@ export type MangoV4 = {
"name": "lowestPlacedAsk",
"type": "f64"
},
{
"name": "baseDepositsReserved",
"docs": [
"Tracks the amount of deposits that flowed into the serum open orders account.",
"",
"The bank still considers these amounts user deposits (see deposits_in_serum)",
"and they need to be deducted from there when they flow back into the bank",
"as real tokens."
],
"type": "u64"
},
{
"name": "quoteDepositsReserved",
"type": "u64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
48
32
]
}
}
Expand Down Expand Up @@ -20164,12 +20200,33 @@ export const IDL: MangoV4 = {
"name": "flashLoanSwapFeeRate",
"type": "f32"
},
{
"name": "interestTargetUtilization",
"docs": [
"Target utilization: If actual utilization is higher, scale up interest.",
"If it's lower, scale down interest (if possible)"
],
"type": "f32"
},
{
"name": "interestCurveScaling",
"docs": [
"Current interest curve scaling, always >= 1.0",
"",
"Except when first migrating to having this field, then 0.0"
],
"type": "f64"
},
{
"name": "depositsInSerum",
"type": "i64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
2092
2072
]
}
}
Expand Down Expand Up @@ -21705,12 +21762,27 @@ export const IDL: MangoV4 = {
"name": "lowestPlacedAsk",
"type": "f64"
},
{
"name": "baseDepositsReserved",
"docs": [
"Tracks the amount of deposits that flowed into the serum open orders account.",
"",
"The bank still considers these amounts user deposits (see deposits_in_serum)",
"and they need to be deducted from there when they flow back into the bank",
"as real tokens."
],
"type": "u64"
},
{
"name": "quoteDepositsReserved",
"type": "u64"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
48
32
]
}
}
Expand Down

0 comments on commit 9edcff1

Please sign in to comment.