Returns the balance of a token for a certain user.
function getBalance(address user, address token) public view returns (uint256)
parameter | type |
---|---|
user | address |
token | address |
Returns the balance of multiple tokens for a certain user.
function getBalances(address user, address[] memory token) public view
returns(uint256[] memory balanceArray)
parameter | type |
---|---|
user | address |
token | array of addresses |
balanceArray | array of uint256 |
Returns the filled amount of order specified by 'orderHash'.
function getFill(bytes32 orderHash) public view returns (uint256)
parameter | type |
---|---|
orderHash | bytes32 |
Returns the filled amount of multiple orders specified by the 'orderHash' array.
function getFills(bytes32[] memory orderHash) public view
returns (uint256[] memory filledArray)
parameter | type |
---|---|
orderHash | array of bytes32 |
filledArray | array of uint256 |
Returns true or false depending on if 'orderHash' is or is not canceled.
function getCancel(bytes32 orderHash) public view returns (bool)
parameter | type |
---|---|
orderHash | array of bytes32 |
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)
parameters | type |
---|---|
orderHash | array of bytes32 |
cancelledArray | array of bools |
Returns the referrer address of the specified user.
function getReferral(address user) public view returns (address)
parameters | type |
---|---|
user | address |
Sets new rate for the received maker fee.
function setMakerFeeRate(uint256 newMakerFeeRate) external onlyOwner
parameter | type |
---|---|
newMakerFeeRate | uint256 |
Sets new rate for the paid taker fee.
function setTakerFeeRate(uint256 newTakerFeeRate) external onlyOwner
parameter | type |
---|---|
newTakerFeeRate | uint256 |
Sets new fee account.
function setFeeAccount(address newFeeAccount) external onlyOwner
parameter | type |
---|---|
newFeeAccount | address |