# MoCWhitelist

View Source: [contracts/base/MoCWhitelist.sol](https://github.com/money-on-chain/main-RBTC-contract/blob/master-gitbook/contracts/base/MoCWhitelist.sol)

**↘ Derived Contracts:** [**MoCConnector**](https://docs.moneyonchain.com/main-rbtc-contract/smart-contracts/abis-documentation/mocconnector)

**MoCWhitelist** - version: 0.1.12

Provides access control between all MoC Contracts

## Contract Members

**Constants & Variables**

```js
mapping(address => bool) internal whitelist;
```

***

```js
uint256[50] private upgradeGap;
```

***

## Functions

* [isWhitelisted(address account)](#iswhitelisted)
* [add(address account)](#add)
* [remove(address account)](#remove)

### isWhitelisted

Check if an account is whitelisted

```js
function isWhitelisted(address account) public view
returns(bool)
```

**Returns**

Bool

**Arguments**

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| account | address |             |

### add

Add account to whitelist

```js
function add(address account) internal nonpayable
```

**Arguments**

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| account | address |             |

### remove

Remove account from whitelist

```js
function remove(address account) internal nonpayable
```

**Arguments**

| Name    | Type    | Description |
| ------- | ------- | ----------- |
| account | address |             |
