Skip to content

Instantly share code, notes, and snippets.

@teohck
teohck / ATestnetConsumer.sol
Created November 27, 2020 16:33 — forked from ngyam/ATestnetConsumer.sol
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.4.26+commit.4563c3fc.js&optimize=false&gist=
pragma solidity ^0.4.24;
import "./ChainlinkClient.sol";
import "./Ownable.sol";
contract ATestnetConsumer is ChainlinkClient, Ownable {
uint256 constant private ORACLE_PAYMENT = 1 * LINK;
uint256 public currentPrice;
uint256 public currentEwtPrice;