{"assessments":[],"deployments":[{"attestationHash":"4ddbd05ab390476381c97b649649e630f910a140106f328a8d76894a9b8cae11","chainId":1,"contracts":[{"address":"0xc793800622a2fd5d9cc3a541d2d74618561ee551","blockNumber":26409615,"name":"MiyaPoolFactory","role":"other","txHash":"0x83e9ce6b6809946eb30d04687e1c77658449d11db95d35adedbc9cab5ec506db"}],"id":"dc131ecb-92ff-4d84-8459-dae221461807","manifestHash":"e366d3ee3bf3b7bbe277e88a90f5146280fa265a694f4c591baeddc93c243b32","status":"live"}],"fuzz":[],"identity":{"adapter":"0xde152afb7db5373f34876e1499fbd893a82dd336","chainId":1,"collection":"0x0000ec93127baa929e58e97dd0095a2bfb38ec1d","registry":"0x8004a169fb4a3325136eb29fa0ceb6d2e539a432"},"interpretation":"Records acceptance and evidence. Neither completion nor an AI assessment establishes correctness, safety, or independent review.","jobId":"b9641d41-1190-431a-8f98-9406bd8e9a7d","kind":"shape:chain","nodes":[{"acceptedSubmissionHash":"9d03a1118ffb2b725ba45e2a57016d718f51b70f010d571354787b6df8f2847d","dependsOn":["audit_imported_code"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"15128eeb8da9fb5ec13c7964e80f936ddc40e718cc0d455d200435c3dc43d6a7","skillId":"adapt-contract-project","tools":[]},"key":"adapt_contract_project","kind":"code","role":"implement","skillHash":"15128eeb8da9fb5ec13c7964e80f936ddc40e718cc0d455d200435c3dc43d6a7","skillId":"adapt-contract-project","state":"accepted"},{"acceptedSubmissionHash":"37259b059aa0a866b7ac62b352673f4e1287937723cc49aba0e69b8635367309","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_economics","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"a4b94efe2be233d9405208637e77f1d95ddef42f9596ac4359abc41a30e07f0c","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_flow","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"ad4595fcb3eea20e52198874977a75b9d24b96501c5230be48f8bd9292bfe7dd","dependsOn":[],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"b72293c3366fff3f0b93151bca72cc6cbd189dad31d1ccd1d34dd483f2165a36","skillId":"audit-imported-code","subagents":4,"tools":[]},"key":"audit_imported_code","kind":"code","role":"review","skillHash":"b72293c3366fff3f0b93151bca72cc6cbd189dad31d1ccd1d34dd483f2165a36","skillId":"audit-imported-code","state":"accepted"},{"acceptedSubmissionHash":"da0a3ff3940ebe5bc1f8b30a981691604472b092410ea2363b06794ab624eb62","dependsOn":["adapt_contract_project","write_foundry_tests","manifest","audit_math","audit_permissions","audit_economics","audit_flow"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"b89279670f5a00f5d26286edee00c97dd158b997031350a01cafe6e0329ad227","skillId":"audit-judge","subagents":4,"tools":[]},"key":"audit_judge","kind":"code","role":"review","skillHash":"b89279670f5a00f5d26286edee00c97dd158b997031350a01cafe6e0329ad227","skillId":"audit-judge","state":"accepted"},{"acceptedSubmissionHash":"c8a6c9e68a8bb9e74222e3f975ae8ed81664b9e25f21da5541c5b94d4e250e74","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_math","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"0c1c26072d078e86bbf1b4039017a2b775cfcf0d9df06e218a77e5465cb608c4","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","subagents":3,"tools":[]},"key":"audit_permissions","kind":"code","role":"review","skillHash":"bc5bfc8455464381f2db18badb2b55cf8bec1e535c019349a0378fa990741171","skillId":"audit-specialist","state":"accepted"},{"acceptedSubmissionHash":"5e0d42ba4c5c9a5788fb0a006c0ec72b983ec40a1e5d6852cbbf7d5d40aa393c","dependsOn":["adapt_contract_project"],"execution":{"network":false,"profile":"foundry","requires":[],"tools":[]},"key":"manifest","kind":"code","role":"integrate","skillHash":null,"skillId":null,"state":"accepted"},{"acceptedSubmissionHash":"75aea0afc2ee3ba24da07b57a5fb9fb106a32b4a48ac3d0f6237ca0bed8a320a","dependsOn":["adapt_contract_project"],"execution":{"forkChains":[1],"network":false,"profile":"foundry","requires":[],"skillHash":"6c8cf11980f74125d34b6f2b05c5495824fcaadbed08be63708f2f4c4e8114a2","skillId":"write-foundry-tests","subagents":4,"tools":[]},"key":"write_foundry_tests","kind":"code","role":"tests","skillHash":"6c8cf11980f74125d34b6f2b05c5495824fcaadbed08be63708f2f4c4e8114a2","skillId":"write-foundry-tests","state":"accepted"}],"objective":"Launch MiyaPoolFactory from this repository: an application-contracts-only launch on Ethereum mainnet (kind evm_contracts: no token, no pool, no reward distributor; $token does not resolve).\n\nOne contract: MiyaPoolFactory, constructorArgs [0x34be8c25c7922b3052d1955b8e63fb97f778aa08]: the live miyamints default alignment vault (its imd() is IMD 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7, its infer() is INFER 0x53d0ea0a685220718dc6a0a6e4617194c6f37921). The constructor reads imd() and infer() from it, so it needs mainnet state. MiyaPool is not deployed directly: the factory deploys one per collection on demand. The constructor reverts on a chain without that vault (it requires vault code and nonzero imd()/infer()), so deploy on mainnet; there is nothing to set up first and no call after deploy.\n\nFees and prices, as numbers: the factory and the pools take no fee of their own. Depositing costs nothing and mints 1e18 pool tokens per NFT unit; a random redeem burns exactly 1e18 per NFT and nothing else; a pick burns 1e18 per NFT plus the pool's pick fee per NFT, which goes entirely to the vault as the picker's contribution. Each pool's pick fee is chosen once by whoever creates that pool: per token, 0 (not offered) or at least the vault's minimum contribution at creation (today 1 IMD = 1e18 and 3,500 INFER = 3500e18), and never changes.\n\nMiyaPool v2 (README.md, AUDIT-NOTES.md) is an NFT pool for miyamints (miyamaker.com) on Ethereum mainnet, later Robinhood Chain 4663. One pool per collection (MiyaPoolFactory.createPool(collection, imdFee, inferFee), ownerless factory, one constructor arg: the miyamints default alignment vault). Every NFT or ERC-1155 unit in a pool backs exactly 1e18 pool tokens. Deposit mints 1e18 per unit. Random redeem (ERC-721 with randomEnabled, never on 4663): burn now, commit-reveal against a later blockhash (EIP-2935 history where available), reveals strictly in commit order, a deposit-order queue, escrow for recipients the collection refuses. Pick (targeted) redeem: burn 1e18 per unit and pay a pick fee per unit in IMD or INFER, fixed forever at creation (0 = not offered), pulled from the picker and forwarded to the live vault with receiveContribution(token, fee, picker); ids a pending commit could draw are locked from picks (lockedEnd). The vault, registry and IMD/INFER are live mainnet contracts outside this repository; the fork test runs against them. AUDIT-NOTES.md lists the design, every internal finding with its status, and the risks the owner accepted, including: fees are fixed while the vault owner could change its minimums or delist a token (owner rule: never while pools use them; pools without random redeems would then lock their NFTs), and a cheap commit can block picks for two blocks or longer if repeated. A listed item counts only if its stated reasoning is wrong or the risk is larger than stated.\n\nAudit it as it arrived. Questions to answer with a reproduction or a clear no:\n1. Backing: is every pool token backed by exactly one held NFT unit at all times, counting pending commits, across deposit (both the deposit() pull and direct safeTransferFrom into the hooks), pick, commit, reveal, re-arm, escrow and claimEscrowed? Any way to mint unbacked tokens, take an NFT without burning 1e18, or strand an NFT or token?\n2. Random fairness and liveness: once a commit's target block is mined, can any deposit, pick, reveal order or other action change what it draws? Can any commit become unrevealable or block the queue (gas at the 50-unit cap, refusing recipients, re-arm at the history-window edge)? Can the lock (lockedEnd) ever fail to protect a pending draw, or fail to clear?\n3. Pick fee: can a pick pay less than fee x units, pay twice, pay in a token not offered, or pay for someone else's pick; can the pool keep fee tokens, or a vault or fee token (fee-on-transfer, a vault that pulls less, reentrancy through receiveContribution) break accounting?\n4. Hostile collections and callbacks: reentrancy through ERC-721/1155 hooks, fake transfers, collections that lie in ownerOf or balanceOf, factory kind detection via ERC-165, one pool per collection, CREATE2 squatting or address prediction. What can a malicious collection do to its own pool, and to anyone else?\n5. Front-running and griefing beyond what AUDIT-NOTES.md already states, with a cost for each.\n6. Robinhood Chain (4663): is random correctly off there, and does every pool there still let every NFT out?\n\nThe repository's tests must keep passing: forge test, and REQUIRE_FORK_TESTS=true forge test --match-path 'test/fork/*' with MAINNET_RPC_URL set (the same pools against the live vault, IMD and INFER).\n\nIf a reproduced finding is high severity and fixing it would need any of the changes forbidden below, do not deploy: stop and report it. Adapt only what the launch rules or a reproduced audit finding require, and record each change in ADAPTATION.md. Do not add an owner, a pause, a setter, a fee recipient other than the vault, or any new way for NFTs or tokens to leave a pool, do not change the external interface (the miyamaker app calls it as is), and do not change what a pick, deposit or random redeem costs.","parentJobId":null,"planHash":"b64969724e1221d52f2724046c16d69d61e1f6ccba8dc8e3c9a03fbfe2e9900d","previousHash":"16f58b3cf826b3c2a2cd645e5c4ea19e8fe74a21f4bef017b6aaef03ae7db2db","projectId":"b9641d41-1190-431a-8f98-9406bd8e9a7d","publication":{"commit":"e32142ff0f43537747e9235d608e8103875d30e0","deliveredAt":"2026-11-14T00:23:20.977Z","repoUrl":"https://github.com/identity-md-launches/launch-3264-launch-miyapoolfactory-repository-applic"},"receiptIdentity":{"adapter":"0xde152afb7db5373f34876e1499fbd893a82dd336","chainId":1,"collection":"0x0000ec93127baa929e58e97dd0095a2bfb38ec1d","registry":"0x8004a169fb4a3325136eb29fa0ceb6d2e539a432"},"registry":"0xb6d0a187b050fa5bb0b87033a203f37becf4a775","research":[],"schema":"identitymd-work-v1","signals":[],"site":null,"snapshotHash":"0e2d40dedb0d58a6082cd467ad7648906b8cbe8e7330bc56b2594a068329ac8a","state":"completed","submissions":[{"artifacts":[],"attempt":1,"bundleHash":null,"device":"9df7d5d52e83c572","findings":[{"citation":"resolved","description":"MiyaPool inherits Solady's ERC20 and does not override `_givePermit2InfiniteAllowance()`, which returns true by default (lib/solady/src/tokens/ERC20.sol:667-669). For every holder, `allowance(holder, 0x000000000022D473030F116dDEE9F6B43aC78BA3)` is type(uint256).max and `transferFrom` skips the allowance check when the caller is that address. On mainnet that address is Uniswap's Permit2, so the exposure is Permit2-signature phishing against pool tokens the holder never approved; on Robinhood Chain (4663) or any chain where nothing lives at that address the allowance is still reported as infinite. README and AUDIT-NOTES present the pool as having no privileged party and enumerate every accepted risk, but this third-party allowance over all balances is not stated anywhere. Access-control map: a spender that no user granted. Fix that keeps the interface: `function _givePermit2InfiniteAllowance() internal pure override returns (bool) { return false; }`, or document the Permit2 trust in AUDIT-NOTES if it is wanted.","line":87,"path":"src/pools/MiyaPool.sol","reproduction":"Fresh ERC-721 pool; alice deposits 5 NFTs and never calls approve. `pool.allowance(alice, 0x000000000022D473030F116dDEE9F6B43aC78BA3)` == type(uint256).max. `vm.prank(0x000000000022D473030F116dDEE9F6B43aC78BA3); pool.transferFrom(alice, bob, 2e18)` succeeds; bob's balance is 2e18 (test/scratch/Leads.t.sol, test_permit2HasInfiniteAllowanceWithoutApproval, passes on the code as it is). Expected: no allowance without an approve, or the trust assumption stated.","severity":"low","snippet":"contract MiyaPool is ERC20, ReentrancyGuard {","title":"Every holder's pool tokens are spendable by Permit2 without any approval (Solady ERC20 default), an undocumented standing allowance"},{"citation":"resolved","description":"Solady's DOMAIN_SEPARATOR() hashes `name()` on every call because `_constantNameHash()` is not overridden (lib/solady/src/tokens/ERC20.sol:472-475), and MiyaPool.name() staticcalls the collection each time. The pool's EIP-712 domain is therefore controlled by the collection contract: a collection that can rename itself (setName, upgradeable proxy, a name() that reverts or returns short data so the fallback \"NFT\" kicks in) changes the domain and every permit signed before that reverts with InvalidPermit. approve() still works, so only the permit path is denied, but a pool's signature domain should not be mutable by a third party. Fix without an interface change: compute the name hash once in the constructor and return it from `_constantNameHash()`.","line":216,"path":"src/pools/MiyaPool.sol","reproduction":"Collection with name() == \"first\"; alice signs permit(alice, bob, 1e18, nonce 0, deadline now+1 day) against pool.DOMAIN_SEPARATOR(). The collection owner calls setName(\"second\"). pool.DOMAIN_SEPARATOR() now differs and pool.permit(alice, bob, 1e18, deadline, v, r, s) reverts InvalidPermit (test/scratch/Leads.t.sol, test_permitBreaksWhenCollectionRenames). Expected: a permit signed for this pool is valid until its deadline whatever the collection's metadata does.","severity":"low","snippet":"        return string.concat(\"miya pool: \", _collectionString(0x06fdde03, \"NFT\"));","title":"permit() domain separator is derived from the collection's live name(): a rename or a failing name() invalidates every outstanding signed permit"},{"citation":"resolved","description":"AUDIT-NOTES accepts that 're-rolling random redeems ... to fish for a piece costs only gas; with a small pool and a meaningful fee that can be cheaper than the fee'. The risk is larger than stated: whenever heldUnits() <= MAX_COMMIT_UNITS (50), a single commitRedeem(heldUnits(), self) draws every id, so the targeted piece is obtained with certainty, not by chance, and the lock makes every other user's pick revert LockedForRandomRedeem for the two blocks until the reveal. The 49 unwanted ids are redeposited for free (deposit mints 1e18 each), so the net cost is one pool token (exactly a pick's token cost) plus gas, and the vault receives nothing. For a pool of M > 50 pieces the expected number of rounds is M/50 (each round 50 draws), still fee-free. Measured on a plain ERC-721: commit 142,569 gas, reveal 1,713,326 gas, redeposit of 49 ids 4,745,462 gas, total 6,601,357 gas (about 0.007 ETH at 1 gwei) against a fee of 1 IMD or 3,500 INFER per piece. Economics x asymmetry seam: the two exits price the same piece differently and the free one can be made to deliver the targeted piece. No in-contract fix fits the launch rules (any fee on random or a cap on commits relative to pool size changes what a random redeem costs); report so the owner can set fees and app behaviour knowing the fee only binds on pools well above 50 pieces.","line":414,"path":"src/pools/MiyaPool.sol","reproduction":"Pool created with imdFee 1e18 for a 50-piece collection; lp deposits ids 1..50 and the hunter holds 50 pool tokens and no IMD. pool.redeem([37], [], hunter, IMD) reverts (no IMD). Hunter: commitRedeem(50, hunter) -> after target block, anyone calls revealRedeem(c) -> hunter owns every id including 37 -> hunter deposit(ids except 37) -> hunter holds 49e18 pool tokens, pool holds 49 pieces, vault IMD balance 0, nft.ownerOf(37) == hunter (test/scratch/FeeBypass.t.sol, test_commitWholePoolTakesTheWantedIdWithoutTheFee, passes on the code as it is). Expected per AUDIT-NOTES: fishing is probabilistic and only 'can be' cheaper; actual: for <= 50 pieces it is certain and costs exactly one pool token plus gas.","severity":"low","snippet":"        if (_ids.length() < pendingUnits + amount) revert InsufficientHeld();","title":"Pick fee is avoidable deterministically on any random-enabled pool holding at most 50 pieces: commit the whole pool, keep the wanted id, redeposit the rest (AUDIT-NOTES states only probabilistic fishi"}],"hash":"0c1c26072d078e86bbf1b4039017a2b775cfcf0d9df06e218a77e5465cb608c4","nodeId":"a43beaec-1568-4f70-811e-d09afd145e3b","outcome":"completed","summary":"Review complete. No tracked file changed; the findings are in `.imd-findings.json` at the repository root.\n\n**Result: no critical or high defect in the permissions area.** The access-control map, the trust seams with the live vault and the paired deposit/redeem, commit/reveal and hook paths all hold as AUDIT-NOTES describes them. Three low findings are recorded, each with a reproduction that passes on the code as it is (scratch tests under `test/scratch/`).\n\nFindings:\n- **Permit2 infinite allowance.** Solady's ERC20 default gives the Permit2 address an unconditional allowance over every holder's pool tokens. A prank from that address moves alice's tokens with no approve. README and AUDIT-NOTES do not state this trust assumption.\n- **Permit domain tied to the collection's live name.** The EIP-712 domain hashes `name()` on each call, which staticcalls the collection. A collection rename invalidates every outstanding signed permit. Only the permit path is affected.\n- **Pick fee avoidable with certainty on pools of at most 50 pieces.** Commit the whole pool, keep the wanted id, redeposit the other 49. Net cost is one pool token plus about 6.6M gas, and the vault receives nothing. AUDIT-NOTES describes this only as probabilistic fishing in small pools. No fix fits the launch rules, so it is reported for the owner's fee and app decisions.\n\nChecked and holding, recorded as coverage rows:\n- The live vault's 16-token batch cap cannot block a pick. The registry allows 15 tokens plus ETH, exactly 16 currencies, so the pick token always has a slot. AUDIT-NOTES' reasoning covers only the per-benefactor cap, but the conclusion is right.\n- The live vault's `receiveContribution` has no caller restriction, pause or maximum, confirmed from its verified source and the passing fork test against mainnet.\n- The lock, escrow, hook guards, operator and duplicate-id paths, and the Robinhood Chain switch behave as intended.\n\nVerification: the unit suite passes (93 tests) and the fork suite passes against the live vault, IMD and INFER. All 13 verifier entry points have a coverage row, plus four invariant rows.","treeHash":null,"usage":{"cachedInputTokens":1911068,"chain":[{"calls":314,"chainId":1,"failed":0,"own":266,"public":0,"refused":48}],"cost":{"source":"runtime","usdMicros":6332476},"inputTokens":546,"model":"claude-fable-5-1","outputTokens":58346,"runtime":"claude","turns":40,"wallClockMs":1458959}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"d021901979a78997","findings":[{"citation":"resolved","description":"AUDIT-NOTES.md (lines 58-59) accepts that random redeems can be used to 'fish' for a piece and that this 'can be cheaper than the fee' for a small pool. The risk is larger than stated: it is not a gamble. commitRedeem only requires _ids.length() >= pendingUnits + amount, so a commit (or several in one block, 50 units each) may cover every held id. Whoever holds as many pool tokens as the pool holds ids receives every id, including the one a pick would have cost a fee for, and deposit() is free, so the unwanted ids go straight back for the same number of tokens. End state after one commit/reveal/deposit cycle is identical to a 1-unit pick (one token fewer, the chosen NFT in hand) except that no fee reaches the vault. Cost is gas only: measured in the scratch test, commit 4 + reveal 4 + redeposit 3 ~ 0.5M gas versus 1 IMD or 3,500 INFER per pick. The capital (N tokens) is needed for two blocks only. For a 50-id pool one commit suffices; for 150 ids three commits in one transaction and three reveals two blocks later. Nothing in the pool can price this without changing what a random redeem costs, so this is a note for the fee rule and the app (the pick fee only prices choosing from a pool you do not already own outright), not a code change request.","line":414,"path":"src/pools/MiyaPool.sol","reproduction":"Mock ERC-721 pool created with createPool(nft, 1e18, 3500e18). Alice deposits ids 1..4 minting 4e18 to Bob. Bob wants id 3. Bob calls commitRedeem(4, bob) (burns 4e18), after target+1 anyone calls revealRedeem(c): Bob owns ids 1,2,3,4. Bob calls deposit([1,2,4], [], bob): balance back to 3e18. Expected (per the fee rule): obtaining a chosen id costs 1 token plus 1 IMD to the vault. Actual: 1 token, vault.pendingOf(bob, IMD) == 0, imd.balanceOf(bob) unchanged. Scratch test test_wholeRangeCommitPicksWithoutFee in test/scratch/EconLeads.t.sol passes on this code.","severity":"low","snippet":"        if (_ids.length() < pendingUnits + amount) revert InsufficientHeld();","title":"Pick fee is avoidable with certainty: a holder of N tokens commits the whole drawable range, keeps the id they wanted and redeposits the rest for free"},{"citation":"resolved","description":"Minting happens only in onERC721Received. deposit() pulls the NFT with safeTransferFrom and returns without checking that heldUnits() or totalSupply() grew. An ERC-721 that passes the factory's ERC-165 probe but implements safeTransferFrom as a plain transferFrom (no receiver call; several older or hand-rolled collections do this, and it is exactly the case the contract's own docs call 'untracked and cannot be recovered') moves the NFT into the pool, the hook never runs, no pool tokens are minted and the id is not in _ids, so redeem() reverts NotHeld and no path ever releases it. The depositor loses the NFT. A hostile collection can of course do worse to its own pool (AUDIT-NOTES 8e6d454a), but this case needs no malice, only a non-conforming safeTransferFrom, and a one-line check in deposit() (revert unless _ids.length(), or totalSupply, grew by ids.length) would turn the loss into a revert without changing the interface, the cost of a deposit beyond a few hundred gas, or any exit path.","line":298,"path":"src/pools/MiyaPool.sol","reproduction":"NoHook721 is Mock721 with safeTransferFrom(from,to,id,data) { transferFrom(from,to,id); }. createPool(noHook, 0, 0). Alice owns id 1, approves the pool, calls deposit([1], [], alice). Expected: either 1e18 minted to Alice with heldUnits()==1, or a revert leaving Alice her NFT. Actual: call succeeds, nft.ownerOf(1)==pool, pool.balanceOf(alice)==0, pool.heldUnits()==0; redeem([1]) reverts (InsufficientBalance, and NotHeld(1) for anyone holding a token). Scratch test test_depositWithoutHookStrandsNftAndMintsNothing in test/scratch/EconLeads.t.sol shows the three asserts holding on this code.","severity":"low","snippet":"                IERC721Pool(collection).safeTransferFrom(msg.sender, address(this), ids[i], data);","title":"deposit() never checks that the receiver hook ran: a collection whose safeTransferFrom skips onERC721Received strands the NFT in the pool with nothing minted"},{"citation":"resolved","description":"Read from chain 1 (public RPC https://ethereum-rpc.publicnode.com equivalent): IMD 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7 has 22,990 bytes of code, owner() = 0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7, and the OFT selector set (send 0xc7c7f5b3, quoteSend 0x3b6f743b, lzReceive 0xd045a0dc, peers 0xbb0b6a53, setEnforcedOptions 0x1f5e1334, setDelegate 0x963efcaa, transferOwnership 0xf2fde38b). No pause (paused() reverts) or blacklist selectors, no EIP-1967 proxy slot, so local transfer/transferFrom are standard and the pool's exact balance checks (FeeNotReceived / FeeNotForwarded) hold. INFER 0x53d0eA0A685220718Dc6a0a6e4617194C6F37921 is 1,753 bytes with no owner() and is plain. The trust assumption the notes should state: the IMD owner can register a peer it controls and mint IMD on mainnet through lzReceive, which changes what a 1-IMD pick fee is worth and could make picks arbitrarily cheap; the pool cannot and should not react (fees are fixed in token units by design). No pool change; a notes correction.","line":93,"path":"AUDIT-NOTES.md","reproduction":"eth_call owner() (0x8da5cb5b) on IMD at latest block returns 0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7; eth_getCode length 22,990; paused() (0x5c975abb) reverts. eth_call owner() on INFER reverts, code length 1,753. Expected per the notes: both tokens are plain ERC-20s with no privileged party. Actual: IMD has an owner with OFT peer control.","severity":"info","snippet":"  for someone else; reentrancy (`redeem` is `nonReentrant`; IMD and INFER are plain ERC-20s; the vault is trusted code;","title":"AUDIT-NOTES calls IMD a plain ERC-20; on mainnet IMD is a 23 KB owned LayerZero OFT whose owner controls cross-chain peers (and thereby local minting via lzReceive)"},{"citation":"resolved","description":"Solady's ERC20 computes DOMAIN_SEPARATOR from keccak256(bytes(name())) at call time unless _constantNameHash() is overridden (lib/solady/src/tokens/ERC20.sol lines 408-410 and 473-475). MiyaPool.name() concatenates the collection's current name() via staticcall, falling back to \"NFT\" when the call fails or returns fewer than 64 bytes. If the collection renames itself, is upgraded, or its name() starts reverting (or returning a huge string), every permit signed under the old domain becomes invalid, and a permit signed off-chain can be invalidated between signing and submission by the collection owner. No funds move; approve() still works, so the app is unaffected unless it relies on permit. Outside the economics area; recorded because it is cheap to fix (cache the name hash at construction or override _constantNameHash) and it is a liveness dependency on the collection that the notes do not list.","line":215,"path":"src/pools/MiyaPool.sol","reproduction":"Renamable721 (Solady ERC721 with setName) pool created via createPool(nft, 0, 0); owner deposits id 1 and holds 1e18. Owner signs permit(owner, spender, 1e18, nonce 0, deadline) over the current DOMAIN_SEPARATOR. Collection owner calls setName(\"Drop v2\"). pool.permit(...) with that signature reverts (Solady InvalidPermit); after setName(\"Drop\") the same signature is accepted and allowance == 1e18. Expected: a signature valid at signing stays valid until its deadline regardless of the collection's metadata. Scratch test test_permitBreaksWhenCollectionRenames in test/scratch/Extra.t.sol passes on this code.","severity":"info","snippet":"    function name() public view override returns (string memory) {\n        return string.concat(\"miya pool: \", _collectionString(0x06fdde03, \"NFT\"));\n    }","title":"Pool-token permit domain separator is rebuilt from the collection's live name(): a renamed or name()-failing collection invalidates outstanding permit signatures"}],"hash":"37259b059aa0a866b7ac62b352673f4e1287937723cc49aba0e69b8635367309","nodeId":"01a65b17-d8bf-451c-98d4-0dccf5f58e47","outcome":"completed","summary":"Review complete. The findings file is written at `.imd-findings.json` with 4 findings and 18 coverage rows (all 13 verifier entry points answered, plus 5 invariant rows).\n\n**Outcome for the economics area (Economic Security, Invariant, Flow Gap): no high or critical defect.** The backing invariant, the queue lock, the fee path and the Robinhood switch hold on every path I traced. Both repository suites pass as they arrived, and the fork test passes against the live vault. The 93 unit tests and the invariant suite ran with no failures.\n\nWhat I verified beyond the existing suite, each with a scratch test under `test/scratch/`:\n- Multi-unit picks on the live vault book exactly fee × units to the picker, once, in IMD and in INFER, and the pool keeps nothing.\n- The reveal gas floor works. At the smallest gas that passes it, a cold transfer still receives 199,643 gas and is delivered, so a revealer cannot under-gas a draw into escrow.\n- The live drop's transfer costs about 90k gas, well under the 200k reveal cap.\n\nFindings reported:\n1. **Low.** The pick fee is avoidable with certainty, not just by \"fishing\" as AUDIT-NOTES states. A holder of N tokens commits the whole drawable range, keeps the id they wanted and redeposits the rest for free. End state equals a 1-unit pick with no fee reaching the vault. Reproduced with a 4-id pool.\n2. **Low.** `deposit()` never checks that the receiver hook ran. A collection whose safeTransferFrom skips the hook leaves the NFT in the pool with nothing minted and no exit. Reproduced with a mock. A one-line growth check would convert the loss into a revert without touching the interface or exits.\n3. **Info.** AUDIT-NOTES calls IMD a plain ERC-20. On mainnet it is a 23 KB owned LayerZero OFT whose owner controls peers and thereby local minting. Local transfers are standard, so the pool's exact balance checks hold. This is a trust assumption to record.\n4. **Info.** The pool token's permit domain is rebuilt from the collection's live name(). A rename invalidates outstanding permit signatures. Reproduced.\n\nOne lead stayed unpromoted and is marked unreached: vault-side liveness limits (open-batch token cap, per-benefactor cap, owner changes), since the vault source is not in the tree and I confirmed only the paths the fork test exercises.\n\nNo repository file was changed. The scratch tests are in `test/scratch/` only.","treeHash":null,"usage":{"cachedInputTokens":1458979,"chain":[{"calls":407,"chainId":1,"failed":2,"own":401,"public":0,"refused":4}],"cost":{"source":"runtime","usdMicros":5920466},"inputTokens":418,"model":"claude-fable-5-1","outputTokens":55038,"runtime":"claude","turns":20,"wallClockMs":1078986}},{"artifacts":[],"attempt":1,"bundleHash":"57c5cfe26aa47827419b3902efc32c16f743cbed4bd045317a59bb9343e00892","device":"ea89e16822824c6f","findings":[],"hash":"5e0d42ba4c5c9a5788fb0a006c0ec72b983ec40a1e5d6852cbbf7d5d40aa393c","nodeId":"60bbfb1a-466f-4eac-96fb-37e637f60003","outcome":"completed","summary":"`launch.json` is written and verified. The build passes and all 93 tests pass with the verifier's fuzz seed.\n\n**The manifest** names one contract, MiyaPoolFactory, with a single constructor argument: the live miyamints default alignment vault address from the brief. There is no owner argument because the factory is ownerless, so no `$owner` appears. The notes field describes the vault, the IMD and INFER tokens it resolves to, the on-demand pool creation, and the fee and price numbers from the brief in 1,861 characters.\n\n**Why it deploys cleanly.** The accepted source already stores the vault address without reading it, as recorded in ADAPTATION.md change 1. That means the constructor succeeds on the protected harness's empty-chain rehearsal and binds to the live vault on mainnet.\n\n**Checks run**\n\n| Check | Result |\n| --- | --- |\n| Manifest shape (keys, kind, identifier, string args, notes length) | ok |\n| `forge build` | ok |\n| `forge test` with the verifier's fuzz seed | 93 passed, 0 failed |\n\n**Not run.** The fork suite needs MAINNET_RPC_URL, which this task was not given, so I did not run it. The prior contributor's ADAPTATION.md records it passing against the live vault, and nothing in the source changed here.\n\nThe only file changed in the repository is `launch.json`. The other untracked dotfiles in the status output are this machine's shell and editor configuration, not part of the work.","treeHash":"2118bcc5845a622ef284b42782e8fc773a941eb4","usage":{"cachedInputTokens":133349,"cost":{"source":"runtime","usdMicros":693035},"inputTokens":130,"model":"claude-fable-5-1","outputTokens":3464,"runtime":"claude","turns":9,"wallClockMs":534732}},{"artifacts":[],"attempt":1,"bundleHash":"018e48d28c1891de0eae7aa70926f7e010f84280ae95295eb32c2964f4d95690","device":"45733b6bb4e97b16","findings":[],"hash":"75aea0afc2ee3ba24da07b57a5fb9fb106a32b4a48ac3d0f6237ca0bed8a320a","nodeId":"1a879a86-8887-4e9f-b301-caaa370631fb","outcome":"completed","summary":"Added adversarial, invariant, wallet-gas, and pinned-mainnet tests. All changes are under `test/`.\n\n- `forge build`: passed.\n- Full suite: 130 passed.\n- Required fork suite: 8 passed.\n- No new defects reproduced.\n\nReview answers and accepted limitations: [test/REVIEW.md](/home/imd/.identitymd/work/b9641d41-1190-431a-8f98-9406bd8e9a7d/1a879a86-8887-4e9f-b301-caaa370631fb/test/REVIEW.md).","treeHash":"ee17fd4cf73b6abff8a6f24bd24c8d133775bdbe","usage":{"cachedInputTokens":5436160,"cost":{"source":"estimated","usdMicros":8702080},"inputTokens":103732,"model":"gpt-6-astra","outputTokens":44572,"runtime":"codex","turns":11,"wallClockMs":1327569}},{"artifacts":[],"attempt":1,"bundleHash":"1b0c8972d68c20d27426fba3725b510eefc7c5e0fb860dc9b2755b9bf8d84e12","device":"4ebee02fc506f27c","findings":[],"hash":"9d03a1118ffb2b725ba45e2a57016d718f51b70f010d571354787b6df8f2847d","nodeId":"7e5f88bd-1989-4a42-834e-41384dd2bbe3","outcome":"completed","summary":"The work is complete and verified. Final state:\n\n**What changed (both in `src/pools/MiyaPoolFactory.sol`)**\n- The constructor now only stores the vault address. It no longer requires vault code or reads the vault's tokens. The views `imd()` and `infer()` read the vault live and return the zero address when the vault has no code. This fixes the reproduced medium finding and the launch rule that constructors run on an empty chain. Mainnet behaviour is unchanged: a pool with a nonzero fee still requires vault code, a registered token and the vault minimum. The ABI is unchanged.\n- The address prediction builds init code with `bytes.concat` instead of packing two dynamic values, which Slither rejects. Same bytes, same predicted address.\n\n**Tests**\n- New file `test/pools/MiyaPoolLaunch.t.sol` replays the launch floor's CREATE2 deployment on chain id 1 with the live vault address and no vault code, scans runtime for forbidden opcodes, and reproduces every imported finding against the arrived code. It also adds two fee-path checks from my review: a vault reentering the pool is refused, and donated fee tokens never count as a fee.\n- One existing test that expected the old constructor revert was replaced with the lazy-read behaviour.\n- Results: 93 tests pass with the verifier's fuzz seed, and the fork test passes against the live vault, IMD and INFER.\n\n**Audit outcome**\n- Factory constructor on the rehearsal chain: reproduced, fixed.\n- Squatted unpayable fee on ERC-1155 and chain 4663 pools: reproduced. Not changed, because the only fix is a fee ceiling, which is a fee rule for the requester. AUDIT-NOTES corrected, with an app-side recommendation.\n- Lock cost shift, lying collection, sentinel id: reproduced, documented, not changed. Each fix would alter costs, add a flow, or change a protected dependency.\n- My own review of the six questions found no new defect. Details are in `ADAPTATION.md`.\n\n**Not done**\n- No commit was made and no manifest written, as the task directs. The untracked dotfiles in the working tree are the machine's, not part of this work.","treeHash":"f1d4f4d06250f30fbecc8e19540b42f6c522fb82","usage":{"cachedInputTokens":1312327,"cost":{"source":"runtime","usdMicros":4946429},"inputTokens":450,"model":"claude-fable-5-1","outputTokens":48206,"runtime":"claude","turns":28,"wallClockMs":1709847}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"896d1238054266ca","findings":[{"citation":"resolved","description":"MiyaPool inherits Solady's ERC20 unchanged. Solady's transfer/transferFrom have no zero-address check, so `pool.transfer(address(0), 1e18)` succeeds, moves 1e18 to address(0) and leaves totalSupply unchanged (it is not a burn). The accounting invariant totalSupply + UNIT*pendingUnits == UNIT*heldUnits still holds, but 1e18 of supply is now owned by an address that can never call redeem or commitRedeem, so one NFT unit stays in custody forever (whichever unit is left after every other holder exits). The NatSpec at lines 84-85 documents only pool tokens sent to the pool itself as unrecoverable; address(0) is the same class and is not documented, and the UI/app has no warning. User error, not an attacker vector, so low. Fix without changing the interface: override `_beforeTokenTransfer` (or transfer/transferFrom) to revert on `to == address(0)`, as OpenZeppelin's ERC20 does; this changes no price or exit path.","line":87,"path":"src/pools/MiyaPool.sol","reproduction":"Free 721 pool (factory with vault address(0), createPool(nft,0,0)). Alice deposits ids 1 and 2 (totalSupply 2e18). Alice calls pool.transfer(address(0), 1e18): succeeds; balanceOf(address(0)) == 1e18, totalSupply == 2e18. Alice redeems id 1 with her remaining token. Now heldUnits() == 1, totalSupply == 1e18 and the only holder is address(0): commitRedeem(1, alice) reverts (InsufficientBalance) and no account can ever redeem id 2. Expected: a transfer to address(0) reverts (or burns and reduces supply so the pool's held count follows); actual: silently succeeds and strands the unit. Verified in test/scratch/ControlFlow.t.sol::test_transferToZeroStrandsBackingNft.","severity":"low","snippet":"contract MiyaPool is ERC20, ReentrancyGuard {","title":"Pool tokens can be sent to address(0) without a burn, permanently stranding the NFT that backs them"},{"citation":"resolved","description":"MiyaPool does not override Solady ERC20's `_constantNameHash()`, so DOMAIN_SEPARATOR() (and therefore permit) hashes `name()` on every call, and `name()` staticcalls the collection's name() at that moment. Two consequences for the pool's own ERC-20 surface: (1) if the collection changes its name (upgradeable or owner-renamable collections are common), every permit signed before the change fails with InvalidPermit, and off-chain integrators caching the domain separator (miyamaker app, wallets, Permit2-style flows) break; (2) if the collection's name() returns >= 64 bytes that are not a valid ABI string (or a huge return bomb), `_collectionString` reverts in abi.decode and name(), DOMAIN_SEPARATOR() and permit() all revert for everyone, while approve/transfer still work. Only the collection's own pool is affected and the collection is already trusted for custody, so low. Fix: give the pool a constant EIP-712 name (override `_constantNameHash()` to a fixed hash, e.g. keccak256('MiyaPool')) so the domain separator is independent of collection metadata; name()/symbol() for display can stay dynamic.","line":215,"path":"src/pools/MiyaPool.sol","reproduction":"721 pool for a collection whose name() is owner-settable. Owner of 1e18 pool tokens signs a permit against pool.DOMAIN_SEPARATOR(). Collection calls setName('Beta'): DOMAIN_SEPARATOR() changes and permit(owner, spender, 1e18, deadline, v, r, s) reverts. Collection then makes name() return the raw 64 bytes (1, 2): pool.DOMAIN_SEPARATOR() reverts, pool.permit(...) reverts, pool.approve still succeeds. Expected: a stable EIP-712 domain for the pool token; actual: domain tracks untrusted external metadata. Verified in test/scratch/ControlFlow.t.sol::test_permitDependsOnLiveCollectionName.","severity":"low","snippet":"    function name() public view override returns (string memory) {\n        return string.concat(\"miya pool: \", _collectionString(0x06fdde03, \"NFT\"));","title":"permit/DOMAIN_SEPARATOR depend on the collection's live name(): a rename invalidates signed permits and malformed metadata disables permit"},{"citation":"resolved","description":"commitRedeem (line 413) rejects both address(0) and address(this) as recipient; redeem only rejects address(this). With OpenZeppelin or Solady collections transferFrom(pool, address(0), id) reverts so nothing is lost, but a collection whose transferFrom treats the zero address as a burn (some custom 721s do) would burn the picked id after the picker has already burned 1e18 and paid the pick fee. Self-inflicted by the caller and collection-dependent, so informational; adding `to == address(0)` to the check at line 368 costs nothing and changes no interface.","line":368,"path":"src/pools/MiyaPool.sol","reproduction":"Call pool.redeem([id], [], address(0), feeToken) on a pool whose collection implements transferFrom to zero as a burn: 1e18 pool tokens are burned, the fee is forwarded to the vault, the NFT is destroyed. With an OZ/Solady collection the same call reverts in the collection. Expected: InvalidRecipient from the pool, as commitRedeem does.","severity":"info","snippet":"        if (to == address(this)) revert InvalidRecipient();","title":"redeem() accepts to == address(0) while commitRedeem rejects it; a collection that burns on transfer-to-zero would destroy the picked NFT"},{"citation":"resolved","description":"No test etches code at the EIP-2935 address 0x0000F90827F1C53a10cb7A02335B175320002935, so the branch that mainnet reveals take between 257 and 8191 blocks after the target, and the re-arm boundary at 8192, run untested (grep for 2935/HISTORY in test/ finds nothing). I traced and tested the branch myself with a mock implementing the EIP semantics: reveal at target+257 and at target+8191 succeeds via the history contract, reveal at target+8192 re-arms to block.number+1 and the commit settles the block after; without history code the pool re-arms after 256 as documented. Behaviour is correct, so this is a coverage note for the author, not a defect.","line":555,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/Reveal.t.sol::test_historyWindowEdges and test_noHistoryContract_rearmsAfter256 (vm.etch a mock history at the EIP-2935 address, commit, vm.roll to target+257, +8191, +8192 and reveal). Expected and actual agree; the repository suite simply never runs this path.","severity":"info","snippet":"    function _blockHash(uint256 n) internal view returns (bytes32 h) {\n        if (block.number - n <= 256) return blockhash(n);\n        if (block.number - n > HISTORY_WINDOW || HISTORY.code.length == 0) return bytes32(0);","title":"EIP-2935 history branch of _blockHash (re-arm at the 8191-block edge) is not exercised by any repository test"}],"hash":"a4b94efe2be233d9405208637e77f1d95ddef42f9596ac4359abc41a30e07f0c","nodeId":"6b6ff28a-9c1c-444d-8a07-b0e1c6992553","outcome":"completed","summary":"Review complete. The findings file is written and the working tree is otherwise untouched (git shows nothing tracked as modified; the findings file and my scratch tests are ignored).\n\n**Outcome:** the control-flow area (Execution Trace, Periphery, First Principles) holds on every question the brief asked. I found no way to mint unbacked tokens, take an NFT without burning 1e18, alter a draw after its target block, block the reveal queue, bypass the lock, or make a pick pay less, twice, or for someone else. I reproduced two low-severity defects and two informational notes, all in `.imd-findings.json` with concrete inputs.\n\n**Findings**\n- **Low: pool tokens to address(0) strand an NFT.** Solady's ERC20 has no zero-address check, so `transfer(address(0), 1e18)` succeeds without reducing supply. The unit backing it can never be redeemed by anyone. Verified by scratch test.\n- **Low: permit's domain separator tracks the collection's live name().** A renamed collection invalidates signed permits. A collection returning malformed name bytes makes permit and DOMAIN_SEPARATOR revert while approve still works. Verified by scratch test.\n- **Info: redeem() allows to == address(0)** while commitRedeem rejects it. Only harmful with a collection that burns on transfer-to-zero.\n- **Info: the EIP-2935 history branch is untested** in the repository. I tested it myself: reveals at target+257 and target+8191 succeed through history, target+8192 re-arms correctly.\n\n**What I verified beyond the findings**\n- The queue and lock bookkeeping: every pending commit's range is a prefix of lockedEnd, picks and deposits only touch positions at or past it, and a reveal's range is always at least its amount.\n- The reveal gas floor: at the smallest outer gas that lets a reveal succeed, the collection still received 199,643 gas of the 200k cap, so a stingy revealer cannot force escrow.\n- The fee path: exact pull and forward checks, benefactor is msg.sender, locked picks revert before any fee moves.\n- All 93 repository tests pass. I did not run the mainnet fork test (no RPC configured here); its results are reported by the existing suite's own run.\n\n**Coverage:** all 13 listed entry points have rows (9 hold, 4 reference findings), plus 7 invariant rows. Nothing was left unreached.","treeHash":null,"usage":{"cachedInputTokens":1031763,"cost":{"source":"runtime","usdMicros":4901509},"inputTokens":356,"model":"claude-fable-5-1","outputTokens":49490,"runtime":"claude","turns":17,"wallClockMs":1178151}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"4ebee02fc506f27c","findings":[{"citation":"resolved","description":"The factory constructor requires the vault argument to have code and then calls imd() and infer() on it. The launch pipeline's protected check (.imd/reads/protected/evm_contracts/Contracts.protected.t.sol, ContractsDeploymentProbe.deployAll) deploys every application's init code with CREATE2 on an empty local chain (vm.chainId only, no fork) and requires created.code.length > 0; a reverting constructor fails it with 'application 0 constructor failed' and parks the launch. With constructorArgs [0x34be8c25c7922b3052d1955b8e63fb97f778aa08] the live vault has no code on that chain, so the only valid manifest for this launch cannot pass the floor as the code stands. The launch recipe states the same rule: a constructor that requires an address to have code reverts there; take such values as arguments and check the live contract on first use. MiyaPool's own constructor already re-checks vault code and the vault's registry/config when a fee is nonzero, so the factory's eager check adds no safety that the pool does not already enforce. Adapter note: an interface-preserving fix is to store vault_ without the code check and have the factory's imd()/infer() views read the vault lazily (or have MiyaPool read vault.imd()/vault.infer() itself), so the mainnet deployment behaves identically while the empty-chain rehearsal passes. This is a launch blocker, not a loss of funds.","line":49,"path":"src/pools/MiyaPoolFactory.sol","reproduction":"On a chain where 0x34bE8C25C7922B3052D1955b8E63fB97F778AA08 has no code (any local anvil/forge chain, as the protected harness uses): `new MiyaPoolFactory(0x34bE8C25C7922B3052D1955b8E63fB97F778AA08)` reverts with InvalidVault(). Expected by the launch floor: deployment succeeds and the runtime is present. Scratch test test/scratch/Leads.t.sol::test_leadA_factoryConstructorRevertsOnEmptyChain passes (expectRevert InvalidVault). The same deployment on a mainnet fork succeeds (test/fork/MiyaPoolV2Fork.t.sol passes with REQUIRE_FORK_TESTS=true).","severity":"medium","snippet":"        if (vault_ != address(0) && vault_.code.length == 0) revert InvalidVault();","title":"MiyaPoolFactory constructor reverts on the launch rehearsal chain (requires vault code and live imd()/infer())"},{"citation":"resolved","description":"createPool accepts any nonzero fee at or above the vault minimum, with no upper bound, and the fee is fixed forever; one pool per collection means the first creator decides for everyone. AUDIT-NOTES.md (lines 45-46) accepts squatting on the grounds that 'random redeems still work'. That reasoning only holds for ERC-721 pools off chain 4663. For every ERC-1155 collection, and for every pool created on Robinhood Chain 4663, randomEnabled is false, so a pool created with imdFee = 0 and inferFee = type(uint256).max (or any amount above the token's total supply) accepts deposits but can never release a unit: commitRedeem reverts RandomUnavailable, redeem with address(0) reverts FeeTokenNotOffered, redeem of 2+ units reverts on the fee multiplication overflow, and redeem of 1 unit needs more INFER than exists. The collection can never get another pool (PoolExists). Anyone who deposits (the app or a direct safeTransferFrom) loses the NFT permanently; at minimum the collection is permanently denied a working pool. Cost to the attacker: one createPool transaction (about 3.3M gas), no capital. The risk is therefore larger than stated for the two pool classes the design itself identifies as having no random path.","line":63,"path":"src/pools/MiyaPoolFactory.sol","reproduction":"Mock1155 collection, vault with INFER min 3500e18. squatter: factory.createPool(editions, 0, type(uint256).max) succeeds; pool.kind()==ERC1155, randomEnabled()==false. alice: editions.setApprovalForAll(pool,true); pool.deposit([1],[2],alice) succeeds, balance 2e18. Then pool.commitRedeem(1, alice) reverts RandomUnavailable; pool.redeem([1],[2],alice,INFER) reverts (overflow in pickFee); pool.pickFee(INFER,1) == 2^256-1 so a 1-unit pick can never be funded; factory.createPool(editions, 0, 3500e18) reverts PoolExists. Expected per AUDIT-NOTES: an exit via random redeem exists. Actual: none. Same for a 721 collection with vm.chainId(4663): createPool(nft, type(uint256).max, 0), deposit succeeds, commitRedeem reverts RandomUnavailable, redeem(..., address(0)) reverts FeeTokenNotOffered(0). Scratch tests test/scratch/Leads.t.sol::test_leadB_squattedErc1155PoolTrapsDeposits and test_leadB_squattedRobinhoodPoolHasNoExit pass.","severity":"medium","snippet":"        MiyaPool p = new MiyaPool{ salt: _salt(collection) }(collection, kind, imdFee, inferFee);","title":"Squatted pool with an unpayable fee has no exit for ERC-1155 collections and on Robinhood Chain: AUDIT-NOTES' 'random redeems still work' is wrong there"},{"citation":"resolved","description":"AUDIT-NOTES.md prices the pick-blocking commit at '1 pool token, returned as an NFT, plus gas' and notes anyone can reveal from the block after the target block. What it does not state is who pays to clear the lock. A reveal of a commit delivers the committer's NFTs and must run before any pick on the locked range can succeed, so a committer who never reveals forces the picker (or the app) to pay the whole reveal: measured in test/pools/MiyaPoolGas.t.sol, revealRedeem of 1 unit costs 160,979 gas and of 10 units 541,409, so a MAX_COMMIT_UNITS (50) commit is roughly 2.5M gas honest and up to about 12.5M if the collection's transfers each consume the 200,000 cap. Repeated every two blocks with 50 pool tokens cycled through random redeems, the attacker's own cost is only gas (random is free), while each cycle forces a victim who wants to pick to either pay a multi-million-gas reveal or wait. It does not affect backing or fairness; it is a liveness/cost asymmetry on picks for ERC-721 pools with random enabled. Cost to attacker per cycle: one commitRedeem (142,842 gas measured) plus 50 pool tokens tied up for two blocks; cost to victim: one reveal of up to 50 transfers, or indefinite delay.","line":520,"path":"src/pools/MiyaPool.sol","reproduction":"Random-enabled 721 pool holding 60 ids. Attacker holds 50e18 pool tokens and calls commitRedeem(50, attacker) in block N (queueEnd = 60, lockedEnd = 60). Victim's redeem([id_5], [], victim, IMD) reverts LockedForRandomRedeem(id_5) in blocks N and N+1. In block N+2 the victim's pick still reverts until someone calls revealRedeem(c); the attacker does not. The victim must send revealRedeem(c) themselves (about 2.5M gas for 50 standard transfers; the pool's gas test shows 541k for 10) and only then can pick. The attacker repeats with the 50 NFTs they received (deposit 50, commit 50) at a cost of gas only. Expected per AUDIT-NOTES: the block costs the attacker 1 pool token and gas and lasts two blocks; actual: it lasts until the victim pays the reveal, and scales to the 50-unit cap.","severity":"low","snippet":"        if (pos < locked) revert LockedForRandomRedeem(id);","title":"Lock griefing shifts the unlock cost to the blocked picker: a 50-unit commit costs the committer nothing but makes the victim pay up to the full reveal"},{"citation":"resolved","description":"The deposit hooks are the only minting path and are guarded by msg.sender == collection. For ERC-721 the hook additionally checks ownerOf(id) == pool; for ERC-1155 _receive1155 checks nothing about custody. A collection (or an upgradeable collection whose owner turns hostile) can therefore call onERC1155Received / onERC1155BatchReceived with arbitrary ids and amounts, or make ownerOf return the pool and call onERC721Received, and mint any number of pool tokens with no NFT behind them, then sell them. Harm is confined to that pool: holders of the pool token lose backing, other pools, the factory and the vault are untouched (the factory is stateless beyond poolOf/allPools and the vault only ever receives pick fees). This is inherent to a permissionless NFT pool and matches question 4's 'what can a malicious collection do to its own pool': everything, including draining it, because the pool trusts the collection for custody, ownerOf and transfers. Reported as low for the record so the app's pool listing treats collection trust as a prerequisite; it is not fixable in the pool without changing the design.","line":538,"path":"src/pools/MiyaPool.sol","reproduction":"Liar721 (ownerOf(any) returns the pool) created via factory.createPool(liar, 0, 0). liar calls pool.onERC721Received(liar, alice, 1, abi.encode(alice)) and again with id 2. pool.totalSupply() == 2e18, pool.heldUnits() == 2, liar.balanceOf(pool) == 0. For 1155: collection calls pool.onERC1155Received(collection, alice, 7, 1000, abi.encode(alice)) and mints 1000e18 with no transfer. Expected: tokens only minted against units the pool holds; actual: unbacked mint. Scratch test test/scratch/Leads.t.sol::test_leadE_lyingCollectionMintsUnbacked passes.","severity":"low","snippet":"            unitsOf[ids[i]] += amounts[i];\n            _ids.add(ids[i]);","title":"A collection's pool mints unbacked tokens if the collection lies about custody (721 ownerOf) or calls the 1155 hooks directly; ERC-1155 hooks make no balance check at all"},{"citation":"resolved","description":"Solady's EnumerableSetLib.Uint256Set reserves the value 0xfbb67fda52d4bfb8bf as an internal sentinel and reverts ValueIsZeroSentinel on add. An NFT with that exact id (about 4.64e21) cannot be deposited into any MiyaPool: the hook reverts, so safeTransferFrom reverts and the depositor keeps the NFT. No funds are lost and no accounting is affected; the id is simply excluded. Collections with hash-derived ids hit it with negligible probability; a collection could mint it deliberately but gains nothing.","line":310,"path":"src/pools/MiyaPool.sol","reproduction":"Mock721 mints id 0xfbb67fda52d4bfb8bf to alice; free 721 pool; alice.deposit([0xfbb67fda52d4bfb8bf], [], alice) reverts; nft.ownerOf(id) is still alice. Expected: deposit mints 1e18; actual: revert. Scratch test test/scratch/Leads.t.sol::test_leadC_sentinelIdCannotBeDeposited passes.","severity":"info","snippet":"        if (escrowedTo[id] != address(0) || !_ids.add(id)) revert AlreadyHeld(id);","title":"Token id 0xfbb67fda52d4bfb8bf (Solady EnumerableSetLib zero sentinel) can never be deposited"},{"citation":"resolved","description":"Read in full: src/pools/MiyaPool.sol (567 lines) and src/pools/MiyaPoolFactory.sol (106 lines), AUDIT-NOTES.md, README.md, the five test files, and the Solady ERC20/EnumerableSetLib/SafeTransferLib/ReentrancyGuard they inherit. Ran: forge test (82 tests pass, including the 256-run invariant suite), REQUIRE_FORK_TESTS=true forge test --match-path 'test/fork/*' against ethereum-rpc.publicnode.com (passes: both fee tokens booked to the picker by the live vault, 535k/433k gas per pick), forge build --sizes (factory runtime 17,511 B, init 17,965 B; pool runtime 14,173 B; all under EIP-170 and the harness's 49,152 B init limit). Not reachable: the live vault 0x34be...aa08 is an EIP-1167 clone of 0x39be020d898eb1960b93c41aaa10ce91120a8758; Sourcify and Etherscan were denied by the network proxy, so the vault implementation, registry and config were checked only behaviourally through the fork test, not by reading source. Consequently the vault's per-benefactor pending-token limit, any pause, and any per-call maximum are taken from AUDIT-NOTES and the fork run, not verified in code. Answers to the six questions where no defect reproduced: (1) backing holds on every path for a compliant collection; escrowed ids leave _ids and the queue exactly once and the hook refuses them; a reveal's range c.queueEnd - head is always >= c.amount because the commit requires _ids.length() >= pendingUnits + amount and only older reveals advance head. (2) once the target block is mined, deposits append past queueEnd, picks swap only positions >= lockedEnd with the tail, and older reveals permute deterministically in commit order, so the draw is fixed; the only re-roll is the documented re-arm after 256/8191 blocks (an older commit's re-arm can also change a newer commit's draw, but only if nobody reveals the older one for the whole window, and anyone may). The 200k-per-transfer cap with the 206,250 gasleft floor forwards the full cap under the 63/64 rule; 50 units fit in a mainnet block; refusing recipients are escrowed. lockedEnd is the newest pending commit's queueEnd and clears exactly when nextRevealId == nextCommitId. (3) the fee is per*units with checked arithmetic, pulled once from msg.sender after all state changes, exact-balance checked both ways, forwarded to the vault with msg.sender as benefactor; a token not offered reverts FeeTokenNotOffered including address(0) when fees are set; redeem is nonReentrant and the hooks are collection-only, so reentrancy through receiveContribution cannot reach any state-changing entry. (4) ERC-165 detection rejects a collection that claims 0xffffffff or both kinds; one pool per collection is enforced by poolOf, CREATE2 is only reachable through the factory, and a hostile collection can only harm its own pool (finding above). (5) beyond AUDIT-NOTES: the lock-unlock cost shift (finding above). (6) randomEnabled is false for kind ERC1155 and for chainid 4663 at construction; every NFT can leave such a pool only through picks, so a fee the vault later refuses or an unpayable squatted fee traps them (finding above and the accepted vault-owner rule). No DELEGATECALL, CALLCODE, SELFDESTRUCT, proxy, initializer, owner, pause or post-deploy setter is present; the factory's CREATE2 of pools is application behaviour, not a forbidden pattern.","line":36,"path":"src/pools/MiyaPool.sol","reproduction":"Not a defect; coverage statement required by the acceptance criteria. Commands: forge test; REQUIRE_FORK_TESTS=true MAINNET_RPC_URL=https://ethereum-rpc.publicnode.com forge test --match-path 'test/fork/*'; forge build --sizes; forge test --match-path test/scratch/Leads.t.sol.","severity":"info","snippet":"interface IPoolVault {","title":"Scope and coverage: contracts read, checks run, and what could not be reached"}],"hash":"ad4595fcb3eea20e52198874977a75b9d24b96501c5230be48f8bd9292bfe7dd","nodeId":"b48e29b7-c46b-423e-a3e9-2c48c8330332","outcome":"completed","summary":"The review is complete. Findings are in `.imd-findings.json` at the repository root, with reproductions in `test/scratch/Leads.t.sol`. No source, test or config file was changed.\n\n**Verdict.** The pool and factory core holds up: no high or critical defect reproduced. Backing, the random draw's fixity after the target block, the lock, the fee path and reentrancy guards all behaved as AUDIT-NOTES describes under adversarial inputs. Two medium findings block or weaken the launch, and two low ones refine the accepted risks.\n\n**Findings written**\n\n- **Medium, launch blocker.** The factory constructor requires the vault argument to have code and calls its imd() and infer(). The protected launch check deploys on an empty chain, so the only valid manifest for this launch reverts with InvalidVault and parks. The pool's own constructor already re-checks the vault when a fee is set, so a lazy read preserves behavior on mainnet.\n- **Medium, risk larger than stated.** Squatting a pool with an unpayable fee is accepted in AUDIT-NOTES because \"random redeems still work\". That is false for every ERC-1155 pool and every pool on chain 4663. Such a pool accepts deposits and can never release a unit, and the collection can never get another pool. Cost to the attacker is one transaction.\n- **Low.** A 50-unit commit blocks picks until someone pays the reveal, roughly 2.5M gas honest. The committer pays only gas, so the unlock cost falls on the picker.\n- **Low.** A lying collection mints unbacked tokens in its own pool. The ERC-1155 hooks make no custody check at all. Harm stays inside that pool.\n- **Info.** Solady's set sentinel id can never be deposited, with no loss.\n- **Info.** Scope and coverage statement, including answers to the six audit questions where nothing reproduced.\n\n**Coverage.** Both source files were read in full, along with the notes, tests and inherited Solady code. All 82 repository tests pass. The fork test passes against the live vault over the public RPC. The live vault implementation source could not be reached: both Sourcify and Etherscan were denied by the network proxy, so the vault was checked behaviorally only.\n\n**Next for the adapter.** Fix the constructor's eager vault check without changing the external interface, and decide whether to bound creation-time fees for pools that have no random path. Neither requires an owner, pause or setter.","treeHash":null,"usage":{"cachedInputTokens":1254550,"cost":{"source":"runtime","usdMicros":5399188},"inputTokens":450,"model":"claude-fable-5-1","outputTokens":54996,"runtime":"claude","turns":25,"wallClockMs":1432957}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"af9939ff59c957cb","findings":[{"citation":"resolved","description":"The contract's stated guarantee (MiyaPool.sol lines 70-71 and AUDIT-NOTES 'once the seed is public nobody can take the piece a commit will get') is that once a commit's target block is mined its draw is fixed. The draw is `_queue[head + r % (queueEnd - head)]`, so it depends on the arrangement of [head, queueEnd) at reveal time, which is set by the reveals of all older commits. Each older commit normally has a fixed seed too, so the result is deterministic. But an older commit A whose target falls out of the hash window (more than 8191 blocks on mainnet; 256 where there is no EIP-2935 contract) is re-armed to a fresh future block when someone finally calls revealRedeem(A). A then draws with a new seed, swaps a different id into the head slot and advances head, so a newer commit B whose own target block was mined and is still inside the window draws a different id than it would have if A had been revealed in time. Whoever wants B's outcome re-rolled (B's committer, or anyone) has a free option: reveal A inside its window to lock B's now-known outcome X, or let A expire to replace X with an unknown Y. Cost: gas only. Precondition: no one, including the app's reveal bot, reveals A for ~27 hours on mainnet (8191 blocks). The windows differ per commit, so this is a distinct beneficiary from the documented 'committer who waits it out' re-roll: B's committer re-rolls without B's seed ever expiring. Severity low: it needs a stale older commit and only redistributes which id a random redeem gets; no funds are lost and backing is unchanged. Boundary x invariant seam: the fixed-draw invariant holds everywhere except on the window-expiry early-return path.","line":430,"path":"src/pools/MiyaPool.sol","reproduction":"Free ERC-721 pool with ids 1..6 deposited by alice; alice holds 5 tokens, bob 1. Block 100: alice commitRedeem(1, alice) -> commit A, target 101. Block 8100: bob commitRedeem(1, bob) -> commit B, target 8101. Roll to block 8293 with blockhash(101)=keccak('A-seed') and blockhash(8101)=keccak('B-seed'). B's seed is fixed and readable (192 blocks old). Path 1: revealRedeem(A) re-arms A (8192 > 8191) to block 8294; set blockhash(8294)=S1; revealRedeem(A); revealRedeem(B): bob receives id X. Path 2 (snapshot restored, identical state, same B seed): revealRedeem(A) re-arms; set blockhash(8294)=S2; revealRedeem(A); revealRedeem(B): bob receives id Y != X. Expected per the documented guarantee: B's draw is fixed once block 8101 is mined. Actual: it depends on A's re-armed block hash. Test test/scratch/OlderRearmMovesNewerDraw.t.sol (passes, demonstrating the difference across 40 candidate re-arm seeds).","severity":"low","snippet":"        if (seed == bytes32(0)) {\n            uint256 target = block.number + 1;\n            commits[commitId].targetBlock = SafeCastLib.toUint64(target);\n            emit RedeemRearmed(commitId, target);\n            return;\n        }","title":"An older commit that expires its hash window and re-arms changes what a newer, already-seeded commit draws (free re-roll option for later committers)"},{"citation":"resolved","description":"Solady's ERC20 computes the EIP-712 domain separator as keccak256(bytes(name())) at call time because MiyaPool does not override _constantNameHash(). MiyaPool.name() calls the collection's name() via staticcall on every invocation and abi.decodes a string whenever at least 64 bytes come back (lines 562-566). Two boundary consequences for the permit(address,address,uint256,uint256,uint8,bytes32,bytes32) entry point: (1) a collection with a mutable name (common: setName/setBaseInfo on many ERC-721s, or a proxy upgrade) changes the pool's DOMAIN_SEPARATOR, so every permit signed before the rename reverts InvalidPermit when submitted; signers and integrators that cache the domain (wallets, routers) break. (2) a collection whose name() returns 64+ bytes that are not a well-formed string (offset or length past the data) makes abi.decode revert, so pool.name(), DOMAIN_SEPARATOR() and permit() all revert while transfer/approve still work; a hostile collection only breaks its own pool this way, but a buggy legit collection breaks it too. Fix that preserves the interface: cache the collection name once in the constructor (or override _constantNameHash with a hash fixed at creation), and decode the name defensively (try/catch style fallback) so the ERC-20 domain of the pool token never depends on a live external read.","line":216,"path":"src/pools/MiyaPool.sol","reproduction":"Collection Renamable721 (name 'Alpha'), free pool, owner deposits id 1 and gets 1e18 tokens. Owner signs permit(owner, spender, 1e18, deadline) against pool.DOMAIN_SEPARATOR(). Collection calls setName('Beta'). pool.DOMAIN_SEPARATOR() now differs; pool.permit(...) with the earlier signature reverts and allowance stays 0. Expected: a permit signed against the pool's domain stays valid until its deadline. Second case: the collection's name() returns 0x20 then length 0xffffffff (64 bytes); pool.name(), pool.DOMAIN_SEPARATOR() and pool.permit(...) all revert, while pool.transfer still succeeds. Test test/scratch/PermitDomain.t.sol (both cases pass as written, i.e. demonstrate the behaviour).","severity":"low","snippet":"        return string.concat(\"miya pool: \", _collectionString(0x06fdde03, \"NFT\"));","title":"Pool token name() and EIP-712 domain (permit) are derived from the collection's live name(): a rename invalidates signed permits and a malformed answer makes name(), DOMAIN_SEPARATOR() and permit() re"}],"hash":"c8a6c9e68a8bb9e74222e3f975ae8ed81664b9e25f21da5541c5b94d4e250e74","nodeId":"3eb57c1f-61e3-4275-b5ff-683fa4a4c098","outcome":"completed","summary":"The review is complete. The findings file is valid, both snippets match the tree at their cited lines, and all 13 entry points have coverage rows.\n\n**Outcome: no backing, fee or lock defect in the math area. Two low findings, written to `.imd-findings.json`.**\n\nWhat I checked in the Math Precision, Boundary and Numerical Gap passes:\n\n- **Backing arithmetic** holds on every path. Hooks add then mint exactly one unit, redeem burns then removes, commit burns and adds pending, reveal removes the same count it un-pends, and escrow and claim touch neither side.\n- **Reveal draw range** can never shrink below the commit's amount and never reaches zero, so the modulo cannot divide by zero and no commit can strand ids. Picks are confined to positions at or past the newest pending commit's end and swap with the tail.\n- **Gas floor before each reveal transfer.** Measured with a scratch test at the minimum gas that passes the check: the collection receives the full 200,000 gas whether its address is cold or warm. The cold-case slack is about 170 gas by arithmetic, tight but sufficient.\n- **Block-hash window edges** at 256 and 8191 blocks are inclusive and correct. Any zero hash re-arms, so a commit can never become unrevealable.\n- **Fee math** is a single checked multiplication with exact balance deltas on both sides. A donated balance does not disturb either check.\n- The downcasts to uint32 and uint64 only fail after more than four billion random redeems in one pool, which is unreachable.\n\nThe two findings:\n\n1. **Low.** An older commit that falls out of the hash window and re-arms changes which id a newer commit draws, even though the newer commit's target block was already mined and its seed fixed. That contradicts the documented \"draw is fixed once the target block is mined\" guarantee and gives any later committer a free re-roll option if nobody reveals the stale commit for about 27 hours. Reproduced in `test/scratch/OlderRearmMovesNewerDraw.t.sol`.\n2. **Low.** The pool token's `permit` domain is computed live from the collection's `name()`. A rename invalidates every permit signed before it, and a malformed name answer makes `name()`, `DOMAIN_SEPARATOR()` and `permit()` revert while transfers still work. Reproduced in `test/scratch/PermitDomain.t.sol`.\n\nNot reached: the fork suite against the live vault, since no mainnet RPC was available here. The 93 local tests pass. The known items in the audit notes, including the Solady sentinel id and the squatted-pool no-exit case, were confirmed as stated and not re-reported.","treeHash":null,"usage":{"cachedInputTokens":1041706,"cost":{"source":"runtime","usdMicros":5367714},"inputTokens":354,"model":"claude-fable-5-1","outputTokens":53296,"runtime":"claude","turns":24,"wallClockMs":1036692}},{"artifacts":[],"attempt":1,"bundleHash":null,"device":"4dd67dae195771b6","findings":[{"citation":"resolved","description":"Merged from all four specialists (math, economics, permissions, flow): same root cause. MiyaPool does not override Solady ERC20's _constantNameHash() (lib/solady/src/tokens/ERC20.sol:355 returns 0), so permit() (line 408-410) and DOMAIN_SEPARATOR() (line 473-475) compute keccak256(bytes(name())) on every call, and MiyaPool.name() staticcalls the collection's name() each time (lines 215-216, 562-566). The pool token's signature domain is therefore controlled by the collection contract: (1) a collection that renames itself (owner setName, proxy upgrade, or a name() that starts reverting so the fallback \"NFT\" kicks in) changes DOMAIN_SEPARATOR and every permit signed before the change reverts InvalidPermit until its deadline; signers and integrators caching the domain break; (2) a collection whose name() returns >= 64 bytes that are not a well-formed ABI string makes abi.decode revert, so name(), DOMAIN_SEPARATOR() and permit() all revert while transfer/approve still work. Only the collection's own pool is affected and no funds move (approve still works), so low. Fix within the launch rules: cache the name hash once in the constructor and return it from _constantNameHash() (or use a fixed EIP-712 name such as 'MiyaPool'); display name()/symbol() can stay live. No interface or cost change.","line":215,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/JudgeLeads.t.sol::test_permitDomainFollowsCollectionName (passes on this code, demonstrating the behaviour). Free 721 pool for a Solady ERC721 whose name() is settable (initially 'Alpha'). Owner deposits id 1 and holds 1e18; signs permit(owner, bob, 1e18, nonce 0, deadline now+1d) over pool.DOMAIN_SEPARATOR(). Collection calls setName('Beta'): pool.DOMAIN_SEPARATOR() differs and pool.permit(owner, bob, 1e18, deadline, v, r, s) reverts ERC20.InvalidPermit; setName('Alpha') again and the same signature is accepted (allowance 1e18). Then the collection makes name() return the 64 raw bytes (0x20, 0xffffffff): pool.DOMAIN_SEPARATOR() and pool.name() revert, pool.transfer(bob, 1) still succeeds. Expected: a permit signed against the pool stays valid until its deadline whatever the collection's metadata does. Actual: the domain tracks the collection's live name().","severity":"low","snippet":"    function name() public view override returns (string memory) {\n        return string.concat(\"miya pool: \", _collectionString(0x06fdde03, \"NFT\"));","title":"Pool token EIP-712 domain (permit, DOMAIN_SEPARATOR) is rebuilt from the collection's live name(): a rename invalidates signed permits and a malformed name() disables permit, name() and DOMAIN_SEPARAT"},{"citation":"resolved","description":"Merged from economics and permissions. AUDIT-NOTES.md lines 58-59 accept that random redeems can be used to 'fish' for a piece and that this 'can be cheaper than the fee'. The actual risk is larger: it is deterministic. commitRedeem only requires _ids.length() >= pendingUnits + amount, so one commit (<= 50 units) or several commits in one transaction (pendingUnits accumulates, so 3 x 50 for 150 ids) may cover every held id. Whoever holds heldUnits() pool tokens receives every id, including the one a pick would have charged a fee for, and deposit() is free, so the unwanted ids go straight back for the same number of tokens. The end state after commit, reveal (2 blocks later) and redeposit is identical to a 1-unit pick (one token fewer, the chosen NFT in hand) except that no fee reaches the vault, and during the two blocks every other holder's picks revert LockedForRandomRedeem. Cost: gas only (measured ~0.5M for a 4-id pool; a 50-id pool about 6.6M gas per the permissions specialist's run, i.e. a few thousandths of an ETH at 1 gwei) against 1 IMD or 3,500 INFER per piece. Capital: heldUnits() pool tokens for two blocks, i.e. the pool's whole supply, which is realistic for small pools or where pool tokens trade. No in-contract fix fits the launch rules (any fee on random, or a cap on commits relative to pool size, changes what a random redeem costs), so this is a note for the fee rule and the app: the pick fee only prices choosing from a pool whose supply you do not own outright.","line":414,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/JudgeLeads.t.sol::test_wholeRangeCommitSkipsFee (passes on this code). Factory with a mock vault (imd, infer, minContribution 1e18, registry accepting both); createPool(nft, 1e18, 0). Alice deposits ids 1..4 minting 4e18 to Bob; Bob wants id 3 and holds no IMD. pool.redeem([3], [], bob, imd) reverts (no IMD). Bob: commitRedeem(4, bob) burns 4e18; two blocks later anyone calls revealRedeem(c): Bob owns ids 1,2,3,4. Bob calls deposit([1,2,4], [], bob): balance back to 3e18. Expected per the fee rule: obtaining a chosen id costs 1 pool token plus 1 IMD to the vault. Actual: 1 pool token, vault.pendingOf(bob, imd) == 0, imd.balanceOf(vault) == 0.","severity":"low","snippet":"        if (_ids.length() < pendingUnits + amount) revert InsufficientHeld();","title":"Pick fee is avoidable with certainty, not just probabilistically: a holder of as many pool tokens as the pool holds ids commits the whole drawable range, keeps the wanted id and redeposits the rest fo"},{"citation":"resolved","description":"From the economics specialist, reproduced. Minting happens only in onERC721Received (line 306-325); deposit() pulls with safeTransferFrom and returns without checking that heldUnits() or totalSupply() grew. A collection that passes the factory's ERC-165 probe but implements safeTransferFrom as a plain transferFrom (no receiver call; older or hand-rolled collections) moves the NFT to the pool, the hook never runs, no pool tokens are minted, the id is not in _ids, and redeem() reverts NotHeld for it forever. The depositor loses the NFT with no malice involved. The NatSpec (lines 84-85) documents only plain transferFrom as untracked; this is the same loss reached through the pool's own deposit() entry point. Fix within the launch rules: in deposit(), revert unless _ids.length() (ERC-721) or _units1155 (ERC-1155) grew by the units requested; a few hundred gas, no interface or price change, no new exit path. Low: needs a non-conforming collection and only the depositor loses.","line":298,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/JudgeLeads.t.sol::test_depositWithoutHookStrands (passes on this code). NoHookNft is a Solady ERC721 with safeTransferFrom(from,to,id,data) { transferFrom(from,to,id); }. createPool(noHook, 0, 0). Alice owns id 1, setApprovalForAll(pool), calls pool.deposit([1], [], alice). Expected: either 1e18 minted to Alice with heldUnits()==1, or a revert leaving Alice her NFT. Actual: the call succeeds, nft.ownerOf(1)==pool, pool.balanceOf(alice)==0, pool.heldUnits()==0; no entry point can release id 1.","severity":"low","snippet":"                IERC721Pool(collection).safeTransferFrom(msg.sender, address(this), ids[i], data);","title":"deposit() never checks that the receiver hook ran: an ERC-721 whose safeTransferFrom does not call onERC721Received moves the NFT into the pool with nothing minted and no way out"},{"citation":"resolved","description":"From the flow specialist, reproduced. MiyaPool inherits Solady's ERC20 unchanged and Solady's transfer/transferFrom (lib/solady/src/tokens/ERC20.sol:217, 257) have no zero-address check and do not burn: pool.transfer(address(0), 1e18) succeeds, balanceOf(address(0)) grows and totalSupply is unchanged. The accounting invariant totalSupply + UNIT*pendingUnits == UNIT*heldUnits still holds, but 1e18 of supply is now owned by an address that can never call redeem or commitRedeem, so one NFT unit stays in custody forever. NatSpec lines 84-85 document only tokens sent to the pool itself as unrecoverable; address(0) is the same class and is a common user/integrator mistake. Fix within the launch rules: override _beforeTokenTransfer to revert on to == address(0) (OpenZeppelin behaviour); no price, interface or exit-path change.","line":87,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/JudgeLeads.t.sol::test_transferToZeroStrandsNft (passes on this code). Free 721 pool; Alice deposits ids 1 and 2 (totalSupply 2e18). vm.prank(alice); pool.transfer(address(0), 1e18) returns true; balanceOf(address(0)) == 1e18, totalSupply == 2e18. Alice redeems id 1 with her last token: heldUnits() == 1, totalSupply == 1e18, balanceOf(alice) == 0; commitRedeem(1, alice) reverts InsufficientBalance and no account can ever redeem id 2. Expected: the transfer reverts (or burns so supply follows); actual: it silently succeeds.","severity":"low","snippet":"contract MiyaPool is ERC20, ReentrancyGuard {","title":"Pool tokens can be sent to address(0) by transfer/transferFrom without a burn, permanently stranding the NFT unit that backs them"},{"citation":"resolved","description":"From the math specialist, reproduced. The draw is _queue[head + r % (queueEnd - head)] (line 444), so it depends on the arrangement of [head, queueEnd) at reveal time, which is set by the reveals of all older commits. Normally each older commit's seed is fixed too, so the result is deterministic. But an older commit A whose target falls out of the hash window (8191 blocks with EIP-2935 on mainnet, 256 without) is re-armed to a fresh future block when someone finally calls revealRedeem(A); A then draws with a new seed, swaps a different id into the head slot and advances head, so a newer commit B whose own target block was mined and is still inside the window draws a different id than it would have had A been revealed in time. The NatSpec guarantee at lines 70-71 ('once a target block is mined the pick is fixed: deposits, the reveal order and targeted redeems cannot move it') and AUDIT-NOTES line 69 therefore do not hold across an older commit's expiry. ADAPTATION.md (point 2) already notes that a re-arm 'also re-rolls newer pending commits'; what it does not state is the option this creates: anyone who wants B's outcome re-rolled (B's committer, or an observer of B's now-public seed) chooses between revealing A inside its window (locking B's known outcome) and letting A expire (replacing it with an unknown one). Cost: gas only. Precondition: nobody, including the app's reveal bot, reveals A for ~27 hours on mainnet, which is why this is low; no funds are lost and backing is unchanged, only which id a random redeem gets. A fix without changing costs is not available in this design (the permutation is shared); the author should correct the NatSpec and AUDIT-NOTES wording and have the reveal bot reveal every commit well inside the window.","line":430,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/JudgeLeads.t.sol::test_olderRearmMovesNewerDraw (passes on this code; no EIP-2935 code in the test chain, so the window is 256, but 8293-101 = 8192 also exceeds 8191). Free 721 pool, ids 1..6 deposited by Alice; Alice holds 5 tokens, Bob 1. Block 100: Alice commitRedeem(1, alice) -> commit A, target 101. Block 8100: Bob commitRedeem(1, bob) -> commit B, target 8101. Roll to 8293, vm.setBlockhash(8101, keccak('B-seed')): B's seed is fixed and public. Snapshot. Path 1: revealRedeem(A) re-arms A to 8294 (commits(A).targetBlock == 8294); roll 8295; setBlockhash(8294, S1); revealRedeem(A); revealRedeem(B): Bob receives id X. Path 2 (snapshot restored, identical state and the same B seed): same with another re-arm hash S2: Bob receives Y != X (found within 40 candidate hashes). Expected per lines 70-71: B's draw is fixed once block 8101 is mined. Actual: it depends on A's re-armed block hash.","severity":"low","snippet":"        if (seed == bytes32(0)) {\n            uint256 target = block.number + 1;\n            commits[commitId].targetBlock = SafeCastLib.toUint64(target);\n            emit RedeemRearmed(commitId, target);\n            return;","title":"Re-arming an expired older commit changes what a newer commit whose target block is already mined draws, contradicting the stated 'once a target block is mined the pick is fixed' guarantee (lines 70-7"},{"citation":"resolved","description":"From the permissions specialist, reproduced. MiyaPool does not override _givePermit2InfiniteAllowance(), which returns true by default (lib/solady/src/tokens/ERC20.sol:667-669). For every holder, allowance(holder, Permit2) is type(uint256).max and transferFrom skips the allowance check when the caller is that address; approve(Permit2, x) with x != max reverts Permit2AllowanceIsFixedAtInfinity. On mainnet that address is Uniswap's Permit2, which moves tokens only with the holder's signature, so the practical exposure is Permit2-signature phishing against pool tokens the holder never approved, the same as for every Solady-based token. README and AUDIT-NOTES present the pool as having no privileged party and list every accepted risk; this standing third-party allowance is not among them. Info, not a defect: it is a documented Solady design choice. Either state the Permit2 trust in AUDIT-NOTES or override _givePermit2InfiniteAllowance() to return false (interface unchanged).","line":87,"path":"src/pools/MiyaPool.sol","reproduction":"test/scratch/JudgeLeads.t.sol::test_permit2Allowance (passes on this code). Free 721 pool; Alice deposits ids 1 and 2 and never calls approve. pool.allowance(alice, 0x000000000022D473030F116dDEE9F6B43aC78BA3) == type(uint256).max. vm.prank(that address); pool.transferFrom(alice, bob, 2e18) succeeds and balanceOf(bob) == 2e18. Expected per the docs: no spender without an approve, or the trust assumption stated.","severity":"info","snippet":"contract MiyaPool is ERC20, ReentrancyGuard {","title":"Every holder's pool tokens are spendable by Permit2 (0x000000000022D473030F116dDEE9F6B43aC78BA3) without any approval (Solady ERC20 default), and approve(Permit2, non-max) reverts; not stated in READM"},{"citation":"resolved","description":"From the flow specialist, reproduced by trace. commitRedeem (line 413) rejects address(0) and address(this) as recipient; redeem (line 368) and claimEscrowed (line 476) reject only address(this). With OpenZeppelin or Solady collections transferFrom(pool, address(0), id) reverts (TransferToZeroAddress), so the whole redeem reverts and nothing is lost. A collection whose transferFrom implements the zero address as a burn would burn the picked id after the picker's 1e18 was burned and the pick fee forwarded. Self-inflicted and collection-dependent, so informational; adding to == address(0) to the checks at lines 368 and 476 costs nothing and changes no interface.","line":368,"path":"src/pools/MiyaPool.sol","reproduction":"Trace: pool.redeem([id], [], address(0), feeToken) passes the check at line 368 (only address(this) is rejected), burns UNIT at line 371, removes the id at line 374, pulls and forwards the fee at line 377, then calls collection.transferFrom(pool, address(0), id) at line 381. Expected: InvalidRecipient from the pool, as commitRedeem gives at line 413. Actual: the outcome is whatever the collection does with a transfer to zero (OZ/Solady: revert; a burn-on-zero collection: the NFT is destroyed and the fee is spent).","severity":"info","snippet":"        if (to == address(this)) revert InvalidRecipient();","title":"redeem() and claimEscrowed() accept to == address(0) while commitRedeem rejects it; a collection that treats a transfer to zero as a burn would destroy the picked NFT after the token burn and fee"},{"citation":"resolved","description":"From the economics specialist, verified against mainnet during this review. IMD 0xD34a99Bc0f67aE1bbd63C660e6d0b0dd03E263B7 answers owner() (0x8da5cb5b) with 0x047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7 and has the OFT selector set; paused() (0x5c975abb) reverts, so there is no pause or blacklist and local transfer/transferFrom are standard, which is what the pool's exact balance checks (FeeNotReceived / FeeNotForwarded, lines 494 and 497) rely on; those still hold and the fork tests pass against the live token. INFER 0x53d0eA0A685220718Dc6a0a6e4617194C6F37921 has no owner() and is plain. The trust assumption the notes should state: the IMD owner can register a peer it controls and mint IMD on mainnet through lzReceive, which changes what a 1-IMD pick fee is worth; the pool cannot and should not react (fees are fixed in token units by design). Notes correction only, no pool change.","line":93,"path":"AUDIT-NOTES.md","reproduction":"eth_call to 0xd34a99bc0f67ae1bbd63c660e6d0b0dd03e263b7 with data 0x8da5cb5b at latest (2026-11-14) returns 0x000000000000000000000000047f606fd5b2baa5f5c6c4ab8958e45cb6b054b7; data 0x5c975abb reverts. eth_call owner() on 0x53d0ea0a685220718dc6a0a6e4617194c6f37921 reverts. Expected per AUDIT-NOTES line 93: both fee tokens are plain ERC-20s with no privileged party. Actual: IMD has an owner with OFT peer control.","severity":"info","snippet":"  for someone else; reentrancy (`redeem` is `nonReentrant`; IMD and INFER are plain ERC-20s; the vault is trusted code;","title":"AUDIT-NOTES calls IMD a plain ERC-20; on mainnet IMD is an owned LayerZero OFT whose owner controls cross-chain peers and thereby local minting"}],"hash":"da0a3ff3940ebe5bc1f8b30a981691604472b092410ea2363b06794ab624eb62","nodeId":"2a246328-b805-47b5-8ebc-a3a2585e11d6","outcome":"completed","summary":"The review is complete and `.imd-findings.json` is written. No tracked file changed; the only new file is my scratch test under `test/scratch/`, which is not kept.\n\n**Outcome: nothing above low.** The code is safe to launch as it stands. Every specialist finding reproduced, none deserved an upgrade, and my own pass over the 13 entry points found no new defect. The launch-blocking checks also hold: the factory constructor only stores the vault, init code and runtime are under the limits, and there is no forbidden opcode.\n\n**Findings kept, after merging (8):**\n- **Low, permit domain follows the collection's live name.** Reported by all four specialists, merged into one. A rename invalidates signed permits; a malformed name() disables permit, name() and DOMAIN_SEPARATOR(). Fix is to cache the name hash at construction.\n- **Low, pick fee bypass is deterministic, not probabilistic.** Economics and permissions merged. Whoever holds as many pool tokens as the pool holds ids commits the whole range, keeps the wanted id and redeposits the rest. AUDIT-NOTES understates this. No fix fits the launch rules, so it is a note for the fee rule and the app.\n- **Low, deposit() never checks the hook ran.** A collection whose safeTransferFrom skips the receiver call strands the NFT with nothing minted. A one-line growth check would turn the loss into a revert.\n- **Low, transfer to address(0) strands the backing NFT.** Solady has no zero-address check and does not burn.\n- **Low, re-arm of an expired older commit moves a newer, already-seeded commit's draw.** This contradicts the NatSpec guarantee at lines 70 and 71. ADAPTATION.md notes the re-roll but not the option it creates. Low because it needs a commit nobody reveals for about 27 hours.\n- **Info, Permit2 standing allowance** is undocumented Solady default behaviour.\n- **Info, redeem and claimEscrowed accept to == address(0)** while commitRedeem rejects it.\n- **Info, IMD is an owned LayerZero OFT**, not the plain ERC-20 AUDIT-NOTES describes. I confirmed owner() on mainnet during the review.\n\n**Dropped:** the flow specialist's \"EIP-2935 branch untested\" note. HistoryFixture, the adversarial tests and the fork suite exercise that branch, including the 8191 edge.\n\n**Verification run here:**\n\n| Check | Result |\n| --- | --- |\n| forge test | 122 passed, 0 failed, 2 fork setups skipped without RPC |\n| Fork suite against live vault, IMD and INFER | 8 passed, 0 failed |\n| Scratch test for the six kept leads | 6 passed, each demonstrating the reported behaviour |\n\nCoverage answers all 13 entry points plus the accounting invariant and the launch deployment constraints. No finding carries a proof file because none is high or critical.","treeHash":null,"usage":{"cachedInputTokens":704296,"cost":{"source":"runtime","usdMicros":4654894},"inputTokens":226,"model":"claude-fable-5-1","outputTokens":44169,"runtime":"claude","turns":19,"wallClockMs":972469}}],"verification":[{"checks":[{"durationMs":29689,"exitCode":0,"name":"build","output":"Compiling 34 files with Solc 0.8.28\nSolc 0.8.28 finished in 29.61s\nCompiler run successful!\n","passed":true},{"durationMs":84950,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 1 test for test/pools/MiyaPoolGas.t.sol:MiyaPoolGasTest\n[PASS] test_gas_singleOperations() (gas: 1634444)\nLogs:\n  createPool: 3028435\n  deposit 1 (ERC721, queued): 180332\n  pick 1 (tail id, fee in IMD, first contribution): 246974\n  pick 1 (middle id, fee in IMD, repeat contributor): 216101\n  pick 1 (fee in INFER): 269460\n  commitRedeem 1: 142842\n  revealRedeem 1: 160979\n  revealRedeem 10: 541409\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 2.98ms (579.86µs CPU time)\n\nRan 1 test for test/fork/MiyaPoolV2Fork.t.sol:MiyaPoolV2ForkTest\n[SKIP] test_fork_bothRedeemPathsAndPickFeesIntoTheLiveVault() (gas: 0)\nSuite result: ok. 0 passed; 0 failed; 1 skipped; finished in 5.87ms (42.57µs CPU time)\n\nRan 10 tests for test/pools/MiyaPoolBatch.t.sol:MiyaPoolBatchTest\n[PASS] test_1155_batchSendThenMultiIdRedeem_oneCallEach() (gas: 3429990)\n[PASS] test_721_depositWithoutApprovalReverts() (gas: 3050277)\n[PASS] test_721_fiftyIdsEachWay() (gas: 10210098)\nLogs:\n  deposit 50 gas: 5790064\n  redeem 50 gas: 1692637\n\n[PASS] test_721_multiIdDepositThenMultiIdRedeem_oneCallEach() (gas: 3678163)\n[PASS] test_721_pickWithFee_exactApprovalThenOneRedeem() (gas: 3879838)\n[PASS] test_721_pickWithFee_withoutApprovalReverts() (gas: 3658744)\n[PASS] test_721_redeemBatchIsAllOrNothing() (gas: 3560177)\n[PASS] test_721_redeemWithShortfallReverts() (gas: 3545604)\n[PASS] test_random_batchIsOneCommitThenOneReveal() (gas: 4233947)\n[PASS] test_random_lockedIdsCannotBePicked() (gas: 3915268)\nSuite result: ok. 10 passed; 0 failed; 0 skipped; finished in 6.13ms (11.11ms CPU time)\n\nRan 11 tests for test/pools/MiyaPoolLaunch.t.sol:MiyaPoolLaunchTest\n[PASS] test_donatedFeeTokensDoNotAffectPicks() (gas: 3771200)\n[PASS] test_feeVaultCannotReenterThePool() (gas: 9314517)\n[PASS] test_known_largeCommitShiftsTheUnlockCostToTheRevealer() (gas: 12324490)\nLogs:\n  attacker's commit gas: 142693\n  victim's reveal gas: 1866375\n\n[PASS] test_known_lyingCollectionMintsUnbackedTokensInItsOwnPoolOnly() (gas: 11226419)\n[PASS] test_known_sentinelIdCannotBeDeposited() (gas: 3266738)\n[PASS] test_known_squattedErc1155PoolWithUnpayableFeeHasNoExit() (gas: 3536740)\n[PASS] test_known_squattedRobinhoodPoolHasNoExit() (gas: 3324834)\n[PASS] test_launch_factoryDeploysOnAnEmptyChainWithTheLiveVaultArgument() (gas: 14489747)\n[PASS] test_launch_factoryReadsTheVaultTokensFromTheVault() (gas: 3059545)\n[PASS] test_launch_poolRuntimeHasNoEscapeOpcodes() (gas: 8960635)\n[PASS] test_launch_vaultWithoutAddressAnswersGivesNoFeeTokens() (gas: 7114664)\nSuite result: ok. 11 passed; 0 failed; 0 skipped; finished in 88.05ms (32.94ms CPU time)\n\nRan 69 tests for test/pools/MiyaPool.t.sol:MiyaPoolTest\n[PASS] testFuzz_mixed_targetedRedeemsCannotSteerAPick(bytes32,uint8) (runs: 256, μ: 6661296, ~: 6653507)\n[PASS] testFuzz_random_depositBetweenRevealsCannotSteer(bytes32,bytes32) (runs: 256, μ: 4963017, ~: 4958395)\n[PASS] testFuzz_random_everyDrawIsDistinctAndEligible(bytes32,uint8) (runs: 256, μ: 4725683, ~: 4781193)\n[PASS] test_1155_commitReverts() (gas: 3276387)\n[PASS] test_1155_depositAndPartialRedeem() (gas: 3539996)\n[PASS] test_1155_directTransferDeposits() (gas: 3258045)\n[PASS] test_1155_hookRejectedBy721Pool() (gas: 3065387)\n[PASS] test_1155_lengthMismatchReverts() (gas: 3087411)\n[PASS] test_1155_overRedeemReverts() (gas: 3283173)\n[PASS] test_1155_pickFeePerUnit() (gas: 3737453)\n[PASS] test_721_depositMintsOneUnitEach() (gas: 3566542)\n[PASS] test_721_depositToOtherRecipient() (gas: 3289390)\n[PASS] test_721_directSafeTransferDeposits() (gas: 3314162)\n[PASS] test_721_feeOnTransferTokenRefused() (gas: 8766876)\n[PASS] test_721_freePick() (gas: 3707533)\n[PASS] test_721_freePickRefusesAFeeToken() (gas: 3353258)\n[PASS] test_721_hookChecksOwnership() (gas: 3067390)\n[PASS] test_721_hookOnlyFromCollection() (gas: 3062952)\n[PASS] test_721_pickPaysTheFeeInImdToTheVaultForThePicker() (gas: 4213414)\n[PASS] test_721_pickRefusesATokenNotOffered() (gas: 4209787)\n[PASS] test_721_pickShortOfPoolTokensReverts() (gas: 3593102)\n[PASS] test_721_pickWithoutFeeApprovalOrBalanceReverts() (gas: 3601437)\n[PASS] test_721_pickerChoosesAmongOfferedTokens() (gas: 4179043)\n[PASS] test_721_plainTransferIsNotTracked() (gas: 3178636)\n[PASS] test_721_redeemDuplicateReverts() (gas: 3455126)\n[PASS] test_721_redeemNotHeldReverts() (gas: 3423333)\n[PASS] test_721_redeemWithoutTokensReverts() (gas: 3310483)\n[PASS] test_721_targetedRedeemKeepsQueueConsistent() (gas: 4063596)\n[PASS] test_721_vaultPullingLessReverts() (gas: 3681196)\n[PASS] test_721_vaultRefusalBlocksPicksNotRandom() (gas: 4055873)\n[PASS] test_depositEmptyReverts() (gas: 3085998)\n[PASS] test_factory_createsAndPredicts() (gas: 3110549)\n[PASS] test_factory_deploysWithAVaultWithoutCodeAndReadsItLazily() (gas: 10097543)\n[PASS] test_factory_detects1155() (gas: 3010349)\n[PASS] test_factory_feeTokenMustBeAVaultPaymentToken() (gas: 3126502)\n[PASS] test_factory_feesAtLeastTheVaultMinimums() (gas: 3443346)\n[PASS] test_factory_feesNeedAVault() (gas: 7045527)\n[PASS] test_factory_onePoolPerCollection() (gas: 3041589)\n[PASS] test_factory_predictDependsOnFees() (gas: 51425)\n[PASS] test_factory_rejectsCollectionFailingTheErc165Probe() (gas: 145408)\n[PASS] test_factory_rejectsCollectionThatClaimsEverything() (gas: 143002)\n[PASS] test_factory_rejectsNonNFT() (gas: 155714)\n[PASS] test_gasBurningRecipientCannotBlockQueue() (gas: 6369839)\n[PASS] test_heldIdsClampsHugeCount() (gas: 3470354)\n[PASS] test_hookForEscrowedIdCannotMintUnbackedTokens() (gas: 4330941)\n[PASS] test_largestRevealToGasBurnerFitsMainnetGasCap() (gas: 24157104)\nLogs:\n  worst-case reveal gas: 12265550\n\n[PASS] test_mainnet_randomEnabled() (gas: 3040704)\n[PASS] test_metadata() (gas: 3064470)\n[PASS] test_mixed_commitOfEveryHeldIdStillSettles() (gas: 4928989)\n[PASS] test_mixed_committerCannotRerollByTakingTheirPick() (gas: 4153837)\n[PASS] test_mixed_feePickBetweenCommitAndReveal() (gas: 4720781)\n[PASS] test_mixed_lockFollowsTheNewestPendingCommit() (gas: 4274021)\n[PASS] test_mixed_pendingCommitLocksItsRange() (gas: 4962774)\n[PASS] test_poolCannotBeTheRecipient() (gas: 3425372)\n[PASS] test_random_commitIsCapped() (gas: 3093155)\n[PASS] test_random_commitRevealIsFree() (gas: 4043118)\n[PASS] test_random_depositsAfterACommitAreNeverDrawn() (gas: 4357039)\n[PASS] test_random_insufficientHeldReverts() (gas: 3716898)\n[PASS] test_random_largestRevealFitsInABlock() (gas: 12973496)\nLogs:\n  reveal gas (50 ids): 1722304\n\n[PASS] test_random_lateDepositsDoNotShiftPick() (gas: 4532978)\n[PASS] test_random_rearmsWhenExpired() (gas: 3828908)\n[PASS] test_random_refusedTransferIsEscrowedAndDoesNotBlockTheQueue() (gas: 5202075)\n[PASS] test_random_reservesHeldUnits() (gas: 3955604)\n[PASS] test_random_revealsRunInCommitOrder() (gas: 3979294)\n[PASS] test_random_zeroRecipientReverts() (gas: 3303979)\n[PASS] test_revealWithTooLittleGasRevertsInsteadOfEscrowing() (gas: 3522731)\n[PASS] test_robinhoodChain_poolOpensWithoutRandomRedeems() (gas: 3757001)\n[PASS] test_safeMintIntoPoolReverts() (gas: 3733628)\n[PASS] test_secondHookForHeldIdCannotMintUnbackedTokens() (gas: 3315031)\nSuite result: ok. 69 passed; 0 failed; 0 skipped; finished in 115.63ms (320.40ms CPU time)\n\nRan 1 test for test/invariant/MiyaPoolInvariant.t.sol:MiyaPoolInvariantTest\n[PASS]\nMiyaPoolInvariantTest invariants:\n[PASS] invariant_noRandomOnRobinhoodPool\n[PASS] invariant_queueIsABijection\n[PASS] invariant_randomAndTargetedRulesHold\n[PASS] invariant_tokensExactlyBacked\n[PASS] invariant_trackedEqualsCustody\n[PASS] invariant_vaultBookedEveryFeeToItsPicker\n MiyaPoolInvariantTest invariants (runs: 256, calls: 128000, reverts: 0)\n\n╭-----------------+----------------+-------+---------+----------╮\n| Contract        | Selector       | Calls | Reverts | Discards |\n+===============================================================+\n| MiyaPoolHandler | commitRandom   | 14436 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | deposit1155    | 14260 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | deposit721     | 14057 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | depositHood    | 14241 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeem1155     | 14157 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeemHood     | 14303 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeemTargeted | 14191 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | revealRandom   | 14174 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | transferTokens | 14181 | 0       | 0        |\n╰-----------------+----------------+-------+---------+----------╯\n\nLogs:\n  reveals: 25\n  targeted redeems (random pool): 11\n  targeted redeems refused as locked: 22\n  IMD fees: 9000000000000000000\n  INFER fees: 1203000000000000000000000\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 84.84s (84.83s CPU time)\n\nRan 6 test suites in 84.84s (85.06s CPU time): 92 tests passed, 0 failed, 1 skipped (93 total tests)\n","passed":true},{"durationMs":65,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"MiyaPool.approve(address,uint256)\",\"MiyaPool.claimEscrowed(uint256,address)\",\"MiyaPool.commitRedeem(uint256,address)\",\"MiyaPool.deposit(uint256[],uint256[],address)\",\"MiyaPool.onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\",\"MiyaPool.onERC1155Received(address,address,uint256,uint256,bytes)\",\"MiyaPool.onERC721Received(address,address,uint256,bytes)\",\"MiyaPool.permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\",\"MiyaPool.redeem(uint256[],uint256[],address,address)\",\"MiyaPool.revealRedeem(uint256)\",\"MiyaPool.transfer(address,uint256)\",\"MiyaPool.transferFrom(address,address,uint256)\",\"MiyaPoolFactory.createPool(address,uint256,uint256)\"],\"files\":{\".gitignore\":4,\".gitmodules\":6,\"ADAPTATION.md\":150,\"AUDIT-NOTES.md\":95,\"LICENSE\":21,\"README.md\":44,\"foundry.toml\":25,\"launch.json\":12,\"src/pools/MiyaPool.sol\":567,\"src/pools/MiyaPoolFactory.sol\":120,\"test/fork/MiyaPoolV2Fork.t.sol\":187,\"test/invariant/MiyaPoolInvariant.t.sol\":292,\"test/pools/MiyaPool.t.sol\":1360,\"test/pools/MiyaPoolBatch.t.sol\":299,\"test/pools/MiyaPoolGas.t.sol\":92,\"test/pools/MiyaPoolLaunch.t.sol\":372},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"5e0d42ba4c5c9a5788fb0a006c0ec72b983ec40a1e5d6852cbbf7d5d40aa393c","verifiedTreeHash":"2118bcc5845a622ef284b42782e8fc773a941eb4","verifierVersion":"0.1.0+a490e3c0"},{"checks":[{"durationMs":50416,"exitCode":0,"name":"build","output":"Compiling 42 files with Solc 0.8.28\nSolc 0.8.28 finished in 50.32s\nCompiler run successful!\n","passed":true},{"durationMs":87013,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 1 test for test/pools/MiyaPoolGas.t.sol:MiyaPoolGasTest\n[PASS] test_gas_singleOperations() (gas: 1634444)\nLogs:\n  createPool: 3028435\n  deposit 1 (ERC721, queued): 180332\n  pick 1 (tail id, fee in IMD, first contribution): 246974\n  pick 1 (middle id, fee in IMD, repeat contributor): 216101\n  pick 1 (fee in INFER): 269460\n  commitRedeem 1: 142842\n  revealRedeem 1: 160979\n  revealRedeem 10: 541409\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 3.57ms (680.88µs CPU time)\n\nRan 10 tests for test/pools/MiyaPoolBatch.t.sol:MiyaPoolBatchTest\n[PASS] test_1155_batchSendThenMultiIdRedeem_oneCallEach() (gas: 3429990)\n[PASS] test_721_depositWithoutApprovalReverts() (gas: 3050277)\n[PASS] test_721_fiftyIdsEachWay() (gas: 10210098)\nLogs:\n  deposit 50 gas: 5790064\n  redeem 50 gas: 1692637\n\n[PASS] test_721_multiIdDepositThenMultiIdRedeem_oneCallEach() (gas: 3678163)\n[PASS] test_721_pickWithFee_exactApprovalThenOneRedeem() (gas: 3879838)\n[PASS] test_721_pickWithFee_withoutApprovalReverts() (gas: 3658744)\n[PASS] test_721_redeemBatchIsAllOrNothing() (gas: 3560177)\n[PASS] test_721_redeemWithShortfallReverts() (gas: 3545604)\n[PASS] test_random_batchIsOneCommitThenOneReveal() (gas: 4233947)\n[PASS] test_random_lockedIdsCannotBePicked() (gas: 3915268)\nSuite result: ok. 10 passed; 0 failed; 0 skipped; finished in 131.38ms (8.45ms CPU time)\n\nRan 11 tests for test/pools/MiyaPoolLaunch.t.sol:MiyaPoolLaunchTest\n[PASS] test_donatedFeeTokensDoNotAffectPicks() (gas: 3771200)\n[PASS] test_feeVaultCannotReenterThePool() (gas: 9314517)\n[PASS] test_known_largeCommitShiftsTheUnlockCostToTheRevealer() (gas: 12324490)\nLogs:\n  attacker's commit gas: 142693\n  victim's reveal gas: 1866375\n\n[PASS] test_known_lyingCollectionMintsUnbackedTokensInItsOwnPoolOnly() (gas: 11226419)\n[PASS] test_known_sentinelIdCannotBeDeposited() (gas: 3266738)\n[PASS] test_known_squattedErc1155PoolWithUnpayableFeeHasNoExit() (gas: 3536740)\n[PASS] test_known_squattedRobinhoodPoolHasNoExit() (gas: 3324834)\n[PASS] test_launch_factoryDeploysOnAnEmptyChainWithTheLiveVaultArgument() (gas: 14489747)\n[PASS] test_launch_factoryReadsTheVaultTokensFromTheVault() (gas: 3059545)\n[PASS] test_launch_poolRuntimeHasNoEscapeOpcodes() (gas: 8960635)\n[PASS] test_launch_vaultWithoutAddressAnswersGivesNoFeeTokens() (gas: 7114664)\nSuite result: ok. 11 passed; 0 failed; 0 skipped; finished in 162.33ms (41.94ms CPU time)\n\nRan 18 tests for test/pools/MiyaPoolAdversarial.t.sol:MiyaPoolAdversarialTest\n[PASS] testFuzz_1155DuplicateIdsAndRepeatedRoundTrips(uint64,uint64,uint8) (runs: 1000, μ: 5069205, ~: 5108500)\n[PASS] test_1155LargestRepresentableDepositRoundTripsWithoutRounding() (gas: 3903580)\n[PASS] test_1155MultiplicationOverflowCannotLeavePartialDeposit() (gas: 3758828)\n[PASS] test_1155ReceiverCanReturnUnitsButCannotReenterRedeem() (gas: 4389447)\n[PASS] test_1155RefusingRecipientRevertsFeeAndAccounting() (gas: 4250974)\n[PASS] test_1155ZeroEntriesCannotMintOrRedeemAnything() (gas: 3878571)\n[PASS] test_direct721ExplicitRecipientAndZeroFallback() (gas: 4039520)\n[PASS] test_direct721OperatorCannotStealDefaultCredit() (gas: 3881612)\n[PASS] test_expiredHistoryRearmsWithoutLosingLocksOrLiabilities() (gas: 5285070)\n[PASS] test_factoryRejectsMalformedAmbiguousAndGasBurning165Atomically() (gas: 4502245)\n[PASS] test_failedEscrowClaimPreservesClaimAndSuccessfulClaimCannotRepeat() (gas: 4702051)\n[PASS] test_history256UsesBlockhashAnd257UsesHistory() (gas: 8563648)\n[PASS] test_history8191IsInclusive() (gas: 4401923)\n[PASS] test_lateNFTFailureRollsBackBothTransfersBurnFeeAndVaultCredit() (gas: 4985376)\n[PASS] test_malformedRecipientWordRollsBackTransferAndMint() (gas: 3760840)\n[PASS] test_otherPickersFeeApprovalCannotBeSpent() (gas: 4182020)\n[PASS] test_prefundingPredictionCannotSquatDeploymentOrChangeFees() (gas: 3606215)\n[PASS] test_robinhoodFeePoolHasNoRandomPathAndCanPickEntireInventory() (gas: 4370306)\nSuite result: ok. 18 passed; 0 failed; 0 skipped; finished in 162.35ms (170.49ms CPU time)\n\nRan 1 test for test/pools/MiyaPoolDrawStability.t.sol:MiyaPoolDrawStabilityTest\n[PASS] testFuzz_minedDrawsStableAcrossDepositsPicksAndNewCommits(bytes32,bytes32,uint8,uint8,uint8) (runs: 1000, μ: 1994484, ~: 1978265)\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 167.15ms (165.64ms CPU time)\n\nRan 69 tests for test/pools/MiyaPool.t.sol:MiyaPoolTest\n[PASS] testFuzz_mixed_targetedRedeemsCannotSteerAPick(bytes32,uint8) (runs: 256, μ: 6647095, ~: 6600707)\n[PASS] testFuzz_random_depositBetweenRevealsCannotSteer(bytes32,bytes32) (runs: 256, μ: 4962469, ~: 4958395)\n[PASS] testFuzz_random_everyDrawIsDistinctAndEligible(bytes32,uint8) (runs: 256, μ: 4726759, ~: 4782199)\n[PASS] test_1155_commitReverts() (gas: 3276387)\n[PASS] test_1155_depositAndPartialRedeem() (gas: 3539996)\n[PASS] test_1155_directTransferDeposits() (gas: 3258045)\n[PASS] test_1155_hookRejectedBy721Pool() (gas: 3065387)\n[PASS] test_1155_lengthMismatchReverts() (gas: 3087411)\n[PASS] test_1155_overRedeemReverts() (gas: 3283173)\n[PASS] test_1155_pickFeePerUnit() (gas: 3737453)\n[PASS] test_721_depositMintsOneUnitEach() (gas: 3566542)\n[PASS] test_721_depositToOtherRecipient() (gas: 3289390)\n[PASS] test_721_directSafeTransferDeposits() (gas: 3314162)\n[PASS] test_721_feeOnTransferTokenRefused() (gas: 8766876)\n[PASS] test_721_freePick() (gas: 3707533)\n[PASS] test_721_freePickRefusesAFeeToken() (gas: 3353258)\n[PASS] test_721_hookChecksOwnership() (gas: 3067390)\n[PASS] test_721_hookOnlyFromCollection() (gas: 3062952)\n[PASS] test_721_pickPaysTheFeeInImdToTheVaultForThePicker() (gas: 4213414)\n[PASS] test_721_pickRefusesATokenNotOffered() (gas: 4209787)\n[PASS] test_721_pickShortOfPoolTokensReverts() (gas: 3593102)\n[PASS] test_721_pickWithoutFeeApprovalOrBalanceReverts() (gas: 3601437)\n[PASS] test_721_pickerChoosesAmongOfferedTokens() (gas: 4179043)\n[PASS] test_721_plainTransferIsNotTracked() (gas: 3178636)\n[PASS] test_721_redeemDuplicateReverts() (gas: 3455126)\n[PASS] test_721_redeemNotHeldReverts() (gas: 3423333)\n[PASS] test_721_redeemWithoutTokensReverts() (gas: 3310483)\n[PASS] test_721_targetedRedeemKeepsQueueConsistent() (gas: 4063596)\n[PASS] test_721_vaultPullingLessReverts() (gas: 3681196)\n[PASS] test_721_vaultRefusalBlocksPicksNotRandom() (gas: 4055873)\n[PASS] test_depositEmptyReverts() (gas: 3085998)\n[PASS] test_factory_createsAndPredicts() (gas: 3110549)\n[PASS] test_factory_deploysWithAVaultWithoutCodeAndReadsItLazily() (gas: 10097543)\n[PASS] test_factory_detects1155() (gas: 3010349)\n[PASS] test_factory_feeTokenMustBeAVaultPaymentToken() (gas: 3126502)\n[PASS] test_factory_feesAtLeastTheVaultMinimums() (gas: 3443346)\n[PASS] test_factory_feesNeedAVault() (gas: 7045527)\n[PASS] test_factory_onePoolPerCollection() (gas: 3041589)\n[PASS] test_factory_predictDependsOnFees() (gas: 51425)\n[PASS] test_factory_rejectsCollectionFailingTheErc165Probe() (gas: 145408)\n[PASS] test_factory_rejectsCollectionThatClaimsEverything() (gas: 143002)\n[PASS] test_factory_rejectsNonNFT() (gas: 155714)\n[PASS] test_gasBurningRecipientCannotBlockQueue() (gas: 6369839)\n[PASS] test_heldIdsClampsHugeCount() (gas: 3470354)\n[PASS] test_hookForEscrowedIdCannotMintUnbackedTokens() (gas: 4330941)\n[PASS] test_largestRevealToGasBurnerFitsMainnetGasCap() (gas: 24157104)\nLogs:\n  worst-case reveal gas: 12265550\n\n[PASS] test_mainnet_randomEnabled() (gas: 3040704)\n[PASS] test_metadata() (gas: 3064470)\n[PASS] test_mixed_commitOfEveryHeldIdStillSettles() (gas: 4928989)\n[PASS] test_mixed_committerCannotRerollByTakingTheirPick() (gas: 4153837)\n[PASS] test_mixed_feePickBetweenCommitAndReveal() (gas: 4720781)\n[PASS] test_mixed_lockFollowsTheNewestPendingCommit() (gas: 4274021)\n[PASS] test_mixed_pendingCommitLocksItsRange() (gas: 4962774)\n[PASS] test_poolCannotBeTheRecipient() (gas: 3425372)\n[PASS] test_random_commitIsCapped() (gas: 3093155)\n[PASS] test_random_commitRevealIsFree() (gas: 4043118)\n[PASS] test_random_depositsAfterACommitAreNeverDrawn() (gas: 4357039)\n[PASS] test_random_insufficientHeldReverts() (gas: 3716898)\n[PASS] test_random_largestRevealFitsInABlock() (gas: 12973496)\nLogs:\n  reveal gas (50 ids): 1722304\n\n[PASS] test_random_lateDepositsDoNotShiftPick() (gas: 4532978)\n[PASS] test_random_rearmsWhenExpired() (gas: 3828908)\n[PASS] test_random_refusedTransferIsEscrowedAndDoesNotBlockTheQueue() (gas: 5202075)\n[PASS] test_random_reservesHeldUnits() (gas: 3955604)\n[PASS] test_random_revealsRunInCommitOrder() (gas: 3979294)\n[PASS] test_random_zeroRecipientReverts() (gas: 3303979)\n[PASS] test_revealWithTooLittleGasRevertsInsteadOfEscrowing() (gas: 3522731)\n[PASS] test_robinhoodChain_poolOpensWithoutRandomRedeems() (gas: 3757001)\n[PASS] test_safeMintIntoPoolReverts() (gas: 3733628)\n[PASS] test_secondHookForHeldIdCannotMintUnbackedTokens() (gas: 3315031)\nSuite result: ok. 69 passed; 0 failed; 0 skipped; finished in 167.30ms (458.00ms CPU time)\n\nRan 8 tests for test/pools/MiyaPoolWalletGas.t.sol:MiyaPoolWalletGasTest\n[PASS] test_walletGas_expiredCommitRearms() (gas: 4831108)\n[PASS] test_walletGas_factoryERC1155Free() (gas: 76484578)\n[PASS] test_walletGas_factoryERC721WithFees() (gas: 76987086)\n[PASS] test_walletGas_fiftyTransfersConsumeTheirEntireAllowance() (gas: 317233374)\n[PASS] test_walletGas_refusedTransfersEscrowAllFifty() (gas: 72263800)\n[PASS] test_walletGas_revealFifty() (gas: 53648281)\n[PASS] test_walletGas_revealOne() (gas: 7206180)\n[PASS] test_walletGas_revealUsesHistoryAtLastValidBlock() (gas: 7615188)\nSuite result: ok. 8 passed; 0 failed; 0 skipped; finished in 392.40ms (467.90ms CPU time)\n\nRan 7 tests for test/fork/MiyaPoolAdversarialFork.t.sol:MiyaPoolAdversarialForkTest\n[PASS] test_fork_1155RepeatedIdsPayBothLiveFeesPerUnitToPicker() (gas: 988334)\n[PASS] test_fork_actualHistoryContractAnswersAtBothSupportedEdges() (gas: 14475)\n[PASS] test_fork_feeBelowLiveInferMinimumLeavesNoPoolAndCanRetry() (gas: 3707722)\n[PASS] test_fork_refusedNFTReceiverRollsBackLiveContribution() (gas: 595372)\n[PASS] test_fork_shortLiveFeeAllowanceRollsBackBatch() (gas: 241097)\n[PASS] test_fork_walletGasLiveImdPick() (gas: 13723010)\n[PASS] test_fork_walletGasLiveInferBatchPick() (gas: 11916732)\nSuite result: ok. 7 passed; 0 failed; 0 skipped; finished in 4.38s (8.15s CPU time)\n\nRan 1 test for test/fork/MiyaPoolV2Fork.t.sol:MiyaPoolV2ForkTest\n[PASS] test_fork_bothRedeemPathsAndPickFeesIntoTheLiveVault() (gas: 2451682)\nLogs:\n  pieces deposited by real holders: 12\n  pick gas, fee in IMD (live vault): 535194\n  pick gas, fee in INFER (live vault): 433081\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 7.34s (1.84s CPU time)\n\nRan 1 test for test/invariant/MiyaPool1155Invariant.t.sol:MiyaPool1155InvariantTest\n[PASS] invariant_everyEditionAndFeeIsConserved() (runs: 256, calls: 24576, reverts: 0)\n\n╭------------------------+----------------+-------+---------+----------╮\n| Contract               | Selector       | Calls | Reverts | Discards |\n+======================================================================+\n| EditionSequenceHandler | deposit        | 8139  | 0       | 0        |\n|------------------------+----------------+-------+---------+----------|\n| EditionSequenceHandler | redeem         | 8181  | 0       | 0        |\n|------------------------+----------------+-------+---------+----------|\n| EditionSequenceHandler | transferShares | 8256  | 0       | 0        |\n╰------------------------+----------------+-------+---------+----------╯\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 9.54s (9.54s CPU time)\n\nRan 2 tests for test/invariant/MiyaPoolEscrowInvariant.t.sol:MiyaPoolEscrowInvariantTest\n[PASS]\nMiyaPoolEscrowInvariantTest invariants:\n[PASS] invariant_independentBackingCustodyAndFees\n[PASS] invariant_queueEscrowAndCommitPartitions\n MiyaPoolEscrowInvariantTest invariants (runs: 256, calls: 24576, reverts: 0)\n\n╭-----------------------+----------------+-------+---------+----------╮\n| Contract              | Selector       | Calls | Reverts | Discards |\n+=====================================================================+\n| EscrowSequenceHandler | claim          | 4039  | 0       | 0        |\n|-----------------------+----------------+-------+---------+----------|\n| EscrowSequenceHandler | commit         | 4175  | 0       | 0        |\n|-----------------------+----------------+-------+---------+----------|\n| EscrowSequenceHandler | deposit        | 4164  | 0       | 0        |\n|-----------------------+----------------+-------+---------+----------|\n| EscrowSequenceHandler | pick           | 3997  | 0       | 0        |\n|-----------------------+----------------+-------+---------+----------|\n| EscrowSequenceHandler | reveal         | 4023  | 0       | 0        |\n|-----------------------+----------------+-------+---------+----------|\n| EscrowSequenceHandler | transferShares | 4178  | 0       | 0        |\n╰-----------------------+----------------+-------+---------+----------╯\n\n[PASS] test_handlerExercisesEscrowRearmClaimsAndRedeposit() (gas: 5607180)\nSuite result: ok. 2 passed; 0 failed; 0 skipped; finished in 46.40s (46.40s CPU time)\n\nRan 1 test for test/invariant/MiyaPoolInvariant.t.sol:MiyaPoolInvariantTest\n[PASS]\nMiyaPoolInvariantTest invariants:\n[PASS] invariant_noRandomOnRobinhoodPool\n[PASS] invariant_queueIsABijection\n[PASS] invariant_randomAndTargetedRulesHold\n[PASS] invariant_tokensExactlyBacked\n[PASS] invariant_trackedEqualsCustody\n[PASS] invariant_vaultBookedEveryFeeToItsPicker\n MiyaPoolInvariantTest invariants (runs: 256, calls: 128000, reverts: 0)\n\n╭-----------------+----------------+-------+---------+----------╮\n| Contract        | Selector       | Calls | Reverts | Discards |\n+===============================================================+\n| MiyaPoolHandler | commitRandom   | 14436 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | deposit1155    | 14260 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | deposit721     | 14057 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | depositHood    | 14241 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeem1155     | 14157 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeemHood     | 14303 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeemTargeted | 14191 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | revealRandom   | 14174 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | transferTokens | 14181 | 0       | 0        |\n╰-----------------+----------------+-------+---------+----------╯\n\nLogs:\n  reveals: 25\n  targeted redeems (random pool): 5\n  targeted redeems refused as locked: 33\n  IMD fees: 4000000000000000000\n  INFER fees: 1115500000000000000000000\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 86.91s (86.90s CPU time)\n\nRan 12 test suites in 86.91s (155.76s CPU time): 130 tests passed, 0 failed, 0 skipped (130 total tests)\n","passed":true},{"durationMs":58,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"MiyaPool.approve(address,uint256)\",\"MiyaPool.claimEscrowed(uint256,address)\",\"MiyaPool.commitRedeem(uint256,address)\",\"MiyaPool.deposit(uint256[],uint256[],address)\",\"MiyaPool.onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\",\"MiyaPool.onERC1155Received(address,address,uint256,uint256,bytes)\",\"MiyaPool.onERC721Received(address,address,uint256,bytes)\",\"MiyaPool.permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\",\"MiyaPool.redeem(uint256[],uint256[],address,address)\",\"MiyaPool.revealRedeem(uint256)\",\"MiyaPool.transfer(address,uint256)\",\"MiyaPool.transferFrom(address,address,uint256)\",\"MiyaPoolFactory.createPool(address,uint256,uint256)\"],\"files\":{\".gitignore\":4,\".gitmodules\":6,\"ADAPTATION.md\":150,\"AUDIT-NOTES.md\":95,\"LICENSE\":21,\"README.md\":44,\"foundry.toml\":25,\"src/pools/MiyaPool.sol\":567,\"src/pools/MiyaPoolFactory.sol\":120,\"test/REVIEW.md\":103,\"test/fork/MiyaPoolAdversarialFork.t.sol\":180,\"test/fork/MiyaPoolV2Fork.t.sol\":180,\"test/helpers/HistoryFixture.sol\":19,\"test/helpers/WalletGas.sol\":76,\"test/invariant/MiyaPool1155Invariant.t.sol\":207,\"test/invariant/MiyaPoolEscrowInvariant.t.sol\":366,\"test/invariant/MiyaPoolInvariant.t.sol\":292,\"test/pools/MiyaPool.t.sol\":1360,\"test/pools/MiyaPoolAdversarial.t.sol\":493,\"test/pools/MiyaPoolBatch.t.sol\":299,\"test/pools/MiyaPoolDrawStability.t.sol\":119,\"test/pools/MiyaPoolGas.t.sol\":92,\"test/pools/MiyaPoolLaunch.t.sol\":372,\"test/pools/MiyaPoolWalletGas.t.sol\":97},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"75aea0afc2ee3ba24da07b57a5fb9fb106a32b4a48ac3d0f6237ca0bed8a320a","verifiedTreeHash":"ee17fd4cf73b6abff8a6f24bd24c8d133775bdbe","verifierVersion":"0.1.0+a490e3c0"},{"checks":[{"durationMs":29881,"exitCode":0,"name":"build","output":"Compiling 34 files with Solc 0.8.28\nSolc 0.8.28 finished in 29.80s\nCompiler run successful!\n","passed":true},{"durationMs":85935,"exitCode":0,"name":"test","output":"No files changed, compilation skipped\n\nRan 1 test for test/pools/MiyaPoolGas.t.sol:MiyaPoolGasTest\n[PASS] test_gas_singleOperations() (gas: 1634444)\nLogs:\n  createPool: 3028435\n  deposit 1 (ERC721, queued): 180332\n  pick 1 (tail id, fee in IMD, first contribution): 246974\n  pick 1 (middle id, fee in IMD, repeat contributor): 216101\n  pick 1 (fee in INFER): 269460\n  commitRedeem 1: 142842\n  revealRedeem 1: 160979\n  revealRedeem 10: 541409\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 4.46ms (733.58µs CPU time)\n\nRan 1 test for test/fork/MiyaPoolV2Fork.t.sol:MiyaPoolV2ForkTest\n[SKIP] test_fork_bothRedeemPathsAndPickFeesIntoTheLiveVault() (gas: 0)\nSuite result: ok. 0 passed; 0 failed; 1 skipped; finished in 10.36ms (51.09µs CPU time)\n\nRan 11 tests for test/pools/MiyaPoolLaunch.t.sol:MiyaPoolLaunchTest\n[PASS] test_donatedFeeTokensDoNotAffectPicks() (gas: 3771200)\n[PASS] test_feeVaultCannotReenterThePool() (gas: 9314517)\n[PASS] test_known_largeCommitShiftsTheUnlockCostToTheRevealer() (gas: 12324490)\nLogs:\n  attacker's commit gas: 142693\n  victim's reveal gas: 1866375\n\n[PASS] test_known_lyingCollectionMintsUnbackedTokensInItsOwnPoolOnly() (gas: 11226419)\n[PASS] test_known_sentinelIdCannotBeDeposited() (gas: 3266738)\n[PASS] test_known_squattedErc1155PoolWithUnpayableFeeHasNoExit() (gas: 3536740)\n[PASS] test_known_squattedRobinhoodPoolHasNoExit() (gas: 3324834)\n[PASS] test_launch_factoryDeploysOnAnEmptyChainWithTheLiveVaultArgument() (gas: 14489747)\n[PASS] test_launch_factoryReadsTheVaultTokensFromTheVault() (gas: 3059545)\n[PASS] test_launch_poolRuntimeHasNoEscapeOpcodes() (gas: 8960635)\n[PASS] test_launch_vaultWithoutAddressAnswersGivesNoFeeTokens() (gas: 7114664)\nSuite result: ok. 11 passed; 0 failed; 0 skipped; finished in 77.74ms (40.65ms CPU time)\n\nRan 10 tests for test/pools/MiyaPoolBatch.t.sol:MiyaPoolBatchTest\n[PASS] test_1155_batchSendThenMultiIdRedeem_oneCallEach() (gas: 3429990)\n[PASS] test_721_depositWithoutApprovalReverts() (gas: 3050277)\n[PASS] test_721_fiftyIdsEachWay() (gas: 10210098)\nLogs:\n  deposit 50 gas: 5790064\n  redeem 50 gas: 1692637\n\n[PASS] test_721_multiIdDepositThenMultiIdRedeem_oneCallEach() (gas: 3678163)\n[PASS] test_721_pickWithFee_exactApprovalThenOneRedeem() (gas: 3879838)\n[PASS] test_721_pickWithFee_withoutApprovalReverts() (gas: 3658744)\n[PASS] test_721_redeemBatchIsAllOrNothing() (gas: 3560177)\n[PASS] test_721_redeemWithShortfallReverts() (gas: 3545604)\n[PASS] test_random_batchIsOneCommitThenOneReveal() (gas: 4233947)\n[PASS] test_random_lockedIdsCannotBePicked() (gas: 3915268)\nSuite result: ok. 10 passed; 0 failed; 0 skipped; finished in 77.79ms (10.67ms CPU time)\n\nRan 69 tests for test/pools/MiyaPool.t.sol:MiyaPoolTest\n[PASS] testFuzz_mixed_targetedRedeemsCannotSteerAPick(bytes32,uint8) (runs: 256, μ: 6661296, ~: 6653507)\n[PASS] testFuzz_random_depositBetweenRevealsCannotSteer(bytes32,bytes32) (runs: 256, μ: 4963017, ~: 4958395)\n[PASS] testFuzz_random_everyDrawIsDistinctAndEligible(bytes32,uint8) (runs: 256, μ: 4725683, ~: 4781193)\n[PASS] test_1155_commitReverts() (gas: 3276387)\n[PASS] test_1155_depositAndPartialRedeem() (gas: 3539996)\n[PASS] test_1155_directTransferDeposits() (gas: 3258045)\n[PASS] test_1155_hookRejectedBy721Pool() (gas: 3065387)\n[PASS] test_1155_lengthMismatchReverts() (gas: 3087411)\n[PASS] test_1155_overRedeemReverts() (gas: 3283173)\n[PASS] test_1155_pickFeePerUnit() (gas: 3737453)\n[PASS] test_721_depositMintsOneUnitEach() (gas: 3566542)\n[PASS] test_721_depositToOtherRecipient() (gas: 3289390)\n[PASS] test_721_directSafeTransferDeposits() (gas: 3314162)\n[PASS] test_721_feeOnTransferTokenRefused() (gas: 8766876)\n[PASS] test_721_freePick() (gas: 3707533)\n[PASS] test_721_freePickRefusesAFeeToken() (gas: 3353258)\n[PASS] test_721_hookChecksOwnership() (gas: 3067390)\n[PASS] test_721_hookOnlyFromCollection() (gas: 3062952)\n[PASS] test_721_pickPaysTheFeeInImdToTheVaultForThePicker() (gas: 4213414)\n[PASS] test_721_pickRefusesATokenNotOffered() (gas: 4209787)\n[PASS] test_721_pickShortOfPoolTokensReverts() (gas: 3593102)\n[PASS] test_721_pickWithoutFeeApprovalOrBalanceReverts() (gas: 3601437)\n[PASS] test_721_pickerChoosesAmongOfferedTokens() (gas: 4179043)\n[PASS] test_721_plainTransferIsNotTracked() (gas: 3178636)\n[PASS] test_721_redeemDuplicateReverts() (gas: 3455126)\n[PASS] test_721_redeemNotHeldReverts() (gas: 3423333)\n[PASS] test_721_redeemWithoutTokensReverts() (gas: 3310483)\n[PASS] test_721_targetedRedeemKeepsQueueConsistent() (gas: 4063596)\n[PASS] test_721_vaultPullingLessReverts() (gas: 3681196)\n[PASS] test_721_vaultRefusalBlocksPicksNotRandom() (gas: 4055873)\n[PASS] test_depositEmptyReverts() (gas: 3085998)\n[PASS] test_factory_createsAndPredicts() (gas: 3110549)\n[PASS] test_factory_deploysWithAVaultWithoutCodeAndReadsItLazily() (gas: 10097543)\n[PASS] test_factory_detects1155() (gas: 3010349)\n[PASS] test_factory_feeTokenMustBeAVaultPaymentToken() (gas: 3126502)\n[PASS] test_factory_feesAtLeastTheVaultMinimums() (gas: 3443346)\n[PASS] test_factory_feesNeedAVault() (gas: 7045527)\n[PASS] test_factory_onePoolPerCollection() (gas: 3041589)\n[PASS] test_factory_predictDependsOnFees() (gas: 51425)\n[PASS] test_factory_rejectsCollectionFailingTheErc165Probe() (gas: 145408)\n[PASS] test_factory_rejectsCollectionThatClaimsEverything() (gas: 143002)\n[PASS] test_factory_rejectsNonNFT() (gas: 155714)\n[PASS] test_gasBurningRecipientCannotBlockQueue() (gas: 6369839)\n[PASS] test_heldIdsClampsHugeCount() (gas: 3470354)\n[PASS] test_hookForEscrowedIdCannotMintUnbackedTokens() (gas: 4330941)\n[PASS] test_largestRevealToGasBurnerFitsMainnetGasCap() (gas: 24157104)\nLogs:\n  worst-case reveal gas: 12265550\n\n[PASS] test_mainnet_randomEnabled() (gas: 3040704)\n[PASS] test_metadata() (gas: 3064470)\n[PASS] test_mixed_commitOfEveryHeldIdStillSettles() (gas: 4928989)\n[PASS] test_mixed_committerCannotRerollByTakingTheirPick() (gas: 4153837)\n[PASS] test_mixed_feePickBetweenCommitAndReveal() (gas: 4720781)\n[PASS] test_mixed_lockFollowsTheNewestPendingCommit() (gas: 4274021)\n[PASS] test_mixed_pendingCommitLocksItsRange() (gas: 4962774)\n[PASS] test_poolCannotBeTheRecipient() (gas: 3425372)\n[PASS] test_random_commitIsCapped() (gas: 3093155)\n[PASS] test_random_commitRevealIsFree() (gas: 4043118)\n[PASS] test_random_depositsAfterACommitAreNeverDrawn() (gas: 4357039)\n[PASS] test_random_insufficientHeldReverts() (gas: 3716898)\n[PASS] test_random_largestRevealFitsInABlock() (gas: 12973496)\nLogs:\n  reveal gas (50 ids): 1722304\n\n[PASS] test_random_lateDepositsDoNotShiftPick() (gas: 4532978)\n[PASS] test_random_rearmsWhenExpired() (gas: 3828908)\n[PASS] test_random_refusedTransferIsEscrowedAndDoesNotBlockTheQueue() (gas: 5202075)\n[PASS] test_random_reservesHeldUnits() (gas: 3955604)\n[PASS] test_random_revealsRunInCommitOrder() (gas: 3979294)\n[PASS] test_random_zeroRecipientReverts() (gas: 3303979)\n[PASS] test_revealWithTooLittleGasRevertsInsteadOfEscrowing() (gas: 3522731)\n[PASS] test_robinhoodChain_poolOpensWithoutRandomRedeems() (gas: 3757001)\n[PASS] test_safeMintIntoPoolReverts() (gas: 3733628)\n[PASS] test_secondHookForHeldIdCannotMintUnbackedTokens() (gas: 3315031)\nSuite result: ok. 69 passed; 0 failed; 0 skipped; finished in 99.99ms (320.37ms CPU time)\n\nRan 1 test for test/invariant/MiyaPoolInvariant.t.sol:MiyaPoolInvariantTest\n[PASS]\nMiyaPoolInvariantTest invariants:\n[PASS] invariant_noRandomOnRobinhoodPool\n[PASS] invariant_queueIsABijection\n[PASS] invariant_randomAndTargetedRulesHold\n[PASS] invariant_tokensExactlyBacked\n[PASS] invariant_trackedEqualsCustody\n[PASS] invariant_vaultBookedEveryFeeToItsPicker\n MiyaPoolInvariantTest invariants (runs: 256, calls: 128000, reverts: 0)\n\n╭-----------------+----------------+-------+---------+----------╮\n| Contract        | Selector       | Calls | Reverts | Discards |\n+===============================================================+\n| MiyaPoolHandler | commitRandom   | 14436 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | deposit1155    | 14260 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | deposit721     | 14057 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | depositHood    | 14241 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeem1155     | 14157 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeemHood     | 14303 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | redeemTargeted | 14191 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | revealRandom   | 14174 | 0       | 0        |\n|-----------------+----------------+-------+---------+----------|\n| MiyaPoolHandler | transferTokens | 14181 | 0       | 0        |\n╰-----------------+----------------+-------+---------+----------╯\n\nLogs:\n  reveals: 25\n  targeted redeems (random pool): 11\n  targeted redeems refused as locked: 22\n  IMD fees: 9000000000000000000\n  INFER fees: 1203000000000000000000000\n\nSuite result: ok. 1 passed; 0 failed; 0 skipped; finished in 85.83s (85.82s CPU time)\n\nRan 6 test suites in 85.83s (86.10s CPU time): 92 tests passed, 0 failed, 1 skipped (93 total tests)\n","passed":true},{"durationMs":46,"exitCode":0,"name":"source-index","output":"{\"v\":1,\"entryPoints\":[\"MiyaPool.approve(address,uint256)\",\"MiyaPool.claimEscrowed(uint256,address)\",\"MiyaPool.commitRedeem(uint256,address)\",\"MiyaPool.deposit(uint256[],uint256[],address)\",\"MiyaPool.onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\",\"MiyaPool.onERC1155Received(address,address,uint256,uint256,bytes)\",\"MiyaPool.onERC721Received(address,address,uint256,bytes)\",\"MiyaPool.permit(address,address,uint256,uint256,uint8,bytes32,bytes32)\",\"MiyaPool.redeem(uint256[],uint256[],address,address)\",\"MiyaPool.revealRedeem(uint256)\",\"MiyaPool.transfer(address,uint256)\",\"MiyaPool.transferFrom(address,address,uint256)\",\"MiyaPoolFactory.createPool(address,uint256,uint256)\"],\"files\":{\".gitignore\":4,\".gitmodules\":6,\"ADAPTATION.md\":150,\"AUDIT-NOTES.md\":95,\"LICENSE\":21,\"README.md\":44,\"foundry.toml\":25,\"src/pools/MiyaPool.sol\":567,\"src/pools/MiyaPoolFactory.sol\":120,\"test/fork/MiyaPoolV2Fork.t.sol\":187,\"test/invariant/MiyaPoolInvariant.t.sol\":292,\"test/pools/MiyaPool.t.sol\":1360,\"test/pools/MiyaPoolBatch.t.sol\":299,\"test/pools/MiyaPoolGas.t.sol\":92,\"test/pools/MiyaPoolLaunch.t.sol\":372},\"excluded\":[\"lib/\",\"node_modules/\"],\"truncated\":false}","passed":true},{"durationMs":3618,"exitCode":0,"name":"slither","output":"[high/medium] weak-prng at src/pools/MiyaPool.sol:424: MiyaPool.revealRedeem(uint256) (src/pools/MiyaPool.sol#424-471) uses a weak PRNG: \"pos = head + r % (c.queueEnd - head) (src/pools/MiyaPool.sol#444)\"\n[medium/medium] uninitialized-local at src/pools/MiyaPool.sol:535: MiyaPool._receive1155(address,uint256[],uint256[],bytes).total (src/pools/MiyaPool.sol#535) is a local variable never initialized\n[medium/medium] uninitialized-local at src/pools/MiyaPool.sol:190: MiyaPool.constructor(address,MiyaPool.Kind,uint256,uint256).imd_ (src/pools/MiyaPool.sol#190) is a local variable never initialized\n[medium/medium] uninitialized-local at src/pools/MiyaPool.sol:191: MiyaPool.constructor(address,MiyaPool.Kind,uint256,uint256).infer_ (src/pools/MiyaPool.sol#191) is a local variable never initialized\n[medium/medium] uninitialized-local at src/pools/MiyaPool.sol:386: MiyaPool.redeem(uint256[],uint256[],address,address).total (src/pools/MiyaPool.sol#386) is a local variable never initialized\n[medium/medium] unused-return at src/pools/MiyaPool.sol:532: MiyaPool._receive1155(address,uint256[],uint256[],bytes) (src/pools/MiyaPool.sol#532-546) ignores return value by _ids.add(ids[i]) (src/pools/MiyaPool.sol#539)\n[medium/medium] unused-return at src/pools/MiyaPool.sol:364: MiyaPool.redeem(uint256[],uint256[],address,address) (src/pools/MiyaPool.sol#364-402) ignores return value by _ids.remove(ids[i_scope_1]) (src/pools/MiyaPool.sol#393)\n[medium/medium] unused-return at src/pools/MiyaPool.sol:424: MiyaPool.revealRedeem(uint256) (src/pools/MiyaPool.sol#424-471) ignores return value by _ids.remove(id) (src/pools/MiyaPool.sol#454)\n[low/medium] missing-zero-check at src/pools/MiyaPool.sol:187: MiyaPool.constructor(address,MiyaPool.Kind,uint256,uint256)._collection (src/pools/MiyaPool.sol#187) lacks a zero-check on :\n[low/medium] missing-zero-check at src/pools/MiyaPool.sol:190: MiyaPool.constructor(address,MiyaPool.Kind,uint256,uint256).imd_ (src/pools/MiyaPool.sol#190) lacks a zero-check on :\n[low/medium] missing-zero-check at src/pools/MiyaPoolFactory.sol:47: MiyaPoolFactory.constructor(address).vault_ (src/pools/MiyaPoolFactory.sol#47) lacks a zero-check on :\n[low/medium] missing-zero-check at src/pools/MiyaPool.sol:191: MiyaPool.constructor(address,MiyaPool.Kind,uint256,uint256).infer_ (src/pools/MiyaPool.sol#191) lacks a zero-check on :\n[low/medium] calls-loop at src/pools/MiyaPool.sol:364: MiyaPool.redeem(uint256[],uint256[],address,address) (src/pools/MiyaPool.sol#364-402) has external calls inside a loop: IERC721Pool(collection).transferFrom(address(this),to,ids[i_scope_0]) (src/pools/MiyaPool.sol#381)\n[low/medium] calls-loop at src/pools/MiyaPool.sol:293: MiyaPool.deposit(uint256[],uint256[],address) (src/pools/MiyaPool.sol#293-304) has external calls inside a loop: IERC721Pool(collection).safeTransferFrom(msg.sender,address(this),ids[i],data) (src/pools/MiyaPool.sol#298)\n[low/medium] calls-loop at src/pools/MiyaPool.sol:424: MiyaPool.revealRedeem(uint256) (src/pools/MiyaPool.sol#424-471) has external calls inside a loop: IERC721Pool(collection).transferFrom{gas: REVEAL_TRANSFER_GAS}(address(this),c.recipient,picked[i_scope_0]) (src/pools/MiyaPool.sol#462-468)\n[low/medium] reentrancy-benign at src/pools/MiyaPool.sol:424: Reentrancy in MiyaPool.revealRedeem(uint256) (src/pools/MiyaPool.sol#424-471):\n[low/medium] return-bomb at src/pools/MiyaPoolFactory.sol:115: MiyaPoolFactory._supports(address,bytes4) (src/pools/MiyaPoolFactory.sol#115-119) tries to limit the gas of an external call that controls implicit decoding","passed":true},{"durationMs":465,"exitCode":0,"name":"aderyn","output":"[high] reentrancy-state-change at src/pools/MiyaPool.sol:189: Reentrancy: State change after external call (4 places)\n[low] costly-loop at src/pools/MiyaPool.sol:373: Costly operations inside loop (5 places)\n[low] large-numeric-literal at src/pools/MiyaPool.sol:112: Large Numeric Literal\n[low] literal-instead-of-constant at src/pools/MiyaPool.sol:461: Literal Instead of Constant (7 places)\n[low] missing-inheritance at src/pools/MiyaPoolFactory.sol:21: Missing Inheritance\n[low] push-zero-opcode at src/pools/MiyaPool.sol:2: PUSH0 Opcode (2 places)\n[low] require-revert-in-loop at src/pools/MiyaPool.sol:234: Loop Contains `require`/`revert` (4 places)\n[low] unchecked-return at src/pools/MiyaPool.sol:454: Unchecked Return (2 places)\n[low] unspecific-solidity-pragma at src/pools/MiyaPool.sol:2: Unspecific Solidity Pragma (2 places)\n[low] unused-public-function at src/pools/MiyaPool.sol:224: Public Function Not Used Internally (3 places)","passed":true}],"detail":"all checks passed","evaluation":"checks","profile":"foundry","status":"accepted","submissionHash":"9d03a1118ffb2b725ba45e2a57016d718f51b70f010d571354787b6df8f2847d","verifiedTreeHash":"f1d4f4d06250f30fbecc8e19540b42f6c522fb82","verifierVersion":"0.1.0+a490e3c0"}]}