Essence Finance
    • Introduction
  • Protocol
    • Peg Stabilty
    • Collateralization
    • Decentralization
  • TOKENOMICS
    • ZEN
    • Distribution
    • Stake
  • Protocol Controlled Value
    • Protocol Controlled Value (PCV)
    • PCV Management
    • PCV Deposits
  • Governance
    • Essence DAO
    • Governance Phases
    • Access Control
    • Roles
  • Smart Contracts
    • Contract Addresses
    • Audits
  • Development
    • Smart Contracts API
      • Chi
        • IChi
      • Minter
        • IPCVEquityMinter
        • PCVEquityMinter
        • RateLimitedMinter
      • Core
        • Core
        • ICore
        • IPermissions
        • IPermissionsRead
        • Permissions
        • ZenRoles
      • Dao
        • Governor
          • EssenceDAO
        • Timelock
          • EssenceDAOTimelock
          • OptimisticTimelock
          • Timelock
      • External
        • Decimal
        • WETH9
      • Libs
        • CoreRefPauseableLib
        • UintArrayOps
      • Oracle
        • ChainlinkOracleWrapper
        • CompositeOracle
        • ConstantOracle
        • ICollateralizationOracle
        • ICollateralizationOracleWrapper
      • Pcv
        • IPCVDeposit
        • IPCVDepositBalances
        • IPCVGuardian
        • IPCVSwapper
        • PCVDeposit
        • PCVGuardian
      • Peg
        • FixedPricePSM
        • IPegStabilityModule
        • IPriceBound
        • IPSMRouter
        • PegStabilityModule
        • PriceBoundPSM
        • PSMRouter
      • Refs
        • CoreRef
        • ICoreRef
        • IOracleRef
        • IUniRef
        • OracleRef
        • UniRef
      • Timelocks
        • ITimelockedDelegator
        • ITokenTimelock
        • LinearTimelockedDelegator
        • LinearTokenTimelock
        • QuadraticTimelockedDelegator
        • QuadraticTimelockedSubdelegator
        • QuadraticTokenTimelock
        • TimelockedDelegator
        • TokenTimelock
      • Utils
        • RateLimited
      • Zen
        • IZenMinter
        • Zen
        • ZenMinter
Powered by GitBook
On this page
  • Functions
  • init
  • setChi
  • setZen
  • allocateZen
  • _setChi
  • _setZen
  1. Development
  2. Smart Contracts API
  3. Core

Core

maintains roles, access control, chi, zen, genesisGroup, and the ZEN treasury

Functions

init

function init() external

setChi

function setChi(
    address token
) external

sets Chi address to a new address

Parameters

Name
Type
Description

token

address

new chi address

setZen

function setZen(
    address token
) external

sets Zen address to a new address

Parameters

Name
Type
Description

token

address

new zen address

allocateZen

function allocateZen(
    address to,
    uint256 amount
) external

sends ZEN tokens from treasury to an address

Parameters

Name
Type
Description

to

address

the address to send ZEN to

amount

uint256

the amount of ZEN to send

_setChi

function _setChi(
    address token
) internal

Parameters

Name
Type
Description

token

address

_setZen

function _setZen(
    address token
) internal

Parameters

Name
Type
Description

token

address

PreviousCoreNextICore

Last updated 1 year ago