In this paper, we explore common oracle-related attacks, as well as the cost and profit potential associated with them. We focus specifically on TWAP oracles. We conclude with an initial framework for safely setting TWAP oracle parameters.

🧵👇

members.delphidigital.io/reports/attack…
Oracles represent critical infrastructure for DeFi. They often lie at the heart of different DeFi protocols and are a key component to their safety model. As such, they represent an important attack vector and are in fact a common target for SC attacks.
As such, the importance of studying how they work and, in particular, how they can be attacked cannot be overstated.

In this paper, we focus on two particular attacks related to lending protocols:
1. The first one is the case where the attacker manipulates the oracle to artificially increase the value of his/her collateral in order to borrow more than the protocol would allow under normal circumstances.
2. The second one is the case where an attacker manipulates the oracle to artificially decrease the value of a user's collateral in order to liquidate the given user and earn the corresponding liquidation fee.
As was said before, we analyze the cost and profit potential of both these types of attack on Constant Product Market Maker based TWAP oracles.

Our results show that under certain conditions these oracles are safe to use (i.e. cost of attack > potential profit).
We conclude with an initial framework for setting the TWAP window.

This framework intends to strike a balance between safety and price accuracy (the window tradeoff).
We're very excited to finally share this with the community!

This research paper was done by our very own @ayana_eltai and @JonathanErlichL. Please hit them up if you have any questions or feedback!

• • •

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

Keep Current with Delphi Digital

Delphi Digital 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 @Delphi_Digital

Feb 8
0/ Is Curve still the king of stableswaps?

In today’s Delphi Daily, we analyzed net miner positions, @Uniswap gaining market share the battle between @geniexyz and @gemxyz, and MEV profits slowing down.

For more 🧵👇 Image
1/ In May 2021, when V3 was released, @Uniswap began to eat into @CurveFinance’s market share.

Due to the comparable price execution in V3 alongside an undercutting in fees, Uniswap has been able to match Curve’s volumes in stableswaps, turning this into a nearly 50/50 market. Image
2/ @geniexyz and @gemxyz are two NFT aggregator platforms making it easy to shop across a number of NFT marketplaces. Both make it easy to bulk purchase NFTs in a single transaction.

Gem’s superior fee execution consistently amounts to 30-40% less in gas fees relative to Genie. Image
Read 10 tweets
Feb 8
0/ What platforms are leading the L2 TVL charge?

In today’s Delphi Daily, we examined #bitcoin breaking through key resistance levels and TVL of L2s and options protocols.

For more 🧵👇
1/ Over the weekend, Bitcoin rallied through the $38.5k and $39-$41k resistance levels we had been watching.

The 2022 yearly VWAP (pictured above in white) was acting as a key resistance level. With Bitcoin now trading around $42.5K, the VWAP was breached convincingly on Friday.
2/ TVL on L2s has risen back to levels seen at the beginning of the year (~$6bn)

This growth is driven primarily by @Aribtrum and @MetisDAO.

Among the seven largest L2s by TVL, only Arbitrum (+19% YTD) and Metis (+94% YTD) have seen positive growth in 2022.
Read 10 tweets
Feb 4
Delphi Media has a lot of plans to expand just past @PodcastDelphi this year, and today we’re excited to share a new offering - DISRUPTORS by Delphi

Short thread below on what DISRUPTORS is and why you won't want to miss an episode
1/ A common thread amongst the hivemind at Delphi is that we're all perpetually curious and eager to learn

Filtering out the noise has always been a focus for us, so we're always looking for like-minded visionaries to learn from. We call them DISRUPTORS.
2/ Last month, we kicked off an internal masterclass-type seminar where one of these experts came in and gave a presentation to our team

Initially, we were just going to keep this internal. But the content was too valuable to not share with the rest of the community
Read 6 tweets
Feb 4
0/ Is Azuki the next bluechip NFT?

In today’s Delphi Digital, we analyzed @BitDAO_Official’s large treasury, @MEVprotection’s record-breaking month, @thesandboxgame’s increased volume, and @Azukizen joins the top ten.

For more 🧵👇
1/ @BitDAO_official is an investment DAO that supports builders in the decentralized ecosystem through partnerships and funding.

The contributions from ByBit have exceeded $500M in value since it started on July 21st and are continuing to grow at $1-2M daily contributions.
2/ @MEVprotection has achieved another record-breaking month, crossing $2B in swap volumes on Jan 2021.

CowSwap’s simple and gasless UI makes it easy for users to trade even without holding ETH to pay for gas.
Read 10 tweets
Feb 3
0/ Are Solana and Avalanche the next to benefit from the NFT craze?

In today’s Delphi Daily, we examined NFT data on @solana and @avalancheavax, @axieinfinity’s SLP hyperinflation, and Daniele-related tokens suffer.

For more 🧵👇
1/ The NFT craze is going strong on Ethereum, but the traction is spilling over into @Solana.

Solana has recently hit its ATH of 10k unique daily NFT buyers, surpassing its peak in September.

@Avalancheavax has also recently hit its peak NFT volume at 5M.
2/ @AxieInfinity has been affected by the hyperinflation of SLP, a result of a high SLP minting rate but a low SLP burning rate.

The hyperinflation has resulted in immense sell pressure on SLP.

We have seen SLP prices drop to under $0.01 today, from its previous highs of $0.35
Read 10 tweets
Feb 2
0/ Should we be worried about the composition of DAI’s collateralization?

In today’s Delphi Daily, we examined DAI’s reserves, USDC’s continued growth, bearish BTC option traders, and @boredapeYC’s floor continues to rise.

For more 🧵👇
1/ USDC has grown massively over the past year, recently crossing $50B in supply.

USDT is still the market cap leader, although its growth has slowed down compared to USDC since May 2021.

The USDC/USDT supply ratio has grown from 0.2 to 0.64 over the past year.
2/ DAI, a crypto-collateralized stablecoin by @MakerDAO, has seen its asset weightage shift towards stablecoins.

Many criticized DAI for being backed by 60% stablecoins, as it means that DAI is also exposed to the same centralization and regulatory risks of the stablecoins.
Read 10 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!

:(