{
 "credit": "Taylor (gtmcknight), github.com/gtmcknight/amm-sim@4812a6382311624e1506aca131ca35c378f930d9 research/solved: the solved policy, Gaussian filter, qm tables, exact-arithmetic arb/retail tell and U1 tables that LEAN and QLX5 are built on. This item only scales the log-fee table outputs of QLX5 by one constant and measures it on the engine; all credit for the policy is Taylor's.",
 "n": 20,
 "id": "fee_scale",
 "family": "table levels",
 "meaning": "Multiplicative scale of both log-fee table outputs before conversion (lo -3%, hi +3%, about 1 to 1.5 bps at typical fees).",
 "find": "fb=xb>0?U-exp(-xb/10000):int256(0);",
 "lo": "xb=xb*97/100;xa=xa*97/100;fb=xb>0?U-exp(-xb/10000):int256(0);",
 "hi": "xb=xb*103/100;xa=xa*103/100;fb=xb>0?U-exp(-xb/10000):int256(0);",
 "seeds": {
  "first": 10205560,
  "last": 10205687,
  "n": 128,
  "unused": [],
  "blocks_complete": 4,
  "block_size": 32,
  "burnt": [],
  "each_seed_run_once_per_arm": true
 },
 "arms": {
  "QLX5": {
   "mean_edge": 528.6055289536819,
   "peak_gas": 206454,
   "out_of_gas": 0,
   "runtime_bytes": 22440,
   "source_sha256": "e183e5bc3fb794b7067703b10a7da9920267aa5f4caa968e16ca101b02338f40",
   "source_chars": 47230,
   "afterSwap_calls": 1397242,
   "engine_seconds": 41.849
  },
  "LO": {
   "mean_edge": 527.4208955508618,
   "peak_gas": 205250,
   "out_of_gas": 0,
   "runtime_bytes": 22182,
   "source_sha256": "aef200f44f05685523597971c1d5961fd94a9fb5e2e2e53e147b414b42ad3802",
   "source_chars": 47256,
   "afterSwap_calls": 1438109,
   "engine_seconds": 41.654
  },
  "HI": {
   "mean_edge": 526.743630075466,
   "peak_gas": 204319,
   "out_of_gas": 0,
   "runtime_bytes": 22182,
   "source_sha256": "f85a0c07f696e2c56490719aafccee7246103f526d2698ae05134de872570b64",
   "source_chars": 47258,
   "afterSwap_calls": 1335193,
   "engine_seconds": 39.805
  }
 },
 "diffs": {
  "LO-QLX5": {
   "n": 128,
   "mean_diff": -1.1846334028201224,
   "se": 0.08393686780121186,
   "sum_d": -151.63307556097567,
   "sum_d2": 294.1595925330564,
   "seeds_positive": 12,
   "min": -3.4582018401116557,
   "max": 1.1200196649444933
  },
  "HI-QLX5": {
   "n": 128,
   "mean_diff": -1.8618988782159183,
   "se": 0.1391587043339508,
   "sum_d": -238.32305641163754,
   "sum_d2": 758.5332283742074,
   "seeds_positive": 10,
   "min": -6.517187693432902,
   "max": 2.4005474109739
  },
  "HI-LO": {
   "n": 128,
   "mean_diff": -0.6772654753957958,
   "se": 0.17493777449193837,
   "sum_d": -86.68998085066187,
   "sum_d2": 556.1981557856658,
   "seeds_positive": 45,
   "min": -6.450332677683889,
   "max": 5.167277959934495
  }
 },
 "pass_peak": {
  "LO": {
   "passed": true,
   "peak_gas": 205250,
   "out_of_gas": 0,
   "reverts": 0,
   "limit": 245000
  },
  "HI": {
   "passed": true,
   "peak_gas": 204319,
   "out_of_gas": 0,
   "reverts": 0,
   "limit": 245000
  }
 },
 "limits": {
  "source_chars_max": 50000,
  "runtime_bytes_max": 24576,
  "all_arms_within": true,
  "find_occurrences_in_QLX5": 1
 },
 "engine": {
  "install": "kit setup_fast.sh --platform linux-x86_64 at identity-md-launches/goal-3178-build-shared-evaluation-kit@45e7563d1a29ffca9d608fdf60c90bf2624d2d01",
  "engine": "benedictbrady/amm-challenge@6b6921f8d463314aa7c96234e1be25a25245f704",
  "compiler": "solc 0.8.24, optimizer 200, viaIR, paris (kit SolidityCompiler)",
  "native_so_sha256": "ff88b6353c2aad7342f0a26194f7347e78b9c3b38d683a7449006d423978cd14",
  "driver_sha256": "d3f8646b541a76921a47e9d03247c8c9dfab594076a7c5dca79c36b6c048a282",
  "driver": "driver_zb64 of https://api.imd.fun/artifacts/764c9461a9f3bab6e277178f4bb48553d1b97c6cca33bed016f7c9bfd611cc42, unchanged, --block 32, arms in order QLX5, LO, HI inside each block, each alone against the 30 bps VanillaStrategy",
  "engine_seconds_total": 123.308,
  "invocations": 1,
  "driver_exit": 0,
  "runtime_sha256": {
   "QLX5": "903a0cf860910022916e7c16aa1ffcfb94b0db9e25074665947d786615a44ae8",
   "LO": "2eb694f18a96e257d2e769cf641f6e3d36619c4b82ca3953d14573531bb29ff0",
   "HI": "014a0f608df0f2e813d2e2c535c86e760ba082f95c40275ca022b80221e804c8"
  }
 },
 "inputs": {
  "qlx5": "code_zb64.QLX5 of https://api.imd.fun/artifacts/1ef80bfb6d6791b877b1f4048a5e63cf2ae54153e6e8763ae3f8ab13132dfb15, decoded source sha256 e183e5bc3fb794b7067703b10a7da9920267aa5f4caa968e16ca101b02338f40 (checked)",
  "map": "after-map input (batch c-map result.json), sha256 f921f2133d55d8ce81b5d809494003e898fc2a72d1fe47cdc34606ff269d676e, knob n=20; its lo/hi source sha256 and runtime bytes for LO and HI match what was built here"
 },
 "reading": "Scaling both log-fee table outputs of QLX5 hurts in either direction on these 128 paired engine seeds: -3% gives -1.185 (se 0.084, 12/128 seeds positive) and +3% gives -1.862 (se 0.139, 10/128 seeds positive) against QLX5, so the x1 table level is at or near a local optimum between the two and this knob offers no gain.",
 "not_done": [
  "No scale between 0.97 and 1.03 was tested (the brief allows only LO and HI), so a small gain from a finer step such as +-0.5% is not excluded; a quadratic through the three means is not a measurement.",
  "Asymmetric scaling (bid and ask separately) was not tested: the knob scales both together.",
  "No replica run, no certification gates (P, Q, T, F, G) and no leaderboard submission: this item is one 128-seed engine screen.",
  "The 128 seeds 10205560..10205687 are now used and must not be reused."
 ]
}
