{
  "sources": [
    {
      "url": "https://raw.githubusercontent.com/ChengHua926/amm-challenge/d34a5199c59a4c44d5336a25f1436b4ae1f21104/contracts/src/Strategy.sol",
      "quote": "uint256 constant STALE_DIR_COEF = 6850 * BPS;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/simulation/engine.rs",
      "quote": "/// 1. Generate new fair price via GBM\n/// 2. Arbitrageur extracts profit from each AMM\n/// 3. Retail orders arrive and are routed to best AMM"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/amm/cfmm.rs",
      "quote": "//! Implements Uniswap V3/V4-style fee model where fees are collected\n//! into separate buckets rather than being reinvested into liquidity."
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/arbitrageur.rs",
      "quote": "let amount_x = amount_x.min(rx * 0.99);"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/router.rs",
      "quote": "const MIN_AMOUNT: f64 = 0.0001;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/price_process.rs",
      "quote": "let exponent = self.drift_term + self.vol_term * z;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/retail.rs",
      "quote": "let mu = mean.ln() - 0.5 * sigma * sigma;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/match.py",
      "quote": "rng = np.random.default_rng(seed=i)"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/config.py",
      "quote": "n_simulations=1000,\n    n_steps=10000,\n    initial_price=100.0,\n    initial_x=100.0,\n    initial_y=10000.0,"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/VanillaStrategy.sol",
      "quote": "uint256 public constant FEE = 30 * BPS;"
    },
    {
      "url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/AMMStrategyBase.sol",
      "quote": "uint256 public constant MAX_FEE = WAD / 10;"
    },
    {
      "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_competition/evm/compiler.py",
      "quote": "\"viaIR\": True,\n                    \"evmVersion\": \"paris\","
    },
    {
      "url": "https://raw.githubusercontent.com/numpy/numpy/v2.5.0/numpy/random/bit_generator.pyx",
      "quote": "cdef uint32_t INIT_A = 0x43b0d7e5\ncdef uint32_t MULT_A = 0x931e8875"
    },
    {
      "url": "https://raw.githubusercontent.com/numpy/numpy/v2.5.0/numpy/random/src/pcg64/pcg64.c",
      "quote": "s = (((pcg128_t)seed[0]) << 64) | seed[1];"
    },
    {
      "url": "https://raw.githubusercontent.com/numpy/numpy/v2.5.0/numpy/random/src/pcg64/pcg64.h",
      "quote": "rng->state = rng->state * PCG_DEFAULT_MULTIPLIER_128 + rng->inc;"
    },
    {
      "url": "https://prng.di.unimi.it/xoshiro128starstar.c",
      "quote": "const uint32_t result = rotl(s[1] * 5, 7) * 9;"
    },
    {
      "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/result.rs",
      "quote": "pub edges: HashMap<String, f64>,"
    }
  ]
}
