+ Burn your ISLM tokens and receive HAQQ tokens in return. The
+ exchange rate is determined by the bonding curve.
+
+ {/* Amount input */}
+
+
+ {
+ if (value === undefined || value === '') {
+ setAmount('');
+ } else {
+ setAmount(value);
+ }
+ }}
+ onMaxButtonClick={handleMaxClick}
+ hint={
+
+ Available Balance: {formattedBalance} ISLM
+
+ }
+ isMaxButtonDisabled={
+ !walletBalance?.value || walletBalance.value <= 0n
+ }
+ />
+
+
+ {/* Calculation results */}
+ {parsedAmount && parsedAmount > 0n && (
+
+
+
+ Estimated HAQQ to receive
+
+
+ {isCalculating
+ ? 'Calculating...'
+ : estimatedHaqqAmount !== undefined
+ ? `${formatEthDecimal(estimatedHaqqAmount, 4, 18)} HAQQ`
+ : '—'}
+
+
+ {pricePerUnit && (
+
+ Price per HAQQ
+
+ {pricePerUnit} ISLM
+
+
+ )}
+ {supplyBefore !== undefined && supplyAfter !== undefined && (
+
+ Supply change
+
+ {formatEthDecimal(supplyBefore, 2, 18)} →{' '}
+ {formatEthDecimal(supplyAfter, 2, 18)}
+
+
+ )}
+
+ )}
+
+ {/* Success message */}
+ {isSuccess && mintHash && (
+
+
+ HAQQ tokens minted successfully!
+
+
+ )}
+
+ {/* Error */}
+ {errorMessage && (
+
+ )}
+
+ {/* Submit */}
+
+
+
+