Skip to content

Commit

Permalink
Merge branch 'add-memeContract' into add-memeContract-btcWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
lq0-github committed Jan 14, 2025
2 parents 8fe8dc0 + 472edd1 commit 1eb293d
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions screens/Trading/components/ChangeCollateralMobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -503,12 +503,9 @@ const ChangeCollateralMobile: FC<ChangeCollateralMobileProps> = ({ open, onClose
<p className="text-xs text-gray-300 mt-1.5">
Max Available:{" "}
<span className="text-white">
$
{Number.isNaN(getMaxAvailableAmount()) || getMaxAvailableAmount() === null
? "-"
: toInternationalCurrencySystem_number(
getMaxAvailableAmount() * priceC,
)}
: toInternationalCurrencySystem_number(getMaxAvailableAmount())}
</span>
</p>
</div>
Expand Down Expand Up @@ -548,15 +545,15 @@ const ChangeCollateralMobile: FC<ChangeCollateralMobileProps> = ({ open, onClose
{addedValue ? (
<>
<span className="text-gray-300 mr-2 line-through">
${toInternationalCurrencySystem_number(netValue)}
{toInternationalCurrencySystem_number(netValue / priceC)}
</span>
<RightArrow />
<p className="ml-2">
${toInternationalCurrencySystem_number(addedValue)}
{toInternationalCurrencySystem_number(addedValue / priceC)}
</p>
</>
) : (
<p>${toInternationalCurrencySystem_number(netValue)}</p>
<p>{toInternationalCurrencySystem_number(netValue / priceC)}</p>
)}
</div>
</div>
Expand Down Expand Up @@ -647,7 +644,7 @@ const ChangeCollateralMobile: FC<ChangeCollateralMobileProps> = ({ open, onClose
<p className="text-xs text-gray-300 mt-1.5">
Max Available:{" "}
<span className="text-white">
${toInternationalCurrencySystem_number(calculateMaxRemovable() * priceC)}
{toInternationalCurrencySystem_number(calculateMaxRemovable())}
</span>
</p>
</div>
Expand Down Expand Up @@ -687,15 +684,15 @@ const ChangeCollateralMobile: FC<ChangeCollateralMobileProps> = ({ open, onClose
{addedValue ? (
<>
<span className="text-gray-300 mr-2 line-through">
${toInternationalCurrencySystem_number(netValue)}
{toInternationalCurrencySystem_number(netValue / priceC)}
</span>
<RightArrow />
<p className="ml-2">
${toInternationalCurrencySystem_number(addedValue)}
{toInternationalCurrencySystem_number(addedValue / priceC)}
</p>
</>
) : (
<p>${toInternationalCurrencySystem_number(netValue)}</p>
<p>{toInternationalCurrencySystem_number(netValue / priceC)}</p>
)}
</div>
</div>
Expand Down

0 comments on commit 1eb293d

Please sign in to comment.