Skip to content

Commit

Permalink
Merge pull request #3142 from OlympusDAO/develop
Browse files Browse the repository at this point in the history
[Release] - Decimal Fix for Upper Market Max Payout Display
  • Loading branch information
brightiron authored Jan 26, 2024
2 parents 2f19948 + de42067 commit 3a10d1c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/views/Range/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Range = () => {

const upperMaxCapacity =
upperMaxPayout && contractType === "bond"
? parseBigNumber(upperMaxPayout, 18)
? parseBigNumber(upperMaxPayout, 9)
: parseBigNumber(rangeData.high.capacity, 9);

const maxCapacity = sellActive ? lowerMaxCapacity : upperMaxCapacity;
Expand Down Expand Up @@ -197,8 +197,8 @@ export const Range = () => {
? "discount"
: "premium"
: discount < 0
? "premium"
: "discount"}{" "}
? "premium"
: "discount"}{" "}
of {formatNumber(Math.abs(discount) * 100, 2)}% relative to market price of{" "}
{formatNumber(currentPrice, 2)} {reserveSymbol}
</InfoNotification>
Expand All @@ -214,8 +214,8 @@ export const Range = () => {
? "Discount"
: "Premium"
: discount < 0
? "Premium"
: "Discount"
? "Premium"
: "Discount"
}
balance={
<Typography
Expand Down Expand Up @@ -249,8 +249,8 @@ export const Range = () => {
{amountAboveCapacity
? `Amount exceeds capacity`
: amountAboveBalance
? `Amount exceeds balance`
: swapButtonText}
? `Amount exceeds balance`
: swapButtonText}
</PrimaryButton>
</WalletConnectedGuard>
</Box>
Expand Down

0 comments on commit 3a10d1c

Please sign in to comment.