ExchangeStorage.sol

Functions

getBalance()

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

getBalances()

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

getFill()

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

parameter

type

orderHash

bytes32

getFills()

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

parameter

type

orderHash

array of bytes32

filledArray

array of uint256

getCancel()

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

parameter

type

orderHash

array of bytes32

getCancels()

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

parameters

type

orderHash

array of bytes32

cancelledArray

array of bools

getReferral()

Returns the referrer address of the specified user.

parameters

type

user

address

setMakerFeeRate()

Sets new rate for the received maker fee.

parameter

type

newMakerFeeRate

uint256

setTakerFeeRate()

Sets new rate for the paid taker fee.

parameter

type

newTakerFeeRate

uint256

setFeeAccount()

Sets new fee account.

parameter

type

newFeeAccount

address

Last updated

Was this helpful?