@0dotxyz/p0-ts-sdk 2.8.0-alpha.0 → 2.8.0-alpha.1
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.cjs +21 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/instructions.d.cts +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/{types-CqP5W-Bu.d.cts → types-6tM8iZUV.d.cts} +20 -185
- package/dist/{types-DEoJ8ewV.d.ts → types-SY3xiGG8.d.ts} +20 -185
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13265,6 +13265,26 @@ var marginfi_0_1_10_default = {
|
|
|
13265
13265
|
code: 6604,
|
|
13266
13266
|
name: "CircuitBreakerPriceJump",
|
|
13267
13267
|
msg: "Oracle price deviates too far from the circuit breaker reference; action rejected"
|
|
13268
|
+
},
|
|
13269
|
+
{
|
|
13270
|
+
code: 6700,
|
|
13271
|
+
name: "ScopeInvalidAccount",
|
|
13272
|
+
msg: "Scope oracle account is not owned by the Scope program or is malformed"
|
|
13273
|
+
},
|
|
13274
|
+
{
|
|
13275
|
+
code: 6701,
|
|
13276
|
+
name: "ScopeInvalidEntry",
|
|
13277
|
+
msg: "Scope entry index is out of range or the entry has never been refreshed"
|
|
13278
|
+
},
|
|
13279
|
+
{
|
|
13280
|
+
code: 6702,
|
|
13281
|
+
name: "ScopeStalePrice",
|
|
13282
|
+
msg: "Scope price is stale"
|
|
13283
|
+
},
|
|
13284
|
+
{
|
|
13285
|
+
code: 6703,
|
|
13286
|
+
name: "UseConfigureBankOracleScope",
|
|
13287
|
+
msg: "Use lending_pool_configure_bank_oracle_scope; Scope requires an entry index"
|
|
13268
13288
|
}
|
|
13269
13289
|
],
|
|
13270
13290
|
types: [
|
|
@@ -22681,7 +22701,7 @@ function parseBankConfigRaw(bankConfigRaw) {
|
|
|
22681
22701
|
const configFlags = bankConfigRaw.configFlags;
|
|
22682
22702
|
const oracleSetup = parseOracleSetup(bankConfigRaw.oracleSetup);
|
|
22683
22703
|
const oracleKeys = bankConfigRaw.oracleKeys;
|
|
22684
|
-
const oracleMaxAge = bankConfigRaw.oracleMaxAge === 0 ? DEFAULT_ORACLE_MAX_AGE : bankConfigRaw.oracleMaxAge;
|
|
22704
|
+
const oracleMaxAge = bankConfigRaw.oracleMaxAge === 0 && oracleSetup !== "Scope" /* Scope */ ? DEFAULT_ORACLE_MAX_AGE : bankConfigRaw.oracleMaxAge;
|
|
22685
22705
|
const interestRateConfig = {
|
|
22686
22706
|
insuranceFeeFixedApr: wrappedI80F48toBigNumber(
|
|
22687
22707
|
bankConfigRaw.interestRateConfig.insuranceFeeFixedApr
|