Voken 2.0 主合约

这是 流量币 Voken —— 生态系统中的唯一通证主合约 ,更新并部署于 2019-08-22 17:59:43 UTC

logo_etherscan_verified logo_github logo_verified

在 Etherscan.io 查看:

新的字母符号 Voken2.0

用于在各种钱包软件和以太坊区块链浏览器中显示,比如 MetaMask, MyEtherWallet, imToken, etherscan.io 等。

特性和功能

基于 以太坊[EIP 20] ERC-20 Token 标准

包括:

  • function name() public view returns (string)
  • function symbol() public view returns (string)
  • function decimals() public view returns (uint8)
  • function totalSupply() public view returns (uint256)
  • function balanceOf(address account) public view returns (uint256)
  • function transfer(address recipient, uint256 amount) public returns (bool)
  • function transferFrom(address sender, address recipient, uint256 amount) public returns (bool)
  • function approve(address spender, uint256 value) public returns (bool)
  • function allowance(address owner, address spender) public view returns (uint256)
  • event Transfer(address indexed from, address indexed to, uint256 value)
  • event Approval(address indexed owner, address indexed spender, uint256 value)

With advanced functions for allowance:

  • function increaseAllowance(address spender, uint256 addedValue) public returns (bool)
  • function decreaseAllowance(address spender, uint256 subtractedValue) public returns (bool)

总限上限

  • function cap() public view returns (uint256)
支持灵活的 锁仓 规则

由外部合约灵活的定义条件,合约接口:

/**
 * @dev Interface of an allocation contract.
 */
interface IAllocation {
    function reservedOf(address account) external view returns (uint256);
}

功能和查询:

  • function reservedOf(address account) public view returns (uint256)
支持 销毁

支持销毁功能同时记录 Burn 事件,同时减少 总量上限

  • 转账 Voken2.0 到本合约地址

  • 转账到 Voken2.0 到 0 地址

  • Call functions:

    • function burn(uint256 amount) public returns (bool)
    • function burnFrom(address account, uint256 amount) public returns (bool)
支持 安全模式

Transfers from non-whitelisted addresses are restricted when the amount number of Voken2.0 holders is insufficient to form a healthy ecological foundation. That is a SAFE-MODE for Voken2.0.

功能和查询:

  • function safeMode() public view returns (bool)
支持 燃烧模式

燃烧模式 开启,每笔 Voken2.0 转账将有 1% 被 销毁

功能和查询:

  • function burningMode() public view returns (bool, uint16)
优化的 白名单规则

向白名单地址转账 1,001 Voken2.0 登记新的白名单,并且获得自动退回的 1 Voken2.0 作为成功信号。

功能和查询:

  • function whitelisted(address account) public view returns (bool)
  • function whitelistCounter() public view returns (uint256)
  • function whitelistingMode() public view returns (bool)
  • function whitelistReferee(address account) public view returns (address)
  • function whitelistReferrals(address account) public view returns (address[])
  • function whitelistReferralsCount(address account) public view returns (uint256)