ETH Price: $1,700.05 (+8.43%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x7d7143b2529d35f65a814cbc93f72f6ad3c0a88e2ab10da26a060e2aa2f06b04 Unlock BBK(pending)2025-04-20 1:36:022 days ago1745112962IN
0xE043dd0C...40FBB5513
0 ETH(Pending)(Pending)
Unlock BBK173562242023-05-28 8:06:11695 days ago1685261171IN
0xE043dd0C...40FBB5513
0 ETH0.0024161926.07872421
Unlock BBK164721332023-01-23 21:16:23819 days ago1674508583IN
0xE043dd0C...40FBB5513
0 ETH0.0013883419.0837896
Unlock BBK163479702023-01-06 13:13:47837 days ago1673010827IN
0xE043dd0C...40FBB5513
0 ETH0.0013353417.21909236
Unlock BBK162976072022-12-30 12:32:35844 days ago1672403555IN
0xE043dd0C...40FBB5513
0 ETH0.0010972915.08311348
Unlock BBK162882282022-12-29 5:07:59845 days ago1672290479IN
0xE043dd0C...40FBB5513
0 ETH0.0011667215.44314003
Unlock BBK162715082022-12-26 21:06:59847 days ago1672088819IN
0xE043dd0C...40FBB5513
0 ETH0.0017361516.23337266
Unlock BBK162640722022-12-25 20:13:11848 days ago1671999191IN
0xE043dd0C...40FBB5513
0 ETH0.001445713.17267189
Unlock BBK162329352022-12-21 11:59:59853 days ago1671623999IN
0xE043dd0C...40FBB5513
0 ETH0.0009346913.91947512
Unlock BBK162286302022-12-20 21:35:47853 days ago1671572147IN
0xE043dd0C...40FBB5513
0 ETH0.0012659316.75618822
Unlock BBK154263962022-08-28 7:07:40968 days ago1661670460IN
0xE043dd0C...40FBB5513
0 ETH0.000784497.14883607
Unlock BBK151692282022-07-18 22:17:001008 days ago1658182620IN
0xE043dd0C...40FBB5513
0 ETH0.0028549926.69471179
Lock BBK151141642022-07-10 9:35:331017 days ago1657445733IN
0xE043dd0C...40FBB5513
0 ETH0.000532757.39155307
Unlock BBK149951662022-06-20 6:46:401037 days ago1655707600IN
0xE043dd0C...40FBB5513
0 ETH0.0021572920.17105825
Lock BBK149904322022-06-19 10:59:141038 days ago1655636354IN
0xE043dd0C...40FBB5513
0 ETH0.0020838724.71592054
Lock BBK147877512022-05-16 18:04:281072 days ago1652724268IN
0xE043dd0C...40FBB5513
0 ETH0.0034738739.87232842
Unlock BBK147876762022-05-16 17:46:171072 days ago1652723177IN
0xE043dd0C...40FBB5513
0 ETH0.0031205434.73064768
Unlock BBK147799272022-05-15 12:19:551073 days ago1652617195IN
0xE043dd0C...40FBB5513
0 ETH0.0017737816.16377474
Unlock BBK147786612022-05-15 7:36:221073 days ago1652600182IN
0xE043dd0C...40FBB5513
0 ETH0.0016494817.80341081
Unlock BBK147786272022-05-15 7:31:051073 days ago1652599865IN
0xE043dd0C...40FBB5513
0 ETH0.0025825323.5310716
Unlock BBK147283372022-05-07 7:00:371081 days ago1651906837IN
0xE043dd0C...40FBB5513
0 ETH0.0019315925.56705829
Unlock BBK147104312022-05-04 10:35:441084 days ago1651660544IN
0xE043dd0C...40FBB5513
0 ETH0.0028156438.7030101
Unlock BBK146923222022-05-01 13:50:051087 days ago1651413005IN
0xE043dd0C...40FBB5513
0 ETH0.0080358773.21981692
Unlock BBK145579072022-04-10 12:16:581108 days ago1649593018IN
0xE043dd0C...40FBB5513
0 ETH0.0019842127.27893495
Lock BBK143585962022-03-10 10:33:371139 days ago1646908417IN
0xE043dd0C...40FBB5513
0 ETH0.0020648318.00577452
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
AccessToken

Compiler Version
v0.4.24+commit.e67f0147

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2018-10-16
*/

pragma solidity 0.4.24;

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol

/**
 * @title ERC20Basic
 * @dev Simpler version of ERC20 interface
 * See https://github.com/ethereum/EIPs/issues/179
 */
contract ERC20Basic {
  function totalSupply() public view returns (uint256);
  function balanceOf(address who) public view returns (uint256);
  function transfer(address to, uint256 value) public returns (bool);
  event Transfer(address indexed from, address indexed to, uint256 value);
}

// File: openzeppelin-solidity/contracts/math/SafeMath.sol

/**
 * @title SafeMath
 * @dev Math operations with safety checks that throw on error
 */
library SafeMath {

  /**
  * @dev Multiplies two numbers, throws on overflow.
  */
  function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
    // Gas optimization: this is cheaper than asserting 'a' not being zero, but the
    // benefit is lost if 'b' is also tested.
    // See: https://github.com/OpenZeppelin/openzeppelin-solidity/pull/522
    if (a == 0) {
      return 0;
    }

    c = a * b;
    assert(c / a == b);
    return c;
  }

  /**
  * @dev Integer division of two numbers, truncating the quotient.
  */
  function div(uint256 a, uint256 b) internal pure returns (uint256) {
    // assert(b > 0); // Solidity automatically throws when dividing by 0
    // uint256 c = a / b;
    // assert(a == b * c + a % b); // There is no case in which this doesn't hold
    return a / b;
  }

  /**
  * @dev Subtracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
  */
  function sub(uint256 a, uint256 b) internal pure returns (uint256) {
    assert(b <= a);
    return a - b;
  }

  /**
  * @dev Adds two numbers, throws on overflow.
  */
  function add(uint256 a, uint256 b) internal pure returns (uint256 c) {
    c = a + b;
    assert(c >= a);
    return c;
  }
}

// File: openzeppelin-solidity/contracts/token/ERC20/BasicToken.sol

/**
 * @title Basic token
 * @dev Basic version of StandardToken, with no allowances.
 */
contract BasicToken is ERC20Basic {
  using SafeMath for uint256;

  mapping(address => uint256) balances;

  uint256 totalSupply_;

  /**
  * @dev Total number of tokens in existence
  */
  function totalSupply() public view returns (uint256) {
    return totalSupply_;
  }

  /**
  * @dev Transfer token for a specified address
  * @param _to The address to transfer to.
  * @param _value The amount to be transferred.
  */
  function transfer(address _to, uint256 _value) public returns (bool) {
    require(_to != address(0));
    require(_value <= balances[msg.sender]);

    balances[msg.sender] = balances[msg.sender].sub(_value);
    balances[_to] = balances[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
  * @dev Gets the balance of the specified address.
  * @param _owner The address to query the the balance of.
  * @return An uint256 representing the amount owned by the passed address.
  */
  function balanceOf(address _owner) public view returns (uint256) {
    return balances[_owner];
  }

}

// File: openzeppelin-solidity/contracts/token/ERC20/ERC20.sol

/**
 * @title ERC20 interface
 * @dev see https://github.com/ethereum/EIPs/issues/20
 */
contract ERC20 is ERC20Basic {
  function allowance(address owner, address spender)
    public view returns (uint256);

  function transferFrom(address from, address to, uint256 value)
    public returns (bool);

  function approve(address spender, uint256 value) public returns (bool);
  event Approval(
    address indexed owner,
    address indexed spender,
    uint256 value
  );
}

// File: openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol

/**
 * @title Standard ERC20 token
 *
 * @dev Implementation of the basic standard token.
 * https://github.com/ethereum/EIPs/issues/20
 * Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
 */
contract StandardToken is ERC20, BasicToken {

  mapping (address => mapping (address => uint256)) internal allowed;


  /**
   * @dev Transfer tokens from one address to another
   * @param _from address The address which you want to send tokens from
   * @param _to address The address which you want to transfer to
   * @param _value uint256 the amount of tokens to be transferred
   */
  function transferFrom(
    address _from,
    address _to,
    uint256 _value
  )
    public
    returns (bool)
  {
    require(_to != address(0));
    require(_value <= balances[_from]);
    require(_value <= allowed[_from][msg.sender]);

    balances[_from] = balances[_from].sub(_value);
    balances[_to] = balances[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**
   * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
   * 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
   * @param _spender The address which will spend the funds.
   * @param _value The amount of tokens to be spent.
   */
  function approve(address _spender, uint256 _value) public returns (bool) {
    allowed[msg.sender][_spender] = _value;
    emit Approval(msg.sender, _spender, _value);
    return true;
  }

  /**
   * @dev Function to check the amount of tokens that an owner allowed to a spender.
   * @param _owner address The address which owns the funds.
   * @param _spender address The address which will spend the funds.
   * @return A uint256 specifying the amount of tokens still available for the spender.
   */
  function allowance(
    address _owner,
    address _spender
   )
    public
    view
    returns (uint256)
  {
    return allowed[_owner][_spender];
  }

  /**
   * @dev Increase the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed[_spender] == 0. To increment
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _addedValue The amount of tokens to increase the allowance by.
   */
  function increaseApproval(
    address _spender,
    uint256 _addedValue
  )
    public
    returns (bool)
  {
    allowed[msg.sender][_spender] = (
      allowed[msg.sender][_spender].add(_addedValue));
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

  /**
   * @dev Decrease the amount of tokens that an owner allowed to a spender.
   * approve should be called when allowed[_spender] == 0. To decrement
   * allowed value is better to use this function to avoid 2 calls (and wait until
   * the first transaction is mined)
   * From MonolithDAO Token.sol
   * @param _spender The address which will spend the funds.
   * @param _subtractedValue The amount of tokens to decrease the allowance by.
   */
  function decreaseApproval(
    address _spender,
    uint256 _subtractedValue
  )
    public
    returns (bool)
  {
    uint256 oldValue = allowed[msg.sender][_spender];
    if (_subtractedValue > oldValue) {
      allowed[msg.sender][_spender] = 0;
    } else {
      allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
    }
    emit Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
    return true;
  }

}

// File: openzeppelin-solidity/contracts/ownership/Ownable.sol

/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
  address public owner;


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


  /**
   * @dev The Ownable constructor sets the original `owner` of the contract to the sender
   * account.
   */
  constructor() public {
    owner = msg.sender;
  }

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

  /**
   * @dev Allows the current owner to relinquish control of the contract.
   * @notice Renouncing to ownership will leave the contract without an owner.
   * It will not be possible to call the functions with the `onlyOwner`
   * modifier anymore.
   */
  function renounceOwnership() public onlyOwner {
    emit OwnershipRenounced(owner);
    owner = address(0);
  }

  /**
   * @dev Allows the current owner to transfer control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function transferOwnership(address _newOwner) public onlyOwner {
    _transferOwnership(_newOwner);
  }

  /**
   * @dev Transfers control of the contract to a newOwner.
   * @param _newOwner The address to transfer ownership to.
   */
  function _transferOwnership(address _newOwner) internal {
    require(_newOwner != address(0));
    emit OwnershipTransferred(owner, _newOwner);
    owner = _newOwner;
  }
}

// File: openzeppelin-solidity/contracts/lifecycle/Pausable.sol

/**
 * @title Pausable
 * @dev Base contract which allows children to implement an emergency stop mechanism.
 */
contract Pausable is Ownable {
  event Pause();
  event Unpause();

  bool public paused = false;


  /**
   * @dev Modifier to make a function callable only when the contract is not paused.
   */
  modifier whenNotPaused() {
    require(!paused);
    _;
  }

  /**
   * @dev Modifier to make a function callable only when the contract is paused.
   */
  modifier whenPaused() {
    require(paused);
    _;
  }

  /**
   * @dev called by the owner to pause, triggers stopped state
   */
  function pause() onlyOwner whenNotPaused public {
    paused = true;
    emit Pause();
  }

  /**
   * @dev called by the owner to unpause, returns to normal state
   */
  function unpause() onlyOwner whenPaused public {
    paused = false;
    emit Unpause();
  }
}

// File: openzeppelin-solidity/contracts/token/ERC20/PausableToken.sol

/**
 * @title Pausable token
 * @dev StandardToken modified with pausable transfers.
 **/
contract PausableToken is StandardToken, Pausable {

  function transfer(
    address _to,
    uint256 _value
  )
    public
    whenNotPaused
    returns (bool)
  {
    return super.transfer(_to, _value);
  }

  function transferFrom(
    address _from,
    address _to,
    uint256 _value
  )
    public
    whenNotPaused
    returns (bool)
  {
    return super.transferFrom(_from, _to, _value);
  }

  function approve(
    address _spender,
    uint256 _value
  )
    public
    whenNotPaused
    returns (bool)
  {
    return super.approve(_spender, _value);
  }

  function increaseApproval(
    address _spender,
    uint _addedValue
  )
    public
    whenNotPaused
    returns (bool success)
  {
    return super.increaseApproval(_spender, _addedValue);
  }

  function decreaseApproval(
    address _spender,
    uint _subtractedValue
  )
    public
    whenNotPaused
    returns (bool success)
  {
    return super.decreaseApproval(_spender, _subtractedValue);
  }
}

// File: contracts/interfaces/IRegistry.sol

// limited ContractRegistry definition
interface IRegistry {
  function owner()
    external
    returns(address);

  function updateContractAddress(
    string _name,
    address _address
  )
    external
    returns (address);

  function getContractAddress(
    string _name
  )
    external
    view
    returns (address);
}

// File: contracts/interfaces/IBrickblockToken.sol

// limited BrickblockToken definition
interface IBrickblockToken {
  function transfer(
    address _to,
    uint256 _value
  )
    external
    returns (bool);

  function transferFrom(
    address from,
    address to,
    uint256 value
  )
    external
    returns (bool);

  function balanceOf(
    address _address
  )
    external
    view
    returns (uint256);

  function approve(
    address _spender,
    uint256 _value
  )
    external
    returns (bool);
}

// File: contracts/AccessToken.sol

/// @title The utility token used for paying fees in the Brickblock ecosystem

/** @dev Explanation of terms and patterns:
    General:
      * Units of account: All per-token balances are stored in wei (1e18), for the greatest possible accuracy
      * ERC20 "balances":
        * "balances" per default is not updated unless a transfer/transferFrom happens
        * That's why it's set to "internal" because we can't guarantee its accuracy

    Current Lock Period Balance Sheet:
      * The balance sheet for tracking ACT balances for the _current_ lock period is 'mintedActFromCurrentLockPeriodPerUser'
      * Formula:
        * "totalLockedBBK * (totalMintedActPerLockedBbkToken - mintedActPerUser) / 1e18"
      * The period in which a BBK token has been locked uninterruptedly
      * For example, if a token has been locked for 30 days, then unlocked for 13 days, then locked again
        for 5 days, the current lock period would be 5 days
      * When a BBK is locked or unlocked, the ACT balance for the respective BBK holder
        is transferred to a separate balance sheet, called 'mintedActFromPastLockPeriodsPerUser'
        * Upon migrating this balance to 'mintedActFromPastLockPeriodsPerUser', this balance sheet is essentially
          zeroed out by setting 'mintedActPerUser' to 'totalMintedActPerLockedBbkToken'
        * ie. "42 totalLockedBBK * (100 totalMintedActPerLockedBbkToken - 100 mintedActPerUser) === 0"
      * All newly minted ACT per user are tracked through this until an unlock event occurs

    Past Lock Periods Balance Sheet:
      * The balance sheet for tracking ACT balances for the _past_ lock periods is 'mintedActFromPastLockPeriodsPerUser'
      * Formula:
        * The sum of all minted ACT from all past lock periods
      * All periods in which a BBK token has been locked _before_ the current lock period
      * For example, if a token has been locked for 10 days, then unlocked for 13 days, then locked again for 5 days,
        then unlocked for 7 days, then locked again for 30 days, the past lock periods would add up to 15 days
      * So essentially we're summing all locked periods that happened _before_ the current lock period
      * Needed to track ACT balance per user after a lock or unlock event occurred

    Transfers Balance Sheet:
      * The balance sheet for tracking balance changes caused by transfer() and transferFrom()
      * Needed to accurately track balanceOf after transfers
      * Formula:
        * "receivedAct[address] - spentAct[address]"
      * receivedAct is incremented after an address receives ACT via a transfer() or transferFrom()
        * increments balanceOf
      * spentAct is incremented after an address spends ACT via a transfer() or transferFrom()
        * decrements balanceOf

    All 3 Above Balance Sheets Combined:
      * When combining the Current Lock Period Balance, the Past Lock Periods Balance and the Transfers Balance:
        * We should get the correct total balanceOf for a given address
        * mintedActFromCurrentLockPeriodPerUser[addr]  // Current Lock Period Balance Sheet
          + mintedActFromPastLockPeriodsPerUser[addr]  // Past Lock Periods Balance Sheet
          + receivedAct[addr] - spentAct[addr]     // Transfers Balance Sheet
*/

contract AccessToken is PausableToken {
  uint8 public constant version = 1;

  // Instance of registry contract to get contract addresses
  IRegistry internal registry;
  string public constant name = "AccessToken";
  string public constant symbol = "ACT";
  uint8 public constant decimals = 18;

  // Total amount of minted ACT that a single locked BBK token is entitled to
  uint256 internal totalMintedActPerLockedBbkToken;

  // Total amount of BBK that is currently locked into the ACT contract
  uint256 public totalLockedBBK;

  // Amount of locked BBK per user
  mapping(address => uint256) internal lockedBbkPerUser;

  /*
   * Total amount of minted ACT per user
   * Used to decrement totalMintedActPerLockedBbkToken by amounts that have already been moved to mintedActFromPastLockPeriodsPerUser
   */
  mapping(address => uint256) internal mintedActPerUser;

  // Track minted ACT tokens per user for the current BBK lock period
  mapping(address => uint256) internal mintedActFromCurrentLockPeriodPerUser;

  // Track minted ACT tokens per user for past BBK lock periods
  mapping(address => uint256) internal mintedActFromPastLockPeriodsPerUser;

  // ERC20 override to keep balances private and use balanceOf instead
  mapping(address => uint256) internal balances;

  // Track received ACT via transfer or transferFrom in order to calculate the correct balanceOf
  mapping(address => uint256) public receivedAct;

  // Track spent ACT via transfer or transferFrom in order to calculate the correct balanceOf
  mapping(address => uint256) public spentAct;


  event Mint(uint256 amount);
  event Burn(address indexed burner, uint256 value);
  event BbkLocked(
    address indexed locker,
    uint256 lockedAmount,
    uint256 totalLockedAmount
  );
  event BbkUnlocked(
    address indexed locker,
    uint256 unlockedAmount,
    uint256 totalLockedAmount
  );

  modifier onlyContract(string _contractName)
  {
    require(
      msg.sender == registry.getContractAddress(_contractName)
    );
    _;
  }

  constructor (
    address _registryAddress
  )
    public
  {
    require(_registryAddress != address(0));
    registry = IRegistry(_registryAddress);
  }

  /// @notice Check an address for amount of currently locked BBK
  /// works similar to basic ERC20 balanceOf
  function lockedBbkOf(
    address _address
  )
    external
    view
    returns (uint256)
  {
    return lockedBbkPerUser[_address];
  }

  /** @notice Transfers BBK from an account owning BBK to this contract.
    1. Uses settleCurrentLockPeriod to transfer funds from the "Current Lock Period"
       balance sheet to the "Past Lock Periods" balance sheet.
    2. Keeps a record of BBK transfers via events
    @param _amount BBK token amount to lock
  */
  function lockBBK(
    uint256 _amount
  )
    external
    returns (bool)
  {
    require(_amount > 0);
    IBrickblockToken _bbk = IBrickblockToken(
      registry.getContractAddress("BrickblockToken")
    );

    require(settleCurrentLockPeriod(msg.sender));
    lockedBbkPerUser[msg.sender] = lockedBbkPerUser[msg.sender].add(_amount);
    totalLockedBBK = totalLockedBBK.add(_amount);
    require(_bbk.transferFrom(msg.sender, this, _amount));
    emit BbkLocked(msg.sender, _amount, totalLockedBBK);
    return true;
  }

  /** @notice Transfers BBK from this contract to an account
    1. Uses settleCurrentLockPeriod to transfer funds from the "Current Lock Period"
       balance sheet to the "Past Lock Periods" balance sheet.
    2. Keeps a record of BBK transfers via events
    @param _amount BBK token amount to unlock
  */
  function unlockBBK(
    uint256 _amount
  )
    external
    returns (bool)
  {
    require(_amount > 0);
    IBrickblockToken _bbk = IBrickblockToken(
      registry.getContractAddress("BrickblockToken")
    );
    require(_amount <= lockedBbkPerUser[msg.sender]);
    require(settleCurrentLockPeriod(msg.sender));
    lockedBbkPerUser[msg.sender] = lockedBbkPerUser[msg.sender].sub(_amount);
    totalLockedBBK = totalLockedBBK.sub(_amount);
    require(_bbk.transfer(msg.sender, _amount));
    emit BbkUnlocked(msg.sender, _amount, totalLockedBBK);
    return true;
  }

  /**
    @notice Distribute ACT tokens to all BBK token holders, that have currently locked their BBK tokens into this contract.
    Adds the tiny delta, caused by integer division remainders, to the owner's mintedActFromPastLockPeriodsPerUser balance.
    @param _amount Amount of fee to be distributed to ACT holders
    @dev Accepts calls only from our `FeeManager` contract
  */
  function distribute(
    uint256 _amount
  )
    external
    onlyContract("FeeManager")
    returns (bool)
  {
    totalMintedActPerLockedBbkToken = totalMintedActPerLockedBbkToken
      .add(
        _amount
          .mul(1e18)
          .div(totalLockedBBK)
      );

    uint256 _delta = (_amount.mul(1e18) % totalLockedBBK).div(1e18);
    mintedActFromPastLockPeriodsPerUser[owner] = mintedActFromPastLockPeriodsPerUser[owner].add(_delta);
    totalSupply_ = totalSupply_.add(_amount);
    emit Mint(_amount);
    return true;
  }

  /**
    @notice Calculates minted ACT from "Current Lock Period" for a given address
    @param _address ACT holder address
   */
  function getMintedActFromCurrentLockPeriod(
    address _address
  )
    private
    view
    returns (uint256)
  {
    return lockedBbkPerUser[_address]
      .mul(totalMintedActPerLockedBbkToken.sub(mintedActPerUser[_address]))
      .div(1e18);
  }

  /**
    @notice Transfers "Current Lock Period" balance sheet to "Past Lock Periods" balance sheet.
    Ensures that BBK transfers won't affect accrued ACT balances.
   */
  function settleCurrentLockPeriod(
    address _address
  )
    private
    returns (bool)
  {
    mintedActFromCurrentLockPeriodPerUser[_address] = getMintedActFromCurrentLockPeriod(_address);
    mintedActFromPastLockPeriodsPerUser[_address] = mintedActFromPastLockPeriodsPerUser[_address]
      .add(mintedActFromCurrentLockPeriodPerUser[_address]);
    mintedActPerUser[_address] = totalMintedActPerLockedBbkToken;

    return true;
  }

  /************************
  * Start ERC20 overrides *
  ************************/

  /** @notice Combines all balance sheets to calculate the correct balance (see explanation on top)
    @param _address Sender address
    @return uint256
  */
  function balanceOf(
    address _address
  )
    public
    view
    returns (uint256)
  {
    mintedActFromCurrentLockPeriodPerUser[_address] = getMintedActFromCurrentLockPeriod(_address);

    return totalMintedActPerLockedBbkToken == 0
      ? 0
      : mintedActFromCurrentLockPeriodPerUser[_address]
      .add(mintedActFromPastLockPeriodsPerUser[_address])
      .add(receivedAct[_address])
      .sub(spentAct[_address]);
  }

  /**
    @notice Same as the default ERC20 transfer() with two differences:
    1. Uses "balanceOf(address)" rather than "balances[address]" to check the balance of msg.sender
       ("balances" is inaccurate, see above).
    2. Updates the Transfers Balance Sheet.

    @param _to Receiver address
    @param _value Amount
    @return bool
  */
  function transfer(
    address _to,
    uint256 _value
  )
    public
    whenNotPaused
    returns (bool)
  {
    require(_to != address(0));
    require(_value <= balanceOf(msg.sender));
    spentAct[msg.sender] = spentAct[msg.sender].add(_value);
    receivedAct[_to] = receivedAct[_to].add(_value);
    emit Transfer(msg.sender, _to, _value);
    return true;
  }

  /**
    @notice Same as the default ERC20 transferFrom() with two differences:
    1. Uses "balanceOf(address)" rather than "balances[address]" to check the balance of msg.sender
       ("balances" is inaccurate, see above).
    2. Updates the Transfers Balance Sheet.

    @param _from Sender Address
    @param _to Receiver address
    @param _value Amount
    @return bool
  */
  function transferFrom(
    address _from,
    address _to,
    uint256 _value
  )
    public
    whenNotPaused
    returns (bool)
  {
    require(_to != address(0));
    require(_value <= balanceOf(_from));
    require(_value <= allowed[_from][msg.sender]);
    spentAct[_from] = spentAct[_from].add(_value);
    receivedAct[_to] = receivedAct[_to].add(_value);
    allowed[_from][msg.sender] = allowed[_from][msg.sender].sub(_value);
    emit Transfer(_from, _to, _value);
    return true;
  }

  /**********************
  * End ERC20 overrides *
  ***********************/

  /**
    @notice Burns tokens through decrementing "totalSupply" and incrementing "spentAct[address]"
    @dev Callable only by FeeManager contract
    @param _address Sender Address
    @param _value Amount
    @return bool
  */
  function burn(
    address _address,
    uint256 _value
  )
    external
    onlyContract("FeeManager")
    returns (bool)
  {
    require(_value <= balanceOf(_address));
    spentAct[_address] = spentAct[_address].add(_value);
    totalSupply_ = totalSupply_.sub(_value);
    emit Burn(_address, _value);
    return true;
  }
}

Contract Security Audit

Contract ABI

API
[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"lockBBK","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"unpause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"version","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"paused","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_subtractedValue","type":"uint256"}],"name":"decreaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"pause","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"distribute","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_address","type":"address"},{"name":"_value","type":"uint256"}],"name":"burn","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_address","type":"address"}],"name":"lockedBbkOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"receivedAct","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_amount","type":"uint256"}],"name":"unlockBBK","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_addedValue","type":"uint256"}],"name":"increaseApproval","outputs":[{"name":"success","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"spentAct","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalLockedBBK","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_registryAddress","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"burner","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Burn","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"locker","type":"address"},{"indexed":false,"name":"lockedAmount","type":"uint256"},{"indexed":false,"name":"totalLockedAmount","type":"uint256"}],"name":"BbkLocked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"locker","type":"address"},{"indexed":false,"name":"unlockedAmount","type":"uint256"},{"indexed":false,"name":"totalLockedAmount","type":"uint256"}],"name":"BbkUnlocked","type":"event"},{"anonymous":false,"inputs":[],"name":"Pause","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpause","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"}],"name":"OwnershipRenounced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]

60806040526003805460a060020a60ff021916905534801561002057600080fd5b506040516020806117a1833981016040525160038054600160a060020a03191633179055600160a060020a038116151561005957600080fd5b60048054600160a060020a031916600160a060020a0392909216919091179055611719806100886000396000f3006080604052600436106101535763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610158578063095ea7b3146101e257806318160ddd1461021a57806323b872dd146102415780632f8e71331461026b578063313ce567146102835780633f4ba83a146102ae57806354fd4d50146102c55780635c975abb146102da57806366188463146102ef57806370a0823114610313578063715018a6146103345780638456cb59146103495780638da5cb5b1461035e57806391c05b0b1461038f57806395d89b41146103a75780639dc29fac146103bc578063a0a1b2a9146103e0578063a62f9f5714610401578063a9059cbb14610422578063cf78a45014610446578063d73dd6231461045e578063db80eb0914610482578063dd62ed3e146104a3578063f2c7012b146104ca578063f2fde38b146104df575b600080fd5b34801561016457600080fd5b5061016d610500565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a757818101518382015260200161018f565b50505050905090810190601f1680156101d45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ee57600080fd5b50610206600160a060020a0360043516602435610537565b604080519115158252519081900360200190f35b34801561022657600080fd5b5061022f610564565b60408051918252519081900360200190f35b34801561024d57600080fd5b50610206600160a060020a036004358116906024351660443561056a565b34801561027757600080fd5b506102066004356106f2565b34801561028f57600080fd5b506102986108f0565b6040805160ff9092168252519081900360200190f35b3480156102ba57600080fd5b506102c36108f5565b005b3480156102d157600080fd5b5061029861096d565b3480156102e657600080fd5b50610206610972565b3480156102fb57600080fd5b50610206600160a060020a0360043516602435610982565b34801561031f57600080fd5b5061022f600160a060020a03600435166109a6565b34801561034057600080fd5b506102c3610a46565b34801561035557600080fd5b506102c3610ab4565b34801561036a57600080fd5b50610373610b31565b60408051600160a060020a039092168252519081900360200190f35b34801561039b57600080fd5b50610206600435610b40565b3480156103b357600080fd5b5061016d610d79565b3480156103c857600080fd5b50610206600160a060020a0360043516602435610db0565b3480156103ec57600080fd5b5061022f600160a060020a0360043516610f87565b34801561040d57600080fd5b5061022f600160a060020a0360043516610fa2565b34801561042e57600080fd5b50610206600160a060020a0360043516602435610fb4565b34801561045257600080fd5b506102066004356110ae565b34801561046a57600080fd5b50610206600160a060020a03600435166024356112c3565b34801561048e57600080fd5b5061022f600160a060020a03600435166112e7565b3480156104af57600080fd5b5061022f600160a060020a03600435811690602435166112f9565b3480156104d657600080fd5b5061022f611324565b3480156104eb57600080fd5b506102c3600160a060020a036004351661132a565b60408051808201909152600b81527f416363657373546f6b656e000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff161561055157600080fd5b61055b838361134d565b90505b92915050565b60015490565b60035460009060a060020a900460ff161561058457600080fd5b600160a060020a038316151561059957600080fd5b6105a2846109a6565b8211156105ae57600080fd5b600160a060020a03841660009081526002602090815260408083203384529091529020548211156105de57600080fd5b600160a060020a0384166000908152600d6020526040902054610607908363ffffffff6113b316565b600160a060020a038086166000908152600d60209081526040808320949094559186168152600c9091522054610643908363ffffffff6113b316565b600160a060020a038085166000908152600c60209081526040808320949094559187168152600282528281203382529091522054610687908363ffffffff6113c016565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60008080831161070157600080fd5b600480546040805160e260020a630110ceef0281526020938101849052600f60248201527f427269636b626c6f636b546f6b656e000000000000000000000000000000000060448201529051600160a060020a03909216926304433bbc926064808401938290030181600087803b15801561077b57600080fd5b505af115801561078f573d6000803e3d6000fd5b505050506040513d60208110156107a557600080fd5b505190506107b2336113d2565b15156107bd57600080fd5b336000908152600760205260409020546107dd908463ffffffff6113b316565b33600090815260076020526040902055600654610800908463ffffffff6113b316565b600655604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590529051600160a060020a038316916323b872dd9160648083019260209291908290030181600087803b15801561087157600080fd5b505af1158015610885573d6000803e3d6000fd5b505050506040513d602081101561089b57600080fd5b505115156108a857600080fd5b600654604080518581526020810192909252805133927faeef41ca867cbca6f7c86020a6742e382f6f13078bd8c1997081406f4fb828d992908290030190a250600192915050565b601281565b600354600160a060020a0316331461090c57600080fd5b60035460a060020a900460ff16151561092457600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600181565b60035460a060020a900460ff1681565b60035460009060a060020a900460ff161561099c57600080fd5b61055b8383611445565b60006109b182611535565b600160a060020a03831660009081526009602052604090205560055415610a3e57600160a060020a0382166000908152600d6020908152604080832054600c835281842054600a84528285205460099094529190932054610a399392610a2d9291610a219163ffffffff6113b316565b9063ffffffff6113b316565b9063ffffffff6113c016565b61055e565b600092915050565b600354600160a060020a03163314610a5d57600080fd5b600354604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26003805473ffffffffffffffffffffffffffffffffffffffff19169055565b600354600160a060020a03163314610acb57600080fd5b60035460a060020a900460ff1615610ae257600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600354600160a060020a031681565b604080518082018252600a81527f4665654d616e6167657200000000000000000000000000000000000000000000602080830191825260048054945160e260020a630110ceef028152908101918252835160248201528351600095869594600160a060020a03909116936304433bbc938693919283926044909201918083838c5b83811015610bd9578181015183820152602001610bc1565b50505050905090810190601f168015610c065780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610c2557600080fd5b505af1158015610c39573d6000803e3d6000fd5b505050506040513d6020811015610c4f57600080fd5b5051600160a060020a03163314610c6557600080fd5b600654610ca390610c9490610c8887670de0b6b3a764000063ffffffff61159816565b9063ffffffff6115c116565b6005549063ffffffff6113b316565b600555600654610cdd90670de0b6b3a764000090610cc7878363ffffffff61159816565b811515610cd057fe5b069063ffffffff6115c116565b600354600160a060020a03166000908152600a6020526040902054909250610d0b908363ffffffff6113b316565b600354600160a060020a03166000908152600a6020526040902055600154610d39908563ffffffff6113b316565b6001556040805185815290517f07883703ed0e86588a40d76551c92f8a4b329e3bf19765e0e6749473c1a846659181900360200190a15060019392505050565b60408051808201909152600381527f4143540000000000000000000000000000000000000000000000000000000000602082015281565b604080518082018252600a81527f4665654d616e6167657200000000000000000000000000000000000000000000602080830191825260048054945160e260020a630110ceef028152908101918252835160248201528351600095600160a060020a0316936304433bbc93869390928392604490920191908083838c5b83811015610e45578181015183820152602001610e2d565b50505050905090810190601f168015610e725780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610e9157600080fd5b505af1158015610ea5573d6000803e3d6000fd5b505050506040513d6020811015610ebb57600080fd5b5051600160a060020a03163314610ed157600080fd5b610eda846109a6565b831115610ee657600080fd5b600160a060020a0384166000908152600d6020526040902054610f0f908463ffffffff6113b316565b600160a060020a0385166000908152600d6020526040902055600154610f3b908463ffffffff6113c016565b600155604080518481529051600160a060020a038616917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25060019392505050565b600160a060020a031660009081526007602052604090205490565b600c6020526000908152604090205481565b60035460009060a060020a900460ff1615610fce57600080fd5b600160a060020a0383161515610fe357600080fd5b610fec336109a6565b821115610ff857600080fd5b336000908152600d6020526040902054611018908363ffffffff6113b316565b336000908152600d6020908152604080832093909355600160a060020a0386168252600c90522054611050908363ffffffff6113b316565b600160a060020a0384166000818152600c60209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000808083116110bd57600080fd5b600480546040805160e260020a630110ceef0281526020938101849052600f60248201527f427269636b626c6f636b546f6b656e000000000000000000000000000000000060448201529051600160a060020a03909216926304433bbc926064808401938290030181600087803b15801561113757600080fd5b505af115801561114b573d6000803e3d6000fd5b505050506040513d602081101561116157600080fd5b50513360009081526007602052604090205490915083111561118257600080fd5b61118b336113d2565b151561119657600080fd5b336000908152600760205260409020546111b6908463ffffffff6113c016565b336000908152600760205260409020556006546111d9908463ffffffff6113c016565b600655604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a0383169163a9059cbb9160448083019260209291908290030181600087803b15801561124457600080fd5b505af1158015611258573d6000803e3d6000fd5b505050506040513d602081101561126e57600080fd5b5051151561127b57600080fd5b600654604080518581526020810192909252805133927fb04253b3b67d3473b29801f971fdfb04dc86fabc9d6dda73deadae4b718f29cb92908290030190a250600192915050565b60035460009060a060020a900460ff16156112dd57600080fd5b61055b83836115d6565b600d6020526000908152604090205481565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60065481565b600354600160a060020a0316331461134157600080fd5b61134a8161166f565b50565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b8181018281101561055e57fe5b6000828211156113cc57fe5b50900390565b60006113dd82611535565b600160a060020a0383166000908152600960209081526040808320849055600a9091529020546114129163ffffffff6113b316565b600160a060020a0383166000908152600a6020908152604080832093909355600554600890915291902055506001919050565b336000908152600260209081526040808320600160a060020a03861684529091528120548083111561149a57336000908152600260209081526040808320600160a060020a03881684529091528120556114cf565b6114aa818463ffffffff6113c016565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a03811660009081526008602052604081205460055461055e91670de0b6b3a764000091610c8891611573919063ffffffff6113c016565b600160a060020a0386166000908152600760205260409020549063ffffffff61159816565b60008215156115a95750600061055e565b508181028183828115156115b957fe5b041461055e57fe5b600081838115156115ce57fe5b049392505050565b336000908152600260209081526040808320600160a060020a038616845290915281205461160a908363ffffffff6113b316565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a038116151561168457600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820fd4df680c30851b6e99248fedd01e0a5f138345e272c288fd9c29d8a09b0b84200290000000000000000000000005973376b603268fe4251d13040226078257014f8

Deployed Bytecode

0x6080604052600436106101535763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610158578063095ea7b3146101e257806318160ddd1461021a57806323b872dd146102415780632f8e71331461026b578063313ce567146102835780633f4ba83a146102ae57806354fd4d50146102c55780635c975abb146102da57806366188463146102ef57806370a0823114610313578063715018a6146103345780638456cb59146103495780638da5cb5b1461035e57806391c05b0b1461038f57806395d89b41146103a75780639dc29fac146103bc578063a0a1b2a9146103e0578063a62f9f5714610401578063a9059cbb14610422578063cf78a45014610446578063d73dd6231461045e578063db80eb0914610482578063dd62ed3e146104a3578063f2c7012b146104ca578063f2fde38b146104df575b600080fd5b34801561016457600080fd5b5061016d610500565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101a757818101518382015260200161018f565b50505050905090810190601f1680156101d45780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b3480156101ee57600080fd5b50610206600160a060020a0360043516602435610537565b604080519115158252519081900360200190f35b34801561022657600080fd5b5061022f610564565b60408051918252519081900360200190f35b34801561024d57600080fd5b50610206600160a060020a036004358116906024351660443561056a565b34801561027757600080fd5b506102066004356106f2565b34801561028f57600080fd5b506102986108f0565b6040805160ff9092168252519081900360200190f35b3480156102ba57600080fd5b506102c36108f5565b005b3480156102d157600080fd5b5061029861096d565b3480156102e657600080fd5b50610206610972565b3480156102fb57600080fd5b50610206600160a060020a0360043516602435610982565b34801561031f57600080fd5b5061022f600160a060020a03600435166109a6565b34801561034057600080fd5b506102c3610a46565b34801561035557600080fd5b506102c3610ab4565b34801561036a57600080fd5b50610373610b31565b60408051600160a060020a039092168252519081900360200190f35b34801561039b57600080fd5b50610206600435610b40565b3480156103b357600080fd5b5061016d610d79565b3480156103c857600080fd5b50610206600160a060020a0360043516602435610db0565b3480156103ec57600080fd5b5061022f600160a060020a0360043516610f87565b34801561040d57600080fd5b5061022f600160a060020a0360043516610fa2565b34801561042e57600080fd5b50610206600160a060020a0360043516602435610fb4565b34801561045257600080fd5b506102066004356110ae565b34801561046a57600080fd5b50610206600160a060020a03600435166024356112c3565b34801561048e57600080fd5b5061022f600160a060020a03600435166112e7565b3480156104af57600080fd5b5061022f600160a060020a03600435811690602435166112f9565b3480156104d657600080fd5b5061022f611324565b3480156104eb57600080fd5b506102c3600160a060020a036004351661132a565b60408051808201909152600b81527f416363657373546f6b656e000000000000000000000000000000000000000000602082015281565b60035460009060a060020a900460ff161561055157600080fd5b61055b838361134d565b90505b92915050565b60015490565b60035460009060a060020a900460ff161561058457600080fd5b600160a060020a038316151561059957600080fd5b6105a2846109a6565b8211156105ae57600080fd5b600160a060020a03841660009081526002602090815260408083203384529091529020548211156105de57600080fd5b600160a060020a0384166000908152600d6020526040902054610607908363ffffffff6113b316565b600160a060020a038086166000908152600d60209081526040808320949094559186168152600c9091522054610643908363ffffffff6113b316565b600160a060020a038085166000908152600c60209081526040808320949094559187168152600282528281203382529091522054610687908363ffffffff6113c016565b600160a060020a03808616600081815260026020908152604080832033845282529182902094909455805186815290519287169391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a35060019392505050565b60008080831161070157600080fd5b600480546040805160e260020a630110ceef0281526020938101849052600f60248201527f427269636b626c6f636b546f6b656e000000000000000000000000000000000060448201529051600160a060020a03909216926304433bbc926064808401938290030181600087803b15801561077b57600080fd5b505af115801561078f573d6000803e3d6000fd5b505050506040513d60208110156107a557600080fd5b505190506107b2336113d2565b15156107bd57600080fd5b336000908152600760205260409020546107dd908463ffffffff6113b316565b33600090815260076020526040902055600654610800908463ffffffff6113b316565b600655604080517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018590529051600160a060020a038316916323b872dd9160648083019260209291908290030181600087803b15801561087157600080fd5b505af1158015610885573d6000803e3d6000fd5b505050506040513d602081101561089b57600080fd5b505115156108a857600080fd5b600654604080518581526020810192909252805133927faeef41ca867cbca6f7c86020a6742e382f6f13078bd8c1997081406f4fb828d992908290030190a250600192915050565b601281565b600354600160a060020a0316331461090c57600080fd5b60035460a060020a900460ff16151561092457600080fd5b6003805474ff0000000000000000000000000000000000000000191690556040517f7805862f689e2f13df9f062ff482ad3ad112aca9e0847911ed832e158c525b3390600090a1565b600181565b60035460a060020a900460ff1681565b60035460009060a060020a900460ff161561099c57600080fd5b61055b8383611445565b60006109b182611535565b600160a060020a03831660009081526009602052604090205560055415610a3e57600160a060020a0382166000908152600d6020908152604080832054600c835281842054600a84528285205460099094529190932054610a399392610a2d9291610a219163ffffffff6113b316565b9063ffffffff6113b316565b9063ffffffff6113c016565b61055e565b600092915050565b600354600160a060020a03163314610a5d57600080fd5b600354604051600160a060020a03909116907ff8df31144d9c2f0f6b59d69b8b98abd5459d07f2742c4df920b25aae33c6482090600090a26003805473ffffffffffffffffffffffffffffffffffffffff19169055565b600354600160a060020a03163314610acb57600080fd5b60035460a060020a900460ff1615610ae257600080fd5b6003805474ff0000000000000000000000000000000000000000191660a060020a1790556040517f6985a02210a168e66602d3235cb6db0e70f92b3ba4d376a33c0f3d9434bff62590600090a1565b600354600160a060020a031681565b604080518082018252600a81527f4665654d616e6167657200000000000000000000000000000000000000000000602080830191825260048054945160e260020a630110ceef028152908101918252835160248201528351600095869594600160a060020a03909116936304433bbc938693919283926044909201918083838c5b83811015610bd9578181015183820152602001610bc1565b50505050905090810190601f168015610c065780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610c2557600080fd5b505af1158015610c39573d6000803e3d6000fd5b505050506040513d6020811015610c4f57600080fd5b5051600160a060020a03163314610c6557600080fd5b600654610ca390610c9490610c8887670de0b6b3a764000063ffffffff61159816565b9063ffffffff6115c116565b6005549063ffffffff6113b316565b600555600654610cdd90670de0b6b3a764000090610cc7878363ffffffff61159816565b811515610cd057fe5b069063ffffffff6115c116565b600354600160a060020a03166000908152600a6020526040902054909250610d0b908363ffffffff6113b316565b600354600160a060020a03166000908152600a6020526040902055600154610d39908563ffffffff6113b316565b6001556040805185815290517f07883703ed0e86588a40d76551c92f8a4b329e3bf19765e0e6749473c1a846659181900360200190a15060019392505050565b60408051808201909152600381527f4143540000000000000000000000000000000000000000000000000000000000602082015281565b604080518082018252600a81527f4665654d616e6167657200000000000000000000000000000000000000000000602080830191825260048054945160e260020a630110ceef028152908101918252835160248201528351600095600160a060020a0316936304433bbc93869390928392604490920191908083838c5b83811015610e45578181015183820152602001610e2d565b50505050905090810190601f168015610e725780820380516001836020036101000a031916815260200191505b5092505050602060405180830381600087803b158015610e9157600080fd5b505af1158015610ea5573d6000803e3d6000fd5b505050506040513d6020811015610ebb57600080fd5b5051600160a060020a03163314610ed157600080fd5b610eda846109a6565b831115610ee657600080fd5b600160a060020a0384166000908152600d6020526040902054610f0f908463ffffffff6113b316565b600160a060020a0385166000908152600d6020526040902055600154610f3b908463ffffffff6113c016565b600155604080518481529051600160a060020a038616917fcc16f5dbb4873280815c1ee09dbd06736cffcc184412cf7a71a0fdb75d397ca5919081900360200190a25060019392505050565b600160a060020a031660009081526007602052604090205490565b600c6020526000908152604090205481565b60035460009060a060020a900460ff1615610fce57600080fd5b600160a060020a0383161515610fe357600080fd5b610fec336109a6565b821115610ff857600080fd5b336000908152600d6020526040902054611018908363ffffffff6113b316565b336000908152600d6020908152604080832093909355600160a060020a0386168252600c90522054611050908363ffffffff6113b316565b600160a060020a0384166000818152600c60209081526040918290209390935580518581529051919233927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a350600192915050565b6000808083116110bd57600080fd5b600480546040805160e260020a630110ceef0281526020938101849052600f60248201527f427269636b626c6f636b546f6b656e000000000000000000000000000000000060448201529051600160a060020a03909216926304433bbc926064808401938290030181600087803b15801561113757600080fd5b505af115801561114b573d6000803e3d6000fd5b505050506040513d602081101561116157600080fd5b50513360009081526007602052604090205490915083111561118257600080fd5b61118b336113d2565b151561119657600080fd5b336000908152600760205260409020546111b6908463ffffffff6113c016565b336000908152600760205260409020556006546111d9908463ffffffff6113c016565b600655604080517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018590529051600160a060020a0383169163a9059cbb9160448083019260209291908290030181600087803b15801561124457600080fd5b505af1158015611258573d6000803e3d6000fd5b505050506040513d602081101561126e57600080fd5b5051151561127b57600080fd5b600654604080518581526020810192909252805133927fb04253b3b67d3473b29801f971fdfb04dc86fabc9d6dda73deadae4b718f29cb92908290030190a250600192915050565b60035460009060a060020a900460ff16156112dd57600080fd5b61055b83836115d6565b600d6020526000908152604090205481565b600160a060020a03918216600090815260026020908152604080832093909416825291909152205490565b60065481565b600354600160a060020a0316331461134157600080fd5b61134a8161166f565b50565b336000818152600260209081526040808320600160a060020a038716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b8181018281101561055e57fe5b6000828211156113cc57fe5b50900390565b60006113dd82611535565b600160a060020a0383166000908152600960209081526040808320849055600a9091529020546114129163ffffffff6113b316565b600160a060020a0383166000908152600a6020908152604080832093909355600554600890915291902055506001919050565b336000908152600260209081526040808320600160a060020a03861684529091528120548083111561149a57336000908152600260209081526040808320600160a060020a03881684529091528120556114cf565b6114aa818463ffffffff6113c016565b336000908152600260209081526040808320600160a060020a03891684529091529020555b336000818152600260209081526040808320600160a060020a0389168085529083529281902054815190815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060019392505050565b600160a060020a03811660009081526008602052604081205460055461055e91670de0b6b3a764000091610c8891611573919063ffffffff6113c016565b600160a060020a0386166000908152600760205260409020549063ffffffff61159816565b60008215156115a95750600061055e565b508181028183828115156115b957fe5b041461055e57fe5b600081838115156115ce57fe5b049392505050565b336000908152600260209081526040808320600160a060020a038616845290915281205461160a908363ffffffff6113b316565b336000818152600260209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a038116151561168457600080fd5b600354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36003805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03929092169190911790555600a165627a7a72305820fd4df680c30851b6e99248fedd01e0a5f138345e272c288fd9c29d8a09b0b8420029

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

0000000000000000000000005973376b603268fe4251d13040226078257014f8

-----Decoded View---------------
Arg [0] : _registryAddress (address): 0x5973376B603268Fe4251D13040226078257014F8

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000005973376b603268fe4251d13040226078257014f8


Swarm Source

bzzr://fd4df680c30851b6e99248fedd01e0a5f138345e272c288fd9c29d8a09b0b842

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ 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.