Oracle
Flaex calculates the price of asset pairs using data from both the Uniswap and AAVE Oracles.
About AAVE oracle: https://docs.aave.com/developers/core-contracts/aaveoracle
About Uniswap oracle: https://docs.uniswap.org/contracts/v2/concepts/core-concepts/oracles
Preventing Oracle Manipulation
To protect against potential oracle attacks that could lead to unjust liquidation of users' positions, Flaex enforces a strict rule: the price difference between the two oracle sources must stay within a ±3% tolerance where Uniswap Prices must be lower than that of AAVE.
Last updated