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.
This page describes the contracts as they are today, from the bank account to the NEO tokenomics: what they protect, where each protection is in the code, which test covers it, and the 12 items that are still open. It was written by the team that wrote the code, so it is not independent. Your review is. Mark each item as you go and send your worksheet back.
Automated tests
152 passing
unit, random-input and always-true tests
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 read
2,516 lines
all 10 contracts, bank account to tokenomics
Independent audit
Not yet
required before real money
Checked again on 1 December 2026, on the code below.
How to review, in seven 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.
3Read how it works.The NEO tokenomics, then each contract in plain words, from the bank account to the market.
4Check the protections.Each one says what the contracts stop, where in the code, and which test covers it. Confirm it holds.
5Go through the open items.What is not solved, what waits on a decision, and the trade-offs that were accepted. Start with the ones marked Open.
6Try to break the rules, then check who can do what.Fifteen rules that must never break, and every function with who may call it.
7Send 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
NEO tokenomics
The rules of the NEO economy as the contracts implement them. One set of contracts runs two editions: the original plan, and the mining platform that is live today.
Original plan
Mining platform (live today)
A new NEO block
every 10 minutes
every minute
Blocks in a month
4,321
43,210 (a month is the same 2,592,600 seconds, about 30 days)
NEO in each block
100, then 10 less each month, never below 10
10, then 1 less each month, never below 1
Fragments in each block
10
10
One fragment in month 1
10 NEO, pays out 21
1 NEO, pays out 2.1
How a fragment is obtained
Bought while its block is the current one, at a fixed price or one that falls during the block
Won by the highest offer and awarded in the 30 seconds after the block closes. Direct purchase is off
Paid with
A stablecoin, on the chain, to the treasury
The member's package balance, which the platform keeps in its own records
Opening an account
10 per block; burns 1 NEO after a free first month, halving about every 10 months
Free, no limit, a ticket from the platform every time
What one fragment pays, month by month
percent of the fragment's size · 210% in all
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
13579111315171920
Month 1 pays 20%, month 2 pays 19%, and so on to 1% in month 20. So far paid: 105% after 6 months, 132% after 8, 155% after 10, 210% after 20.
The payout
A fragment pays 210% of its size over 20 months: 20% after the first month, then one point less each month, down to 1% in month 20. After six months the owner has received more NEO than the fragment's size (105%). The months count from the fragment's own block.
NEO offered per month
432,100 NEO of fragments in month 1, falling by a tenth of that each month to 43,210 a month from month 10 on. Both editions offer the same per month. Each NEO of fragment pays out 2.1.
The 21 million limit
Counted on what is promised, not on what is paid out. When the next fragment's full payout would not fit, sales and awards stop; anyone can then make the stop permanent.
Where NEO comes from and goes
Only fragment payouts create NEO. Only account openings burn it, and the mining platform has no opening burn. There is no owner of the coin, no pause and no blacklist.
Selling a fragment on
A fragment is a token its owner can sell or give away. The seller is first paid what was already due; the buyer gets the rest of the schedule. The market holds nothing and takes no fee.
What is not in the contracts
Packages, package balances, offers, referral commissions, the earning limit, withdrawals and the leftovers market are the platform's own records. The chain sees the package payment to the treasury and the award, nothing in between.
The contracts and their code
Ten contracts, from the customer's bank account to the fragment market. Read what each one 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
What the contracts protect
20 things the contracts stop, from the bank account to the economy. Each one names the place in the code and the tests that cover it. Open one, check it, and say whether it holds.
Open items and decisions
40 things a reviewer should know. 12 are open: not solved in the code. 8 wait on a decision from the client. The rest are trade-offs that were accepted, and notes.
HighOpen
The mining platform has a leftovers market: a fragment that no offer won can be bought later, and it pays out over 20 months from the block it is bought in. The contracts refuse an award more than 30 seconds after the block closes, and a fragment's payout always counts from its own block. So leftovers work on the platform's simulated chain only.
Today: Open: it needs a decision before any contract change. Starting the payout at the purchase removes the 'already paid out' problem the 30-second rule was built for. But it would let the awarder create any unsold fragment in the whole history at any time, limited only by the caps. The contracts and this page describe what the code does today: no leftovers.
How to check: A position stores its block number and nothing else to count from; vested and claim use that block.
Where in the code
Tests that cover it
Is this described correctly?
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?
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
Awards on the mining platform and its one-minute blocks.
5 tests
25 tests
18 tests
10 tests
5 tests
6 tests
11 tests
8 tests
6 tests
13 tests
What one stolen key cannot do: paying someone new, calls the firewall does not know, NFTs, recovery and network fees.
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
Gaps in this code have been found by reading it while every test passed. 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 covers the maths only
NeoEconomy.sol was replayed on a chain against the simulator and matched to the last decimal. The replay does not cover the falling-price sale or awards.
Whether the 210% payout is wise or legal
Out of scope for the code review. It is a business and legal decision, listed under the open items.
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.
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. This review does not cover that code.
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.