- This is the smart contract for retriving oil price every specified minutes automatically.
- This smart contract will bring the way of commodity price into commodity related DeFi product in the future. (This smart contract assume that it is utilized bycommodity related DeFi product in the future)
- This smart contract utilize the Chainlink for retriving oil price and the Gelato for realizing automation for executing smart contract.
- Npm install
$ npm install
- Migrate
$ npm run migrate:rinkeby
- Testing for only OilPriceOracle contract
$ npm run test:rinkeby-oil
- Testing for all contract
$ npm run test:rinkeby
- [Chainlink 💹]
-
Price Feed (Sample code)
https://docs.chain.link/docs/get-the-latest-price -
Price Feed (GUI)
https://feeds.chain.link/ -
Contract Address (Rinkeby):
Oil/USD
https://docs.chain.link/docs/reference-contracts#rinkeby -
ChainLink Hackathon: https://hack.chain.link
https://chainlink-hackathon.devpost.com
-
- [Gelato🍦]:
-
Document:
https://docs.gelato.network/creating-an-automated-dapp -
Document (Contract address on Rinkeby testnet)
https://docs.gelato.network/contract-addresses -
Sample dApp:
https://gnosis.gelato.exchange
( https://medium.com/@gelatonetwork/walkthrough-automatically-swapping-erc20-tokens-on-gnosis-protocol-4166ec8b263e ) -
Workshop:
https://www.youtube.com/watch?v=D5SyFrhg1E4&feature=youtu.be -
Website:
https://gelato.network/ -
Repo:
https://github.com/gelatodigital/gelato-network https://github.com/gelatodigital/gelato-kyber https://github.com/gelatodigital/gelato-chi -
Discord:
https://discord.com/channels/592041321326182401/745688295891009676
https://discord.com/channels/733646962045222912/733646962573836350
-