{"item":"t2","batch":"e09-stack-tune","blocked":null,"code":"// SPDX-License-Identifier: MIT\npragma solidity ^0.8.24;\n\nimport {AMMStrategyBase} from \"./AMMStrategyBase.sol\";\nimport {TradeInfo} from \"./IAMMStrategy.sol\";\n\ncontract Strategy is AMMStrategyBase {\n    uint256 constant ELAPSED_CAP = 8;\n    uint256 constant SIGNAL_THRESHOLD = WAD / 650;\n    uint256 constant DIR_DECAY = 750000000000000000;\n    uint256 constant ACT_DECAY = 530000000000000000;\n    uint256 constant SIZE_DECAY = 530000000000000000;\n    uint256 constant TOX_DECAY = 910000000000000000;\n    uint256 constant SIGMA_DECAY = 690000000000000000;\n    uint256 constant LAMBDA_DECAY = 990000000000000000;\n    uint256 constant SIZE_BLEND_DECAY = 828000000000000000;\n    uint256 constant TOX_BLEND_DECAY = 51000000000000000;\n    uint256 constant ACT_BLEND_DECAY = 985000000000000000;\n    uint256 constant PHAT_ALPHA = 270000000000000000;\n    uint256 constant PHAT_ALPHA_RETAIL = 60000000000000000;\n    uint256 constant PHAT_ALPHA_SAME = 120000000000000000;\n    uint256 constant REVERT_U = 0;\n    uint256 constant DIR_IMPACT_MULT = 4;\n    uint256 constant GATE_SIGMA_MULT = 7200000000000000000;\n    uint256 constant MIN_GATE = 30000000000000000;\n    uint256 constant TRADE_TOX_BOOST = 3500 * BPS;\n    uint256 constant STALE_ATTRACT_FRAC = 1050000000000000000;\n    uint256 constant RET_CAP = WAD / 35;\n    uint256 constant TOX_CAP = WAD / 5;\n    uint256 constant TRADE_RATIO_CAP = WAD / 5;\n    uint256 constant LAMBDA_CAP = 1820000000000000000;\n    uint256 constant STEP_COUNT_CAP = 64;\n    uint256 constant BASE_FEE = 4 * BPS;\n    uint256 constant SIGMA_COEF = 200000000000000000;\n    uint256 constant LAMBDA_COEF = 12 * BPS;\n    uint256 constant FLOW_SIZE_COEF = 4842 * BPS;\n    uint256 constant TOX_COEF = 300 * BPS;\n    uint256 constant TOX_QUAD_COEF = 15000 * BPS;\n    uint256 constant ACT_COEF = 91843 * BPS;\n    uint256 constant DIR_COEF = 20 * BPS;\n    uint256 constant DIR_TOX_COEF = 100 * BPS;\n    uint256 constant STALE_DIR_COEF = 6850 * BPS;\n    uint256 constant SIGMA_TOX_COEF = 500 * BPS;\n    uint256 constant TAIL_KNEE = 600 * BPS;\n    uint256 constant TAIL_SLOPE_PROTECT = 930000000000000000;\n    uint256 constant TAIL_SLOPE_ATTRACT = 850000000000000000;\n\n    function afterInitialize(uint256 initialX, uint256 initialY) external override returns (uint256, uint256) {\n        slots[0] = BASE_FEE; slots[1] = BASE_FEE; slots[3] = WAD; \n        slots[5] = initialX > 0 ? wdiv(initialY, initialX) : 100 * WAD;\n        slots[6] = 950000000000000; slots[7] = 800000000000000000; slots[8] = 2000000000000000;\n        slots[13] = 902500000000; slots[14] = slots[5]; \n        return (BASE_FEE, BASE_FEE);\n    }\n\n    function afterSwap(TradeInfo calldata trade) external override returns (uint256, uint256) {\n        uint256 prevBidFee = slots[0]; uint256 prevAskFee = slots[1]; uint256 lastTs = uint64(slots[2]);\n        uint256 dirState = slots[3]; uint256 actEma = slots[4]; uint256 pHat = slots[5];\n        uint256 sigmaHat = slots[6]; uint256 lambdaHat = slots[7]; uint256 sizeHat = slots[8];\n        uint256 toxEma = slots[9]; uint256 stepTradeCount = slots[10];\n\n        uint256 sigmaForFast = sigmaHat;\n        uint256 fastHat = slots[14];\n        uint256 uncertainty = slots[13];\n        uint256 silent = trade.timestamp > lastTs ? trade.timestamp - lastTs : 0;\n        bool isNewStep = trade.timestamp > lastTs;\n        if (isNewStep) {\n            uint256 elapsedRaw = trade.timestamp - lastTs;\n            uint256 elapsed = elapsedRaw > ELAPSED_CAP ? ELAPSED_CAP : elapsedRaw;\n            dirState = _decayCentered(dirState, DIR_DECAY, elapsed);\n            actEma = wmul(actEma, _powWad(ACT_DECAY, elapsed));\n            sizeHat = wmul(sizeHat, _powWad(SIZE_DECAY, elapsed));\n            toxEma = wmul(toxEma, _powWad(TOX_DECAY, elapsed));\n            if (stepTradeCount > 0 && elapsedRaw > 0) {\n                uint256 lambdaInst = (stepTradeCount * WAD) / elapsedRaw;\n                if (lambdaInst > LAMBDA_CAP) lambdaInst = LAMBDA_CAP;\n                lambdaHat = wmul(lambdaHat, LAMBDA_DECAY) + wmul(lambdaInst, WAD - LAMBDA_DECAY);\n            }\n            uncertainty += wmul(sigmaForFast, sigmaForFast) * elapsedRaw;\n            if (uncertainty > 100000000000000) uncertainty = 100000000000000;\n            stepTradeCount = 0;\n        }\n\n        bool firstInStep = stepTradeCount == 0;\n        uint256 spot = trade.reserveX > 0 ? wdiv(trade.reserveY, trade.reserveX) : pHat;\n        if (pHat == 0) pHat = spot;\n\n        uint256 feeUsed = trade.isBuy ? prevBidFee : prevAskFee;\n        uint256 gamma = feeUsed < WAD ? WAD - feeUsed : 0;\n        uint256 pImplied;\n        if (gamma == 0) { pImplied = spot; }\n        else { pImplied = trade.isBuy ? wmul(spot, gamma) : wdiv(spot, gamma); }\n\n        // S: infer a no-trade interval center from the last post-trade spot.\n        uint256 silenceScale = WAD;\n        if (firstInStep && silent > 1) {\n            uint256 g = silent - 1;\n            if (g > 1) g = 1;\n            uint256 w = WAD - _powWad(800000000000000000, g);\n            uint256 s = slots[2] >> 64;\n            if (s == 0) s = pHat;\n            uint256 c = (wmul(s, WAD - prevBidFee) + wdiv(s, WAD - prevAskFee)) / 2;\n            if (c >= pHat) pHat += wmul(w, c - pHat);\n            else pHat -= wmul(w, pHat - c);\n            silenceScale = WAD - wmul(300000000000000000, w);\n        }\n\n        {\n            uint256 ret = pHat > 0 ? wdiv(absDiff(pImplied, pHat), pHat) : 0;\n            uint256 alpha = firstInStep ? PHAT_ALPHA : PHAT_ALPHA_RETAIL;\n            uint256 prePhat = pHat;\n            bool secondPrint = !firstInStep && stepTradeCount == 1;\n            bool sameDir = false; bool oppDir = false;\n            if (secondPrint) {\n                bool up2 = pImplied >= pHat;\n                uint256 d1 = slots[12];\n                if (d1 != 0) { sameDir = (d1 == 1) == up2; oppDir = !sameDir; }\n                if (sameDir) alpha = PHAT_ALPHA_SAME;\n            }\n            if (firstInStep) { slots[12] = pImplied >= pHat ? 1 : 2; }\n            uint256 adaptiveGate = wmul(sigmaHat, GATE_SIGMA_MULT);\n            if (adaptiveGate < MIN_GATE) adaptiveGate = MIN_GATE;\n            alpha = wmul(alpha, silenceScale);\n            adaptiveGate = wmul(adaptiveGate, silenceScale);\n            if (ret <= adaptiveGate) { pHat = wmul(pHat, WAD - alpha) + wmul(pImplied, alpha); }\n            if (oppDir && REVERT_U > 0) {\n                uint256 pre = slots[11];\n                if (pre > pHat) pHat = pHat + wmul(pre - pHat, REVERT_U);\n                else pHat = pHat - wmul(pHat - pre, REVERT_U);\n            }\n            if (firstInStep) {\n                if (ret > RET_CAP) ret = RET_CAP;\n                sigmaHat = wmul(sigmaHat, SIGMA_DECAY) + wmul(ret, WAD - SIGMA_DECAY);\n            }\n        }\n\n        // Interior retail routing equalizes fee-adjusted marginal prices.\n        // Subsequent trades in a step cannot be the initial arbitrage trade.\n        if (!firstInStep && feeUsed > 30 * BPS && gamma > 0) {\n            uint256 normalSpot = trade.isBuy\n                ? wdiv(wmul(spot, gamma), WAD - 30 * BPS)\n                : wdiv(wmul(spot, WAD - 30 * BPS), gamma);\n            pHat = wmul(pHat, 90 * WAD / 100) + wmul(normalSpot, 10 * WAD / 100);\n        }\n\n        {\n            uint256 ret = fastHat > 0 ? wdiv(absDiff(pImplied, fastHat), fastHat) : 0;\n            uint256 alpha;\n            if (firstInStep) {\n                uint256 processSigma = sigmaForFast;\n                uint256 obsVar = uncertainty + wmul(processSigma, processSigma);\n                uint256 probArb;\n                uint256 z2 = wdiv(wmul(ret, ret), obsVar);\n                uint256 density = _powWad(wdiv(WAD, WAD + z2 / 16), 8);\n                uint256 sigmaObs = _isqrt(obsVar * WAD);\n                uint256 odds = wmul(density, wdiv(6700000000000000, sigmaObs));\n                bool arbFlag = ret <= wmul(sigmaForFast, 1220000000000000000);\n                uint256 prior = arbFlag ? 650000000000000000 : 400000000000000000;\n                uint256 tr = trade.reserveY > 0 ? wdiv(trade.amountY, trade.reserveY) : 0;\n                if (tr > 3000000000000000) prior = wmul(prior, 6 * WAD / 10);\n                if (silent > 1) prior = wmul(prior, 8 * WAD / 10);\n                odds = wmul(odds, wdiv(prior, WAD - prior));\n                probArb = wdiv(odds, WAD + odds);\n                alpha = wmul(probArb, 600000000000000000) + wmul(WAD - probArb, 80000000000000000);\n                slots[15] = pImplied >= fastHat ? 1 : 2;\n                uncertainty = wmul(uncertainty, WAD - alpha);\n            } else {\n                if ((slots[15] == 1) == (pImplied >= fastHat)) alpha = PHAT_ALPHA_RETAIL;\n            }\n            uint256 gate = wmul(sigmaHat, GATE_SIGMA_MULT);\n            if (gate < MIN_GATE) gate = MIN_GATE;\n            if (ret <= gate) fastHat = wmul(fastHat, WAD - alpha) + wmul(pImplied, alpha);\n            slots[13] = uncertainty;\n        }\n\n        if (!firstInStep && feeUsed > 30 * BPS && gamma > 0) {\n            uint256 normalObs = trade.isBuy\n                ? wdiv(wmul(spot, gamma), WAD - 30 * BPS)\n                : wdiv(wmul(spot, WAD - 30 * BPS), gamma);\n            if ((slots[15] == 1) == (normalObs >= fastHat)) {\n                fastHat = wmul(fastHat, 9 * WAD / 10) + wmul(normalObs, WAD / 10);\n            }\n        }\n        slots[14] = fastHat;\n        uint256 tradeRatio = trade.reserveY > 0 ? wdiv(trade.amountY, trade.reserveY) : 0;\n        if (tradeRatio > TRADE_RATIO_CAP) tradeRatio = TRADE_RATIO_CAP;\n\n        if (tradeRatio > SIGNAL_THRESHOLD) {\n            uint256 push = tradeRatio * DIR_IMPACT_MULT;\n            if (push > WAD / 4) push = WAD / 4;\n            if (trade.isBuy) {\n                dirState = dirState + push;\n                if (dirState > 2 * WAD) dirState = 2 * WAD;\n            } else {\n                dirState = dirState > push ? dirState - push : 0;\n            }\n            actEma = wmul(actEma, ACT_BLEND_DECAY) + wmul(tradeRatio, WAD - ACT_BLEND_DECAY);\n            sizeHat = wmul(sizeHat, SIZE_BLEND_DECAY) + wmul(tradeRatio, WAD - SIZE_BLEND_DECAY);\n            if (sizeHat > WAD) sizeHat = WAD;\n        }\n\n        uint256 tox = pHat > 0 ? wdiv(absDiff(spot, pHat), pHat) : 0;\n        if (tox > TOX_CAP) tox = TOX_CAP;\n        toxEma = wmul(toxEma, TOX_BLEND_DECAY) + wmul(tox, WAD - TOX_BLEND_DECAY);\n        uint256 toxSignal = toxEma;\n\n        stepTradeCount = stepTradeCount + 1;\n        if (stepTradeCount > STEP_COUNT_CAP) stepTradeCount = STEP_COUNT_CAP;\n\n        uint256 flowSize = wmul(lambdaHat, sizeHat);\n        uint256 fBase = BASE_FEE + wmul(SIGMA_COEF, sigmaHat) + wmul(LAMBDA_COEF, lambdaHat) + wmul(FLOW_SIZE_COEF, flowSize);\n        uint256 fMid = fBase + wmul(TOX_COEF, toxSignal) + wmul(TOX_QUAD_COEF, wmul(toxSignal, toxSignal)) + wmul(ACT_COEF, actEma);\n        fMid = fMid + wmul(SIGMA_TOX_COEF, wmul(sigmaHat, toxSignal));\n\n        uint256 dirDev; bool sellPressure;\n        if (dirState >= WAD) { dirDev = dirState - WAD; sellPressure = true; }\n        else { dirDev = WAD - dirState; sellPressure = false; }\n\n        uint256 skew = wmul(DIR_COEF, dirDev) + wmul(DIR_TOX_COEF, wmul(dirDev, toxSignal));\n        uint256 bidFee; uint256 askFee;\n        if (sellPressure) {\n            bidFee = fMid + skew;\n            askFee = fMid > skew ? fMid - skew : 0;\n        } else {\n            askFee = fMid + skew;\n            bidFee = fMid > skew ? fMid - skew : 0;\n        }\n\n        {\n            uint256 staleHat = wmul(pHat, 700000000000000000) + wmul(fastHat, 300000000000000000);\n            uint256 staleTox = wdiv(absDiff(spot, staleHat), staleHat);\n            if (staleTox > TOX_CAP) staleTox = TOX_CAP;\n            uint256 staleShift = wmul(STALE_DIR_COEF, staleTox);\n            uint256 attractShift = wmul(staleShift, STALE_ATTRACT_FRAC);\n            if (spot >= staleHat) {\n                bidFee = bidFee + staleShift;\n                askFee = askFee > attractShift ? askFee - attractShift : 0;\n            } else {\n                askFee = askFee + staleShift;\n                bidFee = bidFee > attractShift ? bidFee - attractShift : 0;\n            }\n        }\n\n        {\n            bool tradeAligned = (trade.isBuy && spot >= pHat) || (!trade.isBuy && spot < pHat);\n            if (tradeAligned) {\n                uint256 tradeBoost = wmul(TRADE_TOX_BOOST, tradeRatio);\n                if (!firstInStep && tradeBoost > 16 * BPS) tradeBoost = 16 * BPS;\n                if (trade.isBuy) { bidFee = bidFee + tradeBoost; }\n                else { askFee = askFee + tradeBoost; }\n            }\n        }\n\n        if (sellPressure) {\n            bidFee = clampFee(_compressTailWithSlope(bidFee, TAIL_SLOPE_PROTECT));\n            askFee = clampFee(_compressTailWithSlope(askFee, TAIL_SLOPE_ATTRACT));\n        } else {\n            askFee = clampFee(_compressTailWithSlope(askFee, TAIL_SLOPE_PROTECT));\n            bidFee = clampFee(_compressTailWithSlope(bidFee, TAIL_SLOPE_ATTRACT));\n        }\n\n        if (firstInStep) {\n            if (askFee > bidFee && bidFee > 30 * BPS) bidFee = 30 * BPS;\n            else if (bidFee > askFee && askFee > 30 * BPS) askFee = 30 * BPS;\n        }\n\n        if (bidFee > askFee && askFee > 34 * BPS) askFee = 34 * BPS;\n        else if (askFee > bidFee && bidFee > 34 * BPS) bidFee = 34 * BPS;\n\n        slots[0] = bidFee; slots[1] = askFee; slots[2] = (spot << 64) | trade.timestamp;\n        slots[3] = dirState; slots[4] = actEma; slots[5] = pHat;\n        slots[6] = sigmaHat; slots[7] = lambdaHat; slots[8] = sizeHat;\n        slots[9] = toxEma; slots[10] = stepTradeCount;\n\n        return (bidFee, askFee);\n    }\n\n    function _compressTailWithSlope(uint256 fee, uint256 slope) internal pure returns (uint256) {\n        if (fee <= TAIL_KNEE) return fee;\n        return TAIL_KNEE + wmul(fee - TAIL_KNEE, slope);\n    }\n\n    function _powWad(uint256 factor, uint256 exp) internal pure returns (uint256 result) {\n        result = WAD;\n        while (exp > 0) {\n            if (exp & 1 == 1) result = wmul(result, factor);\n            factor = wmul(factor, factor);\n            exp >>= 1;\n        }\n    }\n\n    function _decayCentered(uint256 centered, uint256 decayFactor, uint256 elapsed) internal pure returns (uint256) {\n        uint256 mul = _powWad(decayFactor, elapsed);\n        if (centered >= WAD) { return WAD + wmul(centered - WAD, mul); }\n        uint256 below = wmul(WAD - centered, mul);\n        return below < WAD ? WAD - below : 0;\n    }\n\n    // Floor square root: bit-length seed and seven Newton steps (all uint256).\n    function _isqrt(uint256 x) internal pure returns (uint256 r) {\n        if (x == 0) return 0;\n        unchecked {\n            uint256 y = x;\n            r = 1;\n            if (y >> 128 != 0) { y >>= 128; r <<= 64; }\n            if (y >> 64 != 0) { y >>= 64; r <<= 32; }\n            if (y >> 32 != 0) { y >>= 32; r <<= 16; }\n            if (y >> 16 != 0) { y >>= 16; r <<= 8; }\n            if (y >> 8 != 0) { y >>= 8; r <<= 4; }\n            if (y >> 4 != 0) { y >>= 4; r <<= 2; }\n            if (y >> 2 != 0) { r <<= 1; }\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            r = (r + x / r) >> 1;\n            uint256 t = x / r;\n            return r < t ? r : t;\n        }\n    }\n\n    function getName() external pure override returns (string memory) { return \"no_cubic\"; }\n}\n","sha256":"8fac06b4c485eab7e1ca4b281271ec8c3f519870304e5e5717ea1816aa6d22be","base_sha256":"610c1905e7dd5559b84e40a3b2d6f8e0b53a7b0ac7574ae33b6c1770a28367cb","v2_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","stack_sha256":"2eaafc7960e520b8a7fd322ec8afaff8fa677c730228a961efb509cc30b25719","simulator_commit":"6b6921f8d463314aa7c96234e1be25a25245f704","freeze":{"name":"R2_34","params":{"K":16,"R1":30,"R2":34,"k":1,"f":1,"s":1},"sha256":"8fac06b4c485eab7e1ca4b281271ec8c3f519870304e5e5717ea1816aa6d22be","frozen_at_utc":"2026-11-08T06:37:11.353687+00:00","selection_rule":"Highest valid screen mean versus V2; keep STACK unless the best beats STACK by more than one SE of their per-seed paired difference. No holdout reselection.","screen_seeds":[50000,50256],"best_valid_screen":"R2_34","comparisons_to_stack":[{"name":"STACK","valid":true,"vs_stack":{"n":256,"mean_diff":0.0,"se":0.0},"exceeds_one_paired_se":false},{"name":"R2_33","valid":true,"vs_stack":{"n":256,"mean_diff":0.002762790890201483,"se":0.0046364839763341015},"exceeds_one_paired_se":false},{"name":"R2_34","valid":true,"vs_stack":{"n":256,"mean_diff":0.00660006999807683,"se":0.003311830937368976},"exceeds_one_paired_se":true},{"name":"R2_38","valid":true,"vs_stack":{"n":256,"mean_diff":0.0043923755875645565,"se":0.002309886951708804},"exceeds_one_paired_se":true},{"name":"R2_40","valid":true,"vs_stack":{"n":256,"mean_diff":0.003928637598631379,"se":0.0028221266834202326},"exceeds_one_paired_se":true}],"holdout_seeds":[4440000,4441000],"v2_reference_rows_identical_across_screens":true},"holdout_start":{"started_at_utc":"2026-11-08T06:37:38.855033+00:00","freeze_sha256":"b78d13837064ba1d6081cc9968a6fb8429ccf0e213b190d81dbc2a901877f2b3"},"paired":{"label":"candidate_minus_V2","n":1000,"mean_diff":0.040893912047352106,"se":0.007754924729687951,"sd":0.24523225228979517,"n_nonzero":1000,"max_abs_diff":4.6362968593593905,"worst":[{"seed":4440753,"diff":-1.5314993106449037,"edge_a":687.3777880787329,"edge_b":688.9092873893778},{"seed":4440559,"diff":-1.0232348847659978,"edge_a":489.96953192776084,"edge_b":490.99276681252684},{"seed":4440220,"diff":-0.7750817948851818,"edge_a":495.21748654499703,"edge_b":495.9925683398822},{"seed":4440197,"diff":-0.7396762555965779,"edge_a":622.5726214077325,"edge_b":623.3122976633291},{"seed":4440139,"diff":-0.7144283890450538,"edge_a":444.01986325561614,"edge_b":444.7342916446612}]},"gas":{"max_ok":213581,"afterSwap":{"max_ok":213581,"calls":10312219,"ok":10312219,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243745,"afterSwap":{"max_ok":243745,"calls":10304305,"ok":10304290,"oog":15},"init_max":236377,"oog":15,"other_errors":0,"oog_seeds":[[4440164,1],[4440234,1],[4440329,1],[4440373,2],[4440391,3],[4440633,2],[4440727,2],[4440745,2],[4440894,1]],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"valid":true,"invalid_reasons":[],"runs":[{"name":"STACK","phase":"screen","sha256":"2eaafc7960e520b8a7fd322ec8afaff8fa677c730228a961efb509cc30b25719","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[50000,50256],"paired":{"label":"candidate_minus_V2","n":256,"mean_diff":0.038004654998675225,"se":0.013986038431661496,"sd":0.22377661490658393,"n_nonzero":256,"max_abs_diff":1.9728815914145343,"worst":[{"seed":50030,"diff":-0.7863742810945951,"edge_a":466.489157636825,"edge_b":467.2755319179196},{"seed":50239,"diff":-0.42590306970464553,"edge_a":567.8011435019882,"edge_b":568.2270465716929},{"seed":50249,"diff":-0.4165489931637012,"edge_a":723.393483214299,"edge_b":723.8100322074627},{"seed":50064,"diff":-0.399167729601686,"edge_a":640.0199635206789,"edge_b":640.4191312502805},{"seed":50236,"diff":-0.3859736397910183,"edge_a":543.9329413705298,"edge_b":544.3189150103208}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":209193,"afterSwap":{"max_ok":209193,"calls":2672184,"ok":2672184,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243032,"afterSwap":{"max_ok":243032,"calls":2670387,"ok":2670387,"oog":0},"init_max":236377,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788305,"ok":2788305,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788849,"ok":2788849,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":256,"mean":0.04530264586113031,"se":0.014236359787997994},"arb_edge_delta":{"n":256,"mean":-0.007297990862572337,"se":0.004235174022407588},"terciles_by_v2_retail_volume":[{"tercile":"low","n":86,"mean_diff":0.0002693502179036566,"se":0.014960487197974276,"v2_retail_volume_y_min":56873.517194834545,"v2_retail_volume_y_max":72022.76749015319},{"tercile":"middle","n":85,"mean_diff":0.04719601426689839,"se":0.0222285088543689,"v2_retail_volume_y_min":72172.14813987244,"v2_retail_volume_y_max":84140.94082950955},{"tercile":"high","n":85,"mean_diff":0.06699254527335036,"se":0.03220272273272273,"v2_retail_volume_y_min":84197.67867948128,"v2_retail_volume_y_max":96135.26053774226}],"checks":{"candidate":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":4.888534022029489e-12,"seconds":58.421},"v2":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.673861546209082e-12,"seconds":61.223}}},{"name":"R2_33","phase":"screen","sha256":"dfd4bef5d91654e57504343255f01dbc4756483a0f9ecc31368f24a82220f3cb","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[50000,50256],"paired":{"label":"candidate_minus_V2","n":256,"mean_diff":0.04076744588887671,"se":0.014351146426959966,"sd":0.22961834283135946,"n_nonzero":256,"max_abs_diff":1.9593135617188864,"worst":[{"seed":50030,"diff":-0.7444335364720018,"edge_a":466.5310983814476,"edge_b":467.2755319179196},{"seed":50196,"diff":-0.6788585227885733,"edge_a":566.7313704638058,"edge_b":567.4102289865943},{"seed":50239,"diff":-0.47767112421411184,"edge_a":567.7493754474788,"edge_b":568.2270465716929},{"seed":50157,"diff":-0.45126939869328453,"edge_a":695.0966589156752,"edge_b":695.5479283143685},{"seed":50170,"diff":-0.44718420112207014,"edge_a":484.76215629748083,"edge_b":485.2093404986029}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":209193,"afterSwap":{"max_ok":209193,"calls":2672468,"ok":2672468,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243032,"afterSwap":{"max_ok":243032,"calls":2670387,"ok":2670387,"oog":0},"init_max":236377,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788253,"ok":2788253,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788849,"ok":2788849,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":256,"mean":0.048278884653916165,"se":0.014542180755765455},"arb_edge_delta":{"n":256,"mean":-0.007511438765128942,"se":0.004386521254293121},"terciles_by_v2_retail_volume":[{"tercile":"low","n":86,"mean_diff":0.001429389815285731,"se":0.015212952902540568,"v2_retail_volume_y_min":56873.517194834545,"v2_retail_volume_y_max":72022.76749015319},{"tercile":"middle","n":85,"mean_diff":0.049527893578228004,"se":0.02406099297712873,"v2_retail_volume_y_min":72172.14813987244,"v2_retail_volume_y_max":84140.94082950955},{"tercile":"high","n":85,"mean_diff":0.0718078549328057,"se":0.03218885023048251,"v2_retail_volume_y_min":84197.67867948128,"v2_retail_volume_y_max":96135.26053774226}],"checks":{"candidate":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.048583938740194e-12,"seconds":59.573},"v2":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.673861546209082e-12,"seconds":63.133}}},{"name":"R2_34","phase":"screen","sha256":"8fac06b4c485eab7e1ca4b281271ec8c3f519870304e5e5717ea1816aa6d22be","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[50000,50256],"paired":{"label":"candidate_minus_V2","n":256,"mean_diff":0.044604724996752054,"se":0.014084827869960445,"sd":0.22535724591936712,"n_nonzero":256,"max_abs_diff":1.9665696154894476,"worst":[{"seed":50030,"diff":-0.7623546536341337,"edge_a":466.51317726428545,"edge_b":467.2755319179196},{"seed":50239,"diff":-0.4502290934395887,"edge_a":567.7768174782533,"edge_b":568.2270465716929},{"seed":50170,"diff":-0.4487396336560323,"edge_a":484.76060086494687,"edge_b":485.2093404986029},{"seed":50157,"diff":-0.4439562734435185,"edge_a":695.103972040925,"edge_b":695.5479283143685},{"seed":50249,"diff":-0.39830774404515523,"edge_a":723.4117244634175,"edge_b":723.8100322074627}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":209193,"afterSwap":{"max_ok":209193,"calls":2672352,"ok":2672352,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243032,"afterSwap":{"max_ok":243032,"calls":2670387,"ok":2670387,"oog":0},"init_max":236377,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788267,"ok":2788267,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788849,"ok":2788849,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":256,"mean":0.05266876882560534,"se":0.014301223546771073},"arb_edge_delta":{"n":256,"mean":-0.008064043829085932,"se":0.004287762762300958},"terciles_by_v2_retail_volume":[{"tercile":"low","n":86,"mean_diff":0.0022421578690519912,"se":0.015371319900029998,"v2_retail_volume_y_min":56873.517194834545,"v2_retail_volume_y_max":72022.76749015319},{"tercile":"middle","n":85,"mean_diff":0.056370607344200276,"se":0.022766909549167855,"v2_retail_volume_y_min":72172.14813987244,"v2_retail_volume_y_max":84140.94082950955},{"tercile":"high","n":85,"mean_diff":0.07569979291968272,"se":0.03191821030830141,"v2_retail_volume_y_min":84197.67867948128,"v2_retail_volume_y_max":96135.26053774226}],"checks":{"candidate":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.389644451905042e-12,"seconds":60.28},"v2":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.673861546209082e-12,"seconds":63.196}}},{"name":"R2_38","phase":"screen","sha256":"15ae73604ca7bb32bad9a8744015da736b7e48083e9f8c4d6f63a68531335344","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[50000,50256],"paired":{"label":"candidate_minus_V2","n":256,"mean_diff":0.04239703058623978,"se":0.013796046584254434,"sd":0.22073674534807095,"n_nonzero":256,"max_abs_diff":1.9607408236694255,"worst":[{"seed":50030,"diff":-0.7868391561017347,"edge_a":466.48869276181784,"edge_b":467.2755319179196},{"seed":50239,"diff":-0.46321889969465246,"edge_a":567.7638276719982,"edge_b":568.2270465716929},{"seed":50064,"diff":-0.3994612762573979,"edge_a":640.0196699740231,"edge_b":640.4191312502805},{"seed":50236,"diff":-0.38632067182220453,"edge_a":543.9325943384986,"edge_b":544.3189150103208},{"seed":50249,"diff":-0.37913594185124566,"edge_a":723.4308962656114,"edge_b":723.8100322074627}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":209193,"afterSwap":{"max_ok":209193,"calls":2672072,"ok":2672072,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243032,"afterSwap":{"max_ok":243032,"calls":2670387,"ok":2670387,"oog":0},"init_max":236377,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788334,"ok":2788334,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788849,"ok":2788849,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":256,"mean":0.04883656070480091,"se":0.014155211036613654},"arb_edge_delta":{"n":256,"mean":-0.006439530118732342,"se":0.004213151514430646},"terciles_by_v2_retail_volume":[{"tercile":"low","n":86,"mean_diff":0.005127177193272278,"se":0.015096335019893567,"v2_retail_volume_y_min":56873.517194834545,"v2_retail_volume_y_max":72022.76749015319},{"tercile":"middle","n":85,"mean_diff":0.04475297519044729,"se":0.02145823886311707,"v2_retail_volume_y_min":72172.14813987244,"v2_retail_volume_y_max":84140.94082950955},{"tercile":"high","n":85,"mean_diff":0.07774940823844645,"se":0.03185453540631149,"v2_retail_volume_y_min":84197.67867948128,"v2_retail_volume_y_max":96135.26053774226}],"checks":{"candidate":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":5.6843418860808015e-12,"seconds":57.91},"v2":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.673861546209082e-12,"seconds":60.906}}},{"name":"R2_40","phase":"screen","sha256":"5ae6da6a372837df5767e3eb00a4b431017107a5805cc98a12425f2d6d0f244f","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[50000,50256],"paired":{"label":"candidate_minus_V2","n":256,"mean_diff":0.041933292597306604,"se":0.013640471348706192,"sd":0.21824754157929907,"n_nonzero":256,"max_abs_diff":1.9618139995837964,"worst":[{"seed":50030,"diff":-0.743153271916583,"edge_a":466.532378646003,"edge_b":467.2755319179196},{"seed":50239,"diff":-0.4444147314475231,"edge_a":567.7826318402454,"edge_b":568.2270465716929},{"seed":50064,"diff":-0.39917542115813376,"edge_a":640.0199558291224,"edge_b":640.4191312502805},{"seed":50236,"diff":-0.3860324704622826,"edge_a":543.9328825398585,"edge_b":544.3189150103208},{"seed":50249,"diff":-0.37616126129694294,"edge_a":723.4338709461657,"edge_b":723.8100322074627}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":209193,"afterSwap":{"max_ok":209193,"calls":2672027,"ok":2672027,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243032,"afterSwap":{"max_ok":243032,"calls":2670387,"ok":2670387,"oog":0},"init_max":236377,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788356,"ok":2788356,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":2788849,"ok":2788849,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":256,"mean":0.04736672256325236,"se":0.014038469468102072},"arb_edge_delta":{"n":256,"mean":-0.0054334299661725205,"se":0.0041615068171041445},"terciles_by_v2_retail_volume":[{"tercile":"low","n":86,"mean_diff":0.005908319121853004,"se":0.014782244192883556,"v2_retail_volume_y_min":56873.517194834545,"v2_retail_volume_y_max":72022.76749015319},{"tercile":"middle","n":85,"mean_diff":0.042077716920342775,"se":0.021044639071215163,"v2_retail_volume_y_min":72172.14813987244,"v2_retail_volume_y_max":84140.94082950955},{"tercile":"high","n":85,"mean_diff":0.07823766496708232,"se":0.031673736870091174,"v2_retail_volume_y_min":84197.67867948128,"v2_retail_volume_y_max":96135.26053774226}],"checks":{"candidate":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.332801033044234e-12,"seconds":56.779},"v2":{"n_requested":256,"n_returned":256,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":7.673861546209082e-12,"seconds":62.509}}},{"name":"PICK (R2_34)","phase":"holdout","sha256":"8fac06b4c485eab7e1ca4b281271ec8c3f519870304e5e5717ea1816aa6d22be","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[4440000,4441000],"paired":{"label":"candidate_minus_V2","n":1000,"mean_diff":0.040893912047352106,"se":0.007754924729687951,"sd":0.24523225228979517,"n_nonzero":1000,"max_abs_diff":4.6362968593593905,"worst":[{"seed":4440753,"diff":-1.5314993106449037,"edge_a":687.3777880787329,"edge_b":688.9092873893778},{"seed":4440559,"diff":-1.0232348847659978,"edge_a":489.96953192776084,"edge_b":490.99276681252684},{"seed":4440220,"diff":-0.7750817948851818,"edge_a":495.21748654499703,"edge_b":495.9925683398822},{"seed":4440197,"diff":-0.7396762555965779,"edge_a":622.5726214077325,"edge_b":623.3122976633291},{"seed":4440139,"diff":-0.7144283890450538,"edge_a":444.01986325561614,"edge_b":444.7342916446612}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":213581,"afterSwap":{"max_ok":213581,"calls":10312219,"ok":10312219,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243745,"afterSwap":{"max_ok":243745,"calls":10304305,"ok":10304290,"oog":15},"init_max":236377,"oog":15,"other_errors":0,"oog_seeds":[[4440164,1],[4440234,1],[4440329,1],[4440373,2],[4440391,3],[4440633,2],[4440727,2],[4440745,2],[4440894,1]],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":10701645,"ok":10701645,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":10703908,"ok":10703908,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":1000,"mean":0.04345733065675222,"se":0.008099262664750573},"arb_edge_delta":{"n":1000,"mean":-0.002563418609439729,"se":0.0023015839151868237},"terciles_by_v2_retail_volume":[{"tercile":"low","n":334,"mean_diff":0.02595822987289447,"se":0.008433819081600057,"v2_retail_volume_y_min":56482.20194224236,"v2_retail_volume_y_max":71069.01178759882},{"tercile":"middle","n":333,"mean_diff":0.045711538457834745,"se":0.01722755329992329,"v2_retail_volume_y_min":71091.1245026664,"v2_retail_volume_y_max":81073.32769232296},{"tercile":"high","n":333,"mean_diff":0.05105681970974889,"se":0.013191743214881112,"v2_retail_volume_y_min":81083.22197251102,"v2_retail_volume_y_max":96485.43329587954}],"checks":{"candidate":{"n_requested":1000,"n_returned":1000,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":8.242295734817162e-12,"seconds":221.916},"v2":{"n_requested":1000,"n_returned":1000,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":5.9685589803848416e-12,"seconds":242.52}}},{"name":"STACK","phase":"holdout","sha256":"2eaafc7960e520b8a7fd322ec8afaff8fa677c730228a961efb509cc30b25719","reference_sha256":"28417e116f57f1029fdd1803832e852574902c1ae7253c05657f317db76da4ab","seeds":[4440000,4441000],"paired":{"label":"candidate_minus_V2","n":1000,"mean_diff":0.041105177253047256,"se":0.007613461567389213,"sd":0.24075879431105443,"n_nonzero":1000,"max_abs_diff":4.634211524479838,"worst":[{"seed":4440753,"diff":-1.5018394090316178,"edge_a":687.4074479803462,"edge_b":688.9092873893778},{"seed":4440559,"diff":-0.9984470697036159,"edge_a":489.9943197428232,"edge_b":490.99276681252684},{"seed":4440220,"diff":-0.7760822384404946,"edge_a":495.2164861014417,"edge_b":495.9925683398822},{"seed":4440197,"diff":-0.7408750657950804,"edge_a":622.571422597534,"edge_b":623.3122976633291},{"seed":4440191,"diff":-0.6382833064247961,"edge_a":706.0504931499561,"edge_b":706.6887764563809}]},"valid":true,"invalid_reasons":[],"gas":{"max_ok":213581,"afterSwap":{"max_ok":213581,"calls":10311513,"ok":10311513,"oog":0},"init_max":220962,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_gas":{"max_ok":243745,"afterSwap":{"max_ok":243745,"calls":10304305,"ok":10304290,"oog":15},"init_max":236377,"oog":15,"other_errors":0,"oog_seeds":[[4440164,1],[4440234,1],[4440329,1],[4440373,2],[4440391,3],[4440633,2],[4440727,2],[4440745,2],[4440894,1]],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"vanilla_gas":{"candidate_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":10701783,"ok":10701783,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}},"v2_market":{"max_ok":22592,"afterSwap":{"max_ok":22592,"calls":10703908,"ok":10703908,"oog":0},"init_max":21796,"oog":0,"other_errors":0,"oog_seeds":[],"other_errors_by_callback":{"afterInitialize":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"afterSwap":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0},"getName":{"revert":0,"other_halt":0,"tx_error":0,"bad_return":0}}}},"retail_edge_delta":{"n":1000,"mean":0.04287592195625132,"se":0.00796251413860941},"arb_edge_delta":{"n":1000,"mean":-0.001770744703153916,"se":0.0022878539771745863},"terciles_by_v2_retail_volume":[{"tercile":"low","n":334,"mean_diff":0.026900933392409773,"se":0.007963696534622894,"v2_retail_volume_y_min":56482.20194224236,"v2_retail_volume_y_max":71069.01178759882},{"tercile":"middle","n":333,"mean_diff":0.04828114131971814,"se":0.01711502478212234,"v2_retail_volume_y_min":71091.1245026664,"v2_retail_volume_y_max":81073.32769232296},{"tercile":"high","n":333,"mean_diff":0.04817611243398274,"se":0.012889393380702066,"v2_retail_volume_y_min":81083.22197251102,"v2_retail_volume_y_max":96485.43329587954}],"checks":{"candidate":{"n_requested":1000,"n_returned":1000,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":9.606537787476555e-12,"seconds":225.676},"v2":{"n_requested":1000,"n_returned":1000,"error":null,"complete":true,"counters_per_seed_match_global":true,"max_abs_reconciliation_error":5.9685589803848416e-12,"seconds":242.605}}}],"screened_variants":[{"name":"STACK","params":{"K":16,"R1":30,"R2":36,"k":1,"f":1,"s":1},"sha256":"2eaafc7960e520b8a7fd322ec8afaff8fa677c730228a961efb509cc30b25719","n":256,"mean_diff":0.038004654998675225,"se":0.013986038431661496,"valid":true},{"name":"R2_33","params":{"K":16,"R1":30,"R2":33,"k":1,"f":1,"s":1},"sha256":"dfd4bef5d91654e57504343255f01dbc4756483a0f9ecc31368f24a82220f3cb","n":256,"mean_diff":0.04076744588887671,"se":0.014351146426959966,"valid":true},{"name":"R2_34","params":{"K":16,"R1":30,"R2":34,"k":1,"f":1,"s":1},"sha256":"8fac06b4c485eab7e1ca4b281271ec8c3f519870304e5e5717ea1816aa6d22be","n":256,"mean_diff":0.044604724996752054,"se":0.014084827869960445,"valid":true},{"name":"R2_38","params":{"K":16,"R1":30,"R2":38,"k":1,"f":1,"s":1},"sha256":"15ae73604ca7bb32bad9a8744015da736b7e48083e9f8c4d6f63a68531335344","n":256,"mean_diff":0.04239703058623978,"se":0.013796046584254434,"valid":true},{"name":"R2_40","params":{"K":16,"R1":30,"R2":40,"k":1,"f":1,"s":1},"sha256":"5ae6da6a372837df5767e3eb00a4b431017107a5805cc98a12425f2d6d0f244f","n":256,"mean_diff":0.041933292597306604,"se":0.013640471348706192,"valid":true}],"method":{"seed_ranges":"All reported ranges are half-open. Screens 50000..50256; one holdout block 4440000..4441000, no reselection.","market":"Each strategy independently uses amm_sim_rs.run_batch(strategy, VanillaStrategy, configs, 8), in chunks of 64; never two candidate strategies in one market.","steps_per_seed":10000,"gas_limits":{"afterInitialize":250000,"afterSwap":250000,"getName":50000},"validity":"Candidate total OOG <= exact V2 total OOG on identical seeds; any other callback error, Vanilla failure, missing/nonfinite/duplicate seed, counter mismatch, or decomposition reconciliation error >=1e-8 invalidates.","metric":"Per-seed Submission edge; candidate minus exact V2, retaining V2 OOG seeds and engine fallback. Edge units are simulator Y.","uncertainty":"Sample standard deviation (ddof=1) of paired per-seed deltas divided by sqrt(n). Retail and arb deltas are paired too.","terciles":"Sort each run by V2 Submission retail_volume_y then seed, split into three contiguous groups with sizes differing by at most one; extra rows go to lower groups.","provenance":{"base_code_and_reusable_harness":"https://api.imd.fun/artifacts/206a4888de6fa1bda53cd2c9bad1632ccdbb63d32e7f09b6a332746b7a3ac3c3","simulator":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/evm/strategy.rs","config_sampler":"https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/match.py","measurements":"Generated locally in this task by the supplied harness, not copied from the artifact.","generator":"Exact generator supplied in the task; only R2 varied over 33,34,38,40 plus STACK=36."},"holdout_size":1000,"holdout_size_reason":"Uses the item-specific 1000-seed block, overriding the broader goal guidance of >=2000.","no_board_submission_or_rank_claim":true},"checks":{"hashes_verified":true,"exact_stack_generator_hash":true,"setup":{"passed":true},"instrumented_release_build":{"passed":true},"harness_tests":{"matchrunner_equal_10000_10031":true,"far_block_len":4,"far_block_seconds":0.0003,"allocation_scales_with_n":true,"far_seed_equals_single":true,"validity_cases":{"cand_oog_equal_v2_valid":true,"cand_oog_less_valid":true,"cand_oog_more_invalid":true,"v2_oog_alone_not_invalid":true,"revert_invalid":true,"ref_revert_invalid":true,"vanilla_oog_invalid":true,"vanilla_other_invalid":true,"incomplete_invalid":true,"counter_mismatch_invalid":true,"reconciliation_threshold_invalid":true,"control_oog_match_valid":true,"control_oog_mismatch_invalid":true},"all_pass":true},"validation":{"G":true,"V2":true,"PICK":true,"STACK":true,"R2_33":true,"R2_34":true,"R2_38":true,"R2_40":true},"reusable_source_sha256":{"setup.sh":"baeeb5ba5eef0744f6ee610bc44720a5e195de7207bdfe61b6f97cb11c7d686e","instrumentation.patch":"2e2e6bf198b5fd8d0e7b8fde7c0c21431dc1b1dddf83b371a74d3613eb1f1b04","harness.py":"e434e9a1fda8e2877a012b5cb1a79abf68966c5e720078089ebce49d64b693d6","tests.py":"d8f13b5f13c06c4a8fdac09b489611b59c38920ce6a48f52a38bc8f5eff57464"},"no_scored_runs_outside_named_blocks":true,"tests_only_build_far_configs_without_simulation":true},"completed_at_utc":"2026-11-08T06:53:42.140519+00:00"}
