EngenCredits

Deployment Address

Mainnet: 0xb2F2BF932105A192566b56643BCa738eec06b3f1

Code: EngenCredits.sol


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. initialize

Initializes the EngenCredits contract.

function initialize() external initializer;

No parameters.

  1. mint (only callable by admin)

Mints Engen tokens to a specified address.

function mint(address to, uint256 amount) public onlyOwner;
ParameterTypeExplanation

to

address

The address to mint tokens for.

amount

uint256

The amount of tokens to mint.

  1. setTransfersEnabled (only callable by admin)

Enables or disables transfers of Engen tokens.

function setTransfersEnabled(bool _transfersEnabled) public onlyOwner;
ParameterTypeExplanation

_transfersEnabled

bool

true to enable transfers, false to disable.

  1. setBurnsEnabled (only callable by admin)

Enables or disables burning of Engen tokens.

function setBurnsEnabled(bool _burnsEnabled) public onlyOwner;
ParameterTypeExplanation

_burnsEnabled

bool

true to enable burning, false to disable.

  1. setPhase1Override (only callable by admin)

Sets the phase 1 override points for specified wallets.

function setPhase1Override(address[] calldata _wallets, uint256[] calldata _points) public onlyOwner;
ParameterTypeExplanation

_wallets

address[] calldata

Array of wallet addresses.

_points

uint256[] calldata

Corresponding points for each wallet.

  1. 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. calculatePoints

Calculates the points for a user based on their engagement in different phases of Engen.

function calculatePoints(address _wallet) public view returns (uint256);
ParameterTypeExplanation

_wallet

address

The wallet address to check.

Last updated