-
Notifications
You must be signed in to change notification settings - Fork 7
StablecoinBase
senamakel edited this page Jul 26, 2024
·
1 revision
bytes32 MANAGER_ROLERole for minting/burning ZAI
constructor(string name, string symbol, address _owner) internalInitializes the stablecoin
function grantManagerRole(address _account) externalGrants the manager role to an account
Can only be called by governance
| Name | Type | Description |
|---|---|---|
| _account | address | The account to grant the role to |
function revokeManagerRole(address _account) externalRevokes the manager role to an account
Can only be called by governance
| Name | Type | Description |
|---|---|---|
| _account | address | The account to revoke the role from |
function isManager(address _account) external view returns (bool what)Checks if an address is an approved manager
| Name | Type | Description |
|---|---|---|
| _account | address | The address to check |
| Name | Type | Description |
|---|---|---|
| what | bool | True iff the address is a manager |
function mint(address _account, uint256 _amount) externalUsed to mint ZAI
This is only callable by verified managers approved by governance
| Name | Type | Description |
|---|---|---|
| _account | address | The address to mint to |
| _amount | uint256 | The amount to mint |
function burn(address _account, uint256 _amount) externalUsed to burn ZAI
This is only callable by verified managers approved by governance
| Name | Type | Description |
|---|---|---|
| _account | address | The address to burn from |
| _amount | uint256 | The amount to burn |