Skip to content

StablecoinBase

senamakel edited this page Jul 26, 2024 · 1 revision

Solidity API

StablecoinBase

MANAGER_ROLE

bytes32 MANAGER_ROLE

Role for minting/burning ZAI

constructor

constructor(string name, string symbol, address _owner) internal

Initializes the stablecoin

grantManagerRole

function grantManagerRole(address _account) external

Grants the manager role to an account

Can only be called by governance

Parameters

Name Type Description
_account address The account to grant the role to

revokeManagerRole

function revokeManagerRole(address _account) external

Revokes the manager role to an account

Can only be called by governance

Parameters

Name Type Description
_account address The account to revoke the role from

isManager

function isManager(address _account) external view returns (bool what)

Checks if an address is an approved manager

Parameters

Name Type Description
_account address The address to check

Return Values

Name Type Description
what bool True iff the address is a manager

mint

function mint(address _account, uint256 _amount) external

Used to mint ZAI

This is only callable by verified managers approved by governance

Parameters

Name Type Description
_account address The address to mint to
_amount uint256 The amount to mint

burn

function burn(address _account, uint256 _amount) external

Used to burn ZAI

This is only callable by verified managers approved by governance

Parameters

Name Type Description
_account address The address to burn from
_amount uint256 The amount to burn

Clone this wiki locally