# Sepolia staking website - `site/index.html` contains the responsive staking dashboard, wallet controls, position metrics, and an explanation of how each occupied second produces one pool point split by stake. - `site/style.css` provides the mobile and desktop layouts and focus and status styles. - `site/app.js` loads the release deployment, connects an injected EIP-1193 wallet, switches to Sepolia, and checks both the wallet chain and `staking.token()` before each transaction. It uses 18-decimal integer arithmetic, requests an exact ERC-20 approval when allowance is insufficient, waits for successful receipts, and supports partial and full withdrawal. It refreshes reads on wallet changes and after transactions, with periodic updates while connected to Sepolia. ## Release and manual checks Place the release tool’s `deployment.json` in the published directory beside `index.html`, `style.css`, and `app.js`. The JSON must contain a numeric `chainId` of 11155111 and distinct, nonzero address strings in `token` and `staking`. Serve that directory over HTTP. For local use from the repository root, run `python3 -m http.server 8000 --directory site` and open `http://localhost:8000/`. To test path-prefix hosting locally, run `python3 -m http.server 8000 --directory .` and open `http://localhost:8000/site/`. The page, assets, and deployment use relative URLs. The token must expose `balanceOf(address)`, `allowance(address,address)`, and `approve(address,uint256)`. The staking contract must expose `token()`, `stake(uint256)`, `withdraw(uint256)`, `stakedBalance(address)`, `totalStaked()`, and `pointsOf(address)`. Tokens and points are interpreted at 18 decimals. - Exercise setup with a missing file and an invalid file, then restore the release file. Open the site without an injected wallet to check the wallet prompt. - In a browser with a wallet, reject a connection request, then connect on another chain. Reject and retry the Sepolia switch. Change accounts and networks and check that the position updates. - With a funded Sepolia account holding test tokens, stake with insufficient allowance and confirm that the exact approval succeeds before the stake prompt. Reject one wallet prompt and retry. With sufficient allowance, stake without another approval. Check pending and confirmed messages. Withdraw part of the stake, then select **Use staked balance** to withdraw the remainder. - The live wallet and deployed-contract smoke test needs the merged trunk, real release metadata, and deployed Sepolia contracts. Browser rendering and live wallet extension behavior were unverified in this run. ## Local checks - `cast sig` for all nine ERC-20 and staking signatures returned the selectors used by the application. - `node --check site/app.js` passed. - `node test/scratch/website.cjs` passed. The simulated wallet covered missing and invalid metadata, missing provider, connection and switching, wallet changes, fixed-point balances and points, exact approval and receipt ordering, sufficient allowance, partial and full withdrawal, invalid precision, rejection, reverted receipt, token mismatch, and switching networks during approval. - `python3 test/scratch/website_http.py` passed after fixing the scratch harness’s response header lookup and request method. The in-process HTTP handler served the prefixed page and assets with the expected MIME types and returned 404 for absent deployment metadata. The sandbox blocked an attempted loopback HTTP check. - `git diff --no-index --check -- /dev/null ` found no whitespace errors in the three source files. `git status --short --untracked-files=all` showed only the intended source changes before writing this report. Git staging was blocked by the read-only `.git` directory, so the source files are present in the working tree without a commit.