My Authors
Read all threads
If you are interested in the details on the recent bZx arb/attack trade, have a look at ethtx.info/0xb5c8bd9430b6… - the following thread is a step-by-step explanation of what is going on
First the attacker gets 10,000 ETH loan from dYdX (SoloMargin.operate with ActionType=1 which is withdraw). Note that there is also ActionType=8 which is a call. In this case it is a call to attacker's script
Then he sends 5,500 ETH to Compound and gets 112 WBTC loan (cETH.mint and cWBTC.borrow)
Then he sends 1,300 ETH to Fulcrum/bZX to short WBTC. Fulcrum borrows additional 4337 ETH from bZx lenders and buys on Uniswap (through Kyber) 51.34 WETH causing temporary massive WBTC price spike
Now, attacker sells 112 WBTC on Uniswap taking advantage of this spike and gets 6,871 ETH in return
Last step is a repayment of 10,000 ETH loan from dYdX. So, with 6,871 gained and 5,500 and 1,3000 attacker nets 71 ETH, 61 of which is immediately taken as part of the contract distraction. What he is left with as well are some Fulcrum short tokens that he bought for 1,300 ETH
People focus on bZx, but maybe more problematic are massive Uniswap price swings that made it all possible ?
[errata] - bZx buys 51 WBTC on Uniswap, not WETH obviously :)
[errata2] on bZx the bought tokens are to short ETH, not BTC
The balance should also include open Compound position which after the trade is 5,500 ETH deposited and 112 WBTC borrowed
And it is this position that is slowly being liquidated for real profit as anyone can see here: etherscan.io/address/0x4f4e…
Missing some Tweet in this thread? You can try to force a refresh.

Enjoying this thread?

Keep Current with Bartek Kiepuszewski

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!

Twitter may remove this content at anytime, convert it as a PDF, save and print for later use!

Try unrolling a thread yourself!

how to unroll video

1) Follow Thread Reader App on Twitter so you can easily mention us!

2) Go to a Twitter thread (series of Tweets by the same owner) and mention us with a keyword "unroll" @threadreaderapp unroll

You can practice here first or read more on our help page!

Follow Us on Twitter!

Did Thread Reader help you today?

Support us! We are indie developers!


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

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

Become Premium

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

Donate via Paypal Become our Patreon

Thank you for your support!