Exchange

Verified contract

Active on Ethereum with 188 txns
Deployed by via 0x002db15b at 8876574
Slot
32
30
28
26
24
22
20
18
16
14
12
10
8
6
4
2
0

No balances found for "Exchange"

0xdf7633857d5269b5b7e3e9116c5d1b37962059c0faddb35eb10d0caa1979fe27
0xa0bae1662cada7b14f059ffe76edbeba2d165134366d16b2bb0753e088eb5247
0x64c66ada567c80c3e6f92259d849cb146c940a74bab821ffabac1a3112ba3569
0x2420e5eb2b2a67f04ad11dfef9b2c0ddb4f3afe7b36d813ea2f0aac46c692989
0xde460478ae151ef1b707bd0f19f82d8a6745e7ffa0c380e6beefdbb77b2db2a5
0x21ff2a48d51fb743c638aecabf9d5bf619a04f6ef6aa3f64d15fe173c9553d10
0x537156f2d269e19773518f668ff01bab796d94c499eaaaae6b00d3e085d5b4a4
0xa7f0f08e1fd7f1272c080859cde1a36bec561763c600a640ef4cd5360eb980a8
0xac14152a226eae55c244bdee04fc81e2a9c9247dbf6c3968516a382f95f479ad
0x82043a3732eb34132fd95e07234647769722e347602b64abd507aba1c531263b

Functions
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(addressview returns (bool)
assert(bool assertionpure 
assetDecimals(bytes32 assetHashview returns (uint256)
assetPricePath(bytes32 assetHashview returns (string)
assetPriceUrl(bytes32 assetHashview returns (string)
assetPrices(bytes32uint256view returns (uint256)
calculateCollateral(uint256 qtyuint256 priceuint256 leveragebytes32 futuresContractHashview returns (uint256)
calculateFee(uint256 qtyuint256 tradePriceuint256 feebytes32 futuresContractHashview returns (uint256)
calculateFundingCost(uint256 priceuint256 qtyuint256 fundingBlocksbytes32 futuresContractHashview returns (uint256)
calculateLiquidationPrice(uint256[5] posuint256[4] valuesview returns (uint256)
calculateLoss(uint256 closingPriceuint256 entryPriceuint256 qtybytes32 futuresContractHashbool sideview returns (uint256)
calculateProfit(uint256 closingPriceuint256 entryPriceuint256 qtybytes32 futuresContractHashbool sideview returns (uint256)
calculateProportionalMargin(uint256 currQtyuint256 newQtyuint256 marginview returns (uint256)
calculateTradeValue(uint256 qtyuint256 pricebytes32 futuresContractHashview returns (uint256)
futuresAssets(bytes32view returns (address baseTokenstring priceUrlstring pricePathbool disableduint256 maintenanceMarginuint256 decimals)
futuresContracts(bytes32view returns (bytes32 assetuint256 expirationBlockuint256 closingPricebool closedbool brokenuint256 multiplieruint256 fundingRateuint256 closingBlockbool perpetual)
generateOrderHash(bool makerbool takerIsBuyingaddress userbytes32 futuresContractHashuint256[11] tradeValuesview returns (bytes32)
generatePositionHash(address userbytes32 futuresContractHashbool sideview returns (bytes32)
getAssetDecimals(bytes32 futuresContractHashview returns (uint256)
getContractBaseToken(bytes32 futuresContractHashview returns (address)
getContractClosed(bytes32 futuresContractHashview returns (bool)
getContractExpiration(bytes32 futuresContractHashview returns (uint256)
getMakerTakerPositions(bytes32 makerPositionHashbytes32 makerInversePositionHashbytes32 takerPositionbytes32 takerInversePositionview returns (uint256[5][4])
lastActiveTransaction(addressview returns (uint256)
orderFills(bytes32view returns (uint256)
pools(addressview returns (bool)
positions(bytes32view returns (uint256)
retrievePosition(bytes32 positionHashview returns (uint256[5])
safeAdd(uint256 auint256 bpure returns (uint256)
safeMul(uint256 auint256 bpure returns (uint256)
safeSub(uint256 auint256 bpure returns (uint256)
State-modifying
batchFuturesTrade(uint8[2][] vbytes32[4][] rsuint256[11][] tradeValuesaddress[3][] tradeAddressesbool[2][] boolValuesuint256[5][] contractValuesstring priceUrlstring pricePath
batchSettlePositions(bytes32[] futuresContractsbool[] sidesaddress[] usersaddress[] poolsuint256[] expirationFee
calculateLiquidationPriceFromPositionHash(bytes32 futuresContractHashbool sideaddress userreturns (uint256)
closeFuturesPosition(bytes32 futuresContractbool sideaddress poolAddress
closeFuturesPositionForUser(bytes32 futuresContractbool sideaddress useraddress poolAddressuint256 expirationFee
createFuturesAsset(address baseTokenstring priceUrlstring pricePathuint256 maintenanceMarginuint256 decimalsreturns (bytes32)
createFuturesContract(bytes32 assetuint256 expirationBlockuint256 multiplieruint256 fundingRatebool perpetualreturns (bytes32)
forceReleaseReserve(bytes32 futuresContractbool sideaddress user
futuresTrade(uint8[2] vbytes32[4] rsuint256[11] tradeValuesaddress[2] tradeAddressesbool takerIsBuyingbytes32 futuresContractHashreturns (uint256 filledTakerTokenAmount)
getContractPricePath(bytes32 futuresContractHashreturns (string)
getContractPriceUrl(bytes32 futuresContractHashreturns (string)
getMaintenanceMargin(bytes32 futuresContractHashreturns (uint256)
liquidatePositionWithAssetPrice(bytes32 futuresContractHashaddress userbool sideuint256 priceBlockNumberaddress poolAddress
recordLatestAssetPrice(bytes32 futuresContractHashuint256 pricereturns (bool)
setAdmin(address adminbool isAdmin
setClosingPrice(bytes32 futuresContractHashuint256 pricereturns (bool)
setFees(uint256 makerFee_uint256 takerFee_
setOwner(address newOwner
setPool(address userbool enabled
validateUint128(uint256 valreturns (bool)
validateUint48(uint256 valreturns (bool)
validateUint64(uint256 valreturns (bool)
Events
FeeChange(uint256 indexed makerFeeuint256 indexed takerFee
FuturesAssetCreated(bytes32 indexed futuresAssetaddress baseTokenstring priceUrlstring pricePath
FuturesContractCreated(bytes32 indexed futuresContractbytes32 assetuint256 expirationBlockuint256 multiplier
FuturesForcedRelease(bytes32 indexed futuresContractbool sideaddress user
FuturesMarginAdded(address indexed userbytes32 indexed futuresContractbool sideuint64 marginToAdd
FuturesPositionClosed(bytes32 indexed positionHashuint256 closingPrice
FuturesTrade(bool sideuint256 sizeuint256 pricebytes32 indexed futuresContractbytes32 indexed makerOrderHashbytes32 indexed takerOrderHash
LogBytes(uint8 idbytes32 value
LogError(uint8 indexed errorIdbytes32 indexed makerOrderHashbytes32 indexed takerOrderHash
LogUint(uint8 iduint256 value
PositionLiquidated(bytes32 indexed positionHashuint256 price
SetOwner(address indexed previousOwneraddress indexed newOwner
Constructor
constructor(address feeAccount_uint256 makerFee_uint256 takerFee_address exchangeContract_address DmexOracleContract_address poolAddress
Fallback and receive
fallback(
Errors

This contract contains no error objects.