We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad5eced commit 0ca71b3Copy full SHA for 0ca71b3
apps/hyperdrive-trading/src/ui/hyperdrive/longs/OpenLongForm/OpenLongForm.tsx
@@ -422,11 +422,14 @@ export function OpenLongForm({
422
<InvalidTransactionButton wide>
423
Pool limit exceeded. Max long is{" "}
424
{formatBalance({
425
- balance: maxBondsOut || 0n,
+ balance:
426
+ activeToken.address === sharesToken?.address
427
+ ? maxSharesIn || 0n
428
+ : maxBaseIn || 0n,
429
decimals: baseToken.decimals,
430
places: baseToken.places,
431
})}{" "}
- hy{baseToken.symbol}
432
+ {activeToken.symbol}
433
</InvalidTransactionButton>
434
);
435
}
0 commit comments