Rigoblock Documentation
  • Welcome
  • Introduction to RigoBlock
  • Contracts
    • Protocol
      • RigoblockPoolExtended
      • Core
        • constants
        • immutables
        • storage
        • actions
        • owner actions
        • abstract
        • fallback
        • initializer
        • state
        • storage accessible
      • Deps
        • Authority
          • authority docs
        • PoolRegistry
          • pool registry docs
      • Extensions
        • AGovernance
          • Solidity API
        • AMulticall
          • aMulticall docs
        • AStaking
          • aStaking docs
        • AUniswap
          • aUniswap docs
        • EUpgrade
          • eUpgrade docs
        • EWhitelist
          • eWhitelist docs
      • Proxies
        • proxy
          • proxy docs
        • proxy factory
          • proxyFactory docs
    • GRG Token
      • RigoToken
        • rigoToken docs
      • Inflation
        • inflation docs
      • ProofOfPerformance
        • pop docs
    • GRG Staking
      • GrgVault
        • grgVault docs
      • StakingProxy
        • stakingProxy docs
      • Staking
        • staking docs
    • Governance
      • Solidity API
  • Deployments
    • deployed contracts - V4
    • deployed contracts
    • v1.5.0
    • v1.4.2
    • v1.4.1
    • v1.3.0
    • v1.1.1
    • v1.1.0
  • Governance
    • Rigoblock Governance
    • Supported Applications
    • Token Whitelists
    • Supported Methods
      • Selectors - V4
      • Selectors - V3
  • Bug Bounty
    • Known Issues
  • Oracles and Price Feeds
Powered by GitBook
On this page
  • EWhitelist
  • _EWHITELIST_TOKEN_WHITELIST_SLOT
  • authority
  • WhitelistSlot
  • onlyAuthorized
  • constructor
  • whitelistToken
  • removeToken
  • batchUpdateTokens
  • isWhitelistedToken
  • getAuthority
  • _getWhitelistSlot
  • _assertCallerIsAuthorized
  • _isContract
  1. Contracts
  2. Protocol
  3. Extensions
  4. EWhitelist

eWhitelist docs

EWhitelist

This contract has its own storage, which could potentially clash with pool storage if the allocated slot were already used by the implementation. Warning: careful with upgrades as pool only accesses isWhitelistedToken view method. Other methods are locked and should never be approved by governance.

_EWHITELIST_TOKEN_WHITELIST_SLOT

bytes32 _EWHITELIST_TOKEN_WHITELIST_SLOT

authority

address authority

WhitelistSlot

struct WhitelistSlot {
  mapping(address => bool) isWhitelisted;
}

onlyAuthorized

modifier onlyAuthorized()

constructor

constructor(address newAuthority) public

whitelistToken

function whitelistToken(address token) public

Allows a whitelister to whitelist a token.

Parameters

Name
Type
Description

token

address

Address of the target token.

removeToken

function removeToken(address token) public

Allows a whitelister to remove a token.

Parameters

Name
Type
Description

token

address

Address of the target token.

batchUpdateTokens

function batchUpdateTokens(address[] tokens, bool[] whitelisted) external

Allows a whitelister to whitelist/remove a list of tokens.

Parameters

Name
Type
Description

tokens

address[]

Address array to tokens.

whitelisted

bool[]

Bollean array the token is to be whitelisted or removed.

isWhitelistedToken

function isWhitelistedToken(address token) external view returns (bool)

Returns whether a token has been whitelisted.

Parameters

Name
Type
Description

token

address

Address of the target token.

Return Values

Name
Type
Description

[0]

bool

Boolean the token is whitelisted.

getAuthority

function getAuthority() public view returns (address)

Returns the address of the authority contract.

Return Values

Name
Type
Description

[0]

address

Address of the authority contract.

_getWhitelistSlot

function _getWhitelistSlot() internal pure returns (struct EWhitelist.WhitelistSlot s)

_assertCallerIsAuthorized

function _assertCallerIsAuthorized() private view

_isContract

function _isContract(address target) private view returns (bool)
PreviousEWhitelistNextProxies

Last updated 2 years ago