Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 1.91 KB

UpSideDai.md

File metadata and controls

71 lines (53 loc) · 1.91 KB

UpSideDai.sol

View Source: contracts/UpSideDai.sol

↗ Extends: Ownable

UpSideDai

UpSideDai contract

Contract Members

Constants & Variables

mapping(uint256 => address) public deployedCFD;

Events

event CFDeployed(address indexed CFD, uint256  creationDate, uint256 indexed settlementDate, uint256 indexed version);

Functions

newCFD

deploy a new CFD

function newCFD(address _makerMedianizer, address _uniswapFactory, address _daiToken, uint256 _leverage, uint256 _fee, uint256 _settlementLength, uint256 _version) public nonpayable onlyOwner 

Arguments

Name Type Description
_makerMedianizer address maker medianizer address
_uniswapFactory address uniswap factory address
_daiToken address dai token addr
_leverage uint256 leverage where 1x == 1e18
_fee uint256 payout fee where 100% fee == 1e18
_settlementLength uint256 time in seconds for settlement
_version uint256 tranche number, or version

Contracts