MCPcopy Create free account

hub / github.com/QingyunQian/EVM_MEV / functions

Functions109 in github.com/QingyunQian/EVM_MEV

↓ 29 callersFunctionvalues
(rows: Rows, key: str)
analysis/plot.py:23
↓ 20 callersFunctionexpectIncludes
(text, message = `missing ${text}`)
dashboard/dashboard-ui.test.js:6
↓ 17 callersFunctionsimulate
Simulate a sandwich with a specified attacker size `a`. Returns the full outcome, including a `reverted` flag when the victim's slippage check would f
searcher/src/strategy.rs:57
↓ 14 callersFunctionamount
(value, token)
dashboard/mev-model.js:42
↓ 14 callersMethodswap_x_for_y
Swap `dx` units of X into the pool, receiving Y out. Returns the Y amount out.
searcher/src/amm.rs:33
↓ 13 callersFunctionoptimal_sandwich
Maximize attacker profit over `a` via golden-section search on the feasible interval. Returns the best outcome seen.
searcher/src/strategy.rs:152
↓ 12 callersMethodpreview_x_for_y
Pure preview of `swap_x_for_y` without mutating the pool.
searcher/src/amm.rs:51
↓ 10 callersMethodprice
Mid-price of Y in units of X: `x / y`.
searcher/src/amm.rs:27
↓ 9 callersFunctionexpectMatches
(regex, message)
dashboard/dashboard-ui.test.js:10
↓ 8 callersFunctionapprox
(actual, expected, epsilon = 1e-6)
dashboard/mev-model.test.js:15
↓ 8 callersFunctionsimulate
(input, attackerIn)
dashboard/mev-model.js:74
↓ 8 callersMethodswap_y_for_x
Swap `dy` units of Y into the pool, receiving X out.
searcher/src/amm.rs:42
↓ 8 callersFunctionwrite_csv
(rows: &[T], path: &Path)
searcher/src/report.rs:7
↓ 7 callersFunctionread_rows
(path: Path)
analysis/plot.py:18
↓ 7 callersFunctionstateRow
(step, action, actor, direction, inputAmount, outputAmount, pool)
dashboard/mev-model.js:46
↓ 6 callersFunctionnormalizeInput
(input)
dashboard/mev-model.js:293
↓ 4 callersMethodcost_x
(self)
searcher/src/main.rs:34
↓ 4 callersFunctiondefense_comparison
Small defense comparison table used for live presentation. The private route row is modeled as no public pre-trade visibility, so no attack is attempt
searcher/src/experiments.rs:335
↓ 4 callersFunctionprofit
(a)
dashboard/mev-model.js:227
↓ 4 callersFunctionrow
(scenario: &str, pool: &Pool, v: &VictimSwap)
searcher/src/experiments.rs:111
↓ 3 callersFunctioncomputeStatus
(outcome, epsilon = DEFAULT_EPSILON)
dashboard/mev-model.js:150
↓ 3 callersFunctionenrichOutcome
(input, outcome, skippedByGas = false, grossCandidate = null)
dashboard/mev-model.js:60
↓ 3 callersFunctionlinspace
(a: f64, b: f64, n: usize)
searcher/src/experiments.rs:408
↓ 3 callersFunctionmaxFeasible
(input, hi)
dashboard/mev-model.js:206
↓ 3 callersFunctionpreviewXForY
(pool, dx)
dashboard/mev-model.js:14
↓ 3 callersFunctionroute_outcome
( first_pool: Pool, second_pool: Pool, victim_in: f64, min_out: f64, honest_out: f64,
searcher/src/main.rs:438
↓ 3 callersFunctionswapXForY
(pool, dx)
dashboard/mev-model.js:24
↓ 2 callersMethodcost_x
(self)
searcher/src/experiments.rs:67
↓ 2 callersMethodk
(&self)
searcher/src/amm.rs:22
↓ 2 callersFunctionlogspace
(a: f64, b: f64, n: usize)
searcher/src/experiments.rs:416
↓ 2 callersFunctiononly
(rows: Rows, key: str, want: str)
analysis/plot.py:31
↓ 2 callersFunctionoptimizeGrossProfit
(input)
dashboard/mev-model.js:217
↓ 2 callersFunctionsimulate_two_hop_sandwich
( first_pool: Pool, second_pool: Pool, victim_in: f64, slippage: f64, )
searcher/src/main.rs:409
↓ 2 callersFunctionswapYForX
(pool, dy)
dashboard/mev-model.js:31
↓ 2 callersFunctionsweep_attacker_size
Sweep fixed attacker sizes around the reference scenario. This is meant for classroom visualization: it shows where profit peaks and where the victim
searcher/src/experiments.rs:276
↓ 2 callersFunctionsweep_gas_cost
Sweep base fee to show where gross MEV remains positive but rational net profit disappears after fixed bundle gas cost.
searcher/src/experiments.rs:313
↓ 2 callersFunctionsweep_pool_depth
Sweep pool depth, keeping price at 1 X = 1 Y and all other params fixed.
searcher/src/experiments.rs:232
↓ 2 callersFunctionsweep_slippage
Sweep slippage tolerance from `s_min` to `s_max` linearly.
searcher/src/experiments.rs:224
↓ 1 callersFunctionfrontierRows
(input, upper, steps = 160)
dashboard/mev-model.js:259
↓ 1 callersFunctiongasCostInX
(input)
dashboard/mev-model.js:38
↓ 1 callersFunctiongas_aware_row
(scenario: &str, pool: Pool, victim: VictimSwap, gas: GasModel)
searcher/src/experiments.rs:139
↓ 1 callersFunctionlabels
(rows: Rows, key: str)
analysis/plot.py:27
↓ 1 callersFunctionmain
()
analysis/plot.py:212
↓ 1 callersFunctionmax_feasible_a
Find the largest attacker size `a` such that the victim's slippage check still passes. This is a monotonic bisection: larger `a` always hurts the vict
searcher/src/strategy.rs:133
↓ 1 callersFunctionoptimizeGrossProfitWithGasCheck
(input)
dashboard/mev-model.js:243
↓ 1 callersFunctionplot_attacker_size
(df: Rows, out: Path)
analysis/plot.py:118
↓ 1 callersFunctionplot_defense
(df: Rows, out: Path)
analysis/plot.py:177
↓ 1 callersFunctionplot_fee
(df: Rows, out: Path)
analysis/plot.py:97
↓ 1 callersFunctionplot_gas
(df: Rows, out: Path)
analysis/plot.py:156
↓ 1 callersFunctionplot_pool_depth
(df: Rows, out: Path)
analysis/plot.py:78
↓ 1 callersFunctionplot_slippage
(df: Rows, out: Path)
analysis/plot.py:61
↓ 1 callersFunctionplot_victim_size
(df: Rows, out: Path)
analysis/plot.py:35
↓ 1 callersFunctionpreviewYForX
(pool, dy)
dashboard/mev-model.js:19
↓ 1 callersMethodpreview_y_for_x
(&self, dy: f64)
searcher/src/amm.rs:58
↓ 1 callersFunctionpriceOf
(pool)
dashboard/mev-model.js:10
↓ 1 callersFunctionprint_bundle_demo
( x: f64, y: f64, fee: f64, victim_in: f64, slippage: f64, oversized_attacker: f64, )
searcher/src/main.rs:490
↓ 1 callersFunctionprint_route_demo
( x_m_x: f64, x_m_m: f64, m_y_m: f64, m_y_y: f64, fee: f64, victim_in: f64, slippa
searcher/src/main.rs:349
↓ 1 callersFunctionprint_trace
(pool: Pool, victim: VictimSwap, attacker_in: f64, gas: GasCost)
searcher/src/main.rs:537
↓ 1 callersFunctionsweep_fee
Sweep fee over a list of values.
searcher/src/experiments.rs:257
↓ 1 callersFunctionsweep_victim_size
Sweep victim trade size from `v_min` to `v_max` with `n` log-spaced points.
searcher/src/experiments.rs:210
↓ 1 callersFunctiontestDisplayTextPolish
()
dashboard/dashboard-ui.test.js:58
↓ 1 callersFunctiontestFrontierBoundaryLanguage
()
dashboard/dashboard-ui.test.js:76
↓ 1 callersFunctiontestFrontierInfeasibleRegionStartsAtMinOutFailure
()
dashboard/mev-model.test.js:93
↓ 1 callersFunctiontestGasFormulaWraps
()
dashboard/dashboard-ui.test.js:25
↓ 1 callersFunctiontestHighGasPresetIsActuallyHighGas
()
dashboard/dashboard-ui.test.js:87
↓ 1 callersFunctiontestMetricCardsAvoidOverflow
()
dashboard/dashboard-ui.test.js:14
↓ 1 callersFunctiontestMevEventCandlesDoNotUseWicks
()
dashboard/dashboard-ui.test.js:48
↓ 1 callersFunctiontestNetProfitEqualsGrossMinusGas
()
dashboard/mev-model.test.js:56
↓ 1 callersFunctiontestPriceLabelsUseXPerY
()
dashboard/dashboard-ui.test.js:66
↓ 1 callersFunctiontestProfitSummaryUsesOutcomeValues
()
dashboard/mev-model.test.js:104
↓ 1 callersFunctiontestReferenceScenario
()
dashboard/mev-model.test.js:22
↓ 1 callersFunctiontestRevertWhenBelowMinOut
()
dashboard/mev-model.test.js:45
↓ 1 callersFunctiontestStatePricesUseXPerY
()
dashboard/mev-model.test.js:132
↓ 1 callersFunctiontestStateRowsIncludeTradeDetails
()
dashboard/mev-model.test.js:112
↓ 1 callersFunctiontestStateTableProfitSummary
()
dashboard/dashboard-ui.test.js:82
↓ 1 callersFunctiontestStatusVariants
()
dashboard/mev-model.test.js:69
↓ 1 callersFunctiontestSyntheticCandleLayout
()
dashboard/dashboard-ui.test.js:35
↓ 1 callersFunctiontestVictimLossComesFromWorseExecution
()
dashboard/mev-model.test.js:37
↓ 1 callersFunctiontestVisibleDisclaimer
()
dashboard/dashboard-ui.test.js:20
FunctionattackerProfitSummary
(outcome, format = n => Number(n).toFixed(3))
dashboard/mev-model.js:283
Functionattacker_size_sweep_contains_executable_optimum_and_revert_region
()
searcher/src/experiments.rs:470
Functiondefense_comparison_contains_reference_and_private_route
()
searcher/src/experiments.rs:494
Functiondefense_high_gas_keeps_gross_mev_but_skips_execution
()
searcher/src/experiments.rs:513
Functiondefense_row
( defense: &str, setting: &str, pool: Pool, victim: VictimSwap, gas: GasModel, force_n
searcher/src/experiments.rs:166
Functionextreme_frontrun_reverts_victim
()
searcher/src/strategy.rs:215
Functionfee_grows_k
()
searcher/src/amm.rs:78
FunctionfrontierInfeasibleRegion
(input, upper)
dashboard/mev-model.js:273
Functiongas_cost_uses_total_fee_and_native_price
()
searcher/src/main.rs:597
Functiongas_model_cost_uses_total_fee_and_native_price
()
searcher/src/experiments.rs:432
Functiongas_sweep_clamps_net_profit_after_gas
()
searcher/src/experiments.rs:444
Functionmain
()
searcher/src/main.rs:150
Methodnew
(x: f64, y: f64, fee: f64)
searcher/src/amm.rs:15
Functionno_frontrun_is_zero_profit
()
searcher/src/strategy.rs:203
Functionone_point_sweeps_return_requested_boundary_value
()
searcher/src/experiments.rs:528
Functionoptimal_is_nonnegative_for_typical_case
()
searcher/src/strategy.rs:226
Functionoversized_bundle_case_reverts_and_unwinds_at_loss
()
searcher/src/main.rs:640
Functionpreview_matches_swap
()
searcher/src/amm.rs:93
Functionpreview_y_for_x_matches_swap
()
searcher/src/amm.rs:102
Functionprice_is_x_per_y
()
searcher/src/amm.rs:86
Functionprice_path_uses_x_per_y_and_matches_sandwich_intuition
()
searcher/src/strategy.rs:256
next →1–100 of 109, ranked by callers