upgrade mango settings lib
This commit is contained in:
parent
2c03880c5f
commit
55cf8b0d78
|
@ -468,7 +468,7 @@ const ListToken = ({ goBack }: { goBack: () => void }) => {
|
|||
}
|
||||
const mint = new PublicKey(advForm.mintPk)
|
||||
const proposalTx = []
|
||||
console.log(proposedPreset)
|
||||
|
||||
if (Object.keys(proposedPreset).length) {
|
||||
const registerTokenIx = await client!.program.methods
|
||||
.tokenRegister(
|
||||
|
@ -476,7 +476,10 @@ const ListToken = ({ goBack }: { goBack: () => void }) => {
|
|||
advForm.name,
|
||||
{
|
||||
confFilter: Number(proposedPreset.oracleConfFilter),
|
||||
maxStalenessSlots: proposedPreset.maxStalenessSlots,
|
||||
maxStalenessSlots:
|
||||
proposedPreset.maxStalenessSlots === -1
|
||||
? null
|
||||
: proposedPreset.maxStalenessSlots,
|
||||
},
|
||||
{
|
||||
adjustmentFactor: Number(proposedPreset.adjustmentFactor),
|
||||
|
|
|
@ -147,7 +147,8 @@ const DashboardSuggestedValues = ({
|
|||
? null
|
||||
: fieldsToChange.oracleConfFilter
|
||||
const maxStalenessSlots =
|
||||
fieldsToChange.maxStalenessSlots === undefined
|
||||
(fieldsToChange.maxStalenessSlots as number | string) === '' ||
|
||||
fieldsToChange.maxStalenessSlots === -1
|
||||
? null
|
||||
: fieldsToChange.maxStalenessSlots
|
||||
|
||||
|
@ -176,7 +177,11 @@ const DashboardSuggestedValues = ({
|
|||
: fieldsToChange.oracleConfFilter,
|
||||
maxStalenessSlots:
|
||||
fieldsToChange.maxStalenessSlots === undefined
|
||||
? bank.oracleConfig.maxStalenessSlots.toNumber()
|
||||
? bank.oracleConfig.maxStalenessSlots.toNumber() === -1
|
||||
? null
|
||||
: bank.oracleConfig.maxStalenessSlots.toNumber()
|
||||
: fieldsToChange.maxStalenessSlots === -1
|
||||
? null
|
||||
: fieldsToChange.maxStalenessSlots,
|
||||
}
|
||||
: null,
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"@blockworks-foundation/mango-feeds": "0.1.7",
|
||||
"@blockworks-foundation/mango-mints-redemption": "^0.0.10",
|
||||
"@blockworks-foundation/mango-v4": "0.21.22",
|
||||
"@blockworks-foundation/mango-v4-settings": "0.4.9",
|
||||
"@blockworks-foundation/mango-v4-settings": "0.4.10",
|
||||
"@blockworks-foundation/mangolana": "0.0.13",
|
||||
"@headlessui/react": "1.6.6",
|
||||
"@heroicons/react": "2.0.18",
|
||||
|
|
|
@ -342,10 +342,10 @@
|
|||
keccak256 "^1.0.6"
|
||||
merkletreejs "^0.3.11"
|
||||
|
||||
"@blockworks-foundation/mango-v4-settings@0.4.9":
|
||||
version "0.4.9"
|
||||
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4-settings/-/mango-v4-settings-0.4.9.tgz#b7efa0828c5cd6a1d5b235f68dddb08c5c1deaee"
|
||||
integrity sha512-0oJvgr1sp512ZF3WgzfTDvMfJm8g7+2LE4iIuM8P8F1ytYcE7KkMEgB+YF+5pHAxYOm4TsSqKt/FURQtU9hEOg==
|
||||
"@blockworks-foundation/mango-v4-settings@0.4.10":
|
||||
version "0.4.10"
|
||||
resolved "https://registry.yarnpkg.com/@blockworks-foundation/mango-v4-settings/-/mango-v4-settings-0.4.10.tgz#7a30db53c81abea56c2dd83e928259246e3b4e7d"
|
||||
integrity sha512-J4RhfhcNmBn0CeqjN4mlaou+vPW9NGpWlbkx1+ZczsJw6r5tIkQ82MDqKMKvyIgn457krRVdJ9+gLmHEln4QfA==
|
||||
dependencies:
|
||||
bn.js "^5.2.1"
|
||||
eslint-config-prettier "^9.0.0"
|
||||
|
|
Loading…
Reference in New Issue