Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Research price oracles #15

Open
iorveth opened this issue Oct 3, 2020 · 1 comment
Open

Research price oracles #15

iorveth opened this issue Oct 3, 2020 · 1 comment
Assignees

Comments

@iorveth
Copy link
Contributor

iorveth commented Oct 3, 2020

Research uniswap price oracles implementation more thoroughly.

https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2Pair.sol
https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/examples/ExampleOracleSimple.sol
https://uniswap.org/blog/uniswap-v2/#price-oracles can be used for reference

Also off-chain worker seems to be a good option for price oracle implementation.
Examples can be found here https://github.com/paritytech/substrate/blob/master/frame/example-offchain-worker/src/lib.rs
https://github.com/open-web3-stack/open-runtime-module-library/blob/master/oracle/src/lib.rs

@KStasi
Copy link

KStasi commented Oct 11, 2020

Another option is to use chainlink oracles. There is an example here: https://github.com/smartcontractkit/chainlink-polkadot. We can fork and customize it for our needs

@iorveth iorveth transferred this issue from another repository Oct 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants