listing clear oracle if its nonlocked for tier above c

This commit is contained in:
Adrian Brzeziński 2024-02-08 18:17:33 +04:00
parent 045cc2480d
commit ff61f95e5b
1 changed files with 10 additions and 2 deletions

View File

@ -822,7 +822,13 @@ const ListToken = ({ goBack }: { goBack: () => void }) => {
LISTING_PRESETS[
name as LISTING_PRESETS_KEY
].preset_key
}}`}
}}${
LISTING_PRESETS[
name as LISTING_PRESETS_KEY
].oracle === 0
? ' - PYTH only'
: ''
}`}
{LISTING_PRESETS[
name as LISTING_PRESETS_KEY
].preset_target_amount ===
@ -1103,7 +1109,9 @@ const ListToken = ({ goBack }: { goBack: () => void }) => {
) : null}
</li>
) : null}
{!advForm.oraclePk && !loadingListingParams ? (
{!advForm.oraclePk &&
!loadingListingParams &&
proposedPreset.oracle !== 0 ? (
<li
className={`my-4 pl-2 ${
!advForm.openBookMarketExternalPk &&