From 1f906a161e9b568956270cc5cc522d21eafffbca Mon Sep 17 00:00:00 2001 From: martbost Date: Sat, 26 Sep 2026 12:37:56 -0500 Subject: [PATCH] docs: AI review prompt that fetches the contract from the public record Same neutral questions as the pasted-source version, but the AI must pull the verified source itself (Sourcify exact match, Blockscout, Polygonscan), report where it got it and its verification status, and stop if it cannot fetch it. Co-Authored-By: Claude Opus 5.5 --- ...e-contract-AI-review-prompt-from-chain.txt | 97 +++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 docs/contract/RM-Circle-contract-AI-review-prompt-from-chain.txt diff --git a/docs/contract/RM-Circle-contract-AI-review-prompt-from-chain.txt b/docs/contract/RM-Circle-contract-AI-review-prompt-from-chain.txt new file mode 100644 index 0000000..d21620e --- /dev/null +++ b/docs/contract/RM-Circle-contract-AI-review-prompt-from-chain.txt @@ -0,0 +1,97 @@ +RM CIRCLE SMART CONTRACT: INDEPENDENT REVIEW PROMPT (reads the code from the blockchain) +====================================================================================== + +Copy everything in this file and paste it into an AI that can browse the web or fetch URLs +(for example ChatGPT with search, Gemini, Grok, Perplexity, Claude with web access). + +------------------------------------------------------------------------------------------ +PROMPT +------------------------------------------------------------------------------------------ + +You are reviewing a Solidity smart contract that is deployed and running on the Polygon +blockchain. I want an independent, neutral explanation of exactly how it works, based ONLY +on its published, verified source code. Do not rely on any copy of the code that anyone +pastes to you, and do not rely on memory or guesses. Get the code yourself. + +STEP 0: GET THE CODE FROM THE PUBLIC RECORD (do this first) + +Contract address: 0x33BdAEEfd6d17D80aE53816c916dFb26c4fB2DAF +Network: Polygon PoS mainnet (chain ID 137) + +Fetch the verified source from one of these public sources. The first is the strongest, +because Sourcify's "exact_match" means the published source compiles byte for byte to the +code that is actually deployed at this address: + + 1. Sourcify (verification record): + https://sourcify.dev/server/v2/contract/137/0x33BdAEEfd6d17D80aE53816c916dFb26c4fB2DAF + Source files as JSON: + https://sourcify.dev/server/v2/contract/137/0x33BdAEEfd6d17D80aE53816c916dFb26c4fB2DAF?fields=sources + 2. Blockscout (JSON, includes the source): + https://polygon.blockscout.com/api/v2/smart-contracts/0x33BdAEEfd6d17D80aE53816c916dFb26c4fB2DAF + Web page: https://polygon.blockscout.com/address/0x33BdAEEfd6d17D80aE53816c916dFb26c4fB2DAF?tab=contract + 3. Polygonscan (web page, "Contract" tab): + https://polygonscan.com/address/0x33BdAEEfd6d17D80aE53816c916dFb26c4fB2DAF#code + +Before answering anything else, report: + - which source(s) you fetched the code from, + - the verification status each shows (for Sourcify: creationMatch and runtimeMatch), + - the contract name, the compiler version, and how many lines the source file has. + +If you cannot open any of these URLs, STOP and say so. Do not continue from memory, from a +summary, or from a guess about what the contract probably contains. + +Ground rules for everything after Step 0: +- Base every statement on the code you fetched. Cite the function name and line number + (as numbered in the verified source file) for each claim. +- Do not rely on marketing material, a compensation-plan document, or what the contract + "is supposed to" do. If the code and a common expectation differ, say what the code does. +- If something cannot be determined from the code alone, say so plainly instead of guessing. +- Show your reasoning step by step for each scenario. Don't just state the answer. + +Level names by number: 1 Scintilla, 2 Ascensus, 3 Fabrica, 4 Culmen, 5 Apex, +6 Fastigium, 7 Vertex, 8 Corona. + +PART 1: What the contract does + 1. List every function that can move POL (the native currency). For each: who can call it, + what it requires, and exactly where every unit of POL goes. + 2. Registration: explain register(). How is the price made up? Who receives what share? + How is the new member placed in the matrix? What is the difference between referrerId + and uplineId, and which one does each part of the contract use? + 3. Upgrades: explain upgrade() and _payUpline() in detail. What is levelIndex, how is it + calculated, and how is it used? Who receives the payment? Is it ever split? + 4. What does "directCount" count, and where is it increased? What role does it play? + 5. When does money go to feeReceiver instead of a member? List every case. + 6. Can the contract keep or accumulate POL? If a balance can build up, how, and how can it + leave? + +PART 2: What can and cannot change + 7. Is there any way to change the contract's code, prices, or payout rules after + deployment (proxy, delegatecall, selfdestruct, setters, anything else)? + 8. List every function restricted to the owner and exactly what each one can change. + Can the owner redirect or alter a payment between members? + +PART 3: Work these scenarios step by step (cite lines) + Assume every member is Premium tier unless stated. Use the contract's own prices symbolically + (e.g. "premiumUpgrade[0]") if you don't know the numbers. + A. Member X holds level 1 and buys the next upgrade (to level 2, Ascensus). X's matrix parent + P holds level 1 and has 2 directs. Who is paid, how much, and why? + B. Same as A, but P has only 1 direct. P's matrix parent G holds level 2 and has 2 directs. + Who is paid? + C. Member X holds level 2 and buys level 3 (Fabrica). X's matrix parent P holds level 3 + with 2 directs; P's parent G holds level 2 with 2 directs; G's parent H holds level 3 + with 2 directs. Who is paid, and why not P? + D. A member buys level 8 (Corona). What level must the recipient hold? Which uplines are + skipped? What happens if the buyer is only 5 generations below the root position? + E. Member X was sponsored by S (X named S at registration), but S's matrix slots were full, + so X was placed under Y. When X buys its first upgrade, who is checked first: S or Y? + Who received X's registration payment? + F. A member at level 1 with 0 directs is named as the sponsor of a new registration. Do + they receive the registration payment? Why or why not? + +PART 4: Plain-language summary + 9. Summarize in plain English, as if to a non-technical member, how a person gets paid by + this contract. Keep it short. +10. List any behavior that people commonly misunderstand or might not expect, based on the + code. +11. Note any risks, limits or edge cases you see in the code (for example, loop limits, + failure modes, anything that can make a transaction revert).