Review pack · for the person checking the contracts
Nobody at NEO can move a customer's money. Check that the code makes sure of it.
Everything we found in four review rounds is listed here with the place in the code and the test that covers it, including 12 items that are still open. The newest work is the award function for the mining platform (F-28): please look at that first. This review was done by the team that wrote the code, so it is not independent. Yours is. Mark each item as you go and send your worksheet back.
Automated tests
152 passing
16 new ones cover awards and one-minute blocks
Account code size
24,044 bytes
the limit is 24,576 · 532 bytes free
Static analysis
47 results
Slither · each one explained · none exploitable
Line-by-line re-read
2,516 lines
all 10 contracts · round 4 added awards (F-28 to F-32)
Independent audit
Not yet
required before real money
Checked again on 1 December 2026, on the code below.
How to review, in six steps
1Check you have the same code.Compare the fingerprint of each file with your copy. If one differs, stop and ask for the right commit.
2Run the tests yourself.Five commands. You should get 152 passing and an account size of 24,044 bytes.
3Go through the findings.Each one names the place in the code and the test that covers it. Start with the newest: F-33 (open) and round 4 (F-28 to F-32: awards on the mining platform). Then the five fixes of round 3, then the other open items.
4Try to break the rules.Fifteen rules the contracts must never break. We know of none that is broken today; finding one is the point.
5Check who can do what.Every function that changes something, and who is allowed to call it. Look for anything that should be stricter.
6Send back your worksheet.Mark each item as you go. Your answers stay in this browser until you download them as one file.
The id git gives each file. Run git ls-files -s contracts in your copy: the ids must match. They do not depend on your computer's line endings.
File
Lines
git id
account/NeoAccountPolicy.sol
332
6127d1153f0c86eeb2b2abc1b61dc97293ad30de
account/NeoBankAccount.sol
949
7d0f2752f13f7b64748644e0b8251ad75271f6a8
account/NeoBankFactory.sol
217
9280c6f23a63e6f4697387769d65f818d1d51a81
account/NeoPaymaster.sol
85
e85fa94757c927d309d392e6c9fc3f66bece1d17
account/PasskeyVerifier.sol
20
a78e90803c554aefe3ae98faa872c196531425de
economy/NeoEconomy.sol
118
ffd7ddc6c0f38418377dc62ec784349a4e58b8d5
economy/NeoFragments.sol
426
3587a0fc43d1b95f42320f73606820e2a35b1f57
economy/NeoMarket.sol
121
157dfec9852277acd9bcd6501fc92633de31fa14
economy/NeoToken.sol
58
9baf69ebc51632fc99c2d1ac19efb56e6fc3414e
payments/NeoPaymentRouter.sol
190
492d7666aec0320f4927b5b38f8f27bd10f4580e
What we found
60 items from three review rounds and a design review. 12 are open in the code, 20 are fixed and need your confirmation, 8 wait on a decision from the client. Open one to see where it is in the code and which test covers it.
HighFixedFull text in AUDIT.md · round 4
On the mining platform a member places offers on a block's fragments, and when the block closes the highest offer on each fragment wins. The contracts could not do that: they only sold the current block, for a payment made in the same step. The mining platform could not have run on a real chain.
What the code does now: A new 'awarder' key can give a fragment of a block that just closed to the member who won it. It can do that only in the 30 seconds after the block closes, once per fragment, only to a NEO account, inside the monthly cap per account and the 21 million limit, and not while sales are paused. No money moves on the chain: the offer was paid from the member's package balance (F-31). Weigh this one carefully: the chain cannot see that the member paid, only that the awarder said so.
How to check: Read _award from the top: each refusal is one line. The 30-second rule is what stops an old block's fragment, which would already have paid out, from being handed to anyone.
Where in the code
Tests that cover it
Does the fix hold?
Fifteen rules to try to break
These must be true whatever anyone does. We know of none that is broken today. A passing test is a starting point, not proof.
Account
Factory and gas
Economy
Payments
Who can do what
Every function that can change something, and who is allowed to call it. Pick a contract. Look for anything that should need more than it does.
Show only:
Function
Who can call it
What stops misuse
Once, at setup
Run by the factory in the same step that creates the account.
validateUserOpfrom a library
EntryPoint
Checks the signature of an operation. Never reads the clock, and refuses to pay any fee from the account's balance.
One key
One everyday call. It must pass the firewall. Its network fee is paid by a sponsor, never from the account's balance.
One key
Several everyday calls. Each must pass the firewall.
Session key
One call to the session's own contract, inside its cap and time window, and through the firewall.
One key
Opens a request. Nothing runs until two or more signers approve.
Anyone
Anyone can deliver a vote. The signature inside proves which signer voted.
Anyone
Runs only when enough signers approved these exact calls.
One key
Cancels a pending request.
One key
Queues calls. They can run only after the account's waiting period.
Anyone
Runs queued calls once the waiting period is over.
One key or a guardian
Cancels a queued change, for example one queued by a thief.
Delay or approval
Adds a key.
Delay or approval
Removes a key. Cannot go below the number of approvals needed.
Delay or approval
Changes how many approvals are needed.
Delay or approval
Changes the waiting period, between 1 hour and 30 days.
One key to tighten
Lowering a limit is immediate. Raising one, or setting up a new token, is not.
One key to tighten
The amount above which a payment needs approval. Lowering it is immediate.
One key to tighten
Blocking a token is immediate. Unblocking is not.
One key to tighten
Removing trust is immediate. Trusting someone new is not.
One key to tighten
Turning a protection on is immediate. Turning one off is not.
One key
One key may grant, but the permission only starts to count after the waiting period. Inside an approved change it counts at once.
One key
Takes an app's permission away.
One key to tighten
Blocking an app is immediate. Unblocking is not.
One key
Makes a limited key for one app.
One key
Ends a session.
Delay or approval
Adds a guardian.
Delay or approval
Removes a guardian.
Delay or approval
Changes how many guardians must agree.
Guardian
Proposes a new key to replace all the old ones.
Guardian
Votes for or against. Enough votes for freezes the account.
One key
Only before enough guardians have agreed.
Anyone
Only after enough guardians agreed and the waiting period passed. The account stays frozen until then.
One key or a guardian
The owner freezes until unlocked. A guardian freezes for 3 days.
One key
Refused while an approved recovery is pending.
One key to tighten
Turning it off is immediate. Turning it on is not.
upgradeToAndCallfrom a library
Delay or approval
Replaces the account's own code. No one else can.
Every function of this file that can change something is listed; the page will not build if one is missing. NeoEconomy and PasskeyVerifier have none: they only calculate or check.
Are the permissions of NeoBankAccount right?
The contracts and their code
Read what each contract does in plain words, then check the code line by line. The tests and the deployment script are here too.
NeoBankAccount
contracts/account/NeoBankAccount.sol · 949 lines · 730 without blanks and comments
Holds the customer's money. Nobody at NEO can move it.
Every payment passes a checklist first: is the token allowed, is it under the per-payment, daily and monthly limits, is the app it goes to allowed?
A token the account was never set up for cannot leave at all.
Payments over the limits need two or more of the account's own signers to approve.
Risky settings (a new phone, higher limits, new guardians, an upgrade) only take effect after a waiting period, so a stolen phone cannot quietly take over.
If the phone is lost, guardians can move the account to a new phone. Once enough of them agree, the account freezes until the move finishes.
Apps can get a limited 'session key': one app, chosen actions, a spending cap and an end time.
The account's balance never pays network fees. A sponsor pays them, or a deposit set aside for that.
Who can do what
Account owner (one key)
Pay within the limits
Lower limits, block tokens, freeze the account
Give an app permission, which starts to count after the waiting period
Queue risky changes (they wait out the delay)
Go over the limits alone
Add a key, raise limits or upgrade without the delay
Pay someone new when the new-recipient rule is on
Other signers (e.g. a second device, a CFO)
Approve or reject large payments with their own signature
Move money alone
Guardians
Start and approve a recovery to a new phone
Freeze the account for 3 days
Cancel a queued change
Move money
Freeze again within 7 days of an unlock
App session key
Call one app, chosen actions, up to its cap, until it expires
Change settings
Call anything else
NEO operators, admins, servers
Nothing
Move, freeze or upgrade the account
Waiting period
1 hour to 30 days, per account
Approvals for large payments
at least 2 signers
Guardian freeze
3 days, then a 7-day cooldown
Code size
24,044 of 24,576 bytes
152 automated tests
Each one is a situation the contracts must handle. Click a test to read it. All passed at the last run.
29 tests
16 tests
The round 4 tests: awards on the mining platform and its one-minute blocks (F-28, F-29).
5 tests
25 tests
18 tests
10 tests
5 tests
6 tests
11 tests
8 tests
6 tests
13 tests
The round 3 tests. They first proved the five gaps F-23 to F-27; they now confirm the fixes.
What this review did not cover
So you know where our work stops and yours matters most.
No independent audit yet
Everything here was reviewed by the team that wrote the code. That is the reason for your review.
Tests are not proof
Round 3 found five gaps by reading the code while all 122 tests of the time were green. Treat a passing test as a starting point.
No formal verification
The maths of the payout schedule and the limits is covered by fuzz and invariant tests with bounded inputs, not by a prover.
The economy replay is from October
NeoEconomy.sol was replayed on a chain against the simulator and matched to the last decimal. That file is unchanged. The replay was not repeated for the falling-price sale added later.
Whether the 210% payout is wise or legal
Out of scope for the code review. It is a business and legal decision (F-07, C-01).
The libraries themselves
OpenZeppelin 5.6.1 and the ERC-4337 v0.7 reference contracts are trusted as published. How the contracts use them is in scope.
The deployment script is reviewed as settings
deploy.ts hands ownership to a timelock. The contracts do not enforce that by themselves (C-09).
Nothing is deployed
There is no bytecode on a public chain to compare against yet.
The platform's own ledger
Package balances, offers, commissions and withdrawals live in the platform's database, not in these contracts (F-31). This review does not cover that code.
The full documents
The page above is the short, plain version. These are the complete texts, as they are in the repository.
Your sign-off
Your answers are saved in this browser only. Nothing is sent anywhere. When you are done, download the worksheet and send that file back.