EntangleSynth

Git Source

Inherits: ERC20, AccessControl

State Variables

sid

uint128 sid;

ADMIN_ROLE

bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE");

Functions

constructor

constructor(uint128 _sid, string memory name) ERC20("EntangleSynth", name);

mint

*Creates _amount SynthTokens and assigns them to _to, increasing the total supply. Requirements:

  • _to cannot be the zero address.*

function mint(address _to, uint256 _amount) external onlyRole(ADMIN_ROLE);

burn

*Destroys _amount tokens from _from, reducing the total supply. Requirements:

  • _from cannot be the zero address.

  • _from must have at least amount tokens.*

function burn(address _from, uint256 _amount) external onlyRole(ADMIN_ROLE);

Last updated