From c74b0a2ce4a1c8f867c9248a1d225d1025863c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Brzezi=C5=84ski?= Date: Thu, 14 Sep 2023 22:44:38 +0200 Subject: [PATCH] fix edit suggestion mango v4 token edit (#1823) --- components/instructions/programs/mangoV4.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/instructions/programs/mangoV4.tsx b/components/instructions/programs/mangoV4.tsx index 52a2c9b0f7..99b20ef2a9 100644 --- a/components/instructions/programs/mangoV4.tsx +++ b/components/instructions/programs/mangoV4.tsx @@ -773,8 +773,9 @@ const instructions = () => ({ if (mint) { mintData = tokenPriceService.getTokenInfo(mint.toBase58()) - const oracle = mangoGroup.banksMapByMint.get(mint.toBase58())![0]! - .oracle + const oracle = + args.oracleOpt || + mangoGroup.banksMapByMint.get(mint.toBase58())![0]!.oracle const isPyth = await isPythOracle(connection, oracle) liqudityTier = await getSuggestedCoinTier(mint.toBase58(), !!isPyth)