Skip to content
You are reading the development version documentation and some displayed features may not be available in the stable release. You can switch to stable version using the version box at screen bottom.
Last update: September 30, 2021

WhiteListManager

Functions

DOMAIN_SEPARATOR

  function DOMAIN_SEPARATOR(
  ) public returns (bytes32 domainSeperator)

whitelistAccount

  function whitelistAccount(
  ) external

setWhitelisting

  function setWhitelisting(
    address operator,
    address account,
    bool approved,
    uint256 deadline,
    uint8 v,
    bytes32 r,
    bytes32 s
  ) external

Approves or revokes whitelisting for accounts.

Parameters:

Name Type Description
operator address The address of the operator that approves or revokes access.
account address The address who gains or loses access.
approved bool If ‘true’, approves access - if ‘false’, revokes access.
deadline uint256 The time at which to expire the signature.
v uint8 The recovery byte of the signature.
r bytes32 Half of the ECDSA signature pair.
s bytes32 Half of the ECDSA signature pair.

isWhitelisted

  function isWhitelisted(
  ) public returns (bool success)

**** WHITELISTING

Adapted from OpenZeppelin utilities and Uniswap merkle distributor.

joinWhitelist

  function joinWhitelist(
  ) external

setMerkleRoot

  function setMerkleRoot(
  ) external

Events

WhiteListAccount

  event WhiteListAccount(
  )

SetMerkleRoot

  event SetMerkleRoot(
  )

JoinWithMerkle

  event JoinWithMerkle(
  )
Questions or feedback? You can discuss issues and obtain free support on Trident chat channel.
For SushiSwap community support, join the Discord Server None