View Source: contracts/UpSideDai.sol
↗ Extends: Ownable
UpSideDai
UpSideDai contract
Constants & Variables
mapping(uint256 => address) public deployedCFD;
Events
event CFDeployed(address indexed CFD, uint256 creationDate, uint256 indexed settlementDate, uint256 indexed version);
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 |