{"record":{"id":"74cf28d4a5df1138","repo":"affaan-m/ECC","slug":"amount-exceeds-limit","errorCode":null,"errorMessage":"Amount exceeds limit","messagePattern":"Amount exceeds limit","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"skills/security-review/SKILL.md","lineNumber":381,"sourceCode":"    )\n    return isValid\n  } catch (error) {\n    return false\n  }\n}\n```\n\n#### Transaction Verification\n```typescript\nasync function verifyTransaction(transaction: Transaction) {\n  // Verify recipient\n  if (transaction.to !== expectedRecipient) {\n    throw new Error('Invalid recipient')\n  }\n\n  // Verify amount\n  if (transaction.amount > maxAmount) {\n    throw new Error('Amount exceeds limit')\n  }\n\n  // Verify user has sufficient balance\n  const balance = await getBalance(transaction.from)\n  if (balance < transaction.amount) {\n    throw new Error('Insufficient balance')\n  }\n\n  return true\n}\n```\n\n#### Verification Steps\n- [ ] Wallet signatures verified\n- [ ] Transaction details validated\n- [ ] Balance checks before transactions\n- [ ] No blind transaction signing\n","sourceCodeStart":363,"sourceCodeEnd":399,"githubUrl":"https://github.com/affaan-m/ECC/blob/d8409a4b0813771235555e32e3d8046a73988bfa/skills/security-review/SKILL.md#L363-L399","documentation":"Illustrative spend guard from the security-review skill: the transaction amount exceeds the configured maxAmount constant, so verifyTransaction refuses before checking balance. It prevents an oversized transfer from being signed.","triggerScenarios":"Thrown at skills/security-review/SKILL.md:381 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Split larger transfers into approved smaller transactions","Require explicit human approval above the threshold","Make the cap configurable and audited"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d8409a4b0813771235555e32e3d8046a73988bfa","analyzedAt":"2026-08-26T12:15:34.022Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}