Skip to content

Commit

Permalink
fix edit suggestion mango v4 token edit (solana-labs#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Sep 14, 2023
1 parent 1d1df3f commit c74b0a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/instructions/programs/mangoV4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c74b0a2

Please sign in to comment.