2023-03-22 21:17:45 -07:00

44 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## oracles
<br>
### tl;dr
<br>
* price oracles are any defi tool showing an asset's price. they can either on or off chain.
* oracles should provide a trustless way of getting extrinsic (off-chain) information, and some key functions such as: collecting data from an off-chain source, transfering the data on-chain with a signed message, and making the data available by putting it in a smart contracts storage.
* oracle exploitation can generate profit opportunities (e.g., through arbitrage or liquidation, multi-block)
<br>
---
### in this dir
<br>
* [twap](twap.md)
* [twamm](twamm.md)
* [chainlink](chainlink.md)
* [cron finance docs on twamm](https://docs.cronfi.com/twamm/)
<br>
---
### links
<br>
* [taking undercollaterized loans for fun an for profit, by samczsun](https://samczsun.com/taking-undercollateralized-loans-for-fun-and-for-profit/)
* [mango markets and the benefits and limitations of oracles](https://blog.kaiko.com/mango-markets-and-the-benefits-and-limitations-of-oracles-753ce6d2a732)
* [dissecting the mango markets exploit, by perpetual protocol](https://perpprotocol.mirror.xyz/WMgIoGMktt_fMVPkfjTxRnSt4qwsWr_Ukub0iq3vW_I)
* [toxic order flow and solutions, by a. nezlobin](https://medium.com/@alexnezlobin/toxic-order-flow-on-decentralized-exchanges-problem-and-solutions-a1b79f32225a)
* [inverse finance resources](https://github.com/go-outside-labs/mev-toolkit/blob/main/MEV_and_trading/protocols/inverse.md)
* [keep3rOracleFactory.sol](https://github.com/keep3r-network/keep3r.network/blob/master/contracts/Keep3rV2OracleFactory.sol)