EngenCredits

Deployment Address

Basics

  • Phase-based Points System: Includes mechanisms to assign and calculate user points based on different phases of Engen.
  • Activity-Based User Minting: Users can mint credits based on their activities and points earned.

State functions

initialize() external initializer
mint(address to, uint256 amount) public onlyOwner
setTransfersEnabled(bool _transfersEnabled) public onlyOwner
setBurnsEnabled(bool _burnsEnabled) public onlyOwner
setPhase1Override(address[] calldata _wallets, uint256[] calldata _points) public onlyOwner
mintCredits() public

  1. 1.
    initialize
Initializes the EngenCredits contract.
function initialize() external initializer;
No parameters.
  1. 2.
    mint (only callable by admin)
Mints Engen tokens to a specified address.
function mint(address to, uint256 amount) public onlyOwner;
Parameter
Type
Explanation
to
address
The address to mint tokens for.
amount
uint256
The amount of tokens to mint.
  1. 3.
    setTransfersEnabled (only callable by admin)
Enables or disables transfers of Engen tokens.
function setTransfersEnabled(bool _transfersEnabled) public onlyOwner;
Parameter
Type
Explanation
_transfersEnabled
bool
true to enable transfers, false to disable.
  1. 4.
    setBurnsEnabled (only callable by admin)
Enables or disables burning of Engen tokens.
function setBurnsEnabled(bool _burnsEnabled) public onlyOwner;
Parameter
Type
Explanation
_burnsEnabled
bool
true to enable burning, false to disable.
  1. 5.
    setPhase1Override (only callable by admin)
Sets the phase 1 override points for specified wallets.
function setPhase1Override(address[] calldata _wallets, uint256[] calldata _points) public onlyOwner;
Parameter
Type
Explanation
_wallets
address[] calldata
Array of wallet addresses.
_points
uint256[] calldata
Corresponding points for each wallet.
  1. 6.
    mintCredits
Mints credits for the user based on their activity.
function mintCredits() public;
No parameters.

View functions

calculatePoints(address _wallet) public view returns (uint256)
  1. 1.
    calculatePoints
Calculates the points for a user based on their engagement in different phases of Engen.
function calculatePoints(address _wallet) public view returns (uint256);
Parameter
Type
Explanation
_wallet
address
The wallet address to check.
Last modified 1mo ago