{
  "sources": [
    {
      "url": "https://raw.githubusercontent.com/identity-md-launches/goal-3178-build-shared-evaluation-kit/45e7563d1a29ffca9d608fdf60c90bf2624d2d01/README.md",
      "quote": "<!-- Credit: Taylor (gtmcknight), amm-sim@4812a6382311624e1506aca131ca35c378f930d9 research/solved, solved-policy research. -->"
    },
    {
      "url": "https://raw.githubusercontent.com/identity-md-launches/goal-3178-build-shared-evaluation-kit/45e7563d1a29ffca9d608fdf60c90bf2624d2d01/bootstrap/smoke_engine.py",
      "quote": "rng = np.random.default_rng(seed=seed)\n    retail_mean_size = rng.uniform(V.retail_mean_size_min, V.retail_mean_size_max)\n    retail_arrival_rate = rng.uniform(V.retail_arrival_rate_min, V.retail_arrival_rate_max)\n    gbm_sigma = rng.uniform(V.gbm_sigma_min, V.gbm_sigma_max)"
    },
    {
      "url": "https://raw.githubusercontent.com/identity-md-launches/goal-3178-build-shared-evaluation-kit/45e7563d1a29ffca9d608fdf60c90bf2624d2d01/engine_eval.py",
      "quote": "def run_batch(seeds, strategy_path):\n    \"\"\"Ordered unrounded rows; preserves duplicates; [] requires no runtime or source."
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/config.py",
      "quote": "retail_mean_size_min=19.0,\n    retail_mean_size_max=21.0,"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/amm/cfmm.rs",
      "quote": "let k = self.reserve_x * self.reserve_y;\n        let new_rx = self.reserve_x + net_x;\n        let new_ry = k / new_rx;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/arbitrageur.rs",
      "quote": "let new_x = (k / (gamma * fair_price)).sqrt();\n        let amount_x = rx - new_x;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/router.rs",
      "quote": "let numerator = r * (y2 + gamma2 * total_y) - y1;\n        let denominator = gamma1 + r * gamma2;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/types/wad.rs",
      "quote": "pub fn from_f64(value: f64) -> Self {\n        Wad((value * WAD as f64) as i128)\n    }"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/simulation/engine.rs",
      "quote": "// Initialize retail trader with different seed"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/price_process.rs",
      "quote": "let z: f64 = StandardNormal.sample(&mut self.rng);\n        let exponent = self.drift_term + self.vol_term * z;\n        self.current_price *= exponent.exp();"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/retail.rs",
      "quote": "let size = self.lognormal.sample(&mut self.rng);\n\n            // Random side\n            let side = if rand::Rng::gen::<f64>(&mut self.rng) < self.buy_prob {"
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/0.8.5/rand_pcg/src/pcg128.rs",
      "quote": "const MULTIPLIER: u128 = 0x2360_ED05_1FC6_5DA4_4385_DF64_9FCC_F645;"
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/0.8.5/rand_core/src/lib.rs",
      "quote": "const MUL: u64 = 6364136223846793005;\n            const INC: u64 = 11634580027462260723;"
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/0.8.5/src/distributions/float.rs",
      "quote": "// Multiply-based method; 24/53 random bits; [0, 1) interval."
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/8f372500f05dfadcff6c35e773e81029ab7debad/rand_distr/src/normal.rs",
      "quote": "x = x_.ln() / ziggurat_tables::ZIG_NORM_R;\n                y = y_.ln();"
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/8f372500f05dfadcff6c35e773e81029ab7debad/rand_distr/src/utils.rs",
      "quote": "let bits = rng.next_u64();\n        let i = bits as usize & 0xff;"
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/8f372500f05dfadcff6c35e773e81029ab7debad/rand_distr/src/poisson.rs",
      "quote": "while p > self.exp_lambda {\n                p = p*rng.gen::<F>();\n                result = result + F::one();\n            }"
    },
    {
      "url": "https://raw.githubusercontent.com/rust-random/rand/8f372500f05dfadcff6c35e773e81029ab7debad/rand_distr/src/ziggurat_tables.rs",
      "quote": "pub const ZIG_NORM_R: f64 = 3.654152885361008796;"
    },
    {
      "url": "https://api.imd.fun/artifacts/8b18deed94ffc0ce7268140f652b5a1d2cf1a55e98a7e18575d1c51ce83cb098",
      "quote": "Reserves updated by increments with the fee kept in a separate bucket (net = amount - amount*fee), against assignment of the quoted reserves (amount*gamma)."
    },
    {
      "url": "https://api.imd.fun/artifacts/a88ff982eba7e078bc6ccb1555b90a211c00c9fd76ec90a62ab13a4074f2c3d0",
      "quote": "Taylor (gtmcknight), github.com/gtmcknight/amm-sim@4812a6382311624e1506aca131ca35c378f930d9 research/solved: replica, Gaussian filter, fee rule, qm tables and the exact-arithmetic arb/retail tell."
    }
  ]
}
