{
  "sources": [
    {
      "url": "https://api.imdnotdead.fun/artifacts/e50ab7b92163d8589bb2f75c49d6cda2a1012bb96a0f4a52620b887668f63264",
      "quote": "Runtime **19,346 / 24,576 bytes** (target 24,000 met), validator passed."
    },
    {
      "url": "https://api.imdnotdead.fun/artifacts/fce772b9057867b241350b8e44c05298c6c877871a26b58702a5af431726f6c5",
      "quote": "The trimmed contract passes the requested checks: **engine afterSwap peak 232,889 gas, zero OOG; Gate F peak 183,373 gas; deployed 16,077 bytes**. Fees implement net-1\u2019s unchanged Net2 policy. The 12 individual silent-step truncations remain. No aggregate-silent-step fallback, network retraining, weight repacking, clipping change, or Python-reference change was used."
    },
    {
      "url": "https://api.imdnotdead.fun/artifacts/e8c967d6358da0fd53117891357f19a1d684225bd71a5e302b6e299c85f1286c",
      "quote": "set -eu;R=$PWD/scratch;mkdir -p $R/tmp $R/bin $R/solcx"
    },
    {
      "url": "https://api.imdnotdead.fun/artifacts/17d249ab0c33fc44931d9b105cf3f9e3846a560bd518b67310c2a56defacdecc",
      "quote": "Save as `qms_decode.py`. Usage: `python3 -I qms_decode.py blob.b64 qm_spline.json`, then `python3 -I real.py pol_mid.json qm:soft=1,qm=<abs path>/qm_spline.json`. Decoding the base64 below reproduces, byte for byte, the JSON that was scored."
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/README.md",
      "quote": "10000  448.261189  443.455598  443.522608  443.663520"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/real.py",
      "quote": "    def init(self, *a):\n        fb, fa = self._fees(0.0, 0.0, 0)\n        self.fb, self.fa = R.clampf(fb), R.clampf(fa)\n        return fb, fa\n    def lookup(self, w, w2, phs, sd):"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/replica2.py",
      "quote": "def run(seed, policy, n_steps=10000, cfg=None, qcap=None):"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/gates.py",
      "quote": "\"\"\"Per-seed check values for a port: edge of each reference policy on replica seeds 10000..10002."
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/evm/compiler.py",
      "quote": "                    \"optimizer\": {\n                        \"enabled\": True,\n                        \"runs\": 200,\n                    },\n                    \"viaIR\": True,"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/match.py",
      "quote": "        for i in range(self.n_simulations):\n            rng = np.random.default_rng(seed=i)\n\n            retail_mean_size = (\n                rng.uniform(self.variance.retail_mean_size_min, self.variance.retail_mean_size_max)"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/4812a6382311624e1506aca131ca35c378f930d9/research/solved/pol_mid.json",
      "quote": "{\"A0\": [[-24.262, -23.739, -23.248, -22.778, -22.369, -22.027, -21.629, -21.294, -20.977, -20.657, -20.382, -20.128, -19.851], [-24.243, -23.719, -23.227, -22.758, -22.353, -22.012, -21.615, -21.28, -"
    }
  ]
}
