diff --git a/public/assets/wallet.js b/public/assets/wallet.js
index 0299428..a13fdd7 100644
--- a/public/assets/wallet.js
+++ b/public/assets/wallet.js
@@ -161,6 +161,13 @@ window.IAPWallet = (function () {
await ensureChain(c);
const tx = { from: addr, to: c.contract, data };
if (valueWei) tx.value = '0x' + BigInt(valueWei).toString(16);
+ // Polygon (mainnet + Amoy) enforce a ~25 gwei minimum priority fee; wallets
+ // routinely lowball it and the RPC rejects "gas tip below minimum". Set
+ // explicit EIP-1559 fees above the floor, plus a safe gas limit so the wallet
+ // doesn't mis-estimate. Unused gas is never charged.
+ tx.maxPriorityFeePerGas = '0x' + (30n * 10n ** 9n).toString(16); // 30 gwei
+ tx.maxFeePerGas = '0x' + (250n * 10n ** 9n).toString(16); // 250 gwei ceiling
+ tx.gas = '0x' + (600000n).toString(16); // 600k limit
return eth().request({ method: 'eth_sendTransaction', params: [tx] });
}
async function waitTx(hash) {
diff --git a/public/index.html b/public/index.html
index 115e79c..7e1c822 100644
--- a/public/index.html
+++ b/public/index.html
@@ -439,7 +439,7 @@
-
+