mirror of
https://github.com/autistic-symposium/blockchains-security-toolkit.git
synced 2025-06-08 06:53:00 -04:00
🤖 add oracles and twap
This commit is contained in:
parent
d3a727a1b8
commit
bf5f80f699
1 changed files with 2 additions and 22 deletions
|
@ -1,30 +1,10 @@
|
||||||
## 🍣 oracles
|
## 🍣 oracles
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
### tl;dr
|
|
||||||
|
|
||||||
* Oracles provide a trustless way of getting extrinsic (off-chain) information.
|
|
||||||
* They provide the some key functions such as collect data from an off-chain source, transfer the data on-chain with a signed message, and make the data available by putting it in a smart contract’s storage.
|
|
||||||
* price oracles are any tool showing an asset's price but in context of defi
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
----
|
|
||||||
|
|
||||||
|
### resources
|
||||||
|
|
||||||
|
* [mev toolkit on oracles](https://github.com/MEV-WAIFU-LABS/mev_toolkit/tree/main/oracles)
|
||||||
### chainlink
|
|
||||||
|
|
||||||
|
|
||||||
A decentralized oracle network consisting of three key smart contracts:
|
|
||||||
|
|
||||||
* a reputation contract: keep track of data providers' performance.
|
|
||||||
* an order-matching contract: selects bids from oracles using the reputation contract.
|
|
||||||
* an aggregation contract—and an off-chain registry of data providers.
|
|
||||||
|
|
||||||
|
|
||||||
One of the main challenges with such a decentralized approach is the formulation of the aggregation function.
|
|
||||||
ChainLink proposes calculating a weighted response, allowing a validity score to be reported for each oracle response.
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue