CELO Price: $0.937524 (-6.91%)
Gas: 5 GWei

Contract

0x7FF62f59e3e89EA34163EA1458EEBCc81177Cfb6

Overview

CELO Balance

Celo Chain LogoCelo Chain LogoCelo Chain Logo0 CELO

CELO Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Approve291632062024-12-06 12:44:572 days ago1733489097IN
0x7FF62f59...81177Cfb6
0 CELO0.000322097
Transfer289967232024-11-26 21:28:0712 days ago1732656487IN
0x7FF62f59...81177Cfb6
0 CELO0.0002481710
Transfer262274472024-06-19 14:46:54172 days ago1718808414IN
0x7FF62f59...81177Cfb6
0 CELO0.0002478110

Latest 1 internal transaction

Parent Transaction Hash Block From To
259015462024-05-31 18:06:53191 days ago1717178813  Contract Creation0 CELO
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MentoToken

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 10000 runs

Other Settings:
paris EvmVersion
File 1 of 8 : MentoToken.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity 0.8.18;

import { ERC20Burnable, ERC20 } from "openzeppelin-contracts-next/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import { Ownable } from "openzeppelin-contracts-next/contracts/access/Ownable.sol";
import { Pausable } from "openzeppelin-contracts-next/contracts/security/Pausable.sol";

/**
 * @title Mento Token
 * @author Mento Labs
 * @notice This contract represents the Mento Protocol Token which is a Burnable ERC20 token.
 */
contract MentoToken is Ownable, Pausable, ERC20Burnable {
  /// @notice The address of the locking contract that has the capability to transfer tokens
  /// even when the contract is paused.
  address public immutable locking;

  /// @notice The address of the emission contract that has the capability to emit new tokens
  /// and transfer even when the contract is paused.
  address public immutable emission;

  /// @notice The total amount of tokens that can be minted by the emission contract.
  uint256 public immutable emissionSupply;

  /// @notice The total amount of tokens that have been minted by the emission contract so far.
  uint256 public emittedAmount;

  // solhint-disable max-line-length
  /**
   * @dev Constructor for the MentoToken contract.
   * @notice It mints and allocates the initial token supply among several contracts.
   * @param allocationRecipients_ The addresses of the initial token recipients.
   * @param allocationAmounts_ The percentage of tokens to be allocated to each recipient.
   * @param emission_ The address of the emission contract where the rest of the supply will be emitted.
   * @param locking_ The address of the locking contract where the tokens will be locked.
   */
  // solhint-enable max-line-length
  constructor(
    address[] memory allocationRecipients_,
    uint256[] memory allocationAmounts_,
    address emission_,
    address locking_
  ) ERC20("Mento Token", "MENTO") Ownable() {
    require(emission_ != address(0), "MentoToken: emission is zero address");
    require(locking_ != address(0), "MentoToken: locking is zero address");
    require(
      allocationRecipients_.length == allocationAmounts_.length,
      "MentoToken: recipients and amounts length mismatch"
    );

    locking = locking_;
    emission = emission_;

    uint256 supply = 1_000_000_000 * 10**decimals();

    uint256 totalAllocated;
    for (uint256 i = 0; i < allocationRecipients_.length; i++) {
      require(allocationRecipients_[i] != address(0), "MentoToken: allocation recipient is zero address");

      if (allocationAmounts_[i] == 0) continue;

      totalAllocated += allocationAmounts_[i];
      _mint(allocationRecipients_[i], (supply * allocationAmounts_[i]) / 1000);
    }
    require(totalAllocated <= 1000, "MentoToken: total allocation exceeds 100%");
    emissionSupply = (supply * (1000 - totalAllocated)) / 1000;

    _pause();
  }

  /**
   * @notice Unpauses all token transfers.
   * @dev See {Pausable-_unpause}
   * Requirements: caller must be the owner
   */
  function unpause() public virtual onlyOwner {
    require(paused(), "MentoToken: token is not paused");
    _unpause();
  }

  /**
   * @dev Allows the emission contract to mint new tokens up to the emission supply limit.
   * @notice This function can only be called by the emission contract and
   * only if the total emitted amount hasn't exceeded the emission supply.
   * @param target Address to which the newly minted tokens will be sent.
   * @param amount Amount of tokens to be minted.
   */
  function mint(address target, uint256 amount) external {
    require(msg.sender == emission, "MentoToken: only emission contract");
    require(emittedAmount + amount <= emissionSupply, "MentoToken: emission supply exceeded");

    emittedAmount += amount;
    _mint(target, amount);
  }

  /*
   * @dev See {ERC20-_beforeTokenTransfer}
   * Requirements: the contract must not be paused OR transfer must be initiated by owner
   * @param from The account that is sending the tokens
   * @param to The account that should receive the tokens
   * @param amount Amount of tokens that should be transferred
   */
  function _beforeTokenTransfer(
    address from,
    address to,
    uint256 amount
  ) internal virtual override {
    super._beforeTokenTransfer(from, to, amount);

    require(to != address(this), "MentoToken: cannot transfer tokens to token contract");
    // Token transfers are only possible if the contract is not paused
    // OR if triggered by the owner of the contract
    // OR if triggered by the locking contract
    // OR if triggered by the emission contract
    require(
      !paused() || owner() == _msgSender() || locking == _msgSender() || emission == _msgSender(),
      "MentoToken: token transfer while paused"
    );
  }
}

File 2 of 8 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC20/extensions/ERC20Burnable.sol)

pragma solidity ^0.8.0;

import "../ERC20.sol";
import "../../../utils/Context.sol";

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        _spendAllowance(account, _msgSender(), amount);
        _burn(account, amount);
    }
}

File 3 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 8 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 5 of 8 : ERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/ERC20.sol)

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address to, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _transfer(owner, to, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on
     * `transferFrom`. This is semantically equivalent to an infinite approval.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * NOTE: Does not update the allowance if the current allowance
     * is the maximum `uint256`.
     *
     * Requirements:
     *
     * - `from` and `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     * - the caller must have allowance for ``from``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) public virtual override returns (bool) {
        address spender = _msgSender();
        _spendAllowance(from, spender, amount);
        _transfer(from, to, amount);
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        address owner = _msgSender();
        _approve(owner, spender, allowance(owner, spender) + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        address owner = _msgSender();
        uint256 currentAllowance = allowance(owner, spender);
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(owner, spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `from` to `to`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `from` must have a balance of at least `amount`.
     */
    function _transfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC20: transfer from the zero address");
        require(to != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(from, to, amount);

        uint256 fromBalance = _balances[from];
        require(fromBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[from] = fromBalance - amount;
            // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by
            // decrementing then incrementing.
            _balances[to] += amount;
        }

        emit Transfer(from, to, amount);

        _afterTokenTransfer(from, to, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        unchecked {
            // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above.
            _balances[account] += amount;
        }
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
            // Overflow not possible: amount <= accountBalance <= totalSupply.
            _totalSupply -= amount;
        }

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Updates `owner` s allowance for `spender` based on spent `amount`.
     *
     * Does not update the allowance amount in case of infinite allowance.
     * Revert if not enough allowance is available.
     *
     * Might emit an {Approval} event.
     */
    function _spendAllowance(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        uint256 currentAllowance = allowance(owner, spender);
        if (currentAllowance != type(uint256).max) {
            require(currentAllowance >= amount, "ERC20: insufficient allowance");
            unchecked {
                _approve(owner, spender, currentAllowance - amount);
            }
        }
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 6 of 8 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 7 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 8 of 8 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the symbol of the token.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

Settings
{
  "remappings": [
    "openzeppelin-solidity/=lib/openzeppelin-contracts/",
    "celo-foundry/=lib/celo-foundry/src/",
    "forge-std/=lib/celo-foundry/lib/forge-std/src/",
    "ds-test/=lib/celo-foundry/lib/forge-std/lib/ds-test/src/",
    "test/=test/",
    "contracts/=contracts/",
    "safe-contracts/=lib/safe-contracts/",
    "forge-std-next/=lib/forge-std-next/src/",
    "openzeppelin-contracts-next/=lib/openzeppelin-contracts-next/",
    "openzeppelin-contracts-upgradeable/=lib/openzeppelin-contracts-upgradeable/",
    "openzeppelin-contracts/=lib/openzeppelin-contracts/contracts/"
  ],
  "optimizer": {
    "enabled": true,
    "runs": 10000
  },
  "metadata": {
    "useLiteralContent": false,
    "bytecodeHash": "none",
    "appendCBOR": true
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "evmVersion": "paris",
  "viaIR": true,
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address[]","name":"allocationRecipients_","type":"address[]"},{"internalType":"uint256[]","name":"allocationAmounts_","type":"uint256[]"},{"internalType":"address","name":"emission_","type":"address"},{"internalType":"address","name":"locking_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"emission","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emissionSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emittedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"locking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

Contract Creation Code

60e06040523462000a2657620020ad803803806200001d8162000a66565b928339810160808282031262000a265781516001600160401b03811162000a265782019181601f8401121562000a2657825192620000656200005f8562000a8c565b62000a66565b9360208086838152019160051b8301019184831162000a2657602001905b82821062000a2b5750505060208101516001600160401b03811162000a265781019180601f8401121562000a26578251620000c26200005f8262000a8c565b9360208086848152019260051b82010192831162000a2657602001905b82821062000a1557505050620001066060620000fe6040840162000aa4565b920162000aa4565b6200011062000a46565b600b81526a26b2b73a37902a37b5b2b760a91b60208201526200013262000a46565b9060058252644d454e544f60d81b60208301526000543360018060a01b0382167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0600080a36001600160a81b0319163360ff60a01b1916176000558051906001600160401b038211620008e75760045490600182811c9216801562000a0a575b6020831014620008c65781601f84931162000998575b50602090601f83116001146200090957600092620008fd575b50508160011b916000199060031b1c1916176004555b8051906001600160401b038211620008e75760055490600182811c92168015620008dc575b6020831014620008c65781601f8493116200086d575b50602090601f8311600114620007de57600092620007d2575b50508160011b916000199060031b1c1916176005555b6001600160a01b0382161562000781576001600160a01b0381161562000730578351835103620006d05760805260a0526000805b835182101562000575576001600160a01b03620002b3838662000ad6565b5116156200051757620002c7828462000ad6565b51156200051057620002e790620002df838562000ad6565b519062000b01565b906001600160a01b03620002fc828662000ad6565b51166103e86200031862000311848762000ad6565b5162000ab9565b048115620004cb57308214620004605760005460ff8160a01c16159081156200044c575b50801562000437575b801562000422575b15620003cd577fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef602060009260036200038882825462000b01565b90558484526001825260408420818154019055604051908152a35b6000198114620003b7576001019062000295565b634e487b7160e01b600052601160045260246000fd5b60405162461bcd60e51b815260206004820152602760248201527f4d656e746f546f6b656e3a20746f6b656e207472616e73666572207768696c65604482015266081c185d5cd95960ca1b6064820152608490fd5b5060a0516001600160a01b031633146200034d565b506080516001600160a01b0316331462000345565b6001600160a01b031633149050386200033c565b60405162461bcd60e51b815260206004820152603460248201527f4d656e746f546f6b656e3a2063616e6e6f74207472616e7366657220746f6b6560448201527f6e7320746f20746f6b656e20636f6e74726163740000000000000000000000006064820152608490fd5b60405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606490fd5b90620003a3565b60405162461bcd60e51b815260206004820152603060248201527f4d656e746f546f6b656e3a20616c6c6f636174696f6e20726563697069656e7460448201526f206973207a65726f206164647265737360801b6064820152608490fd5b6103e89081811162000679578103818111620003b757620005969062000ab9565b0460c05260005460ff8160a01c16620006415760ff60a01b1916600160a01b176000556040513381527f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25890602090a160405161159d908162000b1082396080518181816106c5015281816108a30152818161103701526114f0015260a05181818161055a0152818161073f0152818161100b01526114c4015260c0518181816107760152610a6b0152f35b60405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606490fd5b60405162461bcd60e51b815260206004820152602960248201527f4d656e746f546f6b656e3a20746f74616c20616c6c6f636174696f6e2065786360448201526865656473203130302560b81b6064820152608490fd5b60405162461bcd60e51b815260206004820152603260248201527f4d656e746f546f6b656e3a20726563697069656e747320616e6420616d6f756e6044820152710e8e640d8cadccee8d040dad2e6dac2e8c6d60731b6064820152608490fd5b60405162461bcd60e51b815260206004820152602360248201527f4d656e746f546f6b656e3a206c6f636b696e67206973207a65726f206164647260448201526265737360e81b6064820152608490fd5b60405162461bcd60e51b8152602060048201526024808201527f4d656e746f546f6b656e3a20656d697373696f6e206973207a65726f206164646044820152637265737360e01b6064820152608490fd5b0151905038806200024b565b6005600090815293507f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db091905b601f198416851062000851576001945083601f1981161062000837575b505050811b0160055562000261565b015160001960f88460031b161c1916905538808062000828565b818101518355602094850194600190930192909101906200080b565b90915060056000526020600020601f840160051c81019160208510620008bb575b90601f859493920160051c01905b818110620008ab575062000232565b600081558493506001016200089c565b90915081906200088e565b634e487b7160e01b600052602260045260246000fd5b91607f16916200021c565b634e487b7160e01b600052604160045260246000fd5b015190503880620001e1565b6004600090815293507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b91905b601f19841685106200097c576001945083601f1981161062000962575b505050811b01600455620001f7565b015160001960f88460031b161c1916905538808062000953565b8181015183556020948501946001909301929091019062000936565b60046000529091507f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b601f840160051c81016020851062000a02575b90849392915b601f830160051c82018110620009f2575050620001c8565b60008155859450600101620009da565b5080620009d4565b91607f1691620001b2565b8151815260209182019101620000df565b600080fd5b6020809162000a3a8462000aa4565b81520191019062000083565b60408051919082016001600160401b03811183821017620008e757604052565b6040519190601f01601f191682016001600160401b03811183821017620008e757604052565b6001600160401b038111620008e75760051b60200190565b51906001600160a01b038216820362000a2657565b906b033b2e3c9fd0803ce80000009180830292830403620003b757565b805182101562000aeb5760209160051b010190565b634e487b7160e01b600052603260045260246000fd5b91908201809211620003b75756fe6080604081815260048036101561001557600080fd5b600092833560e01c908163023a7d7a14610d2e5750806306fdde0314610c49578063095ea7b314610c1f57806318160ddd14610c0057806323b872dd14610bc3578063313ce56714610ba75780633950935114610b4b5780633f4ba83a14610a8e5780633fecb08714610a5357806340c10f191461070757806342966c68146106e957806358ad5a8b146106985780635c975abb1461067357806370a082311461062f578063715018a6146105b157806379cc67901461057e578063827c049e1461052d5780638da5cb5b146104fa57806395d89b4114610379578063a457c2d7146102ac578063a9059cbb1461027b578063dd62ed3e146102215763f2fde38b1461012057600080fd5b3461021d57602060031936011261021d57610139610d92565b90610142610e19565b73ffffffffffffffffffffffffffffffffffffffff8092169283156101b45750508254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5050346102775780600319360112610277578060209261023f610d92565b610247610dba565b73ffffffffffffffffffffffffffffffffffffffff91821683526002865283832091168252845220549051908152f35b5080fd5b5050346102775780600319360112610277576020906102a561029b610d92565b6024359033610e7e565b5160018152f35b5082346103765782600319360112610376576102c6610d92565b918360243592338152600260205281812073ffffffffffffffffffffffffffffffffffffffff8616825260205220549082821061030d576020856102a585850387336111ab565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b5091903461027757816003193601126102775780519082600554600181811c908083169283156104f0575b60209384841081146104c45783885287959493929181156104875750600114610428575b50505003601f01601f191682019267ffffffffffffffff8411838510176103fc57508291826103f8925282610d4a565b0390f35b806041867f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b600588529193925086917f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db05b8284106104715750505090601f1992601f928201019181936103c8565b8054888501870152879450928501928101610454565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016848701525050151560051b830101905081601f601f196103c8565b60248960228c7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b91607f16916103a4565b50503461027757816003193601126102775773ffffffffffffffffffffffffffffffffffffffff60209254169051908152f35b5050346102775781600319360112610277576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b50503461027757600319360112610376576105ae61059a610d92565b602435906105a98233836112ec565b6113af565b80f35b83346103765780600319360112610376576105ca610e19565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505034610277576020600319360112610277578060209273ffffffffffffffffffffffffffffffffffffffff610663610d92565b1681526001845220549051908152f35b50503461027757816003193601126102775760ff6020925460a01c1690519015158152f35b5050346102775781600319360112610277576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000168152f35b838234610277576020600319360112610277576105ae9035336113af565b503461021d578160031936011261021d57610720610d92565b9160249182359273ffffffffffffffffffffffffffffffffffffffff807f000000000000000000000000000000000000000000000000000000000000000016958633036109eb576006546107748782610ddd565b7f00000000000000000000000000000000000000000000000000000000000000001061098357906107a6878493610ddd565b60065516958615610941573087146108d95787549160ff8360a01c16159283156108cd575b5082156108a1575b508115610897575b50156108305750506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926108158795600354610ddd565b6003558585526001835280852082815401905551908152a380f35b6027906020608494519362461bcd60e51b85528401528201527f4d656e746f546f6b656e3a20746f6b656e207472616e73666572207768696c6560448201527f20706175736564000000000000000000000000000000000000000000000000006064820152fd5b90503314386107db565b7f00000000000000000000000000000000000000000000000000000000000000001633149150386107d3565b811633149250386107cb565b608484603485602089519362461bcd60e51b85528401528201527f4d656e746f546f6b656e3a2063616e6e6f74207472616e7366657220746f6b6560448201527f6e7320746f20746f6b656e20636f6e74726163740000000000000000000000006064820152fd5b606484601f85602089519362461bcd60e51b85528401528201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b5050506020608493519262461bcd60e51b8452830152808201527f4d656e746f546f6b656e3a20656d697373696f6e20737570706c79206578636560448201527f65646564000000000000000000000000000000000000000000000000000000006064820152fd5b608484602285602089519362461bcd60e51b85528401528201527f4d656e746f546f6b656e3a206f6e6c7920656d697373696f6e20636f6e74726160448201527f63740000000000000000000000000000000000000000000000000000000000006064820152fd5b505034610277578160031936011261027757602090517f00000000000000000000000000000000000000000000000000000000000000008152f35b503461021d578260031936011261021d57610aa7610e19565b82549060ff8260a01c1615610b0857507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa917fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff60209216845551338152a180f35b606490602084519162461bcd60e51b8352820152601f60248201527f4d656e746f546f6b656e3a20746f6b656e206973206e6f7420706175736564006044820152fd5b5050346102775780600319360112610277576102a5602092610ba0610b6e610d92565b913381526002865284812073ffffffffffffffffffffffffffffffffffffffff84168252865284602435912054610ddd565b90336111ab565b5050346102775781600319360112610277576020905160128152f35b505034610277576060600319360112610277576020906102a5610be4610d92565b610bec610dba565b60443591610bfb8333836112ec565b610e7e565b5050346102775781600319360112610277576020906003549051908152f35b5050346102775780600319360112610277576020906102a5610c3f610d92565b60243590336111ab565b50919034610277578160031936011261027757805190828454600181811c90808316928315610d24575b60209384841081146104c45783885287959493929181156104875750600114610cc65750505003601f01601f191682019267ffffffffffffffff8411838510176103fc57508291826103f8925282610d4a565b8888529193925086917f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610d0e5750505090601f1992601f928201019181936103c8565b8054888501870152879450928501928101610cf1565b91607f1691610c73565b8490346102775781600319360112610277576020906006548152f35b60208082528251818301819052939260005b858110610d7e57505050601f19601f8460006040809697860101520116010190565b818101830151848201604001528201610d5c565b6004359073ffffffffffffffffffffffffffffffffffffffff82168203610db557565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff82168203610db557565b91908201809211610dea57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff600054163303610e3a57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b9173ffffffffffffffffffffffffffffffffffffffff8093169182156111415783169283156110d75730841461106d5760009081549060ff8260a01c1615918215611061575b508115611035575b8115611009575b5015610f9f578281526001602052604081205491808310610f3557604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95876020965260018652038282205586815220818154019055604051908152a3565b608460405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602760248201527f4d656e746f546f6b656e3a20746f6b656e207472616e73666572207768696c6560448201527f20706175736564000000000000000000000000000000000000000000000000006064820152fd5b7f0000000000000000000000000000000000000000000000000000000000000000163314905038610ed3565b7f0000000000000000000000000000000000000000000000000000000000000000811633149150610ecc565b81163314915038610ec4565b608460405162461bcd60e51b815260206004820152603460248201527f4d656e746f546f6b656e3a2063616e6e6f74207472616e7366657220746f6b6560448201527f6e7320746f20746f6b656e20636f6e74726163740000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff80911691821561128357169182156112195760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260028252604060002085600052825280604060002055604051908152a3565b608460405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80831660005260026020526040600020908216600052602052604060002054927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8403611350575b50505050565b80841061136b576113629303916111ab565b3880808061134a565b606460405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80921690811561152657301561106d5760009283549060ff8260a01c161591821561151a575b5081156114ee575b81156114c2575b5015610f9f578183526001602052604083205481811061145857817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92602092858752600184520360408620558060035403600355604051908152a3565b608460405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f00000000000000000000000000000000000000000000000000000000000000001633149050386113fa565b7f00000000000000000000000000000000000000000000000000000000000000008116331491506113f3565b811633149150386113eb565b608460405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fdfea164736f6c6343000812000a000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001600000000000000000000000005c789592e2611df1873b46d394c69f75fab99778000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000007d8e73deafdbafc98fdbe7974168cfa6d8b9ae0c000000000000000000000000890db8a597940165901372dd7db61c9f246e2147000000000000000000000000655133d8e90f8190ed5c1f0f3710f602800c0150000000000000000000000000a74ac93de1a209957e62391b01e09161277a9ffc0000000000000000000000003468d23a0b1ab3ab9a537813166a8f7ff194701400000000000000000000000087647780180b8f55980c7d3ffefe08a9b29e9ae1000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032

Deployed Bytecode

0x6080604081815260048036101561001557600080fd5b600092833560e01c908163023a7d7a14610d2e5750806306fdde0314610c49578063095ea7b314610c1f57806318160ddd14610c0057806323b872dd14610bc3578063313ce56714610ba75780633950935114610b4b5780633f4ba83a14610a8e5780633fecb08714610a5357806340c10f191461070757806342966c68146106e957806358ad5a8b146106985780635c975abb1461067357806370a082311461062f578063715018a6146105b157806379cc67901461057e578063827c049e1461052d5780638da5cb5b146104fa57806395d89b4114610379578063a457c2d7146102ac578063a9059cbb1461027b578063dd62ed3e146102215763f2fde38b1461012057600080fd5b3461021d57602060031936011261021d57610139610d92565b90610142610e19565b73ffffffffffffffffffffffffffffffffffffffff8092169283156101b45750508254827fffffffffffffffffffffffff00000000000000000000000000000000000000008216178455167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08380a380f35b906020608492519162461bcd60e51b8352820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152fd5b8280fd5b5050346102775780600319360112610277578060209261023f610d92565b610247610dba565b73ffffffffffffffffffffffffffffffffffffffff91821683526002865283832091168252845220549051908152f35b5080fd5b5050346102775780600319360112610277576020906102a561029b610d92565b6024359033610e7e565b5160018152f35b5082346103765782600319360112610376576102c6610d92565b918360243592338152600260205281812073ffffffffffffffffffffffffffffffffffffffff8616825260205220549082821061030d576020856102a585850387336111ab565b608490602086519162461bcd60e51b8352820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152fd5b80fd5b5091903461027757816003193601126102775780519082600554600181811c908083169283156104f0575b60209384841081146104c45783885287959493929181156104875750600114610428575b50505003601f01601f191682019267ffffffffffffffff8411838510176103fc57508291826103f8925282610d4a565b0390f35b806041867f4e487b71000000000000000000000000000000000000000000000000000000006024945252fd5b600588529193925086917f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db05b8284106104715750505090601f1992601f928201019181936103c8565b8054888501870152879450928501928101610454565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016848701525050151560051b830101905081601f601f196103c8565b60248960228c7f4e487b7100000000000000000000000000000000000000000000000000000000835252fd5b91607f16916103a4565b50503461027757816003193601126102775773ffffffffffffffffffffffffffffffffffffffff60209254169051908152f35b5050346102775781600319360112610277576020905173ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000005c789592e2611df1873b46d394c69f75fab99778168152f35b50503461027757600319360112610376576105ae61059a610d92565b602435906105a98233836112ec565b6113af565b80f35b83346103765780600319360112610376576105ca610e19565b8073ffffffffffffffffffffffffffffffffffffffff81547fffffffffffffffffffffffff000000000000000000000000000000000000000081168355167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e08280a380f35b505034610277576020600319360112610277578060209273ffffffffffffffffffffffffffffffffffffffff610663610d92565b1681526001845220549051908152f35b50503461027757816003193601126102775760ff6020925460a01c1690519015158152f35b5050346102775781600319360112610277576020905173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c168152f35b838234610277576020600319360112610277576105ae9035336113af565b503461021d578160031936011261021d57610720610d92565b9160249182359273ffffffffffffffffffffffffffffffffffffffff807f0000000000000000000000005c789592e2611df1873b46d394c69f75fab9977816958633036109eb576006546107748782610ddd565b7f0000000000000000000000000000000000000000014adf4b7320334b900000001061098357906107a6878493610ddd565b60065516958615610941573087146108d95787549160ff8360a01c16159283156108cd575b5082156108a1575b508115610897575b50156108305750506020827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef926108158795600354610ddd565b6003558585526001835280852082815401905551908152a380f35b6027906020608494519362461bcd60e51b85528401528201527f4d656e746f546f6b656e3a20746f6b656e207472616e73666572207768696c6560448201527f20706175736564000000000000000000000000000000000000000000000000006064820152fd5b90503314386107db565b7f000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c1633149150386107d3565b811633149250386107cb565b608484603485602089519362461bcd60e51b85528401528201527f4d656e746f546f6b656e3a2063616e6e6f74207472616e7366657220746f6b6560448201527f6e7320746f20746f6b656e20636f6e74726163740000000000000000000000006064820152fd5b606484601f85602089519362461bcd60e51b85528401528201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152fd5b5050506020608493519262461bcd60e51b8452830152808201527f4d656e746f546f6b656e3a20656d697373696f6e20737570706c79206578636560448201527f65646564000000000000000000000000000000000000000000000000000000006064820152fd5b608484602285602089519362461bcd60e51b85528401528201527f4d656e746f546f6b656e3a206f6e6c7920656d697373696f6e20636f6e74726160448201527f63740000000000000000000000000000000000000000000000000000000000006064820152fd5b505034610277578160031936011261027757602090517f0000000000000000000000000000000000000000014adf4b7320334b900000008152f35b503461021d578260031936011261021d57610aa7610e19565b82549060ff8260a01c1615610b0857507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa917fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff60209216845551338152a180f35b606490602084519162461bcd60e51b8352820152601f60248201527f4d656e746f546f6b656e3a20746f6b656e206973206e6f7420706175736564006044820152fd5b5050346102775780600319360112610277576102a5602092610ba0610b6e610d92565b913381526002865284812073ffffffffffffffffffffffffffffffffffffffff84168252865284602435912054610ddd565b90336111ab565b5050346102775781600319360112610277576020905160128152f35b505034610277576060600319360112610277576020906102a5610be4610d92565b610bec610dba565b60443591610bfb8333836112ec565b610e7e565b5050346102775781600319360112610277576020906003549051908152f35b5050346102775780600319360112610277576020906102a5610c3f610d92565b60243590336111ab565b50919034610277578160031936011261027757805190828454600181811c90808316928315610d24575b60209384841081146104c45783885287959493929181156104875750600114610cc65750505003601f01601f191682019267ffffffffffffffff8411838510176103fc57508291826103f8925282610d4a565b8888529193925086917f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b5b828410610d0e5750505090601f1992601f928201019181936103c8565b8054888501870152879450928501928101610cf1565b91607f1691610c73565b8490346102775781600319360112610277576020906006548152f35b60208082528251818301819052939260005b858110610d7e57505050601f19601f8460006040809697860101520116010190565b818101830151848201604001528201610d5c565b6004359073ffffffffffffffffffffffffffffffffffffffff82168203610db557565b600080fd5b6024359073ffffffffffffffffffffffffffffffffffffffff82168203610db557565b91908201809211610dea57565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b73ffffffffffffffffffffffffffffffffffffffff600054163303610e3a57565b606460405162461bcd60e51b815260206004820152602060248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152fd5b9173ffffffffffffffffffffffffffffffffffffffff8093169182156111415783169283156110d75730841461106d5760009081549060ff8260a01c1615918215611061575b508115611035575b8115611009575b5015610f9f578281526001602052604081205491808310610f3557604082827fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef95876020965260018652038282205586815220818154019055604051908152a3565b608460405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602760248201527f4d656e746f546f6b656e3a20746f6b656e207472616e73666572207768696c6560448201527f20706175736564000000000000000000000000000000000000000000000000006064820152fd5b7f0000000000000000000000005c789592e2611df1873b46d394c69f75fab99778163314905038610ed3565b7f000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c811633149150610ecc565b81163314915038610ec4565b608460405162461bcd60e51b815260206004820152603460248201527f4d656e746f546f6b656e3a2063616e6e6f74207472616e7366657220746f6b6560448201527f6e7320746f20746f6b656e20636f6e74726163740000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152fd5b73ffffffffffffffffffffffffffffffffffffffff80911691821561128357169182156112195760207f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925918360005260028252604060002085600052825280604060002055604051908152a3565b608460405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152fd5b608460405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80831660005260026020526040600020908216600052602052604060002054927fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8403611350575b50505050565b80841061136b576113629303916111ab565b3880808061134a565b606460405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152fd5b9073ffffffffffffffffffffffffffffffffffffffff80921690811561152657301561106d5760009283549060ff8260a01c161591821561151a575b5081156114ee575b81156114c2575b5015610f9f578183526001602052604083205481811061145857817fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92602092858752600184520360408620558060035403600355604051908152a3565b608460405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152fd5b7f0000000000000000000000005c789592e2611df1873b46d394c69f75fab997781633149050386113fa565b7f000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c8116331491506113f3565b811633149150386113eb565b608460405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152fdfea164736f6c6343000812000a

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000001600000000000000000000000005c789592e2611df1873b46d394c69f75fab99778000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000007d8e73deafdbafc98fdbe7974168cfa6d8b9ae0c000000000000000000000000890db8a597940165901372dd7db61c9f246e2147000000000000000000000000655133d8e90f8190ed5c1f0f3710f602800c0150000000000000000000000000a74ac93de1a209957e62391b01e09161277a9ffc0000000000000000000000003468d23a0b1ab3ab9a537813166a8f7ff194701400000000000000000000000087647780180b8f55980c7d3ffefe08a9b29e9ae1000000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032000000000000000000000000000000000000000000000000000000000000012c000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000320000000000000000000000000000000000000000000000000000000000000032

-----Decoded View---------------
Arg [0] : allocationRecipients_ (address[]): 0x7D8E73deafDBAfc98fDBe7974168cFA6d8B9AE0C,0x890DB8A597940165901372Dd7DB61C9f246e2147,0x655133d8E90F8190ed5c1F0f3710F602800C0150,0xA74Ac93de1A209957E62391B01E09161277a9ffC,0x3468D23A0B1aB3Ab9A537813166A8f7ff1947014,0x87647780180B8f55980C7D3fFeFe08a9B29e9aE1
Arg [1] : allocationAmounts_ (uint256[]): 50,50,300,100,50,50
Arg [2] : emission_ (address): 0x5C789592E2611df1873b46D394c69f75faB99778
Arg [3] : locking_ (address): 0x001Bb66636dCd149A1A2bA8C50E408BdDd80279C

-----Encoded View---------------
18 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [2] : 0000000000000000000000005c789592e2611df1873b46d394c69f75fab99778
Arg [3] : 000000000000000000000000001bb66636dcd149a1a2ba8c50e408bddd80279c
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [5] : 0000000000000000000000007d8e73deafdbafc98fdbe7974168cfa6d8b9ae0c
Arg [6] : 000000000000000000000000890db8a597940165901372dd7db61c9f246e2147
Arg [7] : 000000000000000000000000655133d8e90f8190ed5c1f0f3710f602800c0150
Arg [8] : 000000000000000000000000a74ac93de1a209957e62391b01e09161277a9ffc
Arg [9] : 0000000000000000000000003468d23a0b1ab3ab9a537813166a8f7ff1947014
Arg [10] : 00000000000000000000000087647780180b8f55980c7d3ffefe08a9b29e9ae1
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000006
Arg [12] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [13] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [14] : 000000000000000000000000000000000000000000000000000000000000012c
Arg [15] : 0000000000000000000000000000000000000000000000000000000000000064
Arg [16] : 0000000000000000000000000000000000000000000000000000000000000032
Arg [17] : 0000000000000000000000000000000000000000000000000000000000000032


Block Transaction Gas Used Reward
view all blocks validated

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.