Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abrzezinski94 committed Oct 11, 2023
1 parent 0a6fb7f commit 6a4ddf0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions components/instructions/programs/mangoV4.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -821,16 +821,14 @@ const instructions = () => ({
},
{}
)
console.log(tokenToPriceImpact)

const priceImpact = tokenToPriceImpact[getApiTokenName(bank.name)]

const suggestedTier = priceImpact
? getProposedTier(
PRESETS,
priceImpact.target_amount,
bank.oracleProvider === OracleProvider.Pyth
)
: 'SHIT'
const suggestedTier = getProposedTier(
PRESETS,
priceImpact?.target_amount,
bank.oracleProvider === OracleProvider.Pyth
)

liqudityTier = !mint.equals(USDC_MINT)
? {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"@blockworks-foundation/mango-mints-redemption": "0.0.8",
"@blockworks-foundation/mango-v4": "0.19.29",
"@blockworks-foundation/mango-v4-settings": "0.2.15",
"@blockworks-foundation/mango-v4-settings": "0.2.16",
"@blockworks-foundation/mangolana": "0.0.1-beta.15",
"@bonfida/spl-name-service": "0.1.47",
"@bundlr-network/client": "0.7.15",
Expand Down

0 comments on commit 6a4ddf0

Please sign in to comment.