diff --git a/src/App.js b/src/App.js index 801ffb0..bdce1f9 100644 --- a/src/App.js +++ b/src/App.js @@ -27,7 +27,7 @@ const { chains, provider } = configureChains( const connector = new InjectedConnector({ chains }); const client = createClient({ - autoConnect: true, + autoConnect: false, connectors: [connector], provider }); @@ -68,7 +68,7 @@ function Contract() { {..._contract, functionName: 'tokensSet'} ], watch: true, - cacheTime: 8000, + cacheTime: 4_000, onSuccess(data) { handleStateChange({ totalSupply: Number(data[0]), @@ -186,7 +186,7 @@ function Contract() { } else { new Noty({ type: 'error', - text: `Too bad! None of your tokens are elligible to claim`, + text: `Too bad! None of your tokens are elligible to claim the Ether prize.`, theme: 'relax', layout: 'topCenter', timeout: 8000 @@ -246,6 +246,8 @@ function Contract() { )} +
+ {options.totalSupply < options.max && (

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

@@ -269,23 +271,36 @@ function Contract() { )}

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

-

Minted {options.totalSupply} / {options.max} {options.max - options.totalSupply > 0 && ( + {options.totalSupply !== options.max && ( <> - ({options.max - options.totalSupply} remaining) +
+

Minted {options.totalSupply} / {options.max} {options.max - options.totalSupply > 0 && ( + <> + ({options.max - options.totalSupply} remaining) + + )}

+ - )} - + )}
{options.tokensSet && ( -
+
Tokens have now been specified in the contract. Owners of those tokens can claim the Ether by clicking the claim buttons above. Congrats to the winners!
)} -
+ {options.totalSupply === options.max && ( +
+ All lottery tokens have been sold! ETH claims will be made available to winners approximately 48 hours after mint out. +
+ )} +
The secret hash containing the pre-determined winners is: {options.hash}
-
- ETH claims will be made available to winners approximately 48 hours after mint out. +
+ Opensea + Blur + X2Y2 + Looksrare
)