Creator
Annotated source of the Creator.sol smart contract
Creator
Contents
Globals
Note this list contains both internal and external attributes
Var | Type |
---|---|
admin | address |
marketPlace | address |
Modifiers
authorized
Restricts msg.sender
as the only viable caller of a method
Declaration
Functions
create
Allows the owner to create new markets
Declaration
Modifiers:
Modifier |
---|
authorized |
Args:
Arg | Type | Description |
---|---|---|
| uint8 | Protocol associated with the new market |
| address | Underlying token associated with the new market |
| uint256 | Maturity timestamp of the new market |
| address | Compounding Token address associated with the new market |
| address | Address of the deployed swivel contract |
| string | Name of the new market zcToken |
| string | Symbol of the new market zcToken |
| uint8 | Decimals of the new market zcToken |
setAdmin
Sets the admin
Declaration
Modifiers:
Modifier |
---|
authorized |
Args:
Arg | Type | Description |
---|---|---|
| address | Address of a new admin |
setMarketPlace
We only allow this to be set once
there is no emit here as it's only done once post deploy by the deploying admin
Declaration
Modifiers:
Modifier |
---|
authorized |
Args:
Arg | Type | Description |
---|---|---|
| address | Address of the deployed marketPlace contract |
Events
SetAdmin
Emitted on a change of the admin
Last updated