Skip to content

Instantly share code, notes, and snippets.

@ngyam
ngyam / ATestnetConsumer.sol
Created September 27, 2019 14:56
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;