@percolatorct/sdk 1.0.0-beta.36 → 1.0.0-beta.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/solana/slab.d.ts +1 -0
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -3108,7 +3108,13 @@ function buildLayoutV12_17(maxAccounts, dataLen) {
|
|
|
3108
3108
|
// SBF=192, native=200
|
|
3109
3109
|
hasInsuranceIsolation: false,
|
|
3110
3110
|
engineInsuranceIsolatedOff: -1,
|
|
3111
|
-
engineInsuranceIsolationBpsOff: -1
|
|
3111
|
+
engineInsuranceIsolationBpsOff: -1,
|
|
3112
|
+
// v12.17 dropped the engine.mark_price field (see engineMarkPriceOff above).
|
|
3113
|
+
// The EWMA-smoothed mark that the matcher actually quotes against lives in
|
|
3114
|
+
// MarketConfig.mark_ewma_e6 at offset 304 within the config struct.
|
|
3115
|
+
// Layout is identical on SBF and native. configOffset is V0_HEADER_LEN = 72,
|
|
3116
|
+
// so absolute offset in the slab is 72 + 304 = 376.
|
|
3117
|
+
configMarkEwmaOff: V0_HEADER_LEN + 304
|
|
3112
3118
|
};
|
|
3113
3119
|
}
|
|
3114
3120
|
function detectSlabLayout(dataLen, data) {
|