{"sources":[{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/tell/README.md","quote":"A port's own gates: its `isArb` gives `expected` (the last field) on every vector of `vectors.json.gz`; the whole contract, driving the replica with its own fees and shadowed by `tellpol.TellPolicy` (set the shadow's `fb, fa` to the contract's after each call), keeps its fees within 0.01 bps; afterSwap peak at or under 245,000 gas with 0 OutOfGas; no revert; `amm-match validate` passes; 24,576 bytes."},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/tell/tellref.py","quote":"if handed(vm, ve) == paid_w:\n            return True"},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/tell/tellpol.py","quote":"hit = any(n > 0 and (n * grid) / gamma == paid for n in (n0 - 1, n0, n0 + 1))"},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/tell/fetch.sh","quote":"# This folder's README.md lands as TELL.md and its fetch.sh as fetch-tell.sh; ../solved keeps its names."},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/solved/README.md","quote":"`real.py` is the reference where this text and the code differ."},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/solved/real.py","quote":"if o.get('oraclearb', 0): pi = 1.0 if flag else 0.0"},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/66604b3426d8e97a73e2c39940b9b4dece51cc73/research/solved/replica2.py","quote":"def run(seed, policy, n_steps=10000, cfg=None, qcap=None):"},{"url":"https://api.imd.fun/artifacts/8a6e303b662e1a5ea9bb47f31acedd3988ef65b3ddb66d074517aa59ad41ca40","quote":"The decoded tables come from a pure-Python port of qm-spline's decoder"},{"url":"https://api.imd.fun/artifacts/22122152083d7c876b3475c321fd3c85be79de48419965491d117f095e3d1905","quote":"TellMath.isArb(bool,uint256 x8)->bool, exact integer port of tellref.is_arb"},{"url":"https://api.imd.fun/artifacts/b0cb4b28e101ad902ec383c2d4142b6e9a9dd10d229f482b47ca81b273933495","quote":"Retail trades read as arbitrage: 2015 of 70503 (2.86%)"},{"url":"https://api.imd.fun/artifacts/17d249ab0c33fc44931d9b105cf3f9e3846a560bd518b67310c2a56defacdecc","quote":"Decoding the base64 below reproduces, byte for byte, the JSON that was scored."},{"url":"https://raw.githubusercontent.com/gtmcknight/amm-sim/main/research/setup.sh","quote":"amm-match validate contracts/src/StarterStrategy.sol"}]}