ExchangeStorage.sol

Functions

getBalance()

Returns the balance of a token for a certain user.

function getBalance(address user, address token) public view returns (uint256)

getBalances()

Returns the balance of multiple tokens for a certain user.

function getBalances(address user, address[] memory token) public view
returns(uint256[] memory balanceArray)

getFill()

Returns the filled amount of order specified by 'orderHash'.

function getFill(bytes32 orderHash) public view returns (uint256)

getFills()

Returns the filled amount of multiple orders specified by the 'orderHash' array.

function getFills(bytes32[] memory orderHash) public view
returns (uint256[] memory filledArray)

getCancel()

Returns true or false depending on if 'orderHash' is or is not canceled.

function getCancel(bytes32 orderHash) public view returns (bool)

getCancels()

Returns array of true or false depending on if orders specified by 'orderHash' array are or are not canceled.

function getCancels(bytes32[] memory orderHash) public view
returns (bool[]memory cancelledArray)

getReferral()

Returns the referrer address of the specified user.

function getReferral(address user) public view returns (address)

setMakerFeeRate()

Sets new rate for the received maker fee.

function setMakerFeeRate(uint256 newMakerFeeRate) external onlyOwner

setTakerFeeRate()

Sets new rate for the paid taker fee.

function setTakerFeeRate(uint256 newTakerFeeRate) external onlyOwner

setFeeAccount()

Sets new fee account.

 function setFeeAccount(address newFeeAccount) external onlyOwner

Last updated