{
  "sources": [
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/README.md",
      "quote": "Beyond a table's edge (w past +-800 bps, R past the last column, sd past the last level) the edge value is used. `real.py` is the reference where this text and the code differ."
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/real.py",
      "quote": "SIG2 = 0.000945 ** 2\nRHO = 0.26"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/real.py",
      "quote": "for _ in range(min(dt - 1, 12)):          # fully silent steps"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/evalpol.py",
      "quote": "a = (A[i][j] * (1 - f) + A[i + 1][j] * f) * (1 - g) + (A[i][j + 1] * (1 - f) + A[i + 1][j + 1] * f) * g"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/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]"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/replica2.py",
      "quote": "def clampf(f):\n    return 0.0 if f < 0.0 else (MAXF if f > MAXF else f)"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/run.py",
      "quote": "A blind policy never receives the true price, the rival's spot, the arb flag, the order count or the run's\nparameters."
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/pair.py",
      "quote": "m, se = stats([x[0] for x in d])"
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/e65314f88de945f6d055bfc2aab01c482ab6570e/research/solved/gates.py",
      "quote": "seed   perfect-info      gaussian+plain    gaussian+qm       lattice+qm"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/IAMMStrategy.sol",
      "quote": "bool isBuy;          // true if AMM bought X (trader sold X)"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/AMMStrategyBase.sol",
      "quote": "uint256[32] public slots;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/evm/compiler.py",
      "quote": "\"viaIR\": True,\n                    \"evmVersion\": \"paris\","
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/evm/validator.py",
      "quote": "\"Contract must be named 'Strategy' and inherit from AMMStrategyBase\""
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/evm/executor.py",
      "quote": "GAS_LIMIT_INIT = 250_000\n    GAS_LIMIT_TRADE = 250_000"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/types/wad.rs",
      "quote": "Wad((value * WAD as f64) as i128)"
    },
    {
      "url": "https://raw.githubusercontent.com/scipy/scipy/v1.15.1/scipy/special/xsf/cephes/ndtr.h",
      "quote": "For 0 <= |x| < 1, erf(x) = x * P4(x**2)/Q5(x**2); otherwise\n * erf(x) = 1 - erfc(x)."
    },
    {
      "url": "https://raw.githubusercontent.com/gtmcknight/amm-sim/main/research/setup.sh",
      "quote": "python -c \"import solcx;solcx.install_solc('0.8.24')\""
    }
  ]
}
