Slot
XX
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0
Balances ($0.00)
No balances found for "Exchange"
Transactions
Txn hash | Method | Block | Age | From | To | Value (ETH) | Fee (ETH) |
---|---|---|---|---|---|---|---|
| 9292936 | 5 years ago | | | 0 | 0.00035184000 | |
| 8988766 | 5 years ago | | | 0 | 0.0024581640 | |
| 8988731 | 5 years ago | | | 0 | 0.0024593400 | |
| 8983339 | 5 years ago | | | 0 | 0.0024674520 | |
| 8973714 | 5 years ago | | | 0 | 0.0049387920 | |
| 8973503 | 5 years ago | | | 0 | 0.0027163356 | |
| 8973310 | 5 years ago | | | 0 | 0.0024663240 | |
| 8973195 | 5 years ago | | | 0 | 0.00087732000 | |
| 8973101 | 5 years ago | | | 0 | 0.00087732000 | |
| 8965735 | 5 years ago | | | 0 | 0.0022909200 |
ABI
ABI objects
Getter at block 21200269
DmexOracleContract() view returns (address)
0xbba5931e16bf793f2920638b1ca50d6339c1a30d
exchangeContract() view returns (address)
0x33d6461a9dba4c234fc01bc4a2df59bf26720e66
feeAccount() view returns (address)
0x95445852148540acb6fcb9e39856d15f1c416381
getOwner() view returns (address out)
0x95445852148540acb6fcb9e39856d15f1c416381
makerFee() view returns (uint256)
9999999999999990
owner() view returns (address)
0x95445852148540acb6fcb9e39856d15f1c416381
takerFee() view returns (uint256)
9999999999999990
Read-only
admins(address) view returns (bool)
assert(bool assertion) pure
assetDecimals(bytes32 assetHash) view returns (uint256)
assetPricePath(bytes32 assetHash) view returns (string)
assetPriceUrl(bytes32 assetHash) view returns (string)
assetPrices(bytes32, uint256) view returns (uint256)
calculateCollateral(uint256 qty, uint256 price, uint256 leverage, bytes32 futuresContractHash) view returns (uint256)
calculateFee(uint256 qty, uint256 tradePrice, uint256 fee, bytes32 futuresContractHash) view returns (uint256)
calculateFundingCost(uint256 price, uint256 qty, uint256 fundingBlocks, bytes32 futuresContractHash) view returns (uint256)
calculateLiquidationPrice(uint256[5] pos, uint256[4] values) view returns (uint256)
calculateLoss(uint256 closingPrice, uint256 entryPrice, uint256 qty, bytes32 futuresContractHash, bool side) view returns (uint256)
calculateProfit(uint256 closingPrice, uint256 entryPrice, uint256 qty, bytes32 futuresContractHash, bool side) view returns (uint256)
calculateProportionalMargin(uint256 currQty, uint256 newQty, uint256 margin) view returns (uint256)
calculateTradeValue(uint256 qty, uint256 price, bytes32 futuresContractHash) view returns (uint256)
futuresAssets(bytes32) view returns (address baseToken, string priceUrl, string pricePath, bool disabled, uint256 maintenanceMargin, uint256 decimals)
futuresContracts(bytes32) view returns (bytes32 asset, uint256 expirationBlock, uint256 closingPrice, bool closed, bool broken, uint256 multiplier, uint256 fundingRate, uint256 closingBlock, bool perpetual)
generateOrderHash(bool maker, bool takerIsBuying, address user, bytes32 futuresContractHash, uint256[11] tradeValues) view returns (bytes32)
generatePositionHash(address user, bytes32 futuresContractHash, bool side) view returns (bytes32)
getAssetDecimals(bytes32 futuresContractHash) view returns (uint256)
getContractBaseToken(bytes32 futuresContractHash) view returns (address)
getContractClosed(bytes32 futuresContractHash) view returns (bool)
getContractExpiration(bytes32 futuresContractHash) view returns (uint256)
getMakerTakerPositions(bytes32 makerPositionHash, bytes32 makerInversePositionHash, bytes32 takerPosition, bytes32 takerInversePosition) view returns (uint256[5][4])
lastActiveTransaction(address) view returns (uint256)
orderFills(bytes32) view returns (uint256)
pools(address) view returns (bool)
positions(bytes32) view returns (uint256)
retrievePosition(bytes32 positionHash) view returns (uint256[5])
safeAdd(uint256 a, uint256 b) pure returns (uint256)
safeMul(uint256 a, uint256 b) pure returns (uint256)
safeSub(uint256 a, uint256 b) pure returns (uint256)
State-modifying
Events batchFuturesTrade(uint8[2][] v, bytes32[4][] rs, uint256[11][] tradeValues, address[3][] tradeAddresses, bool[2][] boolValues, uint256[5][] contractValues, string priceUrl, string pricePath)
batchSettlePositions(bytes32[] futuresContracts, bool[] sides, address[] users, address[] pools, uint256[] expirationFee)
calculateLiquidationPriceFromPositionHash(bytes32 futuresContractHash, bool side, address user) returns (uint256)
closeFuturesPosition(bytes32 futuresContract, bool side, address poolAddress)
closeFuturesPositionForUser(bytes32 futuresContract, bool side, address user, address poolAddress, uint256 expirationFee)
createFuturesAsset(address baseToken, string priceUrl, string pricePath, uint256 maintenanceMargin, uint256 decimals) returns (bytes32)
createFuturesContract(bytes32 asset, uint256 expirationBlock, uint256 multiplier, uint256 fundingRate, bool perpetual) returns (bytes32)
forceReleaseReserve(bytes32 futuresContract, bool side, address user)
futuresTrade(uint8[2] v, bytes32[4] rs, uint256[11] tradeValues, address[2] tradeAddresses, bool takerIsBuying, bytes32 futuresContractHash) returns (uint256 filledTakerTokenAmount)
getContractPricePath(bytes32 futuresContractHash) returns (string)
getContractPriceUrl(bytes32 futuresContractHash) returns (string)
getMaintenanceMargin(bytes32 futuresContractHash) returns (uint256)
liquidatePositionWithAssetPrice(bytes32 futuresContractHash, address user, bool side, uint256 priceBlockNumber, address poolAddress)
recordLatestAssetPrice(bytes32 futuresContractHash, uint256 price) returns (bool)
setAdmin(address admin, bool isAdmin)
setClosingPrice(bytes32 futuresContractHash, uint256 price) returns (bool)
setFees(uint256 makerFee_, uint256 takerFee_)
setOwner(address newOwner)
setPool(address user, bool enabled)
validateUint128(uint256 val) returns (bool)
validateUint48(uint256 val) returns (bool)
validateUint64(uint256 val) returns (bool)
FeeChange(uint256 indexed makerFee, uint256 indexed takerFee)
FuturesAssetCreated(bytes32 indexed futuresAsset, address baseToken, string priceUrl, string pricePath)
FuturesContractCreated(bytes32 indexed futuresContract, bytes32 asset, uint256 expirationBlock, uint256 multiplier)
FuturesForcedRelease(bytes32 indexed futuresContract, bool side, address user)
FuturesMarginAdded(address indexed user, bytes32 indexed futuresContract, bool side, uint64 marginToAdd)
FuturesPositionClosed(bytes32 indexed positionHash, uint256 closingPrice)
FuturesTrade(bool side, uint256 size, uint256 price, bytes32 indexed futuresContract, bytes32 indexed makerOrderHash, bytes32 indexed takerOrderHash)
LogBytes(uint8 id, bytes32 value)
LogError(uint8 indexed errorId, bytes32 indexed makerOrderHash, bytes32 indexed takerOrderHash)
LogUint(uint8 id, uint256 value)
PositionLiquidated(bytes32 indexed positionHash, uint256 price)
SetOwner(address indexed previousOwner, address indexed newOwner)
constructor(address feeAccount_, uint256 makerFee_, uint256 takerFee_, address exchangeContract_, address DmexOracleContract_, address poolAddress)
fallback()
This contract contains no error objects.