Skip to content

Commit

Permalink
fix: hidden move position feature & fixed portfolio asset amounts
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Nov 1, 2024
1 parent af348e5 commit 2b298c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ export const PortfolioAssetCard = ({ bank, isInLendingMode, isBorrower = true }:
}, [bank]);

const [isMovePositionDialogOpen, setIsMovePositionDialogOpen] = React.useState<boolean>(false);
const postionMovingPossible = React.useMemo(() => marginfiAccounts.length > 1, [marginfiAccounts.length]);
// const postionMovingPossible = React.useMemo(() => marginfiAccounts.length > 1, [marginfiAccounts.length]);
const postionMovingPossible = false;

return (
<Accordion type="single" collapsible>
<AccordionItem
Expand Down Expand Up @@ -88,8 +90,8 @@ export const PortfolioAssetCard = ({ bank, isInLendingMode, isBorrower = true }:
: dynamicNumeralFormatter(bank.position.amount, {
tokenPrice: bank.info.oraclePrice.priceRealtime.price.toNumber(),
})} */}
{dynamicNumeralFormatter(0.002466, {
tokenPrice: 75000,
{dynamicNumeralFormatter(bank.position.amount, {
tokenPrice: bank.info.oraclePrice.priceRealtime.price.toNumber(),
})}
{" " + bank.meta.tokenSymbol}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export const useRewardSimulation = ({

const generateTxn = React.useCallback(async () => {
try {
if (!bankAddressesWithEmissions.length) return;
const tx = await selectedAccount?.makeWithdrawEmissionsTx(bankAddressesWithEmissions);
if (!tx) return;
setActionTxn(tx);
Expand Down

0 comments on commit 2b298c6

Please sign in to comment.