NEO Smart contracts
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

  1. 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.
  2. 2Run the tests yourself. Five commands. You should get 152 passing and an account size of 24,044 bytes.
  3. 3Read how it works. The NEO tokenomics, then each contract in plain words, from the bank account to the market.
  4. 4Check the protections. Each one says what the contracts stop, where in the code, and which test covers it. Confirm it holds.
  5. 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.
  6. 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.
  7. 7Send back your worksheet. Mark each item as you go. Your answers stay in this browser until you download them as one file.

The code under review

Repository
NEO platform repository (private), folder contracts/
Commit
0529390 of 1 December 2026
Contracts last changed
ac0b281 of 30 November 2026. Nothing in the ten contracts has changed since.
Compiler
Solidity 0.8.28, via-IR, EVM cancun, optimizer 200 runs (NeoBankAccount: 1 run)
Libraries
OpenZeppelin 5.6.1 · ERC-4337 contracts 0.7.0 · Hardhat 3.21.1 · forge-std 1.9.7
Size
10 contracts · 2,516 lines · 1,815 without blanks and comments

Run it yourself

In the repository, from the top folder.

cd contracts && npm install

Node 22 or newer. The folder has its own package.json.

npx hardhat build

Production build. This is the bytecode that would be deployed.

npx hardhat test solidity

Expect 152 passing, about 20 seconds after compiling.

npx hardhat test solidity test/Award.t.sol test/ReviewProbe.t.sol

Two files worth reading first: awards and the one-minute clock, and what one stolen key cannot do.

node -e "const a=require('./artifacts/contracts/account/NeoBankAccount.sol/NeoBankAccount.json');console.log((a.deployedBytecode.length-2)/2)"

Size of the account. Expect 24044.

File fingerprints

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.

FileLinesgit id
account/NeoAccountPolicy.sol3326127d1153f0c86eeb2b2abc1b61dc97293ad30de
account/NeoBankAccount.sol9497d0f2752f13f7b64748644e0b8251ad75271f6a8
account/NeoBankFactory.sol2179280c6f23a63e6f4697387769d65f818d1d51a81
account/NeoPaymaster.sol85e85fa94757c927d309d392e6c9fc3f66bece1d17
account/PasskeyVerifier.sol20a78e90803c554aefe3ae98faa872c196531425de
economy/NeoEconomy.sol118ffd7ddc6c0f38418377dc62ec784349a4e58b8d5
economy/NeoFragments.sol4263587a0fc43d1b95f42320f73606820e2a35b1f57
economy/NeoMarket.sol121157dfec9852277acd9bcd6501fc92633de31fa14
economy/NeoToken.sol589baf69ebc51632fc99c2d1ac19efb56e6fc3414e
payments/NeoPaymentRouter.sol190492d7666aec0320f4927b5b38f8f27bd10f4580e

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 planMining platform (live today)
A new NEO blockevery 10 minutesevery minute
Blocks in a month4,32143,210 (a month is the same 2,592,600 seconds, about 30 days)
NEO in each block100, then 10 less each month, never below 1010, then 1 less each month, never below 1
Fragments in each block1010
One fragment in month 110 NEO, pays out 211 NEO, pays out 2.1
How a fragment is obtainedBought while its block is the current one, at a fixed price or one that falls during the blockWon by the highest offer and awarded in the 30 seconds after the block closes. Direct purchase is off
Paid withA stablecoin, on the chain, to the treasuryThe member's package balance, which the platform keeps in its own records
Opening an account10 per block; burns 1 NEO after a free first month, halving about every 10 monthsFree, 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
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:
FunctionWho can call itWhat stops misuse
Once, at setupRun by the factory in the same step that creates the account.
validateUserOpfrom a libraryEntryPointChecks the signature of an operation. Never reads the clock, and refuses to pay any fee from the account's balance.
One keyOne everyday call. It must pass the firewall. Its network fee is paid by a sponsor, never from the account's balance.
One keySeveral everyday calls. Each must pass the firewall.
Session keyOne call to the session's own contract, inside its cap and time window, and through the firewall.
One keyOpens a request. Nothing runs until two or more signers approve.
AnyoneAnyone can deliver a vote. The signature inside proves which signer voted.
AnyoneRuns only when enough signers approved these exact calls.
One keyCancels a pending request.
One keyQueues calls. They can run only after the account's waiting period.
AnyoneRuns queued calls once the waiting period is over.
One key or a guardianCancels a queued change, for example one queued by a thief.
Delay or approvalAdds a key.
Delay or approvalRemoves a key. Cannot go below the number of approvals needed.
Delay or approvalChanges how many approvals are needed.
Delay or approvalChanges the waiting period, between 1 hour and 30 days.
One key to tightenLowering a limit is immediate. Raising one, or setting up a new token, is not.
One key to tightenThe amount above which a payment needs approval. Lowering it is immediate.
One key to tightenBlocking a token is immediate. Unblocking is not.
One key to tightenRemoving trust is immediate. Trusting someone new is not.
One key to tightenTurning a protection on is immediate. Turning one off is not.
One keyOne key may grant, but the permission only starts to count after the waiting period. Inside an approved change it counts at once.
One keyTakes an app's permission away.
One key to tightenBlocking an app is immediate. Unblocking is not.
One keyMakes a limited key for one app.
One keyEnds a session.
Delay or approvalAdds a guardian.
Delay or approvalRemoves a guardian.
Delay or approvalChanges how many guardians must agree.
GuardianProposes a new key to replace all the old ones.
GuardianVotes for or against. Enough votes for freezes the account.
One keyOnly before enough guardians have agreed.
AnyoneOnly after enough guardians agreed and the waiting period passed. The account stays frozen until then.
One key or a guardianThe owner freezes until unlocked. A guardian freezes for 3 days.
One keyRefused while an approved recovery is pending.
One key to tightenTurning it off is immediate. Turning it on is not.
upgradeToAndCallfrom a libraryDelay or approvalReplaces 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.

Protections0 of 20
Open items0 of 40
Rules0 of 15
Who can do what0 of 8