Controller
Ethereum0xca06411bd7a7296d7dbdd0050dfc846e95febeb7
Solidity v0.4.24+commit.e67f0147
Admin & Risk
Who can change the rules?
Detected mintable, pausable, and ownable controls from the verified ABI.
Current controls
- Owner
- 0x972eed35781f09987a5c40f761f6a24623c570de ↗ Etherscan → smarts
Overview
Read Functions
Block #25,170,019 · just nowCheck whether a given address is registered as a merchant.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | Address to check for merchant registration.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the address is a registered merchant, false otherwise.✨ AI |
Checks whether the given address is a registered custodian.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| addr | address | Address to check for custodian status.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the address is a registered custodian, otherwise false.✨ AI |
Returns the WBTC token contract address stored by the controller.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The WBTC ERC20 token contract address used by the controller.✨ AI |
Returns the Ethereum address of the contract owner.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address that currently holds ownership and administrative privileges for the contract.✨ AI |
Return the address of the members contract used by this Controller.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address of the members contract or registry that this Controller references.✨ AI |
Return the address of the factory associated with this controller.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the factory contract linked to this controller.✨ AI |
Return the address that has been nominated to become the contract owner.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The nominated owner's address; returns the zero address if no pending owner is set.✨ AI |
Returns the address of the token managed by the controller.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The token contract address (ERC20) that this controller interacts with.✨ AI |
Write Functions
Transfers any ERC20 tokens held by this contract for the specified token address to the controller.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _token | address | ERC20Basic The address of the token contract |
Calls claimOwnership on the specified contract to accept ownership on behalf of this Controller.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| contractToOwn | address | Address of the contract whose claimOwnership function will be invoked.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the remote claimOwnership call succeeded and ownership was accepted.✨ AI |
Unpauses contract operations, allowing functions restricted by pause to be executed.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Boolean indicating whether the contract is unpaused after the call.✨ AI |
Mint tokens to the specified recipient address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | Recipient address that will receive the newly minted tokens.✨ AI |
| amount | uint256 | Amount of tokens to mint, expressed in the token's smallest unit.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | A boolean that indicates if the operation was successful. |
Burns a specified amount of tokens from the caller's balance.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 | Number of tokens to burn, in the token's smallest unit.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the burn operation succeeded; otherwise false.✨ AI |
Calls a managed contract to reclaim an ERC20 token and return it to the controller.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| ownedContract | address | Address of the contract to call reclaimToken on.✨ AI |
| _token | address | ERC20 token contract address to reclaim from the owned contract.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True when the external reclaim call succeeded, false otherwise.✨ AI |
Transfers contract ownership to the caller when they are the pending owner.✨ AI
Set the controller's factory address to a new address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _factory | address | New factory contract address to be recorded by the controller.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Boolean indicating whether the factory address was updated successfully.✨ AI |
Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the `onlyOwner` modifier anymore.
Pause the Controller to disable guarded functions until it is unpaused.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the contract was paused successfully, false otherwise.✨ AI |
Calls transferOwnership on a target contract to transfer its ownership to a new owner and returns whether the call succeeded.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| ownedContract | address | Address of the contract whose ownership should be transferred.✨ AI |
| newOwner | address | Address to set as the new owner of the owned contract.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Boolean indicating if the transfer call succeeded (true) or failed (false).✨ AI |
Transfer ownership of the Controller contract to a new owner address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address | Address that will become the new owner of the contract.✨ AI |
Set the members contract address to the provided address.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _members | address | Address of the new members contract to store.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the members address was updated successfully, otherwise false.✨ AI |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| members | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| factory | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| ownedContract | address | ||
| newOwner | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| contractToOwn | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| ownedContract | address | ||
| _token | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |