diff --git a/src/App.js b/src/App.js index bdce1f9..b8b7acb 100644 --- a/src/App.js +++ b/src/App.js @@ -37,6 +37,7 @@ function Contract() { const { connect } = useConnect({connector}); const { disconnect } = useDisconnect(); const _contract = {address: contractAddress, abi: ABI} + const [isLoading, setIsLoading] = useState(0); const [options, setOptions] = useState({ totalSupply: null, max: null, @@ -226,7 +227,10 @@ function Contract() { <> {options.totalSupply === options.max && options.tokensSet === true && ( - + )} {options.totalSupply === options.max && options.tokensSet === false && ( @@ -235,10 +239,11 @@ function Contract() { {options.claimableTokens !== '' && (
{JSON.parse(options.claimableTokens).map((tokenId, idx) => ( - @@ -249,25 +254,25 @@ function Contract() {
{options.totalSupply < options.max && ( -
-

Price: {ethers.utils.formatEther((options.price * options.mintAmount).toString())} ETH

-
-
- { - if (v.target.value >= 0) handleStateChange({mintAmount: Number(v.target.value)})} - }> -
-
- +
+

Price: {ethers.utils.formatEther((options.price * options.mintAmount).toString())} ETH

+
+
+ { + if (v.target.value >= 0) handleStateChange({mintAmount: Number(v.target.value)})} + }> +
+
+ +
+

You'll have a ~{((options.balance + options.mintAmount) / options.max * 100).toFixed(2)}% chance to win 1 ETH

-

You'll have a ~{((options.balance + options.mintAmount) / options.max * 100).toFixed(2)}% chance to win 1 ETH

-
)}

Connected to {address.slice(0,6) + '...' + address.slice(-4)} :: You own {options.balance} tokens

@@ -290,7 +295,7 @@ function Contract() { )} {options.totalSupply === options.max && (
- All lottery tokens have been sold! ETH claims will be made available to winners approximately 48 hours after mint out. + All lottery tokens have been sold! Ether claims will be made available to winners approximately 48 hours after mint out.
)}