Skip to content

Commit

Permalink
mango sdk parse fix (#1924)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 authored Nov 16, 2023
1 parent edeaa94 commit 28e2ac7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions components/instructions/programs/mangoV4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,16 +256,15 @@ const instructions = () => ({
)[liqudityTier.tier]
const suggestedUntrusted = liqudityTier.tier === 'UNTRUSTED'

const suggestedFormattedPreset: ListingArgsFormatted = Object.keys(
suggestedPreset
).length
? getFormattedListingValues({
tokenIndex: args.tokenIndex,
name: args.name,
oracle: args.oracle,
...suggestedPreset,
})
: ({} as ListingArgsFormatted)
const suggestedFormattedPreset: ListingArgsFormatted =
Object.keys(suggestedPreset).length && !suggestedUntrusted
? getFormattedListingValues({
tokenIndex: args.tokenIndex,
name: args.name,
oracle: args.oracle,
...suggestedPreset,
})
: ({} as ListingArgsFormatted)

const invalidKeys: (keyof ListingArgsFormatted)[] = Object.keys(
suggestedPreset
Expand Down Expand Up @@ -938,7 +937,8 @@ const instructions = () => ({
</h3>
<h3 className="text-orange flex">
Very low liquidity Price impact of {liqudityTier?.priceImpact}
% on $1000 swap. Check params carefully
% on $1000 swap. Check params carefully token should be listed
with untrusted instruction
</h3>
</>
)}
Expand Down Expand Up @@ -1566,7 +1566,7 @@ const DisplayNullishProperty = ({
{currentValue}
</div>
</div>
{<div className="mx-1">/</div>}
{currentValue && <div className="mx-1">/</div>}
<div className="flex">
<div className="text-orange">{value}</div>
</div>
Expand Down

1 comment on commit 28e2ac7

@vercel
Copy link

@vercel vercel bot commented on 28e2ac7 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

governance-ui – ./

app.realms.today
governance-ui-solana-labs.vercel.app
governance-ui-git-main-solana-labs.vercel.app

Please sign in to comment.