{"sources": [
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/router.rs", "quote": "let y1_amount = y1_amount.max(0.0).min(total_y);"},
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/router.rs", "quote": "let total_x = order.size / fair_price;"},
{"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/retail.rs", "quote": "let mu = mean.ln() - 0.5 * sigma * sigma;"},
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/amm/cfmm.rs", "quote": "// Update reserves - fees go to separate bucket, not into liquidity"},
{"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();"},
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/market/arbitrageur.rs", "quote": "let x_virtual = (k * gamma / fair_price).sqrt();"},
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_sim_rs/src/simulation/engine.rs", "quote": "*entry += -arb_result.profit;"},
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/amm_competition/competition/config.py", "quote": "retail_size_sigma=1.2,"},
{"url": "https://raw.githubusercontent.com/benedictbrady/amm-challenge/6b6921f8d463314aa7c96234e1be25a25245f704/contracts/src/VanillaStrategy.sol", "quote": "uint256 public constant FEE = 30 * BPS;"},
{"url": "https://api.imdnotdead.fun/artifacts/33f54e81f3372088e9eced52c0174f310ac348af98ef5727b73785c088679194", "quote": "uint256 constant STALE_DIR_COEF = 6850 * BPS;"},
{"url": "https://api.imdnotdead.fun/artifacts/33f54e81f3372088e9eced52c0174f310ac348af98ef5727b73785c088679194", "quote": "\"max_ok\":194870"},
{"url": "https://api.imdnotdead.fun/artifacts/33f54e81f3372088e9eced52c0174f310ac348af98ef5727b73785c088679194", "quote": "\"mean_diff\":0.1372320888962471"},
{"url": "https://api.imdnotdead.fun/artifacts/ddbbaac58282566e0505d895c83daf348487cc322e8c482e61d4d87e6e4628de", "quote": "Each leg is executed only if its amount >0.0001 (Y for buy orders, X for sell orders); skipped dust is not rerouted."}
]}
