Skip to content

Instantly share code, notes, and snippets.

@samnet
samnet / cdf.sol
Created May 24, 2022 12:06
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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract simpleTestCDF {
address payable buyer;
address payable seller;
AggregatorV3Interface private priceFeed; // price oracle
int private initialPrice;
bool private activeContract;
@samnet
samnet / cdf.sol
Created May 24, 2022 12:04
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.8.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity >=0.7.0 <0.9.0;
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol";
contract simpleTestCDF {
address payable buyer;
address payable seller;
AggregatorV3Interface private priceFeed; // price oracle
int private initialPrice;
bool private activeContract;