Skip to content

Commit 84ce292

Browse files
committed
update idl
1 parent 0cd3560 commit 84ce292

File tree

2 files changed

+28
-10
lines changed

2 files changed

+28
-10
lines changed

sdk/src/idl/drift.json

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9890,8 +9890,21 @@
98909890
"type": "u8"
98919891
},
98929892
{
9893-
"name": "padding",
9893+
"name": "targetOracleDelayFeeBpsPer10Slots",
9894+
"type": "u8"
9895+
},
9896+
{
9897+
"name": "targetPositionDelayFeeBpsPer10Slots",
98949898
"type": "u8"
9899+
},
9900+
{
9901+
"name": "padding",
9902+
"type": {
9903+
"array": [
9904+
"u8",
9905+
15
9906+
]
9907+
}
98959908
}
98969909
]
98979910
}
@@ -9993,6 +10006,9 @@
999310006
},
999410007
{
999510008
"name": "oracleStalenessThreshold",
10009+
"docs": [
10010+
"Delay allowed for valid AUM calculation"
10011+
],
999610012
"type": "u64"
999710013
},
999810014
{
@@ -12648,12 +12664,16 @@
1264812664
}
1264912665
},
1265012666
{
12651-
"name": "lastSlot",
12667+
"name": "targetBase",
12668+
"type": "i64"
12669+
},
12670+
{
12671+
"name": "lastOracleSlot",
1265212672
"type": "u64"
1265312673
},
1265412674
{
12655-
"name": "targetBase",
12656-
"type": "i64"
12675+
"name": "lastPositionSlot",
12676+
"type": "u64"
1265712677
}
1265812678
]
1265912679
}
@@ -15020,7 +15040,7 @@
1502015040
"name": "UseMMOraclePrice"
1502115041
},
1502215042
{
15023-
"name": "UpdateLpConstituentTargetBase"
15043+
"name": "UpdateAmmCache"
1502415044
},
1502515045
{
1502615046
"name": "UpdateLpPoolAum"
@@ -19720,8 +19740,5 @@
1972019740
"name": "Unauthorized",
1972119741
"msg": "Unauthorized for operation"
1972219742
}
19723-
],
19724-
"metadata": {
19725-
"address": "dRiftyHA39MWEi3m9aunc5MzRF1JYuBsbn6VPcn33UH"
19726-
}
19743+
]
1972719744
}

sdk/src/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1738,7 +1738,8 @@ export type AmmConstituentMapping = {
17381738

17391739
export type TargetDatum = {
17401740
costToTradeBps: number;
1741-
lastSlot: BN;
1741+
lastOracleSlot: BN;
1742+
lastPositionSlot: BN;
17421743
targetBase: BN;
17431744
};
17441745

0 commit comments

Comments
 (0)