概要
ちょっと数学をして、ちょっとお金を稼ぎます
科学・工学計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルOptimal sando frontrun amount
Haven’t public code/math for calculating optimal frontrun sandwich amounts (@libevm’s subway and @Supercycled cake_sniper both use binary search) so here’s a thread on how to derive perfect sando amounts:
The problem statement is: given some amountIn and amountMinOut (from a pending tx), what is the worst ratio (price) between the uniswap reserves must be such that the swap still goes through? Once we know the worst ratio, we can calculate exactly how much $ we need to push the pool to this ratio.
We should do this onchain at the time of execution, rather than offchain in a binary search. So that if someone beats us to the frontrun, we won’t get rekt and revert the meat transaction.

関連プロジェクトを探す
読み込み中…