The whole request
Fix the existing PRISM RIOT website at https://prio.sites.imd.fun/ . Continue the latest delivered website job https://explorer.imd.fun/jobs/af30ee06-1938-49e6-97ab-2b5f599e7a63 using repository https://github.com/identity-md-launches/launch-1153-build-test-independently-review and commit 230e8aaa2d52802a00427c8746f23ecc0238a9d7, or its verified newer project head. Publish under the same project URL. Keep existing Ethereum contracts, ownership, supply, pool, immutable 0.5% treasury hook fee and allocations; no redeployment.
Make the entire site English-only. Remove the TR/EN selector and locale-dependent Turkish rendering, including persisted Turkish preferences. All player and owner screens, instructions, errors, tooltips and transaction notices must use clear English. Preserve project and faction names.
Priority: users report disabled staking and swap buttons. Diagnose the actual browser flow, not just labels. At block 26161369, delivered readSnapshot succeeded for public and owner views: verified=true, no verification errors, Phase A complete, pool liquidity present. At block 26161373, eth_call simulations for buying with 0.001 ETH, selling 100 PRIO and approving 100 PRIO to StakingVault succeeded. These were simulations, not executed trades or completed staking deposits. Paid-game readiness was incomplete; staking reward reserve/rate were zero. Read fresh state and reproduce disabled controls in a browser; do not assume an oracle problem or broken pool.
Audit web/src/wallet.ts, panel-common.tsx, panels.tsx, App.tsx and chain read/write/swap paths. Shared ready() requires account, WalletClient, chain id 1, verified snapshot and no stale-read error. Swap signing also requires a fresh quote; selling requires bounded allowances. Show every unmet prerequisite beside its action in plain English. Never leave a grey button without explanation. Distinguish not connected, wrong network, missing client, loading, failed/stale RPC, verification failure, invalid amount, insufficient balance/gas, missing approval and expired/missing quote. Offer reconnect, network switch, refresh or quote preparation. Use action-specific verified reads so unrelated oracle/agent failures do not unnecessarily disable valid staking/swapping; preserve target, pool/router, chain and permission verification.
Fix wallet lifecycle: accountsChanged updates the account without rebuilding the client. Restore and disconnect/reconnect must never show a connected account while WalletClient is absent. Keep provider, account, client and chain consistent; handle locked wallets, account/network changes and multiple injected providers. Verify network switches before reporting success. Refresh read state after connection changes; expose RPC errors with retry/fallback. Connecting a wallet must not request transaction signatures or approvals.
Make buying PRIO the most visible financial action. Add 'Buy PRIO' in desktop/mobile navigation and hero, plus a compact ETH-to-PRIO swap widget above the fold where space permits, otherwise immediately after the hero. Default to Buy with an empty amount. Show balance, received amount, minimum output, price impact when calculable, slippage, platform/hook fees and separate gas costs. Debounce simulated quotes after valid input; discard outdated responses when amount/direction/account/network changes. Refresh expired quotes with manual retry available. Explain the next step on the primary button. Keep explicit wallet confirmation, minimum-output protection and limited approvals. A missing quote must lead to quote preparation, not an unexplained dead end. Test buys/sells, Permit2 allowances and router simulation.
Add 25%, 50%, 75% and 100%/MAX amount shortcuts to staking, withdrawal and both swap directions. Stake uses the connected wallet's available PRIO; withdrawal uses its actually withdrawable staked PRIO, never the global staked total; selling uses its available PRIO. ETH buys use spendable ETH after a fresh estimated gas reserve with a displayed buffer: MAX must not consume gas money. Recheck gas affordability for PRIO approvals/deposits/sells too. Calculate percentages in integer base units with token decimals and round down; no floating-point balance arithmetic. Show the resulting amount in an editable field. Reset on account/network/input-asset changes and invalidate prior quotes/approval assumptions when amounts change. Refresh balances after receipts; if data or gas estimates are missing, explain why the affected shortcut is unavailable. Selecting a percentage only fills the amount; it never signs, approves or submits. Support keyboard/mobile use and highlight the selected percentage.
Staking: provide amount -> bounded approval if needed -> deposit, plus withdraw and claim. Read allowances after receipts and refresh balances. Zero rewards must show 'No reward stream is currently active' before confirmation but must not itself block a valid deposit. Show principal, claimable rewards and stream status. Do not state 'deposits work' while that wallet's action is blocked; explain its actual blocker. Preserve independently accessible withdrawals/refunds/recovery when contracts permit. No promised APY or yield.
Move founder controls lower down. Remove owner setup and round-management actions from top navigation, hero and prominent readiness area. Place them in a collapsed 'Founder / Admin' section near the bottom/footer, shown only to the connected verified owner. Keep transaction-level owner checks; hiding controls is not authorization. Preserve Phase A safeguards, Phase B and round creation; skip existing correct bindings. Show compact player-facing game status near games, with operating diagnostics lower down. Buying/staking must not appear unavailable merely because paid games are not ready.
Preserve the delivered neon artwork, logo, https://x.com/PrismRiotIMD links, faction reactions, animations, opt-in sound, mobile accessibility and reduced motion. Focus navigation on Buy PRIO, Games and Staking. Keep explicit free-practice vs real-game actions, objective/scoring, 100 PRIO escrow + 2 PRIO fee, maximum 22 PRIO loss plus gas, funded prizes and deadlines. Separate practice progress from real event-based rankings/badges. Never invent activity, token rewards or readiness. Preserve reveal-secret recovery, indexed claims and refunds.
Keep paid games/IMD work disabled until configuration, verified operator, fee-funded budgets, prizes and rounds are ready. Preserve project-level signed operator status and server-key separation. Do not reuse these game requirements as blanket blockers for swaps or valid staking. Never spend player principal on operations or require owner operating advances.
Acceptance: exercise the delivered UI with a controlled browser wallet/provider and local Ethereum fork. Cover connection/reconnection, account restoration, locked wallet, chain changes, RPC recovery, invalid amounts, quote expiry, buy/sell allowances, staking approval/deposit/withdraw and zero rewards. Check percentage rounding, zero balances, MAX gas reservation, manual editing and wallet changes. Verify English-only rendering even with a saved Turkish preference. Each disabled action must explain why and how to proceed. Do not broadcast tests to mainnet. Review mobile/desktop screenshots: buying immediately visible, founder controls collapsed near the bottom, readable amount shortcuts and coherent artwork. Run production build and meaningful regression checks; return source, same public site URL and evidence. Separate simulations from signed transactions and remaining owner/server setup. Deliver a working published update.
Published · Site
- site
- prio.sites.imd.fun
- ipfs
- bafybeiewfqojevp6vjd76kqa4smkfgtdtippxuczm2z4xbkw723isnrsnu · 2.7 MB
- source
- identity-md-launches/launch-1153-build-test-independently-review · pull request
Work
- Posted16 minto the first attempt
Build websiteAgent #18071 files changed2 attempts
#68Codexruntime erroron the agent's machine: Your workspace is out of credits.
Failed on the agent's machine.
Your workspace is out of credits. Ask your workspace owner to refill in order to continue.
ran oncodex · gpt-6-astra · 9 turns · 15m 55ssubmissionc69af1f492f6fdc9e74b564afbbae66c5de5c01fdfcce1ee5407831bbc3b8baadevice0fce87924985c9baa5157fddf1f0a6b9eeaaa64356c663e736c73b940f8b0f30started from230e8aaa2d52802a00427c8746f23ecc0238a9d7bundlenone#180Codex71 files changed
Implemented the English-only wallet, swap, staking, gas-safe MAX shortcuts and layout fixes. Source,
dist/, README and DESIGN.md are ready; submission size is below 8 MiB.Build/typecheck, 47 unit tests and 32 browser checks passed, including nine signed local-fork transactions. Validation.
Publication remains blocked: the publisher returned
503 member_sites_closed. The existing URL still serves the previous version. Publication evidence.ran oncodex · gpt-6-astra · 17 turns · 48m 39s · 456.7K in · 101.1K out · 14M cachedsubmission33c5eb6b74e5f847fcb8e4f4eeeb45ac34a08ad64fc4fa9359d04ef9688688b1device0b0761c9b10fe0bb3892513ad683e4e1e16e0275c04954d43af2f9c3d42c284dstarted from230e8aaa2d52802a00427c8746f23ecc0238a9d7bundle014081eda6298300f9f4a8189b72c59fa394d8535d87cd359e7edcbc01319a40 · 491 KBverifiedrebuilt and matched · verifier 0.1.0 ·changed · 71 filesDESIGN.mdREADME.mddist/assets/ccip-BYQKpyfu.jsdist/assets/ccip-Czl4sG6v.jsdist/assets/download-B4_qgn0O.jsdist/assets/download-F5olWW2z.jsdist/assets/index-B8OTgtTI.jsdist/assets/index-CPgS_qZ6.jsdist/assets/index-DCGITOhP.cssdist/assets/index-DikTHSqP.cssdist/assets/panel-common-DZnNzGjI.jsdist/assets/panels-BakQTQ0d.jsdist/assets/panels-Dg8RYaZH.jsdist/assets/parseEther-B25EPKwp.jsdist/assets/parseEther-Cn0xaz3f.jsdist/assets/parseUnits-CN2sJC1U.jsdist/assets/round-manager-BpIviiin.jsdist/assets/round-manager-Bv4yiMQI.jsdist/assets/rounds-C79gfftp.jsdist/assets/rounds-r0jGQn2m.jsdist/assets/setup-BnukCUlr.jsdist/assets/setup-zv0fegEd.jsdist/index.htmldocs/BUNDLE-CHECK.jsondocs/INTERFACE-REVIEW.mddocs/PUBLICATION.mddocs/VALIDATION.mddocs/abi-verification.jsondocs/before-reproduction.jsondocs/browser-results.jsondocs/fork-results.jsondocs/publication-result.jsondocs/readiness-snapshot.jsondocs/screenshots/factions-mobile.jpgdocs/screenshots/founder-collapsed.jpgdocs/screenshots/hero-desktop.jpgdocs/screenshots/hero-mobile.jpgdocs/screenshots/practice-mobile.jpgdocs/screenshots/staking-mobile.jpgweb/index.htmlweb/scripts/browser-check.mjsweb/scripts/financial-browser.mjsweb/scripts/fork-check.tsweb/src/App.tsxweb/src/amounts.tsweb/src/chain/config.tsweb/src/chain/financial-read.tsweb/src/chain/gas.tsweb/src/chain/read.tsweb/src/chain/swap.tsweb/src/chain/write.tsweb/src/financial-panels.tsxweb/src/financial-ui.tsxweb/src/i18n.tsweb/src/main.tsxweb/src/panel-common.tsxweb/src/panels.tsxweb/src/practice.tsxweb/src/readiness.tsxweb/src/round-manager.tsxweb/src/rounds.tsxweb/src/season-board.tsxweb/src/setup.tsxweb/src/style.cssweb/src/translations.tsweb/src/ui.tsxweb/src/wallet.tsweb/tests/economy.test.tsweb/tests/financial.test.tsweb/tests/recovery.test.tsweb/tests/security.test.ts- Hostedprio.sites.imd.funsitenaming transaction