庞氏骗局局长 Profile picture
May 3 4 tweets 2 min read Twitter logo Read on Twitter
#flashbots 负责人 @bertcmiller 几个小时前发了条推特
简单介绍了在 mev-share 协议下的 backruns 套利思路, 很有意思.
在 private mempool 的大背景下, 用户的交易细节都属于隐私, 是极其有限的, 例子中介绍了如何仅通过 univ2 的 pool 就完成套利. 核心就是如下函数, 原推中没有截全, 我直接补全了
github.com/flashbots/simp… Image
截图中的函数接受2个池子的地址作为参数, 套利合约通过对比两个池子中当前资产的价差来判断套利空间进而执行交易完成套利, 得益于 matchmaker 只发送能完成交易的bundle 的特性, 所以如果套利失败也不用担心gas损失, 因为套利失败那么这比套利交易根本不会上链.
以上这些都比较简单且很好理解, 但是我的疑问在于这个用来计算套利最优交易数量的 getAmountIn 函数, 他这个计算公式直接看显然是看不懂的, 尝试推了下也没推出来, 具体我提了个 issue

github.com/flashbots/simp… Image

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with 庞氏骗局局长

庞氏骗局局长 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @nzhlfred

May 3
晚上稍微看了眼 @blur_io 合约的相关实现, 整体实现还是比较简单的, 具体细节明天讲下, 以下是用到的几个资料
1. blur 的合约地址 docs.blur.foundation/contracts
2. blur 在 @code4rena 的 contest code4rena.com/contests/2022-…
首先是非常关键的一张图, 直接把 blur 项目各个模块之间的关系清晰地展示出来了, 具体来讲, 项目主要由有如下几个模块组成: Image
1. Exchange: 用户交互的入口, 负责交易业务的核心逻辑
2. Policy: 负责对 Order 的形式进行限制, 相当于交易前检查, 同时 manager 的机制保证了交易形式的可拓展性
3. ExecutionDelegate: 主要完成实际资产的转移.
Read 21 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(