Skip to content

Commit

Permalink
fix mango edit inst
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed Jul 16, 2024
1 parent 50a3316 commit 24be242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
12 changes: 2 additions & 10 deletions components/instructions/programs/mangoV4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
FlatListingArgs,
ListingArgsFormatted,
getOracle,
getBestMarket,
EditTokenArgsFormatted,
FlatEditArgs,
getFormattedListingPresets,
Expand Down Expand Up @@ -676,17 +675,10 @@ const instructions = () => ({
quoteMint = currentMarket.quoteMintAddress
}

const bestMarket = await getBestMarket({
baseMint: baseMint!.toBase58(),
quoteMint: quoteMint!.toBase58(),
cluster: 'mainnet-beta',
connection,
})

try {
return (
<div>
{bestMarket && openbookMarketPk.equals(bestMarket.pubKey) && (
{/* {bestMarket && openbookMarketPk.equals(bestMarket.pubKey) && (
<div className="text-green flex items-center">
<CheckCircleIcon className="w-5 mr-2"></CheckCircleIcon>
Proposed market match the best market according to listing
Expand Down Expand Up @@ -723,7 +715,7 @@ const instructions = () => ({
</div>
</div>
</div>
)}
)} */}
<div className="py-3 flex">
<div className="mr-2">Proposed market: </div>
<a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ const EditToken = ({
mintInfo: mintInfo.publicKey,
fallbackOracle: form.fallbackOracle
? new PublicKey(form.fallbackOracle)
: bank.fallbackOracle,
: PublicKey.default,
})
.remainingAccounts([
{
Expand Down

0 comments on commit 24be242

Please sign in to comment.