Gas floor fix, chain guard, and dashboard footer

- wallet.js: fetch correct EIP-1559 fees from the network (Amoy/Polygon Bor
  enforce a ~25-30 gwei priority floor MetaMask's estimate misses) via new
  /api/gas; hard chain-guard before signing so a tx never lands on the wrong
  network; accept the wallet's usual networks in AppKit so its modal stops
  looping and drive add+switch ourselves.
- chain.js: suggestedFees() from eth_maxPriorityFeePerGas + base fee.
- Dashboard: move the Site links (Ad packages / Live ledger / The contract)
  out of the sidebar into a page footer; hide the sidebar scrollbar.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-09-08 10:49:34 -05:00
parent 8958a9d145
commit 7b131dad28
6 changed files with 70 additions and 15 deletions
+7 -8
View File
@@ -5,7 +5,7 @@
<title>Member area | InstantAdPay</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Sora:wght@600;700;800&display=swap">
<link rel="icon" type="image/png" href="/logo-icon.png">
<link rel="stylesheet" href="/assets/site.css?v=20260908e">
<link rel="stylesheet" href="/assets/site.css?v=20260908f">
</head>
<body class="bo-body">
@@ -140,12 +140,6 @@
<span class="bo-cap">Team</span>
<a href="#" id="chatMenuBtn" class="bo-chat"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="2" style="vertical-align:-2px;margin-right:7px"><path d="M5 5h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9l-4 4V6a1 1 0 0 1 1-1z"/></svg>Messages<span class="pill" id="chatNavBadge" hidden></span></a>
</div>
<div class="bo-links">
<span class="bo-cap">Site</span>
<a href="/">Ad packages</a>
<a href="/ledger">Live ledger</a>
<a href="/contract">The contract</a>
</div>
<div class="bo-links">
<span class="bo-cap">Legal</span>
<a href="/terms" target="_blank" rel="noopener">Terms</a>
@@ -673,6 +667,11 @@
</div>
</main>
<footer class="bo-pagefoot">
<a href="/">Ad packages</a>
<a href="/ledger">Live ledger</a>
<a href="/contract">The contract</a>
</footer>
</div>
</div>
@@ -696,7 +695,7 @@
</div>
</div>
<script src="/assets/common.js?v=20260908c"></script>
<script src="/assets/wallet.js?v=20260908m"></script>
<script src="/assets/wallet.js?v=20260908n"></script>
<script src="/assets/my.js?v=20260908l"></script>
<script src="/assets/chat.js?v=20260907l"></script>
</body>