Auditing your own system? Hackerbane runs smart contract audits. Request an audit.
Hackerbane
ForeverMoney
Assessment Report

ForeverMoney
bridge contracts

The contracts wrap a staked Bittensor position into an ERC-20 and move that token over Chainlink CCIP. Stake stays on Bittensor EVM (chain 964). Spoke tokens sit on Base and Robinhood Chain. Hackerbane reviewed ForeverMoney-Ai/bridge-contracts at e80a4432fc0d58f1e7ab94180137aace7f4286d2. Report date is 30 September 2026. Remediation was reviewed on 2 October 2026 at c63753112acd187925ee00d269b7bf5b644c3455. Live storage was read at chain 964 block 9,179,723 and again on 2 October 2026, and on Base.

0Critical
0High
0Medium
7Low
18Info
DocumentHACK-AR-2026-FOREVERMONEY-BRIDGE  /  Crypto review
SystemForeverMoney bridge / AlphaVault, AlphaGateway, SpokeGateway
Scopesrc/, legacy/v5/, all script/, live pool wiring, function table (see 2.4 and 2.5)
Review commite80a4432fc0d58f1e7ab94180137aace7f4286d2
Remediation commitc63753112acd187925ee00d269b7bf5b644c3455
ReviewSeptember 30th, 2026. Remediation review October 2nd, 2026.
AuthorHackerbane
hackerbane.com hello@hackerbane.com HACK-AR-2026-FOREVERMONEY-BRIDGE
Hackerbane · Assessment Report HACK-AR-2026-FOREVERMONEY-BRIDGE

Contents

  1. 1Executive overview
  2. 2Scoring and scope
  3. 3Findings overview
  4. 4Findings
  5. 5Recommendations
  6. 6Fuzz testing
  7. 7Static analysis
  8. 8Remediation record
  9. 9Live verification
  10. 10Code quality
  11. 11Exhibit B

Document revision history

VersionDateDescription
0.409/30/2026Draft Review. Every finding is PENDING.
0.509/30/2026Bytecode, live books, CCIP wiring, Robinhood, and the v5 and spoke-mint simulations. HACK-08 added. Every finding is PENDING.
0.609/30/2026Line-by-line code-quality pass. Notes are in chapter 10. No new scored finding.
0.709/30/2026Floating pragma filed as HACK-09. Every finding is PENDING.
0.809/30/2026Comment pass of src/. Stale NatSpec filed as HACK-10 through HACK-21. HACK-06 already covered the sources[0] fee comment. Every finding is PENDING.
0.909/30/2026Function table, remaining scripts, clean-commit tests, Echidna, Halmos, Aderyn, Mythril. HACK-22 through HACK-24. Every finding is PENDING.
1.009/30/2026Vultr depth: Echidna 200k, Halmos skim, Mythril -t 2, live 0x805 minima. HACK-25. Every finding is PENDING.
1.109/30/2026Closed scope: CCIP internals, precompile bytecode, mutating StakeProbe, further Halmos skim, SDK, v4, and later commits. Every finding is PENDING.
1.210/02/2026Remediation Plan Review of pull request 3, head c63753112acd187925ee00d269b7bf5b644c3455. Five findings acknowledged. HACK-25 partially solved. The rest solved.
1.310/07/2026Document ID changed from HB-AR-2026.16 to HACK-AR-2026-FOREVERMONEY-BRIDGE. No other changes.

Contacts

NameContact
Hackerbanehello@hackerbane.com

1   Executive overview

1.1   Introduction

AlphaVault on Bittensor EVM custodies staked positions and mints a 1:1 AlphaToken per subnet. AlphaGateway sends that token to spoke chains and, on the return leg, unwraps it to native TAO or to a staked position. SpokeGateway on Base and on Robinhood Chain burns the spoke token and attaches the exit payload. Hackerbane reviewed ForeverMoney-Ai/bridge-contracts at commit e80a4432fc0d58f1e7ab94180137aace7f4286d2. Report date is 30 September 2026. Remediation in pull request 3, head c63753112acd187925ee00d269b7bf5b644c3455, was reviewed on 2 October 2026. Scope is in section 2.4.

1.2   What we found

The next paragraphs describe the contracts and the chain on 30 September 2026. Section 1.4 is the remediation review of 2 October 2026.

No open Criticals or Highs. An unprivileged caller cannot mint AlphaToken, cannot pull another account's stake, and cannot make _ccipReceive spend a token the message did not carry. Deposits mint the measured getStake delta. Withdrawals burn before the precompile call. Claim balances are zeroed before the external call and are keyed by token.

The live custody does not match the split the comments describe. One Gnosis Safe, 0xADF60fcC63217961c931d57f1dCE2C5d70Af3546, threshold 2 of 3, is DEFAULT_ADMIN_ROLE, OPERATOR_ROLE, and GUARDIAN_ROLE on the vault. It owns all four LockReleaseTokenPool contracts. It is DEFAULT_ADMIN_ROLE on the Base BurnMint token. LockReleaseTokenPool.withdrawLiquidity pays msg.sender when msg.sender is the rebalancer, and acceptLiquidity = false does not block that function. The Safe can setRebalancer to itself and pull the locked supply, then withdrawLiquid or withdrawStaked on the vault (HACK-03). At block 9,179,723 the TAO pool held 8,951.129835383429495505 of the 8,951.166737462 token supply. SN10 and SN78 pool balances equalled total supply. SN80's pool held all but about 3.16 tokens. Rebalancers were address(0), so the pull is one owner call away.

The same Safe can adminHold for longer than MIGRATION_DELAY (7 days). withdrawLiquid and withdrawStaked then revert IsHalted for the whole notice window, and executeMigration still moves the stake (HACK-04). The TAO token's CCIP registry administrator is the EOA 0x366d4814d27BE5745B9e75D54478c664074e96B5 (codesize 0). That key can setPool on TAO with no Safe threshold (HACK-05). The other three tokens' registry administrator is the Safe.

minTokenOut on bridgeOut is 18-decimal wei. depositLiquid's minAlphaRao is RAO. A bound of 9e9 (9 TAO in the vault's unit) accepted a 99% AMM fee that delivered 0.1 token (HACK-01). bridgeTokenOut does not read isPaused (HACK-02). Two informational notes cover a stale fee comment (HACK-06) and the live split between the v6 outbound hub and the v5 inbound hub (HACK-07). The Base TAO pool's rate-limit admin is an EOA that can stop that lane (HACK-08). A liquid integrator fee whose top-up is below the 0.002 TAO addStake minimum reverts the whole hop (HACK-22). withdrawLiquid and skim call removeStake, which reverts below 2,000,000 RAO. withdrawStaked, skimStaked, and executeMigration call transferStake, which reverts below 1,000,000 RAO (HACK-25). The source pragma is ^0.8.24 while the build that matches mainnet is solc 0.8.26 (HACK-09). Comments in src/ that disagree with the functions under them are HACK-06 and HACK-10 through HACK-21. DeployAlpha accepts a coldkey that belongs to no address (HACK-23). VerifyWiring never reads pool owner or rebalancer (HACK-24). A second pass compared deployed bytecode to this source, read getStake for every listed position, and checked the Base and Robinhood pool wiring. Backing is above supply on all four tokens.

1.4   Remediation

Pull request 3, head c63753112acd187925ee00d269b7bf5b644c3455, was read on 2 October 2026 against the findings below. Nineteen findings are solved. HACK-01, HACK-02, HACK-03, HACK-04, and HACK-07 are acknowledged: the behavior those cards describe is unchanged. HACK-25 is partially solved. SpokeGateway rejects liquid exits under 2,000,000 RAO and staked exits under 1,000,000 RAO. AlphaVault does not. The deployed vault, gateway, and spokes are the bytecode from the review commit. Repository changes take effect on the next deployment. HACK-05 and HACK-08 were changed on chain on 1 October 2026. The live HACK-22 path is SDK @forevermoney/sdk 0.5.10, which waives a partner-fee top-up under 0.002 TAO. Detail is in section 8.

1.3   How this review was done

2   Scoring (BVSS)

Each finding gets a BVSS vector. Exploitability is Attack Origin, Attack Cost, and Attack Complexity. Impact is Confidentiality, Integrity, Availability, Deposit, and Yield. The coefficient is Reversibility times Scope. The printed score is min(10, E * I * C * 10), rounded up to one decimal.

S = min(10, E * I * C * 10)

2.1   Exploitability

E is the product of Attack Origin (AO), Attack Cost (AC), and Attack Complexity (AX).

MetricValueNumeric
Attack Origin (AO)Arbitrary (AO:A) / Specific (AO:S)1 / 0.2
Attack Cost (AC)Low / Medium / High1 / 0.67 / 0.33
Attack Complexity (AX)Low / Medium / High1 / 0.67 / 0.33

AO:A means any account can attempt the call. AO:S means a specific account must act. AC is cost relative to one transaction. AX is conditions beyond that account.

2.2   Impact

Confidentiality (C), Integrity (I), Availability (A), Deposit (D), and Yield (Y). Integrity and Availability exclude impact already counted under Deposit or Yield.

NoneLowMediumHighCritical
C / I / A / D / Y00.250.50.751

I = max(mI) + (sum(mI) - max(mI)) / 4

2.3   Severity coefficient

CoefficientValueNumeric
Reversibility (R)None / Partial / Full1 / 0.5 / 0.25
Scope (S)Changed / Unchanged1.25 / 1

C = R * S

BandScore
Critical9.0 - 10.0
High7.0 - 8.9
Medium4.5 - 6.9
Low2.0 - 4.4
Informational0.0 - 1.9

HACK-01 scores AO:A, AX:M, D:M. Any searcher can fill the AMM, and the bound only fails when the caller wrote it in RAO. E = 1 * 1 * 0.67 = 0.67, I = 0.5, C = 1, S = 3.35, rounded up to 3.4. HACK-02 scores AO:A and A:L. Any token holder can bridgeTokenOut during a halt. The stake stays in the vault. E = 1, I = 0.25, C = 1, S = 2.5. HACK-03, HACK-04, and HACK-05 score AO:S and D:C. One specific key can take the deposit. E = 0.2, I = 1, C = 1, S = 2.0. HACK-06 scores AO:A, AX:M, I:L. The fee total is the bps the caller signed. Which validator pays the cut can differ from the comment. E = 0.67, I = 0.25, C = 1, S = 1.675, rounded up to 1.7. HACK-07 scores AO:S, A:L, R:P. A lane set only on v6 books the v5 arrival as claimable. The tokens stay in the v5 gateway. E = 0.2, I = 0.25, C = 0.5, S = 0.25, rounded up to 0.3. HACK-10, HACK-11, HACK-12, HACK-13, HACK-17, and HACK-20 use the HACK-06 vector: a reader can follow the comment, and the code does something else. E = 0.67, I = 0.25, C = 1, S = 1.675, rounded up to 1.7. HACK-15, HACK-16, HACK-19, and HACK-21 use that same E and I with R:P, because the function body or the next declaration shows the real rule. C = 0.5, S = 0.8375, rounded up to 0.9. HACK-14 and HACK-18 use AX:H and R:F. The named function is missing, so a call copied from the comment does not compile, and the real signature is in the same file. E = 0.33, I = 0.25, C = 0.25, S = 0.20625, rounded up to 0.3. HACK-22 scores AO:A and A:L. Any caller can pick a liquid amount whose fee top-up is below the live 0.002 TAO addStake minimum. The hop reverts. E = 1, I = 0.25, C = 1, S = 2.5. HACK-25 uses that same vector. A holder of 0.001 token cannot withdrawLiquid, and leftover stake under 1,000,000 RAO cannot transferStake. E = 1, I = 0.25, C = 1, S = 2.5. HACK-23 scores AO:S and A:L. The deploy key can store a coldkey that never matches the vault. Deposits then revert. E = 0.2, I = 0.25, C = 1, S = 0.5. HACK-24 scores AO:S, I:L, R:P. VerifyWiring can print green while the deployer still owns the pool and a stranger is the rebalancer. E = 0.2, I = 0.25, C = 0.5, S = 0.25, rounded up to 0.3.

2.4   Scope

Code repositories:

1. ForeverMoney-Ai/bridge-contracts

Out of scope:

2.5   Function coverage

Every function, constructor, and receive in the in-scope Solidity files. 199 entries. A row marked Reviewed was read. A HACK id means that function is the site of a finding. v5 rows that match v6 inbound text are marked Same as v6. Interface rows name the ABI only.

#FunctionLineVisModifiersResult
src/AlphaVault.sol
1_requireBalance222private-Reviewed
2constructor234external-Reviewed
3receive258external-Reviewed
4_removeStake264private-Reviewed; HACK-25
5createToken280externalonlyRole,whenNotMigratingReviewed
6addToken292externalonlyRole,whenNotMigratingReviewed
7_list302private-Reviewed
8depositLiquid327externalonlyListed,whenNotHalted,whenNotMigrating,nonReentrantReviewed; HACK-01 unit; measured mint
9depositStaked352externalonlyListed,whenNotHalted,whenNotMigrating,nonReentrantReviewed
10withdrawLiquid382externalonlyListed,whenNotHalted,nonReentrantReviewed; HACK-25
11withdrawStaked413externalonlyListed,whenNotHalted,nonReentrantReviewed; HACK-25
12sweepExcess435externalonlyRole,nonReentrantReviewed
13guardianPause449externalonlyRoleReviewed
14unpause460externalonlyRoleReviewed
15adminHold466externalonlyRoleReviewed; HACK-04
16_lift479private-Reviewed
17isPaused488public-Reviewed; whenNotHalted only
18_stakedRao494private-Reviewed
19isListed498external-Reviewed
20positionOf503publiconlyListedReviewed
21skimMarginOf508external-Reviewed
22stakedValueRao513publiconlyListedReviewed
23backing520public-Reviewed
24harvestableAlphaRao526publiconlyListedReviewed
25skim541externalonlyRole,onlyListed,whenNotHalted,nonReentrantReviewed; HACK-10, HACK-25
26skimStaked561externalonlyRole,onlyListed,whenNotHalted,nonReentrantReviewed; HACK-10, HACK-25
27claimRoot595externalonlyRole,onlyListed,whenNotHalted,nonReentrantReviewed; HACK-10
28claimRootFor620externalonlyRole,onlyListed,whenNotHalted,nonReentrantReviewed; HACK-10
29initiateMigration652externalonlyRoleReviewed
30cancelMigration673externalonlyRoleReviewed
31finishMigration699externalonlyRoleReviewed; HACK-11 halt
32executeMigration746externalonlyRole,onlyListed,nonReentrantReviewed; HACK-12, HACK-25
33_requireMigrationReady758private-Reviewed
34_move763private-Reviewed; HACK-12, HACK-25
35setEmissionsRecipient774externalonlyRoleReviewed
36setCcipAdmin786externalonlyRoleReviewed
37setSkimMargin792externalonlyRole,onlyListedReviewed
38migrateValidator804externalonlyRole,onlyListedReviewed
src/AlphaGateway.sol
39constructor182external-Reviewed
40setBridgeFeeBps212externalonlyVaultAdmin,onlyVaultReviewed
41setFeeRecipient220externalonlyVaultAdmin,onlyVaultReviewed
42setMaxIntegratorFeeBps226externalonlyVaultAdmin,onlyVaultReviewed
43_validateIntegratorFee233private-Reviewed
44_integratorCut241private-Reviewed
45integratorTaoTopUp248public-Reviewed; HACK-22
46integratorCut258public-Reviewed
47_payIntegrator263private-Reviewed
48_feeRecipient271private-Reviewed
49_grossFee279private-Reviewed
50setLane286externalonlyVaultAdmin,onlyVaultReviewed; HACK-13
51quoteBridgeOut299public-Reviewed
52quoteBridgeOutWithFee314external-Reviewed
53_quoteBridgeOut328private-Reviewed
54bridgeOut360external-Reviewed
55bridgeOutWithFee377external-Reviewed; HACK-14
56bridgeOutFromValidators400external-Reviewed
57bridgeOutFromValidatorsWithFee414external-Reviewed; HACK-06
58_bridgeOut427private-Reviewed; HACK-01, HACK-22
59_stakedLeg480private-Reviewed
60_apportion507private-Reviewed; HACK-06
61_sumSources517private-Reviewed
62_canonicalSource524private-Reviewed
63_pullStaked537private-Reviewed
64_pullStakedMulti556private-Reviewed
65_pullOne581private-Reviewed
66minStakeRequired612external-Reviewed
67bridgeTokenOut620external-Reviewed; HACK-02
68bridgeTokenOutWithFee631external-Reviewed; HACK-02
69_bridgeTokenOut641private-Reviewed; HACK-02
70_send660private-Reviewed
71_toRemoteMessage694private-Reviewed
72_ccipReceive719internal-Reviewed; HACK-15
73_bookAll764private-Reviewed
74_safeDecodeExit786private-Reviewed
75decodeExit795external-Reviewed
76handleExit803external-Reviewed; HACK-02 token push; HACK-25 liquid
77claimNative881external-Reviewed
78claimToken892external-Reviewed
79claimStaked910external-Reviewed
80claimLiquid931external-Reviewed
81receive951external-Reviewed
src/AlphaToken.sol
82constructor27external-Reviewed
83mint33externalonlyVaultReviewed
84burn37externalonlyVaultReviewed
85getCCIPAdmin54external-Reviewed
src/SpokeGateway.sol
86constructor94external-Reviewed; HACK-07
87setMaxIntegratorFeeBps115external-Reviewed
88_validateIntegratorFee123private-Reviewed
89_integratorCut131private-Reviewed
90_payIntegrator135private-Reviewed
91setBridgeFeeBps142external-Reviewed
92setFeeRecipient152external-Reviewed; HACK-17
93_grossFee161private-Reviewed
94quoteBridgeToFinney166external-Reviewed
95quoteBridgeToFinney175public-Reviewed
96quoteBridgeToFinneyWithFee188external-Reviewed
97_quote198private-Reviewed
98bridgeToFinney219external-Reviewed; HACK-18
99bridgeToFinney229public-Reviewed; HACK-18
100bridgeToFinneyWithFee242external-Reviewed
101_bridge252private-Reviewed
102_settle281private-Reviewed
103_gas305private-Reviewed
104_message309private-Reviewed
src/ExitPayload.sol
105encode23internal-Reviewed
106decode29internal-Reviewed
src/interfaces/IAlphaVault.sol
107depositLiquid7external-Interface
108depositStaked11external-Interface
109withdrawStaked14external-Interface; HACK-12 comment
110withdrawLiquid17external-Interface
111isPaused20external-Interface; HACK-20
112positionOf23external-Interface
113isListed25external-Interface
114vaultColdkey29external-Interface
115emissionsRecipient33external-Interface
116STAKING34external-Interface
117hasRole38external-Interface
118ccipAdmin42external-Interface
src/interfaces/IAlphaToken.sol
119VAULT6external-Interface
120mint7external-Interface
121burn8external-Interface
122totalSupply9external-Interface
123balanceOf10external-Interface
src/interfaces/IStaking.sol
124addStake11external-Interface
125removeStake12external-Interface
126moveStake13external-Interface
127transferStake21external-Interface
128transferStakeFrom29external-Interface
129approve38external-Interface
130allowance40external-Interface
131claimRoot52external-Interface
132claimRootWithHotkey55external-Interface
133getStake57external-Interface
134getNominatorMinRequiredStake58external-Interface
src/interfaces/IBalanceTransfer.sol
135transfer10external-Interface
legacy/v5/src/AlphaGateway.sol
136constructor163external-v5 pull (diff)
137setBridgeFeeBps191externalonlyVaultAdmin,onlyVaultSame as v6
138setFeeRecipient199externalonlyVaultAdmin,onlyVaultSame as v6
139setMaxIntegratorFeeBps205externalonlyVaultAdmin,onlyVaultSame as v6
140_validateIntegratorFee212private-Same as v6
141_integratorCut220private-Same as v6
142integratorTaoTopUp227public-Same as v6
143integratorCut237public-Same as v6
144_payIntegrator242private-Same as v6
145_feeRecipient250private-Same as v6
146_grossFee258private-Same as v6
147setLane265externalonlyVaultAdmin,onlyVaultSame as v6
148quoteBridgeOut278public-Same as v6
149quoteBridgeOutWithFee293external-Same as v6
150_quoteBridgeOut307private-Same as v6
151bridgeOut339external-v5 pull (diff)
152bridgeOutWithFee356external-v5 pull (diff)
153_bridgeOut368private-v5 pull (diff)
154_pullStaked414private-v5 pull (diff)
155bridgeTokenOut428external-Same as v6
156bridgeTokenOutWithFee439external-Same as v6
157_bridgeTokenOut449private-Same as v6
158_send468private-Same as v6
159_toRemoteMessage502private-Same as v6
160_ccipReceive527internal-Same as v6
161_bookAll572private-Same as v6
162_safeDecodeExit594private-Same as v6
163decodeExit603external-Same as v6
164handleExit611external-Same as v6
165claimNative689external-Same as v6
166claimToken700external-Same as v6
167claimStaked718external-Same as v6
168claimLiquid739external-Same as v6
169receive759external-Same as v6
script/DeployAlpha.s.sol
170run46external-Reviewed; HACK-05, HACK-23
171addToken132external-Reviewed
172_deployToken190internal-Reviewed; HACK-05, HACK-03 path
173_handoffVault237internal-Reviewed; ccipAdmin to operator
script/DeploySpoke.s.sol
174run33external-Reviewed; HACK-03 mint path
175_guardPredicted135internal-Reviewed
176_assertDeployed159internal-Reviewed
script/DeployGovernance.s.sol
177run37external-Reviewed
178deploy49public-Reviewed; Timelock self-admin
script/DeployRhTokenOnly.s.sol
179run13external-Reviewed
script/DeploySpokeGatewayOnly.s.sol
180run17external-Reviewed
script/DeploySpokeToken.s.sol
181run19external-Reviewed; grantMintAndBurnRoles
182_lane58internal-Reviewed
183_handoff75internal-Reviewed
script/DeploySubPoolOnly.s.sol
184run20external-Reviewed
185_lane45internal-Reviewed
script/ResumeDeploy.s.sol
186resume34external-Reviewed; same helpers as DeployAlpha
script/RegisterLane.s.sol
187run30external-Reviewed
script/VerifyWiring.s.sol
188run36external-Reviewed; HACK-24
189_check87internal-Reviewed
script/Config.sol
190name54internal-Reviewed
191symbol58internal-Reviewed
192_u62private-Reviewed
193registerAdminViaGetCCIPAdmin75external-Reviewed
194registerAdminViaOwner76external-Reviewed
195acceptAdminRole88external-Reviewed
196setPool89external-Reviewed
197getPool90external-Reviewed
198getTokenConfig91external-Reviewed
199transferAdminRole92external-Reviewed

3   Findings overview

CriticalHighMediumLowInformational
000718
Security analysisRisk levelRemediation
(HACK-01) MINTOKENOUT USES WEI WHILE THE VAULT BOUND USES RAOLow (3.4)ACKNOWLEDGED
(HACK-02) BRIDGETOKENOUT IGNORES THE VAULT HALTLow (2.5)ACKNOWLEDGED
(HACK-03) POOL OWNER CAN WITHDRAW LOCKED TOKENS AND REDEEMLow (2.0)ACKNOWLEDGED
(HACK-04) ADMINHOLD CLOSES WITHDRAWALS FOR THE MIGRATION WINDOWLow (2.0)ACKNOWLEDGED
(HACK-05) TAO CCIP REGISTRY ADMIN IS AN EOALow (2.0)SOLVED - 10/01/2026
(HACK-22) INTEGRATOR TOP-UP BELOW MINSTAKE REVERTS THE BRIDGELow (2.5)SOLVED - 10/02/2026
(HACK-25) PRECOMPILE MINS REVERT SMALL LIQUID EXITS AND DUST MOVESLow (2.5)PARTIALLY SOLVED - 10/02/2026
(HACK-06) FEE COMMENT SAYS SOURCE 0, CODE SPLITS THE CUTInformational (1.7)SOLVED - 10/01/2026
(HACK-07) SPOKES SEND INBOUND TRAFFIC TO THE V5 HUBInformational (0.3)ACKNOWLEDGED
(HACK-08) BASE TAO RATE-LIMIT ADMIN IS AN EOAInformational (0.3)SOLVED - 10/01/2026
(HACK-09) SOURCE PRAGMA ACCEPTS ANY 0.8 COMPILER FROM 0.8.24Informational (0.9)SOLVED - 10/01/2026
(HACK-10) SKIM AND CLAIMROOT NATSPEC STILL SAY PERMISSIONLESSInformational (1.7)SOLVED - 10/01/2026
(HACK-11) MIGRATIONFINISHED COMMENT SAYS WITHDRAWALS STAY OPENInformational (1.7)SOLVED - 10/01/2026
(HACK-12) COMMENTS CALL TRANSFERSTAKE EXACTInformational (1.7)SOLVED - 10/02/2026
(HACK-13) LANE COMMENT CLAIMS A TIMELOCK AND A 5/9Informational (1.7)SOLVED - 10/02/2026
(HACK-14) BRIDGEOUTWITHFEE NAMES A FUNCTION THAT DOES NOT EXISTInformational (0.3)SOLVED - 10/01/2026
(HACK-15) CCIPRECEIVE COMMENTS NAME THE WRONG CLAIM ADDRESSInformational (0.9)SOLVED - 10/01/2026
(HACK-16) FEE CEILING NATSPEC SITS ON MAX_STAKE_SOURCESInformational (0.9)SOLVED - 10/01/2026
(HACK-17) SPOKE FEE COMMENT SAYS THE DESTINATION IS IMMUTABLEInformational (1.7)SOLVED - 10/01/2026
(HACK-18) SPOKE COMMENT SAYS A 6-ARG BRIDGE AND NATIVE ETHInformational (0.3)SOLVED - 10/01/2026
(HACK-19) VAULT HEADER OVERSTATES THE SLIPPAGE RULEInformational (0.9)SOLVED - 10/01/2026
(HACK-20) IALPHAVAULT SAYS EVERY ROUTE REVERTS WHILE PAUSEDInformational (1.7)SOLVED - 10/01/2026
(HACK-21) BRIDGE FEE COMMENT SAYS 100 TAO MINTS 100 WTAOInformational (0.9)SOLVED - 10/01/2026
(HACK-23) DEPLOYALPHA ACCEPTS A COLDKEY FOR NO ADDRESSInformational (0.5)SOLVED - 10/02/2026
(HACK-24) VERIFYWIRING SKIPS POOL OWNER AND REBALANCERInformational (0.3)SOLVED - 10/01/2026

4   Findings

4.1 (HACK-01) MINTOKENOUT USES WEI WHILE THE VAULT BOUND USES RAO

Low (3.4) Token integration ACKNOWLEDGED
Description

AlphaVault.depositLiquid takes minAlphaRao. One TAO of root alpha is 1e9 in that unit. AlphaGateway.bridgeOut takes minTokenOut and compares it to the 18-decimal amount that crosses. The gateway calls depositLiquid with minAlphaRao = 0 and applies minTokenOut afterwards. A caller who copies the vault unit and passes 9e9 for a 10 TAO bridge sets a floor of 9e-9 token, not 9 TAO.

_bridgeOut reverts when minted < minTokenOut. With a 99% staking fee the mock credited 0.1 token (1e17 wei). 1e17 > 9e9, so the bridge completed and the router locked 0.1 token. The NatSpec on bridgeOut states the wei unit. The two entry points that a caller uses for the same stake still disagree, and the gateway disables the vault check.

Code location

Listing 1: src/AlphaGateway.sol, _bridgeOut (Lines 448-470)

448 // native TAO, and it bridges like any ERC20 - so this denies them nothing.
449 uint256 taoTopUp = integratorTaoTopUp(taoAmount, fee.bps);
450 if (msg.value < taoAmount + taoTopUp) revert InsufficientValue();
451
452 if (taoAmount > 0) {
453 if (taoAmount % RAO != 0) revert AmountNotWholeRAO();
454 minted += VAULT.depositLiquid{value: taoAmount}(token, 0); // total bounded by minTokenOut below
455 if (taoTopUp > 0) mintedForIntegrator += VAULT.depositLiquid{value: taoTopUp}(token, 0);
456 }
457 if (sources.length > 0) {
458 // Extracted into a helper purely for stack depth (this file compiles without via-ir).
459 (uint256 stakedMint, uint256 stakedFeeMint) = _stakedLeg(token, sources, fee);
460 minted += stakedMint;
461 mintedForIntegrator += stakedFeeMint;
462 }
463
464 if (minted == 0) revert ZeroAmount();
465 if (minted < minTokenOut) revert Slippage();
466 // A plain ERC20 transfer: no callback, so a caller-chosen recipient never gets control here.
467 _payIntegrator(token, mintedForIntegrator, fee);
468
469 messageId = _send(destSelector, token, recipient, minted, taoAmount + taoTopUp);
470 }

Listing 2: src/AlphaVault.sol, depositLiquid (Lines 327-348)

327 function depositLiquid(address token, uint256 minAlphaRao)
328 external
329 payable
330 whenNotHalted
331 whenNotMigrating
332 nonReentrant
333 onlyListed(token)
334 returns (uint256 minted)
335 {
336 if (msg.value == 0) revert ZeroAmount();
337 if (msg.value % RAO != 0) revert NotWholeRao();
338 TokenConfig storage c = _configs[token];
339
340 uint256 s0 = _stakedRao(c);
341 STAKING.addStake(c.validator, msg.value / RAO, c.netuid);
342 uint256 received = _stakedRao(c) - s0;
343 if (received < minAlphaRao || received == 0) revert Slippage();
344
345 minted = received * RAO;
346 IAlphaToken(token).mint(msg.sender, minted);
347 emit DepositLiquid(token, msg.sender, msg.value, minted);
348 }
Proof of concept

test/audit/PrivilegedPaths.t.sol test_raoDenominatedMinTokenOutDoesNotStopSlippage passed.

  1. Mock staking fee is 9,900 bps. Alice calls bridgeOut with taoAmount = 10 ether and minTokenOut = 9 * 1e9.
  2. The router balance of the AlphaToken is 0.1 ether wei. That is greater than 9e9 and less than 9 tokens.
BVSS

AO:A/AC:L/AX:M/C:N/I:N/A:N/D:M/Y:N/R:N/S:U (3.4)

Recommendation

Make bridgeOut take the slippage floor in RAO, the same unit as depositLiquid, and pass that floor into depositLiquid instead of 0. Keep a wei overload only if the name says wei.

Remediation plan

ACKNOWLEDGED: The ForeverMoney team made a business decision to acknowledge this finding and not alter the contracts. minTokenOut stays 18-decimal wei. depositLiquid is still called with minAlphaRao = 0. The measured mint is still compared with minTokenOut afterwards.

4.2 (HACK-02) BRIDGETOKENOUT IGNORES THE VAULT HALT

Low (2.5) Availability ACKNOWLEDGED
Description

guardianPause and adminHold are the halt. depositLiquid, withdrawLiquid, and skim use whenNotHalted. _bridgeTokenOut pulls a listed token and calls ccipSend with no read of VAULT.isPaused(). A holder can move wrapped tokens onto a spoke while every vault route is halted.

handleExit delivers the wrapped token to evmFallback when wantLiquid is false and ss58 is zero, and it does that before the isPaused check. The comment says that branch does not touch the vault. The halt still does not cover it. Stake is unchanged. The pause does not freeze the claim the token represents.

Code location

Listing 3: src/AlphaGateway.sol, _bridgeTokenOut (Lines 641-656)

641 function _bridgeTokenOut(
642 uint64 destSelector,
643 address token,
644 address recipient,
645 uint256 amount,
646 IntegratorFee memory fee
647 ) private returns (bytes32 messageId) {
648 if (amount == 0) revert ZeroAmount();
649 if (!VAULT.isListed(token)) revert UnsupportedToken(token);
650 _validateIntegratorFee(fee);
651 uint256 cut = _integratorCut(amount, fee);
652 // pull the amount AND the integrator's cut on top; the full amount crosses
653 if (!IERC20(token).transferFrom(msg.sender, address(this), amount + cut)) revert PullFailed();
654 _payIntegrator(token, cut, fee);
655 messageId = _send(destSelector, token, recipient, amount, 0);
656 }

Listing 4: src/AlphaGateway.sol, handleExit (Lines 811-829)

811 // dust included (an ERC20 transfer has no whole-RAO constraint), and regardless of a halt
812 // (this never touches the vault). A false return or a revert propagates to the outer catch
813 // in `_ccipReceive`, which books `amount` claimable to this same address.
814 if (!wantLiquid && ss58 == bytes32(0)) {
815 if (!IERC20(token).transfer(evmFallback, amount)) revert TransferFailed();
816 emit DeliveredToken(token, evmFallback, amount);
817 return;
818 }
819
820 uint256 exitAmount = amount - (amount % RAO); // whole-RAO
821 uint256 dust = amount - exitAmount;
822
823 // While the vault is halted, every withdrawal route reverts. Book the whole amount claimable
824 // to the user's own fallback - redeemable (claimStaked/claimLiquid/claimToken) once unpaused.
825 if (amount > 0 && VAULT.isPaused()) {
826 claimableToken[token][evmFallback] += amount; // evmFallback is rescuer-defaulted, never zero
827 emit Claimable(token, evmFallback, 0, amount);
828 return;
829 }
Proof of concept

test_bridgeTokenOutWorksWhileVaultIsHalted passed.

  1. Alice deposits 4 TAO. The guardian pauses for 1 day. isPaused() is true.
  2. Alice calls bridgeTokenOut. The mock router holds the full 4 tokens. Alice's balance is 0.
BVSS

AO:A/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:N/S:U (2.5)

Recommendation

Revert _bridgeTokenOut and the token-push branch of handleExit when VAULT.isPaused() is true. Book the push as claimable the same way the unwrap branch does.

Remediation plan

ACKNOWLEDGED: The ForeverMoney team made a business decision to acknowledge this finding and not alter the contracts. bridgeTokenOut still does not read isPaused. AlphaToken has no pause. A lane removed with setLane books an in-flight arrival as claimable.

4.3 (HACK-03) POOL OWNER CAN WITHDRAW LOCKED TOKENS AND REDEEM

Low (2.0) Trust / custody ACKNOWLEDGED
Description

DeployAlpha deploys LockReleaseTokenPool with acceptLiquidity = false and transfers ownership to the operator. provideLiquidity reverts LiquidityNotAccepted. withdrawLiquidity does not read that flag. It transfers amount of the pool's token balance to msg.sender when msg.sender == s_rebalancer. setRebalancer is onlyOwner.

On chain 964 at block 9,179,723 the owner of all four pools is the Safe 0xADF60fcC63217961c931d57f1dCE2C5d70Af3546 (2 of 3). Each rebalancer is address(0). That Safe also holds vault DEFAULT_ADMIN_ROLE, OPERATOR_ROLE, and GUARDIAN_ROLE. It can set the rebalancer to itself, withdraw the locked AlphaTokens, and redeem them through the vault. The 7-day MIGRATION_DELAY is not on this path.

The same Safe is DEFAULT_ADMIN_ROLE on Base token 0xf3081494b87e8d5fb7960f066e931d1d0e6e3d67 (supply 5,134.009212314199671498). BurnMintERC20.grantMintAndBurnRoles grants MINTER_ROLE. A mint on Base, bridged home, asks the hub pool to release locked AlphaTokens to the minter. That is a second path to the same locked balance.

Pool balances at that block: TAO pool 0xB66b9c085ab711ECC373aaF6dc959a4A6B42BE2e held 8,951.129835383429495505 of supply 8,951.166737462. SN80 pool held 23,575.575852066 of supply 23,578.734169179. SN10 pool balance equalled supply 20,335.225022977. SN78 pool balance equalled supply 33,586.775532081.

Code location

Listing 5: lib/chainlink-ccip/chains/evm/contracts/pools/LockReleaseTokenPool.sol, setRebalancer and withdrawLiquidity (Lines 97-132)

97 /// @notice Sets the rebalancer address.
98 /// @dev Only callable by the owner.
99 function setRebalancer(
100 address rebalancer
101 ) external onlyOwner {
102 s_rebalancer = rebalancer;
103 }
104
105 /// @notice Checks if the pool can accept liquidity.
106 /// @return true if the pool can accept liquidity, false otherwise.
107 function canAcceptLiquidity() external view returns (bool) {
108 return i_acceptLiquidity;
109 }
110
111 /// @notice Adds liquidity to the pool. The tokens should be approved first.
112 /// @param amount The amount of liquidity to provide.
113 function provideLiquidity(
114 uint256 amount
115 ) external {
116 if (!i_acceptLiquidity) revert LiquidityNotAccepted();
117 if (s_rebalancer != msg.sender) revert Unauthorized(msg.sender);
118
119 i_token.safeTransferFrom(msg.sender, address(this), amount);
120 emit LiquidityAdded(msg.sender, amount);
121 }
122
123 /// @notice Removed liquidity to the pool. The tokens will be sent to msg.sender.
124 /// @param amount The amount of liquidity to remove.
125 function withdrawLiquidity(
126 uint256 amount
127 ) external {
128 if (s_rebalancer != msg.sender) revert Unauthorized(msg.sender);
129
130 if (i_token.balanceOf(address(this)) < amount) revert InsufficientLiquidity();
131 i_token.safeTransfer(msg.sender, amount);
132 emit LiquidityRemoved(msg.sender, amount);

Listing 6: script/DeployAlpha.s.sol, _deployToken pool (Lines 206-216)

206 pool = new LockReleaseTokenPool(
207 IERC20(address(token)), Cfg.DECIMALS, new address[](0), Cfg.SUB_RMN_PROXY, false, Cfg.SUB_ROUTER
208 );
209
210 IRegistryModuleOwnerCustom(Cfg.SUB_REGISTRY_MODULE).registerAdminViaGetCCIPAdmin(address(token));
211 ITokenAdminRegistry(Cfg.SUB_TOKEN_ADMIN_REGISTRY).acceptAdminRole(address(token));
212 ITokenAdminRegistry(Cfg.SUB_TOKEN_ADMIN_REGISTRY).setPool(address(token), address(pool));
213
214 // Guardian gets rateLimitAdmin (fast lane throttle) regardless of the admin handoff - a
215 // distinct GUARDIAN on a non-handoff run must not silently skip this wiring.
216 pool.setRateLimitAdmin(guardian);
Proof of concept

test_poolOwnerDrainsLockedTokensAndRedeems passed.

  1. Alice depositLiquids 10 TAO. Her AlphaTokens are transferred to a LockReleaseTokenPool deployed with acceptLiquidity = false, which is the shape of a CCIP lock.
  2. provideLiquidity(1) reverts LiquidityNotAccepted.
  3. The owner calls setRebalancer(owner) and withdrawLiquidity(10 ether), then vault.withdrawLiquid for the full balance.
  4. The owner receives 10 TAO. Pool balance is 0. Vault backing is 0. Alice's token balance is 0.
BVSS

AO:S/AC:L/AX:L/C:N/I:N/A:N/D:C/Y:N/R:N/S:U (2.0)

Recommendation

Move pool ownership and the Base token DEFAULT_ADMIN_ROLE to a timelock whose delay is at least MIGRATION_DELAY. Leave s_rebalancer at address(0) until a migration contract is the rebalancer, and do not grant that contract withdrawLiquid rights in the same step as the pull.

Remediation plan

ACKNOWLEDGED: The ForeverMoney team made a business decision to acknowledge this finding and not alter the contracts. On 2 October 2026 Safe 0xADF60fcC63217961c931d57f1dCE2C5d70Af3546 owned every hub pool and every getRebalancer() was address(0). A 4-of-6 Safe behind a timelock is planned. It is not in commit c637531.

4.4 (HACK-04) ADMINHOLD CLOSES WITHDRAWALS FOR THE MIGRATION WINDOW

Low (2.0) Trust / migration ACKNOWLEDGED
Description

initiateMigration stores migrationReadyAt = block.timestamp + 7 days and whenNotMigrating blocks new deposits. The vault comments say withdrawals stay open so holders can leave before executeMigration. withdrawLiquid and withdrawStaked also use whenNotHalted.

adminHold is onlyRole(OPERATOR_ROLE) and writes pausedUntil to any future timestamp. guardianPause is capped at 2 days. adminHold is not. executeMigration checks _requireMigrationReady and does not check isPaused. A halt that covers the 7 days stops the exit, and the move still runs. Live, the Safe in HACK-03 holds both OPERATOR_ROLE and DEFAULT_ADMIN_ROLE, so one 2-of-3 threshold can do both calls. defaultAdminDelay is 172,800 seconds and applies to admin rotation, not to adminHold.

Code location

Listing 7: src/AlphaVault.sol, adminHold (Lines 464-476)

464 /// @notice OPERATOR override for the halt window: `until` in the future holds (may exceed the
465 /// guardian's cap); `until` at/below now LIFTS the halt (emits Unhalted).
466 function adminHold(uint256 until) external onlyRole(OPERATOR_ROLE) {
467 if (until > block.timestamp) {
468 pausedUntil = until;
469 // If this SHORTENS a halt, re-anchor the guardian cooldown to the new (earlier) end.
470 uint256 cooldownEnd = until + COOLDOWN;
471 if (cooldownEnd < pauseableAfter) pauseableAfter = cooldownEnd;
472 emit Halted(msg.sender, until);
473 } else {
474 _lift();
475 }
476 }

Listing 8: src/AlphaVault.sol, executeMigration and _requireMigrationReady (Lines 746-768)

746 function executeMigration(address token)
747 external
748 onlyRole(DEFAULT_ADMIN_ROLE)
749 nonReentrant
750 onlyListed(token)
751 returns (uint256 alphaRao)
752 {
753 _requireMigrationReady();
754 migrationExecuted = true;
755 alphaRao = _move(token);
756 }
757
758 function _requireMigrationReady() private view {
759 if (migrationReadyAt == 0) revert MigrationNotInitiated();
760 if (block.timestamp < migrationReadyAt) revert MigrationNotReady();
761 }
762
763 function _move(address token) private returns (uint256 alphaRao) {
764 TokenConfig storage c = _configs[token];
765 alphaRao = _stakedRao(c);
766 if (alphaRao == 0) revert ZeroAmount();
767 STAKING.transferStake(migrationColdkey, c.validator, c.netuid, c.netuid, alphaRao);
768 emit MigrationExecuted(token, migrationTarget, alphaRao);
Proof of concept

test_adminHoldBlocksExitForTheWholeMigrationWindow passed.

  1. Alice deposits 10 TAO. Operator calls adminHold(block.timestamp + 30 days). Admin calls initiateMigration.
  2. Warp 8 days. Alice's withdrawLiquid and withdrawStaked revert IsHalted.
  3. executeMigration returns 10 ether / 1e9 RAO moved. Alice still holds the tokens. backing is 0.
BVSS

AO:S/AC:L/AX:L/C:N/I:N/A:N/D:C/Y:N/R:N/S:U (2.0)

Recommendation

Keep withdrawLiquid and withdrawStaked available while migrationReadyAt != 0 and migrationFinished is false, including when pausedUntil is in the future. Reject adminHold past migrationReadyAt once a migration is pending.

Remediation plan

ACKNOWLEDGED: The ForeverMoney team made a business decision to acknowledge this finding and not alter the contracts. adminHold can still cover the migration window, and executeMigration still does not read the halt. initiateMigration, MIGRATION_DELAY, and migrationFinished now say withdrawals are not guaranteed. The ForeverMoney team acknowledges that a later sentence on executeMigration is wrong. AlphaVault.sol line 764 at c637531 still calls the exit window the protection.

4.5 (HACK-05) TAO CCIP REGISTRY ADMIN IS AN EOA

Low (2.0) Trust / CCIP admin SOLVED - 10/01/2026
Description

DeployAlpha._deployToken calls transferAdminRole(token, custodian) when the custodian is not the deployer, and the comment says setPool is the pool-repoint path. Chainlink's TokenAdminRegistry.setPool requires the registry administrator. The off-ramp then calls whatever pool that registry entry names.

At block 9,179,723, getTokenConfig on TAO (0xC5b6C1632d34901239396F5E1BDe54B342900256) returned administrator 0x366d4814d27BE5745B9e75D54478c664074e96B5, pending administrator address(0), pool 0xB66b9c085ab711ECC373aaF6dc959a4A6B42BE2e. That administrator's codesize is 0. SN80, SN10, and SN78 administrators are the Safe from HACK-03. The EOA can setPool on the TAO token without the 2-of-3 threshold.

Code location

Listing 9: script/DeployAlpha.s.sol, registry handoff (Lines 218-231)

218 if (custodian != deployer) {
219 // Registry admin + pool ownership go to the OPERATOR, for EVERY token including this
220 // first one. Uniformity is the point: a token registered by the operator (via
221 // ccipAdmin) already lands there, so sending only the deploy-time token to the
222 // timelock would mean "who can setPool on token X" depended on when X was listed -
223 // exactly the question you do not want to have to research during an incident.
224 //
225 // The cost is explicit: setPool is the repoint-the-pool vector and it is now undelayed
226 // for all tokens. Root still bounds it - DEFAULT_ADMIN owns setCcipAdmin, so it
227 // decides who may register future tokens at all, and can walk any token's registry
228 // admin back with transferAdminRole + acceptAdminRole.
229 ITokenAdminRegistry(Cfg.SUB_TOKEN_ADMIN_REGISTRY).transferAdminRole(address(token), custodian);
230 pool.transferOwnership(custodian);
231 }
Proof of concept
  1. At chain 964 block 9,179,723, cast call 0xe72d25aDd538E8ef9CeF85622eA8912a6CB98Be6 "getTokenConfig(address)((address,address,address))" 0xC5b6C1632d34901239396F5E1BDe54B342900256 returned (0x366d4814d27BE5745B9e75D54478c664074e96B5, 0x0000000000000000000000000000000000000000, 0xB66b9c085ab711ECC373aaF6dc959a4A6B42BE2e).
  2. cast codesize 0x366d4814d27BE5745B9e75D54478c664074e96B5 returned 0.
  3. The same call for SN80, SN10, and SN78 returned administrator 0xADF60fcC63217961c931d57f1dCE2C5d70Af3546.
BVSS

AO:S/AC:L/AX:L/C:N/I:N/A:N/D:C/Y:N/R:N/S:U (2.0)

Recommendation

transferAdminRole the TAO token to the same timelock used for HACK-03, then acceptAdminRole from that timelock. Confirm getTokenConfig no longer returns the EOA before any further lane change.

Remediation plan

SOLVED: The ForeverMoney team solved the issue on 1 October 2026 by moving the TAO registry administrator to the GOV Safe. transferAdminRole is transaction 0x319cd9ea985437c9ea1c1182f8224128e8d1613533acbdffa5e707b528c50653 (chain 964 block 9,188,341). acceptAdminRole is Safe execTransaction 0xe65b1cc174dc4d239b5b5a1107762f3e5b89a45a129b8c73714ca44e8fedf528 (block 9,188,537). getTokenConfig for TAO, SN10, SN78, SN80, SN118, and SN120 returns the Safe and a zero pending administrator. The previous administrator has no code. The new administrator is that same 2-of-3 Safe. HACK-03 still covers what that Safe can do with the pools.

4.6 (HACK-06) FEE COMMENT SAYS SOURCE 0, CODE SPLITS THE CUT

Informational (1.7) Documentation SOLVED - 10/01/2026
Description

bridgeOutFromValidatorsWithFee says the integrator's extra alpha is pulled from sources[0]. _stakedLeg computes integratorCut(total, bps) and _apportion adds a pro-rata share to every source, with rounding dust on sources[0]. The sum of the added amounts is cut.

A caller who funds only sources[0] for the extra, matching the function comment, fails the allowance or the balance on the other sources. A caller who approved a larger balance on every source pays the fee they signed, drawn from each validator. test_integratorCutIsProRataAcrossEverySource locks the pro-rata behaviour. The comment on the external function was not updated.

Code location

Listing 10: src/AlphaGateway.sol, bridgeOutFromValidatorsWithFee (Lines 412-425)

412 /// @notice `bridgeOutFromValidators` with an integrator fee ON TOP. The integrator's extra alpha
413 /// is pulled from `sources[0]`, so budget that position for `alphaRao + integratorCut`.
414 function bridgeOutFromValidatorsWithFee(
415 uint64 destSelector,
416 address token,
417 address recipient,
418 uint256 taoAmount,
419 StakeSource[] calldata sources,
420 uint256 minTokenOut,
421 IntegratorFee calldata fee
422 ) external payable returns (bytes32 messageId) {
423 if (sources.length == 0) revert NoStakeSources();
424 return _bridgeOut(destSelector, token, recipient, taoAmount, sources, minTokenOut, fee);
425 }

Listing 11: src/AlphaGateway.sol, _apportion (Lines 503-515)

503 /// @dev Add `cut` to `sources` in proportion to each entry's share of `total`, in place. The
504 /// FIRST source absorbs the rounding dust so the apportioned amounts sum to exactly `cut`.
505 /// @param total The sum of `sources` BEFORE apportionment - the caller owns computing it, so the
506 /// proportions cannot drift as this function mutates the array.
507 function _apportion(StakeSource[] memory sources, uint256 total, uint256 cut) private pure {
508 uint256 assigned;
509 for (uint256 i = 1; i < sources.length; ++i) {
510 uint256 share = (cut * sources[i].alphaRao) / total;
511 sources[i].alphaRao += share;
512 assigned += share;
513 }
514 sources[0].alphaRao += cut - assigned;
515 }
Proof of concept

No new simulation. MultiValidatorDeposit.t.sol test_integratorCutIsProRataAcrossEverySource passed in the forge test run and asserts the split.

BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Replace the sources[0] sentence on bridgeOutFromValidatorsWithFee with the pro-rata rule in _stakedLeg, including that sources[0] takes the remainder.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by describing the pro-rata integrator cut on bridgeOutFromValidatorsWithFee, with sources[0] taking the rounding remainder. That matches _apportion. Confirmed at c637531.

4.7 (HACK-07) SPOKES SEND INBOUND TRAFFIC TO THE V5 HUB

Informational (0.3) Operations ACKNOWLEDGED
Description

SpokeGateway.SUBTENSOR_GATEWAY is immutable. The Base spoke at 0x1da2415229b614C787e145D1D7346eb496319C52 returns 0xcd0C6d98D0A126B1c113d15b4c28F38321437787, the v5 hub. The README says the SDK uses v6 (0xd5Fa238aa4177f6c1341491969d9cBeec94EEd69) for outbound transfers from Bittensor. Both hubs had Base selector 15971525489660198786 and Robinhood selector 6180753054346818345 allowed at block 9,179,723.

allowedLane is storage on each gateway. A lane added only on v6 does not change v5. An arrival on v5 from a selector v5 has not allowed is booked claimable by _bookAll and is not delivered. The v5 handleExit body matches v6, so a message that v5 does accept follows the same exit code. The tokens are not burned without a booking.

Code location

Listing 12: src/SpokeGateway.sol, constructor (Lines 94-112)

94 constructor(
95 address router,
96 uint64 bittensorSelector,
97 address subtensorGateway,
98 address feeAdmin,
99 address feeRecipient_
100 ) {
101 if (router == address(0) || subtensorGateway == address(0)) revert ZeroAddress();
102 if (feeAdmin == address(0) || feeRecipient_ == address(0)) revert ZeroAddress();
103 FEE_ADMIN = feeAdmin;
104 feeRecipient = feeRecipient_;
105 if (bittensorSelector == 0) revert ZeroSelector(); // a uint64 selector, not an address
106 ROUTER = router;
107 BITTENSOR_SELECTOR = bittensorSelector;
108 SUBTENSOR_GATEWAY = subtensorGateway;
109 maxIntegratorFeeBps = DEFAULT_MAX_INTEGRATOR_FEE_BPS;
110 emit Initialized(router, bittensorSelector, subtensorGateway);
111 emit MaxIntegratorFeeChanged(DEFAULT_MAX_INTEGRATOR_FEE_BPS);
112 }
Proof of concept
  1. On Base, SpokeGateway.SUBTENSOR_GATEWAY() at 0x1da2415229b614C787e145D1D7346eb496319C52 returned 0xcd0C6d98D0A126B1c113d15b4c28F38321437787.
  2. On chain 964, allowedLane for the Base and Robinhood selectors was true on both v5 and v6.
BVSS

AO:S/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:P/S:U (0.3)

Recommendation

When setLane runs, call it on the v5 hub as well as v6 until the spokes' immutable gateway is the v6 address. A spoke redeploy is required to change SUBTENSOR_GATEWAY.

Remediation plan

ACKNOWLEDGED: The ForeverMoney team made a business decision to acknowledge this finding and not alter the contracts. On 2 October 2026 Base SpokeGateway.SUBTENSOR_GATEWAY() was still 0xcd0C6d98D0A126B1c113d15b4c28F38321437787, the v5 hub. v5 and v6 both allowed the Base and Robinhood selectors. New setLane calls are supposed to be mirrored onto v5. That rule is not in the contracts.

4.8 (HACK-08) BASE TAO RATE-LIMIT ADMIN IS AN EOA

Informational (0.3) Token integration SOLVED - 10/01/2026
Description

The Base TAO BurnMintTokenPool at 0xF5AC6D6Bd12d8b87dE3c136FAc9375961577e794 returns 0x986F193C1eE51CD9B4dEd5b3D1Fd1C088a1193C7 from getRateLimitAdmin(). That account has no code. setChainRateLimiterConfig accepts the rate-limit admin or the pool owner. The owner is the Safe. The hub TAO pool's rate-limit admin is the zero address, so on 964 only the Safe can change those buckets.

An enabled bucket with zero capacity stops TAO on the Base lane in that direction. The call does not move locked tokens and does not mint. The Safe can point the admin back at itself and write the previous bucket. At the read, both directions were enabled with capacity 5,000 tokens and a refill of 0.6 token per second. isCursed() was false on 964, Base, and Robinhood.

BVSS

AO:S/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:P/S:U (0.3)

Recommendation

Set the Base TAO rate-limit admin to the Safe, or to the zero address so only the owner can change the buckets.

Remediation plan

SOLVED: The ForeverMoney team solved the issue on 1 October 2026 by moving the Base TAO rate-limit admin to the GOV Safe. Safe execTransaction 0xbe8080f58c1e069b4605870502ec440f4551ee8ba79d294d4efcf5dc9e47e42d (Base block 52,037,828) called setRateLimitAdmin on pool 0xF5AC6D6Bd12d8b87dE3c136FAc9375961577e794. getRateLimitAdmin() returns that Safe. The previous administrator, 0x986F193C1eE51CD9B4dEd5b3D1Fd1C088a1193C7, has no code.

4.9 (HACK-09) SOURCE PRAGMA ACCEPTS ANY 0.8 COMPILER FROM 0.8.24

Informational (0.9) Compiler SOLVED - 10/01/2026
Description

Every file under src/, legacy/v5/src/, and script/ opens with pragma solidity ^0.8.24. That range is 0.8.24 up to, and not including, 0.9.0. foundry.toml pins solc_version = "0.8.26" and evm_version = "paris". The runtime compared in chapter 9 was built with that pin. The pragma does not carry the pin. solc on the same file, or a Foundry profile that drops solc_version, will accept another 0.8 compiler.

A later 0.8 release can change codegen without changing the source: the default EVM version, optimizer fixes, and opcode selection. This tree sets Paris because that is the build that matches mainnet. A compiler whose default is Cancun emits opcodes that pin does not. Patch releases of 0.8 have also shipped optimizer bugs. The deployed addresses are unaffected, because their bytecode is already the 0.8.26 artifact. A rebuild that follows the pragma and ignores the pin is a different program from the one this review read.

Listing 13: src/AlphaVault.sol

1// SPDX-License-Identifier: MIT
2pragma solidity ^0.8.24;

Listing 14: foundry.toml

6libs = ["lib"]
7solc_version = "0.8.26"
8evm_version = "paris"
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:P/S:U (0.9)

E = 1 * 1 * 0.67 = 0.67. I = 0.25. The Foundry pin is a partial control, so R = 0.5 and C = 0.5. 0.67 * 0.25 * 0.5 * 10 = 0.8375, rounded up to 0.9. Complexity is Medium because forge build as this repo documents it does not float. The bad compile is the one that leaves that pin.

Recommendation

Pin the pragma to 0.8.26 in every in-scope file, the same compiler foundry.toml already selects.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by pinning src/, script/, test/, and test-onchain/ to pragma solidity 0.8.26. foundry.toml still pins solc 0.8.26. The six files under legacy/v5/src/ stay ^0.8.24 so that tree remains a source mirror of the deployed v5 hub. Confirmed at c637531.

4.10 (HACK-10) SKIM AND CLAIMROOT NATSPEC STILL SAY PERMISSIONLESS

Informational (1.7) Documentation SOLVED - 10/01/2026
Description

The file header at lines 58-64 says skim and the claim routes are OPERATOR_ROLE. The NatSpec on skim still says "Permissionless". The function is onlyRole(OPERATOR_ROLE). claimRoot says "Permissionless, for the same reason skim is" and tells the reader that someone else paying the gas is a gift. That function is operator-only as well. skimStaked says it is operator-only because the destination is a free parameter, which is the old contrast with an open skim. Both harvests are operator-only.

A reader who trusts the function comments will treat surplus harvest and root claims as public. The calls revert for any account that does not hold OPERATOR_ROLE.

Code location

Listing 15: src/AlphaVault.sol, skim (Lines 537-546)

537
538 /// @notice Harvest `token`'s emissions as NATIVE TAO to `emissionsRecipient` (unstakes the
539 /// surplus). Permissionless; AMM proceeds bounded by `minTaoOut`; use `skimStaked` for a
540 /// guaranteed zero-slippage harvest on illiquid subnets.
541 function skim(address token, uint256 minTaoOut)
542 external
543 onlyRole(OPERATOR_ROLE)
544 whenNotHalted
545 nonReentrant
546 onlyListed(token)

Listing 16: src/AlphaVault.sol, claimRoot (Lines 578-599)

578
579 /// @notice Redeem this vault's accrued beta-basket entitlement across every validator it root-
580 /// stakes to, and report what it paid.
581 ///
582 /// @dev Permissionless, for the same reason `skim` is: the destination is not a parameter. The
583 /// runtime sells the basket share and stakes the proceeds under THIS vault's coldkey, so
584 /// a caller can only ever increase our backing. Someone else paying the gas is a gift.
585 ///
586 /// This exists because nobody else can do it for us. `claim_root_with_hotkey` takes the
587 /// staker's coldkey as origin, and ours is the EVM mirror of this address - no private
588 /// key, reachable only through this contract. The documented automatic rotation was not
589 /// observable on chain (400 blocks scanned, every RootClaimed came from a signed
590 /// extrinsic), so relying on it would be relying on nothing.
591 ///
592 /// @param token The listed token whose position to measure the gain against.
593 /// @return gained Increase in staked alpha, in RAO. The precompile returns nothing, so this
594 /// delta is the only honest report of the amount claimed.
595 function claimRoot(address token)
596 external
597 onlyRole(OPERATOR_ROLE)
598 whenNotHalted
599 nonReentrant
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Rewrite the skim, skimStaked, and claimRoot comments so they say OPERATOR_ROLE, matching the header and the modifiers.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by marking skim, skimStaked, and claimRoot as OPERATOR_ROLE in their NatSpec. Confirmed at c637531.

4.11 (HACK-11) MIGRATIONFINISHED COMMENT SAYS WITHDRAWALS STAY OPEN

Informational (1.7) Documentation SOLVED - 10/01/2026
Description

The NatSpec on migrationFinished says that after finishMigration withdrawals stay open for whatever backing was left behind. finishMigration sets pausedUntil to type(uint256).max. withdrawLiquid and withdrawStaked use whenNotHalted, so they revert IsHalted until an operator calls unpause or adminHold.

The comment on initiateMigration (line 645) is a different sentence and matches the code: deposits close for the notice window and withdrawals stay open until someone finishes the migration. The storage comment on migrationFinished describes the state after that finish, and that part is wrong.

Code location

Listing 17: src/AlphaVault.sol, migrationFinished (Lines 117-123)

117 address public migrationTarget;
118 bytes32 public migrationColdkey;
119 uint256 public migrationReadyAt; // 0 = no migration announced
120 /// @notice Set once by `finishMigration`, never unset. The vault is retired: deposits are shut
121 /// permanently, no further migration can be announced, and withdrawals stay open for
122 /// whatever backing was left behind.
123 bool public migrationFinished;

Listing 18: src/AlphaVault.sol, finishMigration (Lines 709-723)

709 address t = migrationTarget;
710 migrationFinished = true;
711 migrationTarget = address(0);
712 migrationColdkey = bytes32(0);
713 migrationReadyAt = 0;
714
715 // Halt every value route, indefinitely. Backing has moved but supply has not, so leaving
716 // withdrawals open would let whoever is quickest drain whatever positions were NOT
717 // migrated - first-come-first-served over other holders' backing. Stopping everything is
718 // the honest state for a vault that can no longer honour its own tokens.
719 //
720 // Set rather than added to, and deliberately liftable: OPERATOR `unpause`/`adminHold` can
721 // reopen it, which is the escape hatch if a listed token still has real backing that its
722 // holders need to exit. A halt nobody can lift would be a second, worse, stranding.
723 pausedUntil = type(uint256).max;
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Say on migrationFinished that finishMigration halts withdrawals, and that OPERATOR_ROLE can lift that halt.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by saying finishMigration halts every value route and that OPERATOR_ROLE can lift the halt, on migrationFinished. Confirmed at c637531.

4.12 (HACK-12) COMMENTS CALL TRANSFERSTAKE EXACT

Informational (1.7) Documentation SOLVED - 10/02/2026
Description

The AlphaVault header says transferStake is not exact when it opens a position: the sender is debited the full amount and the new position is credited one RAO less. executeMigration says the same call is exact and zero-fee. _move calls transferStake to migrationColdkey, which is that creation case when the target has no position yet.

ExitPayload says the staked route is exact, and IAlphaVault.withdrawStaked says zero slippage. withdrawStaked is the same transferStake. minTaoOut is ignored on that path because the path pays no TAO. That part of the ExitPayload comment is right. The word "exact" is not.

Code location

Listing 19: src/AlphaVault.sol, executeMigration (Lines 740-756)

740 /// Earlier designs gated this on a supply cap and on a longer second delay. Both were
741 /// removed: a cap that can be raised and a delay that can be waited out are not
742 /// guarantees, and pretending otherwise made the real protection - the exit window -
743 /// look like a formality. This states the bargain plainly instead.
744 ///
745 /// Same-netuid `transferStake` is exact and zero-fee, so this is not an AMM round trip.
746 function executeMigration(address token)
747 external
748 onlyRole(DEFAULT_ADMIN_ROLE)
749 nonReentrant
750 onlyListed(token)
751 returns (uint256 alphaRao)
752 {
753 _requireMigrationReady();
754 migrationExecuted = true;
755 alphaRao = _move(token);
756 }

Listing 20: src/AlphaVault.sol, _move (Lines 763-768)

763 function _move(address token) private returns (uint256 alphaRao) {
764 TokenConfig storage c = _configs[token];
765 alphaRao = _stakedRao(c);
766 if (alphaRao == 0) revert ZeroAmount();
767 STAKING.transferStake(migrationColdkey, c.validator, c.netuid, c.netuid, alphaRao);
768 emit MigrationExecuted(token, migrationTarget, alphaRao);

Listing 21: src/ExitPayload.sol, Params (Lines 8-20)

8 struct Params {
9 /// @dev 32-byte substrate public key of the destination coldkey on Bittensor.
10 bytes32 ss58;
11 /// @dev 964 EVM address credited if delivery cannot complete. Zero is normalised to the
12 /// gateway's rescuer on decode, so no booking can ever land on address(0).
13 address evmFallback;
14 /// @dev true -> unwrap to native TAO and exit via the 0x800 precompile.
15 /// false -> deliver the STAKED position to `ss58` (zero slippage).
16 bool wantLiquid;
17 /// @dev Slippage bound for the liquid unwrap, in native wei. Ignored when `wantLiquid` is
18 /// false (the staked route is exact). Without this a subnet unwrap would execute at
19 /// any AMM price; if the bound is missed the delivery is booked claimable instead.
20 uint256 minTaoOut;

Listing 22: src/interfaces/IAlphaVault.sol, withdrawStaked (Lines 12-14)

12
13 /// Burn `wad` of `token`, transfer the corresponding staked alpha to `destColdkey` (zero slippage).
14 function withdrawStaked(address token, uint256 wad, bytes32 destColdkey) external;
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Drop "exact" from the executeMigration, ExitPayload, and withdrawStaked comments. Point them at the header note: a new position can be 1 RAO short.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit c637531 by saying withdrawStaked has no AMM leg and that transferStake can credit 1 RAO less when it opens a new position. The same note is on IAlphaVault, executeMigration, and ExitPayload. skimStaked says there is no AMM leg and does not repeat the 1 RAO note.

4.13 (HACK-13) LANE COMMENT CLAIMS A TIMELOCK AND A 5/9

Informational (1.7) Documentation SOLVED - 10/02/2026
Description

allowedLane says further lanes are added by the vault DEFAULT_ADMIN, described as "Timelock -> 5/9 multisig", and that a new chain inherits a 2-day public notice. onlyVaultAdmin says lane changes inherit the timelock's delay. setBridgeFeeBps, setFeeRecipient, and setLane are each labelled timelocked. IAlphaVault.hasRole equates DEFAULT_ADMIN with the Timelock.

onlyVaultAdmin is an immediate hasRole check. This contract does not delay the call and does not encode a 5-of-9. The 2-day value in the vault is INITIAL_ADMIN_DELAY, and it applies to rotating DEFAULT_ADMIN_ROLE, not to these calls. On the deployed vault that role is the 2-of-3 Safe from HACK-03.

Code location

Listing 23: src/AlphaGateway.sol, allowedLane (Lines 66-74)

66 /// @notice Chain selectors this gateway will bridge to and accept deliveries from. Seeded with
67 /// BASE_SELECTOR at construction; further lanes are added on the fly by the vault's
68 /// DEFAULT_ADMIN (Timelock -> 5/9 multisig), so a new chain inherits the same 2-day
69 /// public notice as any other value-routing change - and the gateway still has no owner
70 /// or key of its own. Removing a lane never traps funds: in-flight arrivals over a
71 /// de-allowed lane are booked claimable to the sender's fallback.
72 /// @dev NOT sufficient on its own - the token's CCIP pool must also have the remote chain
73 /// registered (applyChainUpdates) for the lane to carry anything.
74 mapping(uint64 => bool) public allowedLane;

Listing 24: src/AlphaGateway.sol, setLane (Lines 283-290)

283 /// @notice Add or remove a supported chain selector - vault DEFAULT_ADMIN (timelocked).
284 /// @dev Allowing a lane the router cannot route would let users bridge into a revert; removing
285 /// is always permitted (an unsupported lane must stay removable).
286 function setLane(uint64 selector, bool allowed) external onlyVaultAdmin {
287 if (allowed && !IRouterClient(ROUTER).isChainSupported(selector)) revert LaneNotAllowed(selector);
288 allowedLane[selector] = allowed;
289 emit LaneSet(selector, allowed);
290 }

Listing 25: src/interfaces/IAlphaVault.sol, hasRole (Lines 36-38)

36 /// Role check the gateway delegates its own admin authority to (DEFAULT_ADMIN = the Timelock),
37 /// so the gateway holds no key of its own.
38 function hasRole(bytes32 role, address account) external view returns (bool);
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Say these setters check the vault DEFAULT_ADMIN_ROLE and do not wait. Describe a delay only if the account that holds the role enforces one.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit c637531 by describing an immediate hasRole check on allowedLane, the lane and fee setters, ccipAdmin, and createToken. Those comments no longer name a Timelock, a 5-of-9, or a 2-day notice. The ForeverMoney team acknowledges that the operator bullet in the AlphaVault header is wrong. Line 56 still says listing completes without waiting on the timelock.

4.14 (HACK-14) BRIDGEOUTWITHFEE NAMES A FUNCTION THAT DOES NOT EXIST

Informational (0.3) Documentation SOLVED - 10/01/2026
Description

bridgeOutWithFee tells the caller to approve integratorAlphaTopUp(stakedAlphaRao, bps) more alpha. There is no such function. The extra alpha is integratorCut. The file header sketches bridgeOut(..., minOut). The parameter on the function is minTokenOut.

A caller who copies the name does not compile. The real helper is in the same contract, which is why the score stays at the bottom of the informational band.

Code location

Listing 26: src/AlphaGateway.sol, file header (Lines 18-22)

18/// the CCIP message.
19///
20/// Finney -> Spoke: `bridgeOut(destSelector, token, recipient, taoAmount, stakedAlphaRao, minOut)`
21/// bridges from liquid TAO (staked fresh) and/or the caller's EXISTING staked
22/// alpha (pulled from msg.sender) - either or both in one tx - minting the

Listing 27: src/AlphaGateway.sol, bridgeOutWithFee (Lines 371-386)

371 /// @notice `bridgeOut` with an integrator fee ON TOP: the caller supplies `fee.bps` extra input
372 /// (`integratorTaoTopUp(taoAmount, bps)` more TAO in msg.value, `integratorAlphaTopUp(
373 /// stakedAlphaRao, bps)` more approved alpha); it is minted as the WRAPPED TOKEN for
374 /// `fee.recipient` while the requested amount crosses in full. Validated before any TAO
375 /// is staked.
376 /// @dev Distinct name, see `quoteBridgeOutWithFee`.
377 function bridgeOutWithFee(
378 uint64 destSelector,
379 address token,
380 address recipient,
381 uint256 taoAmount,
382 uint256 stakedAlphaRao,
383 uint256 minTokenOut,
384 IntegratorFee calldata fee
385 ) external payable returns (bytes32 messageId) {
386 return _bridgeOut(destSelector, token, recipient, taoAmount, _canonicalSource(token, stakedAlphaRao), minTokenOut, fee);
BVSS

AO:A/AC:L/AX:H/C:N/I:L/A:N/D:N/Y:N/R:F/S:U (0.3)

Recommendation

Name integratorCut on bridgeOutWithFee, and name minTokenOut in the header.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by naming integratorCut on bridgeOutWithFee and minTokenOut in the file header. Confirmed at c637531.

4.15 (HACK-15) CCIPRECEIVE COMMENTS NAME THE WRONG CLAIM ADDRESS

Informational (0.9) Documentation SOLVED - 10/01/2026
Description

The NatSpec on _ccipReceive says every other function in the contract is private. The bridge, quote, and claim functions are public or external. The same note says a failed delivery is booked to rescuer. The catch credits fb, the decoded evmFallback.

The comment inside the function says rescuer is used only when the payload is undecodable. ExitPayload.decode also rewrites a zero evmFallback to the rescuer on a payload that decodes. The comment above the inner try in handleExit says the outer catch would drop evmFallback and pay the rescuer. The outer catch uses the same decoded fallback.

Code location

Listing 28: src/AlphaGateway.sol, _ccipReceive (Lines 713-727)

713
714 /// @dev The ONLY member that must stay `internal`: it overrides CCIPReceiver's virtual hook.
715 /// Everything else in this contract is `private` - nothing inherits from it.
716 /// @dev Never reverts. On any failure the released tokens are booked claimable (per token) to the
717 /// rescuer. The token is whatever the CCIP message carried - possibly hostile; it is only
718 /// ever used as the namespace and the asset handed back to its own claimants.
719 function _ccipReceive(Client.Any2EVMMessage memory message) internal override {
720 uint256 n = message.destTokenAmounts.length;
721 if (n == 0) return; // nothing arrived; nothing to do
722
723 // Resolve the user's fallback ONCE, up front, so every non-delivery path credits THEM rather
724 // than the rescuer. Falls back to the rescuer only when the payload is undecodable (nobody
725 // to credit) - mirroring handleExit's own zero-fallback default.
726 address fb = _safeDecodeExit(message.data).evmFallback;
727

Listing 29: src/AlphaGateway.sol, handleExit (Lines 828-836)

828 return;
829 }
830
831 if (exitAmount > 0) {
832 // Both vault withdrawals can revert for reasons beyond a halt (e.g. the staked
833 // position is short of the redemption -> Insolvent). Wrap them so ANY vault
834 // failure books claimable to the USER's fallback - never falls through to the outer
835 // catch, which would discard evmFallback and route to the rescuer.
836 if (wantLiquid) {
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:P/S:U (0.9)

Recommendation

Say failed deliveries credit the decoded evmFallback, and rescuer only when that address is zero or the payload does not decode. Drop the claim that every other function is private.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by saying a failed delivery is booked to the decoded evmFallback, and that the rescuer is used when the payload does not decode or that address is zero. Confirmed at c637531.

4.16 (HACK-16) FEE CEILING NATSPEC SITS ON MAX_STAKE_SOURCES

Informational (0.9) Documentation SOLVED - 10/01/2026
Description

Two @notice blocks sit above MAX_STAKE_SOURCES. The first describes the hard ceiling on the integrator fee and says governance can set maxIntegratorFeeBps up to it. NatSpec attaches that text to the next declaration, which is MAX_STAKE_SOURCES (16). MAX_INTEGRATOR_FEE_BPS is the following constant and only has the inline comment "10%".

A reader can take 16 as the fee ceiling. The fee ceiling in the code is 1,000 bps. The stake cap of 16 is what the second notice describes, and that notice is on the right constant.

Code location

Listing 30: src/AlphaGateway.sol, MAX_STAKE_SOURCES (Lines 150-160)

150 /// @notice Hard ceiling on the per-call integrator fee (a cut of the bridged token). Governance
151 /// can set `maxIntegratorFeeBps` anywhere up to it.
152 /// @notice Most staked positions one deposit may consolidate. Each costs ~35.4k gas
153 /// (measured on mainnet: 15 moveStake dispatches in one tx used 554,728 gas, and
154 /// subtensor applied NO rate limit), so this bound is about keeping a single
155 /// bridge transaction comfortably sized, not about a runtime constraint.
156 uint256 public constant MAX_STAKE_SOURCES = 16;
157
158 uint16 public constant MAX_INTEGRATOR_FEE_BPS = 1_000; // 10%
159 uint16 public constant DEFAULT_MAX_INTEGRATOR_FEE_BPS = 100; // 1%
160 /// @notice Current ceiling on `IntegratorFee.bps` accepted by the bridge calls.
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:P/S:U (0.9)

Recommendation

Move the fee-ceiling notice onto MAX_INTEGRATOR_FEE_BPS. Leave the stake-count notice on MAX_STAKE_SOURCES.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by moving the fee-ceiling notice onto MAX_INTEGRATOR_FEE_BPS and leaving the stake-count notice on MAX_STAKE_SOURCES. Confirmed at c637531.

4.17 (HACK-17) SPOKE FEE COMMENT SAYS THE DESTINATION IS IMMUTABLE

Informational (1.7) Documentation SOLVED - 10/01/2026
Description

The notice on FEE_ADMIN says who may change the fee and where the fee goes are both immutable, and that a compromised FEE_ADMIN cannot redirect the proceeds. feeRecipient is ordinary storage. setFeeRecipient lets FEE_ADMIN point it at any non-zero address.

The comment on feeRecipient itself already says the destination used to be immutable and is settable now. The FEE_ADMIN block above it was not updated. FEE_ADMIN still cannot touch the bridged tokens. It can redirect future markup.

Code location

Listing 31: src/SpokeGateway.sol, FEE_ADMIN and feeRecipient (Lines 29-46)

29 /// @notice Who may change the fee, and where the fee goes. BOTH IMMUTABLE, on purpose.
30 /// @dev This contract was deliberately ownerless. A settable fee needs an authority, so the
31 /// smallest possible concession is made: the authority and the destination are fixed at
32 /// construction and only the NUMBER moves. Nobody can transfer control of this contract,
33 /// redirect the proceeds, or reach the bridged tokens - the worst a compromised FEE_ADMIN
34 /// can do is set the markup to its capped maximum and make bridging expensive, which is
35 /// visible, reversible on redeploy, and steals nothing.
36 address public immutable FEE_ADMIN;
37
38 /// @notice Where the markup goes. Seeded at construction and repointable by FEE_ADMIN.
39 /// @dev This was immutable, on the argument that a fixed destination meant a compromised admin
40 /// could not redirect proceeds. It is settable now by request, so that argument no longer
41 /// holds: FEE_ADMIN can send future fee income anywhere. What it still cannot do is reach
42 /// the bridged tokens or the caller's refund - only the markup, and only going forward.
43 address public feeRecipient;
44
45 /// @notice Markup on the CCIP fee, in basis points. 0 = disabled, which is the deployed default.
46 uint16 public bridgeFeeBps;
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Rewrite the FEE_ADMIN notice so only the authority is immutable. State that setFeeRecipient moves future markup.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by saying only the FEE_ADMIN authority is immutable, and that setFeeRecipient can redirect future markup. Confirmed at c637531.

4.18 (HACK-18) SPOKE COMMENT SAYS A 6-ARG BRIDGE AND NATIVE ETH

Informational (0.3) Documentation SOLVED - 10/01/2026
Description

DEFAULT_EXIT_GAS_LIMIT says callers override gas with the 6-argument bridgeToFinney. The override is the 4-argument bridgeToFinney. bridgeToFinneyWithFee has five arguments. There is no 6-argument function.

quoteBridgeToFinney quotes the fee "in native ETH". The file header says nothing in this contract is Base-specific. The fee is the spoke chain's native gas token. _message repeats the same label on feeToken: address(0) at line 321.

Code location

Listing 32: src/SpokeGateway.sol, DEFAULT_EXIT_GAS_LIMIT (Lines 70-77)

70 /// @notice Default destination-execution gas budget for `handleExit` on 964. Sized for today's
71 /// exit logic; callers may override per-message via the 6-arg `bridgeToFinney` (passing 0
72 /// keeps this default). Too low -> the delivery fails on 964 and is recovered via a
73 /// claimable booking or CCIP manual re-execution (a deep OOG can starve even the catch's
74 /// booking, in which case ccipReceive reverts and the message is manually re-executable
75 /// with more gas); too high -> rejected or just costs more fee (excess refunded). Either
76 /// way an override can never lose funds.
77 uint256 public constant DEFAULT_EXIT_GAS_LIMIT = 300_000;

Listing 33: src/SpokeGateway.sol, bridgeToFinney (Lines 227-236)

227 /// @notice Bridge with an explicit destination-execution `gasLimit` for `handleExit` on 964.
228 /// @param gasLimit gas budget on the destination. Pass 0 to use DEFAULT_EXIT_GAS_LIMIT.
229 function bridgeToFinney(
230 address token,
231 uint256 amount,
232 ExitPayload.Params calldata exit,
233 uint256 gasLimit
234 ) public payable returns (bytes32 messageId) {
235 return _bridge(token, amount, exit, gasLimit, IntegratorFee(address(0), 0));
236 }
BVSS

AO:A/AC:L/AX:H/C:N/I:L/A:N/D:N/Y:N/R:F/S:U (0.3)

Recommendation

Call the override the 4-argument bridgeToFinney. Say the quoted fee is the spoke's native gas token, including the comment on feeToken.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by naming the gas override as the 4-argument bridgeToFinney and naming the spoke chain's native gas token on the quote and feeToken comments. Confirmed at c637531.

4.19 (HACK-19) VAULT HEADER OVERSTATES THE SLIPPAGE RULE

Informational (0.9) Documentation SOLVED - 10/01/2026
Description

Design rule 4 says every conversion takes a caller minimum. depositStaked and withdrawStaked have no minimum. The route list a few lines earlier limits that bound to the AMM routes, and that sentence matches the functions.

The OPERATOR_ROLE list names createToken, addToken, migrateValidator, setSkimMargin, skimStaked, sweepExcess, unpause, and adminHold. It leaves out skim, claimRoot, and claimRootFor. The next paragraph says those are operator-gated. The bullet itself is short.

Code location

Listing 34: src/AlphaVault.sol, design rules (Lines 33-40)

33/// @dev Design rules (carried over from the single-token vault reviews):
34/// 1. MEASURE, don't assume. Deposits mint the getStake delta; liquid withdrawals pay the
35/// balance delta. AMM fee/slippage lands on the user who chose the AMM route.
36/// 2. ALPHA UNITS for backing/emissions. `harvestableAlphaRao` is the STAKED surplus only.
37/// 3. BACKING IS THE STAKED POSITION, and only that. There is no native buffer to fall back
38/// on: withdrawLiquid unstakes exactly what it pays and reverts if the position is short.
39/// 4. SLIPPAGE IS EXPLICIT. Every conversion takes a caller min-received.
40///

Listing 35: src/AlphaVault.sol, role list (Lines 45-52)

45/// - DEFAULT_ADMIN_ROLE : slow/root tier (Timelock -> multisig). Reroutes value
46/// (setEmissionsRecipient), manages roles, sets gateway lanes, and points `ccipAdmin`
47/// (setCcipAdmin) - it does NOT list tokens.
48/// - OPERATOR_ROLE : fast multisig-direct tier (createToken, addToken,
49/// migrateValidator, setSkimMargin, skimStaked, sweepExcess, unpause, adminHold).
50/// Listing is deliberately a FAST-lane action: AlphaToken.getCCIPAdmin() resolves to
51/// `ccipAdmin` (normally this same multisig), so the operator can both list a token and
52/// complete its CCIP registration without waiting on the timelock. CCIP reads
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:P/S:U (0.9)

Recommendation

Limit rule 4 to the AMM routes. Add skim, claimRoot, and claimRootFor to the operator bullet.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by limiting design rule 4 to AMM routes and adding skim, claimRoot, and claimRootFor to the operator bullet. Confirmed at c637531.

4.20 (HACK-20) IALPHAVAULT SAYS EVERY ROUTE REVERTS WHILE PAUSED

Informational (1.7) Documentation SOLVED - 10/01/2026
Description

IAlphaVault.isPaused says that while the vault is halted, every route reverts. whenNotHalted covers deposits, withdrawals, skim, skimStaked, and the root claims. executeMigration, migrateValidator, and sweepExcess do not use that modifier.

The vault's own isPaused comment is narrower: it names the user value routes behind whenNotHalted. The interface comment is the one that overclaims. executeMigration during a halt is the path in HACK-04. This finding is the comment, not that path.

Code location

Listing 36: src/interfaces/IAlphaVault.sol, isPaused (Lines 16-21)

16 /// Burn `wad` of `token`, unstake to native TAO, send to caller (bounded by minTaoOut).
17 function withdrawLiquid(address token, uint256 wad, uint256 minTaoOut) external returns (uint256 taoOut);
18
19 /// True while the vault is halted and every route would revert (global, all tokens).
20 function isPaused() external view returns (bool);
21

Listing 37: src/AlphaVault.sol, migrateValidator (Lines 801-809)

801 /// @notice Re-delegate the token's ENTIRE staked position to a new validator (same-netuid
802 /// moveStake: custody and amount unchanged). OPERATOR (instant) so a misbehaving
803 /// validator can be exited fast; custody never leaves the vault coldkey.
804 function migrateValidator(address token, bytes32 newValidator)
805 external
806 onlyRole(OPERATOR_ROLE)
807 onlyListed(token)
808 {
809 if (newValidator == bytes32(0)) revert ZeroValidator();
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:N/S:U (1.7)

Recommendation

Say isPaused is the predicate for whenNotHalted. Name executeMigration, migrateValidator, and sweepExcess as not gated by it.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by saying IAlphaVault.isPaused gates deposits, withdrawals, skims, and root claims, and by naming executeMigration, migrateValidator, and sweepExcess as not gated. Those three functions do not use whenNotHalted. Confirmed at c637531.

4.21 (HACK-21) BRIDGE FEE COMMENT SAYS 100 TAO MINTS 100 WTAO

Informational (0.9) Documentation SOLVED - 10/01/2026
Description

The note on bridgeFeeBps says the integrator cut is a transfer of already-minted tokens, so 100 TAO in still mints 100 wTAO. depositLiquid mints the measured getStake delta, not a 1:1 conversion from TAO. On a subnet that delta is not 100 tokens for 100 TAO. On the liquid fee path, integratorTaoTopUp stakes extra TAO and mints extra tokens for the integrator, on top of the amount that crosses.

The sentence about a same-chain transfer, rather than a short mint, matches bridgeTokenOutWithFee and the staked leg after the mint. The 100-for-100 example does not.

Code location

Listing 38: src/AlphaGateway.sol, bridgeFeeBps (Lines 129-136)

129 /// @notice Markup charged on top of the CCIP fee, in basis points. 0 = disabled.
130 /// @dev A markup on the FEE. (The integrator fee below is a cut of the bridged amount, but it is
131 /// a same-chain TRANSFER of already-minted tokens, never a burn or a short mint, so the 1:1
132 /// backing every price consumer relies on still holds: 100 TAO in still mints 100 wTAO.)
133 uint16 public bridgeFeeBps;
134 /// @notice Ceiling on the markup, so a fat-fingered setter cannot make a hop cost 100x.
135 /// A bound, not a policy: the intended setting is far below it.
136 uint16 public constant MAX_BRIDGE_FEE_BPS = 5_000; // 50%
BVSS

AO:A/AC:L/AX:M/C:N/I:L/A:N/D:N/Y:N/R:P/S:U (0.9)

Recommendation

Drop the 100 TAO example. Say the crossing tokens are minted from measured alpha, and that the integrator cut does not mint them short.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by saying the bridged amount is minted from the measured stake delta and that the integrator cut does not short-mint it. The 100 TAO example is gone. Confirmed at c637531.

4.22 (HACK-22) INTEGRATOR TOP-UP BELOW MINSTAKE REVERTS THE BRIDGE

Low (2.5) Token integration SOLVED - 10/02/2026
Description

_bridgeOut stakes the caller amount, then stakes the integrator top-up in a second depositLiquid. Each call is its own addStake. On chain 964 getNominatorMinRequiredStake is 20,000,000 RAO (0.002 TAO). A top-up below that reverts AmountTooLow and unwinds the hop the caller already funded.

At the default 100 bps cap, 0.05 TAO quotes a 0.0005 TAO top-up and reverts. The same 0.05 TAO with no fee completes. Live eth_call at block 9,180,265 confirmed 0.001 TAO depositLiquid reverts and 0.002 TAO succeeds.

Code location

See Listing 1 for the second depositLiquid at line 455.

Listing 39: src/AlphaGateway.sol, integratorTaoTopUp (Lines 248-252)

248 function integratorTaoTopUp(uint256 taoAmount, uint16 bps) public pure returns (uint256) {
249 uint256 raw = (taoAmount * bps) / 10_000;
250 if (raw == 0) return 0;
251 return ((raw + RAO - 1) / RAO) * RAO;
252 }
Proof of concept

test/audit/SecondPass.t.sol test_integratorTopUpBelowMinStakeRevertsWholeBridge and testFuzz_integratorTopUpThreshold (2,000 runs) passed.

  1. Alice calls bridgeOutWithFee with taoAmount = 0.05 ether and bps = 100.
  2. integratorTaoTopUp returns 0.0005 ether. The second addStake reverts AmountTooLow.
  3. The same call with bps = 0 returns a message id.
BVSS

AO:A/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:N/S:U (2.5)

Recommendation

Fold the top-up into the caller depositLiquid, or revert in integratorTaoTopUp / _validateIntegratorFee when the top-up is nonzero and below minStakeRequired().

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit c637531 by reverting TopUpBelowMinStake from both quoteBridgeOutWithFee and _bridgeOut when a non-zero TAO top-up is below 2,000,000 RAO (0.002 TAO), before any stake. A zero top-up is allowed. SDK @forevermoney/sdk 0.5.10, published 1 October 2026, waives that fee and sends the zero-fee bridgeOut. The deployed gateway bytecode is unchanged until the next deployment. IntegratorFeeHubTest covers the quote and the bridge at that floor.

4.25 (HACK-25) PRECOMPILE MINS REVERT SMALL LIQUID EXITS AND DUST MOVES

Low (2.5) Token integration PARTIALLY SOLVED - 10/02/2026
Description

withdrawLiquid and skim unstake through _removeStake. withdrawStaked, skimStaked, and _move call transferStake. The vault only checks wad % RAO == 0, so 1 RAO (1e9 wei of token) is a legal argument.

Live eth_call from the vault at chain 964 block 9,180,869: removeStake of 1,999,999 RAO reverts AmountTooLow; 2,000,000 RAO succeeds. transferStake of 1,000 RAO reverts AmountTooLow; 1,000,000 RAO succeeds. Same-netuid moveStake of 2,000,000 RAO succeeds; a cross-netuid move of that size reverts and needs 20,000,000 RAO (the nominator minimum).

A holder of 0.001 token cannot unwrap. A leftover position under 1,000,000 RAO cannot migrate. handleExit catches the liquid revert and books claimableToken, so an inbound unwrap below 0.002 TAO becomes a token claim instead of native.

Code location

Listing 42: src/AlphaVault.sol, withdrawLiquid (Lines 395-403)

395 uint256 alphaRao = wad / RAO;
396 // The position must cover the whole redemption. No partial unstake, no fallback.
397 if (alphaRao > _stakedRao(c)) revert Insolvent();
403 taoOut = _removeStake(c, alphaRao);

Listing 43: src/AlphaVault.sol, _removeStake (Lines 264-269)

264 function _removeStake(TokenConfig storage c, uint256 alphaRao) private returns (uint256 received) {
265 uint256 b0 = address(this).balance;
266 _unstakeWindow = _WINDOW_OPEN;
267 STAKING.removeStake(c.validator, alphaRao, c.netuid);
268 _unstakeWindow = _WINDOW_SHUT;
269 received = address(this).balance - b0;
Proof of concept

cast call --from 0x1183...33D4 against 0x805 at block 9,180,869. No transaction was sent.

  1. removeStake(TAO hotkey, 1999999, 0) reverts AmountTooLow.
  2. removeStake(TAO hotkey, 2000000, 0) returns 0x.
  3. transferStake(dest, TAO hotkey, 0, 0, 1000) reverts AmountTooLow.
  4. transferStake(dest, TAO hotkey, 0, 0, 1000000) returns 0x.
BVSS

AO:A/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:N/S:U (2.5)

Recommendation

Reject withdrawLiquid and skim under 2,000,000 RAO. Reject withdrawStaked, skimStaked, and _move under 1,000,000 RAO. Read both floors from the precompile if the runtime exposes them; today only getNominatorMinRequiredStake is on the ABI.

Remediation plan

PARTIALLY SOLVED: The ForeverMoney team solved the spoke half in commit c637531 by rejecting a liquid exit under 2,000,000 RAO and a wantLiquid=false exit under 1,000,000 RAO in SpokeGateway._requireAboveExitFloor. Quote and bridge both call that helper. The vault half is acknowledged. AlphaVault does not mirror the floors. The team recorded that the vault is immutable and the floors are runtime parameters, so a lowered floor pinned in the vault could block a withdrawal the runtime would serve. Direct withdrawLiquid, skim, withdrawStaked, skimStaked, and executeMigration can still revert inside the precompile. A wantLiquid=false exit with ss58 == 0 is an ERC-20 transfer in handleExit and never calls transferStake, and the spoke still applies the 1,000,000 RAO floor to it. Deployed spokes are unchanged until the next deployment. The SDK already rejected liquid EVM-to-Subtensor amounts under 0.01 TAO before this commit.

4.23 (HACK-23) DEPLOYALPHA ACCEPTS A COLDKEY FOR NO ADDRESS

Informational (0.5) Deployment SOLVED - 10/02/2026
Description

DeployAlpha.run predicts the next CREATE address and requires that the deployed vault and gateway land there. It never checks that VAULT_COLDKEY or GATEWAY_COLDKEY is blake2b-256("evm:" || that address). Any 32 bytes pass.

A vault stored under a stranger coldkey cannot see its own getStake delta. depositLiquid then reverts Slippage. The live vault at 0x1183...33D4 does match its derived coldkey. This is a future-deploy footgun. ResumeDeploy reuses the same helpers.

Code location

Listing 40: script/DeployAlpha.s.sol, run (Lines 68-97)

68 // VAULT_COLDKEY = blake2b_256("evm:" + predicted vault address)
70 address predicted = vm.computeCreateAddress(deployer, vm.getNonce(deployer));
76 AlphaVault vault = new AlphaVault(
82 require(address(vault) == predicted, "vault addr != predicted; VAULT_COLDKEY is for wrong addr");
93 address predicted = vm.computeCreateAddress(deployer, vm.getNonce(deployer));
94 gw = new AlphaGateway(
97 require(address(gw) == predicted, "gateway addr != predicted; GATEWAY_COLDKEY is for wrong addr");
Proof of concept

test/audit/ScriptRehearsal.t.sol _addTokenAndWrongColdkeys passed. VAULT_COLDKEY = 0xBAD1 deploys. The first depositLiquid reverts Slippage.

BVSS

AO:S/AC:L/AX:L/C:N/I:N/A:L/D:N/Y:N/R:N/S:U (0.5)

Recommendation

Require the env coldkey to equal the off-chain blake2b of the predicted address, or refuse to start broadcast until that check is in the script.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commits d2eac4f and c637531 by deriving blake2b_256("evm:" || predicted address) through scripts/evm-coldkey.py and reverting before the vault or the gateway is deployed if VAULT_COLDKEY or GATEWAY_COLDKEY differs. DeployAlpha.run checks both. ResumeDeploy checks the gateway coldkey before new AlphaGateway. The helper matches vaultColdkey() on the live vault 0x11837459896D96F821a8D88eC93a3C8D152033D4.

4.24 (HACK-24) VERIFYWIRING SKIPS POOL OWNER AND REBALANCER

Informational (0.3) Deployment SOLVED - 10/01/2026
Description

VerifyWiring.run is the post-list green/red check. It reads listing, registry pool, registry administrator, remote token/pool, and allowedLane. It never reads pool.owner() or pool.getRebalancer().

After DeployAlpha, pool ownership stays on the deployer until acceptOwnership. That key can setRebalancer and withdrawLiquidity (HACK-03). The rehearsal pointed the rebalancer at a stranger and VerifyWiring still passed.

Code location

Listing 41: script/VerifyWiring.s.sol, run (Lines 58-79)

58 // 3. registry admin is where it should be, and not a hot key
59 address admin = ITokenAdminRegistry(registry).getTokenConfig(token).administrator;
62 if (expected != address(0)) _check(admin == expected, "registry administrator == EXPECTED_ADMIN");
64 if (deployer != address(0)) _check(admin != deployer, "registry administrator is NOT the deployer");
66 // 4. the lane is paired on this side
76 // 5. our app layer allows the lane (964 only)
78 _check(AlphaGateway(payable(gateway)).allowedLane(remoteSelector), "gateway.allowedLane(remote)");
79 }
Proof of concept

test/audit/ScriptRehearsal.t.sol _registerLaneAndVerify passed. The deployer called setRebalancer(stranger). VerifyWiring with EXPECTED_ADMIN = safe did not revert.

BVSS

AO:S/AC:L/AX:L/C:N/I:L/A:N/D:N/Y:N/R:P/S:U (0.3)

Recommendation

Assert pool.owner() == EXPECTED_ADMIN and getRebalancer() == address(0) (or the named rebalancer). Fail if ownership is still on the deployer.

Remediation plan

SOLVED: The ForeverMoney team solved the issue in commit d2eac4f by checking pool.owner() against EXPECTED_ADMIN when that env is set, rejecting the deployer when DEPLOYER is set, and staticcalling getRebalancer(). A non-zero rebalancer fails the script. A pool with no such function skips that one check. Confirmed at c637531.

5   Recommendations

Low

IDRiskRecommendationStatus
HACK-01Low (3.4)Take the bridge slippage floor in RAO and pass it into depositLiquid.ACKNOWLEDGED
HACK-02Low (2.5)Revert bridgeTokenOut and the token-push branch while isPaused is true.ACKNOWLEDGED
HACK-03Low (2.0)Put pool ownership and the Base token admin behind a timelock of at least 7 days. Keep the rebalancer unset.ACKNOWLEDGED
HACK-04Low (2.0)Leave withdrawals open for the whole migration window, including during adminHold.ACKNOWLEDGED
HACK-05Low (2.0)Move the TAO registry administrator off the EOA and onto that timelock.SOLVED - 10/01/2026
HACK-22Low (2.5)Stake the integrator top-up with the caller amount, or reject a sub-minimum top-up before addStake.SOLVED - 10/02/2026
HACK-25Low (2.5)Reject liquid amounts under 2,000,000 RAO and staked transfers under 1,000,000 RAO before the precompile call.PARTIALLY SOLVED - 10/02/2026

Informational

IDRiskRecommendationStatus
HACK-06Informational (1.7)Describe the pro-rata integrator cut on bridgeOutFromValidatorsWithFee.SOLVED - 10/01/2026
HACK-07Informational (0.3)Set new lanes on the v5 hub until spokes point at v6.ACKNOWLEDGED
HACK-08Informational (0.3)Move the Base TAO rate-limit admin onto the Safe, or clear it.SOLVED - 10/01/2026
HACK-09Informational (0.9)Pin every in-scope pragma to solc 0.8.26.SOLVED - 10/01/2026
HACK-10Informational (1.7)Mark skim, skimStaked, and claimRoot as operator-only in their NatSpec.SOLVED - 10/01/2026
HACK-11Informational (1.7)Say finishMigration halts withdrawals on migrationFinished.SOLVED - 10/01/2026
HACK-12Informational (1.7)Stop calling transferStake exact. Note the 1 RAO creation loss.SOLVED - 10/02/2026
HACK-13Informational (1.7)Drop the timelock and 5/9 claims from the lane and fee setters.SOLVED - 10/02/2026
HACK-14Informational (0.3)Name integratorCut and minTokenOut.SOLVED - 10/01/2026
HACK-15Informational (0.9)Credit the decoded fallback in the _ccipReceive comments.SOLVED - 10/01/2026
HACK-16Informational (0.9)Move the fee-ceiling NatSpec onto MAX_INTEGRATOR_FEE_BPS.SOLVED - 10/01/2026
HACK-17Informational (1.7)Say feeRecipient is settable by FEE_ADMIN.SOLVED - 10/01/2026
HACK-18Informational (0.3)Call the gas override 4-arg, and name the spoke's native gas token.SOLVED - 10/01/2026
HACK-19Informational (0.9)Limit the slippage rule to AMM routes and complete the operator list.SOLVED - 10/01/2026
HACK-20Informational (1.7)Say isPaused gates whenNotHalted only.SOLVED - 10/01/2026
HACK-21Informational (0.9)Remove the 100 TAO equals 100 wTAO example.SOLVED - 10/01/2026
HACK-23Informational (0.5)Check VAULT_COLDKEY and GATEWAY_COLDKEY against the predicted addresses.SOLVED - 10/02/2026
HACK-24Informational (0.3)Read pool owner and rebalancer in VerifyWiring.SOLVED - 10/01/2026

6   Fuzz testing

Foundry, Echidna, and Halmos ran. The committed suite was executed on a clean worktree at e80a443 (forge 1.2.3, solc 0.8.26): 239 tests, 0 failed. That includes AlphaVault.t.sol testFuzz_backingGeSupply and TokenNaming.t.sol testFuzz_neverWrapped and testFuzz_symbolsAreUnique. Overlay files under test/audit/ are not in that commit. They were copied onto the worktree for a second run: 30 tests, 0 failed. testFuzz_integratorTopUpThreshold ran 2,000 times. The staking precompile cannot be executed under forge test. getStake was read on mainnet. The mutating probes in StakeProbe.sol were not re-run.

Echidna 2.3.3, property mode, slither pre-pass off, config test/audit/echidna/echidna.yaml, contract BridgeInvariants. A local run of 50,107 calls (2 workers, seed 8339856465989049560) passed the original six properties. The harness was then extended with SpokeGateway, MockExit etched at 0x800, spokeBridge, and the migration actions. A 243-call smoke on the 16 GB host passed all eight properties: backing_covers_supply, vault_holds_no_native, gateway_native_equals_claims, gateway_tokens_equal_claims, gateway_holds_no_stake, pause_bounded, spoke_holds_nothing, and exit_precompile_present. The first 200,155-call campaign (3 workers, seed 4093907169984961487, 33,458 unique instructions, corpus 77) falsified backing_covers_supply. The sequence called executeMigration and then the mock accrue helper, which credits dust onto the empty vault coldkey. Outstanding supply is already stranded after executeMigration (the NatSpec on that function). The property required staked == 0 after the move, so any later credit failed it. The check now treats migrationExecuted as the documented strand. A 50,140-call rerun (seed 6979502935249760950, 33,464 unique instructions) passed all eight. Coverage reached spokeBridge, bridgeToFinneyWithFee, announceMigration, executeMigration, finishMigration, handleExit liquid, SUBSTRATE_EXIT.transfer, and DeliveredLiquid.

Halmos 0.3.3, --loop 4, harness test/audit/halmos/HalmosChecks.t.sol. Eight properties passed: fee-send conservation on hub and spoke, exit-payload round trip, guardian never-shorten / cooldown / 2-day bound, migration gates, and depositLiquid minting the measured stake. The skim checks were split into check_skimLiquidLeavesMargin and check_skimStakedLeavesMargin. Both timed out on the 16 GB host (26 and 22 paths, ~67 s each, no counterexample). The same backing rule held in Echidna and in testFuzz_backingGeSupply. Two earlier Halmos errors were symbolic-index limitations on a memory array, not contract bugs; those checks were rewritten to vm.assume over a fixed bps set.

7   Static analysis

Slither 0.9.6 ran as slither . --exclude-dependencies --filter-paths "lib/|test/|script/". The JSON has 96 detector results. High and medium results were triaged. None became a finding.

Aderyn 0.6.8 on src/ (11 units, 1,344 nSLOC): 2 high, 12 low. eth-send-unchecked-address on withdrawLiquid is msg.sender. reentrancy-state-change hits after precompile or vault calls that the nonReentrant / try-catch paths already bound. Script scan (renamed copies, because Aderyn skips *.s.sol): 0 high, 4 low, none promoted.

Mythril 0.24.8, solc 0.8.26, -t 1, execution-timeout 600 to 720 seconds: AlphaVault, AlphaGateway, SpokeGateway, AlphaToken, ExitPayload, and legacy/v5/src/AlphaGateway each returned success: true and zero issues. The 16 GB host then ran -t 2 (execution-timeout 900, max-depth 22) on AlphaVault, AlphaGateway, SpokeGateway, AlphaToken, and ExitPayload. Each returned success: true and zero issues. The v5 inbound body matches v6, so the -t 1 result on that file stands.

DetectorImpactCountTriage
arbitrary-send-ethHigh6withdrawLiquid pays msg.sender. _send and _settle refund msg.sender and pay the stored fee recipient. skim and sweepExcess pay emissionsRecipient. The callee is not a free address chosen inside those functions.
divide-before-multiplyMedium1integratorTaoTopUp divides by 10,000, then rounds up to a whole RAO. The rounding is the function.
incorrect-equalityMedium2migrationReadyAt == 0 and amount == 0 are flags, not balances.
reentrancy-no-ethMedium2migrateValidator writes c.validator after moveStake. The callee is the staking precompile. _pullStakedMulti measures stake before and after the pulls on purpose.
uninitialized-localMedium2minted and mintedForIntegrator are uint256. Solidity zeroes them.
unused-returnMedium4approve on AlphaToken is OpenZeppelin ERC-20, which reverts or returns true. The ignored half of positionOf is the netuid the caller already has.

The remaining results are low or informational: reentrancy on events, pragma spans, naming, timestamps on the pause math, and low-level calls that check the success bool. They were not promoted.

8   Remediation record

Remediation was reviewed on 2 October 2026 at c63753112acd187925ee00d269b7bf5b644c3455 (pull request 3). On-chain reads for HACK-05 and HACK-08 used chain 964 and Base on that date. IntegratorFeeHubTest and IntegratorFeeSpokeTest passed on that commit (forge 1.2.3, solc 0.8.26). The deployed AlphaVault, AlphaGateway, and SpokeGateway bytecode is still the review commit. Repository guards apply on the next deployment.

Still open as behavior, by the team's acknowledgement:

The ForeverMoney team acknowledges two comments in AlphaVault.sol at c637531 are wrong. Line 56 still says listing completes without waiting on the timelock. Line 764 on executeMigration still calls the exit window the protection.

DateFindingCommit or statementConfirmedState
10/02/2026HACK-01Acknowledged. Code at c637531 still passes 0 into depositLiquid.YesAcknowledged
10/02/2026HACK-02Acknowledged. bridgeTokenOut still ignores isPaused.YesAcknowledged
10/02/2026HACK-03Acknowledged. Pools still owned by the 2-of-3 Safe. Rebalancers unset. Timelock not in the commit.YesAcknowledged
10/02/2026HACK-04Acknowledged. Behavior unchanged. initiateMigration comment corrected at c637531. executeMigration line 764 is acknowledged as wrong.YesAcknowledged
10/01/2026HACK-05On-chain transferAdminRole 0x319cd9ea and acceptAdminRole 0xe65b1cc1. Registry admin is the Safe.YesSolved
10/02/2026HACK-22c637531. quoteBridgeOutWithFee and _bridgeOut share TopUpBelowMinStake. SDK 0.5.10 waives the live fee. Gateway bytecode not redeployed.YesSolved
10/02/2026HACK-25c637531 spoke floors: liquid 2,000,000 RAO, staked 1,000,000 RAO. Vault floors omitted on purpose. ss58 == 0 still hits the staked floor. Spokes not redeployed.YesPartially solved
10/01/2026HACK-06d2eac4f. Comment matches _apportion. Confirmed at c637531.YesSolved
10/02/2026HACK-07Acknowledged. Base spoke still points at the v5 hub. Both hubs allow Base and Robinhood.YesAcknowledged
10/01/2026HACK-08On-chain setRateLimitAdmin 0xbe8080f5. getRateLimitAdmin() is the Safe.YesSolved
10/01/2026HACK-09d2eac4f pins pragma 0.8.26 in src/, script/, test/. legacy/v5/ stays ^0.8.24.YesSolved
10/01/2026HACK-10d2eac4f. skim, skimStaked, and claimRoot NatSpec say OPERATOR_ROLE.YesSolved
10/01/2026HACK-11d2eac4f. migrationFinished says the halt is on and that OPERATOR can lift it.YesSolved
10/02/2026HACK-12c637531. withdrawStaked comments name the 1 RAO.YesSolved
10/02/2026HACK-13c637531. Lane, fee, ccipAdmin, and createToken comments drop the timelock claim. Header line 56 is acknowledged as wrong.YesSolved
10/01/2026HACK-14d2eac4f. integratorCut and minTokenOut are the names in the comments.YesSolved
10/01/2026HACK-15d2eac4f. _ccipReceive credits the decoded evmFallback.YesSolved
10/01/2026HACK-16d2eac4f. Fee-ceiling NatSpec sits on MAX_INTEGRATOR_FEE_BPS.YesSolved
10/01/2026HACK-17d2eac4f. FEE_ADMIN note says the recipient is settable.YesSolved
10/01/2026HACK-18d2eac4f. 4-arg bridgeToFinney. Fee comment names the spoke gas token.YesSolved
10/01/2026HACK-19d2eac4f. Rule 4 limited to AMM routes. Operator list includes skim and the root claims.YesSolved
10/01/2026HACK-20d2eac4f. isPaused names the three functions that are not halted.YesSolved
10/01/2026HACK-21d2eac4f. 100 TAO example removed.YesSolved
10/02/2026HACK-23d2eac4f and c637531. DeployAlpha and ResumeDeploy derive both coldkeys before deploy.YesSolved
10/01/2026HACK-24d2eac4f. VerifyWiring reads pool owner and rebalancer.YesSolved

9   Live verification

This pass compared compiled runtime to chain code, then read the vault's positions through getStake and the CCIP pool config on 964, Base, and Robinhood. Evidence is in audit/deep-live.json and audit/verify-v5.json.

9.1   Bytecode

Chain 964 block 9,179,850 for the current contracts. v5 hub block 9,179,840. Immutables were masked, then the Solidity metadata was split off. Executable code matched for every contract below. The v5 hub and the v6 hub differ from the artifact in the 32-byte IPFS digest only.

ContractChainExecutableMetadata
AlphaVault964matchmatch
AlphaGateway v6964matchIPFS digest only
AlphaGateway v5964matchIPFS digest only
AlphaToken TAO, SN80, SN10, SN78964matchmatch
SpokeGatewayBasematchmatch
SpokeGatewayRobinhoodmatchmatch

vaultColdkey() equals blake2b-256("evm:" || address). v6 GATEWAY_COLDKEY() matches the same derivation. v5 does not store a coldkey. Its derived coldkey was used for the stake reads below.

9.2   Books

stakedValueRao equals getStake(validator, vaultColdkey, netuid) on all four tokens. Backing is above supply. The gap is the harvestable surplus plus the 100,000 RAO skim margin. Migration is unset. The vault is not paused. STAKING() is 0x805.

TokenSupply (wei)Backing minus supply (wei)v6 gateway stake (RAO)
TAO895116673746200000000072034865880000000002
SN80235787341691790000000004957349006490000000002
SN10203352250229770000000001526855388240000000000
SN78335867755320810000000005991889240640000000000

The v5 gateway's derived coldkey holds 0 RAO on all four canonical hotkeys. v6 holds 2 RAO on the TAO hotkey and 2 RAO on the SN80 hotkey. backing() does not count that dust, and the gateway has no stake sweep. It is not a shortfall against supply.

9.3   CCIP wiring

Both spokes return the v5 hub from SUBTENSOR_GATEWAY(). Robinhood block 76,409,616. Fee is 0. Integrator cap is 100 bps. Fee admin and fee recipient are the Safe. Both hubs allow the Base selector 15971525489660198786 and the Robinhood selector 6180753054346818345. On-ramps are set in both directions. RMN isCursed() is false on all three chains.

Each hub LockReleaseTokenPool lists both spoke selectors. The spoke BurnMintTokenPool for that asset lists selector 2135107236357186872, and its remote pool is the hub pool. The hub's remote token is the spoke token. Decimals are 18 on both sides. Allowlists are off. Rebalancers are unset. canAcceptLiquidity is false. Rate limits are enabled. TAO capacity is 5,000 tokens at 0.6 token per second, under the amount locked in the TAO pool, so a single TAO transfer larger than the bucket waits.

Spoke supplies for TAO were 5,134.009212314199671498 on Base and 3,817.126907831229824007 on Robinhood. SN80 spoke supply was about 13,379.84 on Base and 10,195.74 on Robinhood. SN10 and SN78 spoke supply on Robinhood was 0. Their Base supplies matched the hub supply, so those two assets were fully locked toward Base at the read. The spoke ERC-20 for SN10 is named Pareton. The spoke ERC-20 for SN78 is named UMI. The hub tokens are Subnet 10 and Subnet 78. The pool addresses, not the names, are what CCIP uses.

The Safe is DEFAULT_ADMIN_ROLE on the Base and Robinhood TAO burn-mint tokens. MINTER_ROLE is the pool, not the Safe, until the Safe grants it. test_spokeAdminMintReleasesHubLock grants that role, mints, burns through the spoke pool, and releaseOrMint on the hub pool pays the locked tokens to the minter, who then withdrawLiquids the stake.

9.4   v5 pull

handleExit and _ccipReceive are the same function text in legacy/v5/src/AlphaGateway.sol and src/AlphaGateway.sol. The inbound path the spokes call is that code. v5 _pullStaked still passes the requested amount into depositStaked. The vault measures the second hop. With a mock that drops 1 RAO when a position is created, v5 bridgeOut reverts and the caller's stake is unchanged. v6 mints the amount the vault actually received, and backing stays equal to supply.

9.5   Precompile floors

All calls below used eth_call from the live vault 0x11837459896D96F821a8D88eC93a3C8D152033D4 against 0x805 at block 9,180,869. Gas limit 5,000,000. No value was spent.

CallAmount (RAO)Result
getNominatorMinRequiredStake-20,000,000
addStake1,000,000AmountTooLow
addStake2,000,000ok
removeStake1,999,999AmountTooLow
removeStake2,000,000ok
transferStake1,000AmountTooLow
transferStake1,000,000ok
moveStake same netuid 02,000,000ok
moveStake netuid 0 to 802,000,000AmountTooLow
moveStake netuid 0 to 8020,000,000ok

transferStake, moveStake, and removeStake of 1 RAO first failed with out of gas at the default limit, then with AmountTooLow at 5,000,000 gas. The vault coldkey still matches blake2b-256("evm:" || vault).

10   Code quality

Line read of src/, legacy/v5/src/, and every file under script/, plus foundry.toml. The floating pragma is HACK-09. Comment mismatches are HACK-06 and HACK-10 through HACK-21. Sections 10.1, 10.2, and 10.4 are not scored. None of these notes change who can move the stake that is already deployed.

10.1   Checked, and not in the source

10.2   Build settings

The pragma finding is HACK-09. foundry.toml also sets optimizer = true, optimizer_runs = 200, and evm_version = "paris". via_ir is unset, so the build uses the legacy pipeline. script/DeployAlpha.s.sol lines 91-92 say the script is already near the stack limit without via-ir. Runs of 200 is the size-leaning setting. A higher runs value would be a different artifact from the one matched in chapter 9. This pass did not rebuild under another runs value.

forge build warns once: script/DeployAlpha.s.sol:93 declares predicted again inside the block that starts at line 90. The outer declaration is line 70. The inner one is the gateway address. The names collide. The addresses do not.

10.3   Comments that disagree with the code

Every NatSpec and inline comment under src/ was read against the function it describes. The mismatches are findings: HACK-06 and HACK-10 through HACK-21. AlphaToken.sol, IntegratorFee.sol, StakeSource.sol, IStaking.sol, IAlphaToken.sol, and IBalanceTransfer.sol had no comment that contradicted the code. The initiateMigration note that withdrawals stay open during the notice window matches whenNotMigrating. That sentence is not HACK-11. HACK-11 is the migrationFinished comment, which describes the state after finishMigration.

10.4   Extra work on the hot path

11   Exhibit B

SeverityScoreMeaning
Critical9.0 - 10.0Permissionless loss of funds, or an equivalent break of a core invariant, with a practical path.
High7.0 - 8.9Loss, theft, or a lasting halt that needs a narrow precondition or a specific caller.
Medium4.5 - 6.9A broken check or bounded loss. Exploitation needs extra conditions.
Low2.0 - 4.4Limited impact, or a path that is hard to reach.
Informational0.0 - 1.9Operational, documentation, or hardening notes. No practical loss on the reviewed path.

Exhibit B terms are in the services agreement when one exists.

hackerbane.com · hello@hackerbane.com · HACK-AR-2026-FOREVERMONEY-BRIDGE