Skip to main content

What Are the Best Practices for Setting the TWAP Time Period for Different Types of DeFi Applications?

For lending protocols, a longer TWAP period (e.g. 1-2 hours) is recommended to prevent flash loan-based price manipulation and wrongful liquidations.

For decentralized exchanges, a shorter TWAP period (e.g. 10-30 minutes) is more appropriate to ensure that the displayed prices are relatively close to the current market price.

For derivatives and synthetic asset protocols, a balance must be struck, often using a medium-length TWAP (e.g. 30-60 minutes) to balance accuracy with security.

The choice should always be guided by a thorough risk assessment of the specific application.

Can the TWAP Time Period Be Dynamically Adjusted Based on Market Conditions?
What Are the Potential Consequences of Setting a TWAP Time Period That Is Too Short or Too Long?
What Are the Different Types of Tokens Issued in an ICO?
How Does the Gas Cost of a TWAP Oracle Scale with the Length of the Time Period?