ETH Price: $3,495.82 (-1.34%)
Gas: 10 Gwei

Contract

0xa220A9F9eD7c434F0bF2a45d86188FE22026F1d4
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Treasury114677912020-12-17 1:53:391274 days ago1608170019IN
0xa220A9F9...22026F1d4
0 ETH0.00621649143
0x60806040114677902020-12-17 1:53:271274 days ago1608170007IN
 Create: TreasuryFee
0 ETH0.1143887143

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TreasuryFee

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MPL-2.0 license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-12-17
*/

// File: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.5.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 GSN 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.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

/**
 * @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.
 *
 * 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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(isOwner(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _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 onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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 onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @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 `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, 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 `sender` to `recipient` 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 sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @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);
}

// File: @openzeppelin/contracts/math/SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     * - The divisor cannot be zero.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol

pragma solidity ^0.5.0;




/**
 * @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 {ERC20Mintable}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of 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 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

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

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

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

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

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public returns (bool) {
        _approve(_msgSender(), 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};
     *
     * Requirements:
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for `sender`'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        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 returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(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 returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is 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:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, 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
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal {
        require(account != address(0), "ERC20: mint to the zero address");

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(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 {
        require(account != address(0), "ERC20: burn from the zero address");

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
     *
     * This is 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 {
        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 Destroys `amount` tokens from `account`.`amount` is then deducted
     * from the caller's allowance.
     *
     * See {_burn} and {_approve}.
     */
    function _burnFrom(address account, uint256 amount) internal {
        _burn(account, amount);
        _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, "ERC20: burn amount exceeds allowance"));
    }
}

// File: contracts/interface/IAddressConfig.sol

// SPDX-License-Identifier: MPL-2.0
pragma solidity >=0.5.17;

interface IAddressConfig {
	function token() external view returns (address);

	function allocator() external view returns (address);

	function allocatorStorage() external view returns (address);

	function withdraw() external view returns (address);

	function withdrawStorage() external view returns (address);

	function marketFactory() external view returns (address);

	function marketGroup() external view returns (address);

	function propertyFactory() external view returns (address);

	function propertyGroup() external view returns (address);

	function metricsGroup() external view returns (address);

	function metricsFactory() external view returns (address);

	function policy() external view returns (address);

	function policyFactory() external view returns (address);

	function policySet() external view returns (address);

	function policyGroup() external view returns (address);

	function lockup() external view returns (address);

	function lockupStorage() external view returns (address);

	function voteTimes() external view returns (address);

	function voteTimesStorage() external view returns (address);

	function voteCounter() external view returns (address);

	function voteCounterStorage() external view returns (address);

	function setAllocator(address _addr) external;

	function setAllocatorStorage(address _addr) external;

	function setWithdraw(address _addr) external;

	function setWithdrawStorage(address _addr) external;

	function setMarketFactory(address _addr) external;

	function setMarketGroup(address _addr) external;

	function setPropertyFactory(address _addr) external;

	function setPropertyGroup(address _addr) external;

	function setMetricsFactory(address _addr) external;

	function setMetricsGroup(address _addr) external;

	function setPolicyFactory(address _addr) external;

	function setPolicyGroup(address _addr) external;

	function setPolicySet(address _addr) external;

	function setPolicy(address _addr) external;

	function setToken(address _addr) external;

	function setLockup(address _addr) external;

	function setLockupStorage(address _addr) external;

	function setVoteTimes(address _addr) external;

	function setVoteTimesStorage(address _addr) external;

	function setVoteCounter(address _addr) external;

	function setVoteCounterStorage(address _addr) external;
}

// File: contracts/src/common/config/UsingConfig.sol

pragma solidity 0.5.17;


/**
 * Module for using AddressConfig contracts.
 */
contract UsingConfig {
	address private _config;

	/**
	 * Initialize the argument as AddressConfig address.
	 */
	constructor(address _addressConfig) public {
		_config = _addressConfig;
	}

	/**
	 * Returns the latest AddressConfig instance.
	 */
	function config() internal view returns (IAddressConfig) {
		return IAddressConfig(_config);
	}

	/**
	 * Returns the latest AddressConfig address.
	 */
	function configAddress() external view returns (address) {
		return _config;
	}
}

// File: contracts/interface/IPolicy.sol

// SPDX-License-Identifier: MPL-2.0
pragma solidity >=0.5.17;

interface IPolicy {
	function rewards(uint256 _lockups, uint256 _assets)
		external
		view
		returns (uint256);

	function holdersShare(uint256 _amount, uint256 _lockups)
		external
		view
		returns (uint256);

	function authenticationFee(uint256 _assets, uint256 _propertyAssets)
		external
		view
		returns (uint256);

	function marketApproval(uint256 _agree, uint256 _opposite)
		external
		view
		returns (bool);

	function policyApproval(uint256 _agree, uint256 _opposite)
		external
		view
		returns (bool);

	function marketVotingBlocks() external view returns (uint256);

	function policyVotingBlocks() external view returns (uint256);

	function shareOfTreasury(uint256 _supply) external view returns (uint256);

	function treasury() external view returns (address);
}

// File: contracts/src/policy/DIP1.sol

/* solhint-disable const-name-snakecase */
/* solhint-disable var-name-mixedcase */
pragma solidity 0.5.17;





/**
 * DIP1 is a contract that simply changed TheFirstPolicy to DIP numbering.
 */
contract DIP1 is IPolicy, UsingConfig {
	using SafeMath for uint256;
	uint256 public marketVotingBlocks = 525600;
	uint256 public policyVotingBlocks = 525600;

	uint256 private constant basis = 10000000000000000000000000;
	uint256 private constant power_basis = 10000000000;
	uint256 private constant mint_per_block_and_aseet = 250000000000000;

	constructor(address _config) public UsingConfig(_config) {}

	function rewards(uint256 _lockups, uint256 _assets)
		external
		view
		returns (uint256)
	{
		uint256 max = _assets.mul(mint_per_block_and_aseet);
		uint256 t = ERC20(config().token()).totalSupply();
		uint256 s = (_lockups.mul(basis)).div(t);
		uint256 _d = basis.sub(s);
		uint256 _p =
			(
				(power_basis.mul(12)).sub(
					s.div((basis.div((power_basis.mul(10)))))
				)
			)
				.div(2);
		uint256 p = _p.div(power_basis);
		uint256 rp = p.add(1);
		uint256 f = _p.sub(p.mul(power_basis));
		uint256 d1 = _d;
		uint256 d2 = _d;
		for (uint256 i = 0; i < p; i++) {
			d1 = (d1.mul(_d)).div(basis);
		}
		for (uint256 i = 0; i < rp; i++) {
			d2 = (d2.mul(_d)).div(basis);
		}
		uint256 g = ((d1.sub(d2)).mul(f)).div(power_basis);
		uint256 d = d1.sub(g);
		uint256 mint = max.mul(d);
		mint = mint.div(basis);
		return mint;
	}

	function holdersShare(uint256 _reward, uint256 _lockups)
		external
		view
		returns (uint256)
	{
		return _lockups > 0 ? (_reward.mul(51)).div(100) : _reward;
	}

	function authenticationFee(uint256 total_assets, uint256 property_lockups)
		external
		view
		returns (uint256)
	{
		uint256 a = total_assets.div(10000);
		uint256 b = property_lockups.div(100000000000000000000000);
		if (a <= b) {
			return 0;
		}
		return a.sub(b);
	}

	function marketApproval(uint256 _up_votes, uint256 _negative_votes)
		external
		view
		returns (bool)
	{
		if (_up_votes < 9999999999999999999) {
			return false;
		}
		uint256 negative_votes =
			_negative_votes > 0 ? _negative_votes : 1000000000000000000;
		return _up_votes > negative_votes.mul(10);
	}

	function policyApproval(uint256 _up_votes, uint256 _negative_votes)
		external
		view
		returns (bool)
	{
		if (_up_votes < 9999999999999999999) {
			return false;
		}
		uint256 negative_votes =
			_negative_votes > 0 ? _negative_votes : 1000000000000000000;
		return _up_votes > negative_votes.mul(10);
	}

	function shareOfTreasury(uint256) external view returns (uint256) {
		return 0;
	}

	function treasury() external view returns (address) {
		return address(0);
	}
}

// File: contracts/src/policy/DIP7.sol

/* solhint-disable const-name-snakecase */
pragma solidity 0.5.17;



/**
 * DIP7 is a contract that changes the `rewards` of DIP1.
 */
contract DIP7 is DIP1 {
	uint256 private constant basis = 10000000000000000000000000;
	uint256 private constant power_basis = 10000000000;
	uint256 private constant mint_per_block_and_aseet = 120000000000000;

	constructor(address _config) public DIP1(_config) {}

	function rewards(uint256 _lockups, uint256 _assets)
		external
		view
		returns (uint256)
	{
		uint256 t = ERC20(config().token()).totalSupply();
		uint256 s = (_lockups.mul(basis)).div(t);
		uint256 assets = _assets.mul(basis.sub(s));
		uint256 max = assets.mul(mint_per_block_and_aseet);
		uint256 _d = basis.sub(s);
		uint256 _p =
			(
				(power_basis.mul(12)).sub(
					s.div((basis.div((power_basis.mul(10)))))
				)
			)
				.div(2);
		uint256 p = _p.div(power_basis);
		uint256 rp = p.add(1);
		uint256 f = _p.sub(p.mul(power_basis));
		uint256 d1 = _d;
		uint256 d2 = _d;
		for (uint256 i = 0; i < p; i++) {
			d1 = (d1.mul(_d)).div(basis);
		}
		for (uint256 i = 0; i < rp; i++) {
			d2 = (d2.mul(_d)).div(basis);
		}
		uint256 g = ((d1.sub(d2)).mul(f)).div(power_basis);
		uint256 d = d1.sub(g);
		uint256 mint = max.mul(d);
		mint = mint.div(basis).div(basis);
		return mint;
	}
}

// File: contracts/src/policy/TreasuryFee.sol

/* solhint-disable const-name-snakecase */
pragma solidity 0.5.17;



/**
 * TreasuryFee is a contract that changes the `rewards` of DIP7.
 */
contract TreasuryFee is DIP7, Ownable {
	address private treasuryAddress;

	constructor(address _config) public DIP7(_config) {}

	function shareOfTreasury(uint256 _supply) external view returns (uint256) {
		return _supply.div(100).mul(5);
	}

	function policyApproval(uint256, uint256) external view returns (bool) {
		return false;
	}

	function treasury() external view returns (address) {
		return treasuryAddress;
	}

	function setTreasury(address _treasury) external onlyOwner {
		treasuryAddress = _treasury;
	}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_config","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[{"internalType":"uint256","name":"total_assets","type":"uint256"},{"internalType":"uint256","name":"property_lockups","type":"uint256"}],"name":"authenticationFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"configAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_reward","type":"uint256"},{"internalType":"uint256","name":"_lockups","type":"uint256"}],"name":"holdersShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_up_votes","type":"uint256"},{"internalType":"uint256","name":"_negative_votes","type":"uint256"}],"name":"marketApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"marketVotingBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"policyApproval","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"policyVotingBlocks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_lockups","type":"uint256"},{"internalType":"uint256","name":"_assets","type":"uint256"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_treasury","type":"address"}],"name":"setTreasury","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"shareOfTreasury","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"}]

6080604052620805206001556208052060025534801561001e57600080fd5b50604051610cc0380380610cc08339818101604052602081101561004157600080fd5b5051600080546001600160a01b0319166001600160a01b0383161781556100666100ba565b600380546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350506100be565b3390565b610bf3806100cd6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638f32d59b11610097578063d6c3187111610066578063d6c3187114610217578063f0f442601461021f578063f2fde38b14610245578063feb9bc301461026b576100f5565b80638f32d59b146101c1578063bacd4428146101c9578063d4cf269c146101ec578063d670e7681461020f576100f5565b80636e47720e116100d35780636e47720e1461018a5780636e9a712914610192578063715018a6146101af5780638da5cb5b146101b9576100f5565b806315562459146100fa5780633e7e366e1461013157806361d027b314610166575b600080fd5b61011d6004803603604081101561011057600080fd5b508035906020013561028e565b604080519115158252519081900360200190f35b6101546004803603604081101561014757600080fd5b5080359060200135610297565b60408051918252519081900360200190f35b61016e6105c9565b604080516001600160a01b039092168252519081900360200190f35b6101546105d8565b610154600480360360208110156101a857600080fd5b50356105de565b6101b76105f6565b005b61016e610699565b61011d6106a8565b610154600480360360408110156101df57600080fd5b50803590602001356106ce565b61011d6004803603604081101561020257600080fd5b50803590602001356106fa565b61015461074a565b61016e610750565b6101b76004803603602081101561023557600080fd5b50356001600160a01b031661075f565b6101b76004803603602081101561025b57600080fd5b50356001600160a01b03166107da565b6101546004803603604081101561028157600080fd5b508035906020013561083f565b60005b92915050565b6000806102a2610750565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156102da57600080fd5b505afa1580156102ee573d6000803e3d6000fd5b505050506040513d602081101561030457600080fd5b5051604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561034857600080fd5b505afa15801561035c573d6000803e3d6000fd5b505050506040513d602081101561037257600080fd5b5051905060006103a382610397876a084595161401484a00000063ffffffff61089f16565b9063ffffffff6108f816565b905060006103d26103c56a084595161401484a0000008463ffffffff61093a16565b869063ffffffff61089f16565b905060006103ec82656d23ad5f800063ffffffff61089f16565b9050600061040b6a084595161401484a0000008563ffffffff61093a16565b9050600061047a600261039761045861044b6104336402540be400600a63ffffffff61089f16565b6a084595161401484a0000009063ffffffff6108f816565b899063ffffffff6108f816565b61046e6402540be400600c63ffffffff61089f16565b9063ffffffff61093a16565b90506000610493826402540be40063ffffffff6108f816565b905060006104a882600163ffffffff61097c16565b905060006104d16104c4846402540be40063ffffffff61089f16565b859063ffffffff61093a16565b9050848060005b85811015610509576104ff6a084595161401484a000000610397858b63ffffffff61089f16565b92506001016104d8565b5060005b8481101561053e576105346a084595161401484a000000610397848b63ffffffff61089f16565b915060010161050d565b50600061056a6402540be4006103978661055e878763ffffffff61093a16565b9063ffffffff61089f16565b9050600061057e848363ffffffff61093a16565b905060006105928b8363ffffffff61089f16565b90506105b36a084595161401484a000000610397838263ffffffff6108f816565b9e50505050505050505050505050505092915050565b6004546001600160a01b031690565b60025481565b6000610291600561055e84606463ffffffff6108f816565b6105fe6106a8565b61064f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b6003546001600160a01b031690565b6003546000906001600160a01b03166106bf6109d6565b6001600160a01b031614905090565b60008082116106dd57826106f3565b6106f3606461039785603363ffffffff61089f16565b9392505050565b6000678ac7230489e7ffff83101561071457506000610291565b600080831161072b57670de0b6b3a764000061072d565b825b905061074081600a63ffffffff61089f16565b9093119392505050565b60015481565b6000546001600160a01b031690565b6107676106a8565b6107b8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6107e26106a8565b610833576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61083c816109da565b50565b6000806108548461271063ffffffff6108f816565b905060006108728469152d02c7e14af680000063ffffffff6108f816565b905080821161088657600092505050610291565b610896828263ffffffff61093a16565b95945050505050565b6000826108ae57506000610291565b828202828482816108bb57fe5b04146106f35760405162461bcd60e51b8152600401808060200182810382526021815260200180610b9e6021913960400191505060405180910390fd5b60006106f383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610a7b565b60006106f383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b1d565b6000828201838110156106f3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b038116610a1f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610b786026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b60008183610b075760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610acc578181015183820152602001610ab4565b50505050905090810190601f168015610af95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610b1357fe5b0495945050505050565b60008184841115610b6f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610acc578181015183820152602001610ab4565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a7231582059cc9225bfee4a6599eff0923840b4160bad1952ecb11bd7e65475bf0e6094ce64736f6c634300051100320000000000000000000000001d415aa39d647834786eb9b5a333a50e9935b796

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638f32d59b11610097578063d6c3187111610066578063d6c3187114610217578063f0f442601461021f578063f2fde38b14610245578063feb9bc301461026b576100f5565b80638f32d59b146101c1578063bacd4428146101c9578063d4cf269c146101ec578063d670e7681461020f576100f5565b80636e47720e116100d35780636e47720e1461018a5780636e9a712914610192578063715018a6146101af5780638da5cb5b146101b9576100f5565b806315562459146100fa5780633e7e366e1461013157806361d027b314610166575b600080fd5b61011d6004803603604081101561011057600080fd5b508035906020013561028e565b604080519115158252519081900360200190f35b6101546004803603604081101561014757600080fd5b5080359060200135610297565b60408051918252519081900360200190f35b61016e6105c9565b604080516001600160a01b039092168252519081900360200190f35b6101546105d8565b610154600480360360208110156101a857600080fd5b50356105de565b6101b76105f6565b005b61016e610699565b61011d6106a8565b610154600480360360408110156101df57600080fd5b50803590602001356106ce565b61011d6004803603604081101561020257600080fd5b50803590602001356106fa565b61015461074a565b61016e610750565b6101b76004803603602081101561023557600080fd5b50356001600160a01b031661075f565b6101b76004803603602081101561025b57600080fd5b50356001600160a01b03166107da565b6101546004803603604081101561028157600080fd5b508035906020013561083f565b60005b92915050565b6000806102a2610750565b6001600160a01b031663fc0c546a6040518163ffffffff1660e01b815260040160206040518083038186803b1580156102da57600080fd5b505afa1580156102ee573d6000803e3d6000fd5b505050506040513d602081101561030457600080fd5b5051604080516318160ddd60e01b815290516001600160a01b03909216916318160ddd91600480820192602092909190829003018186803b15801561034857600080fd5b505afa15801561035c573d6000803e3d6000fd5b505050506040513d602081101561037257600080fd5b5051905060006103a382610397876a084595161401484a00000063ffffffff61089f16565b9063ffffffff6108f816565b905060006103d26103c56a084595161401484a0000008463ffffffff61093a16565b869063ffffffff61089f16565b905060006103ec82656d23ad5f800063ffffffff61089f16565b9050600061040b6a084595161401484a0000008563ffffffff61093a16565b9050600061047a600261039761045861044b6104336402540be400600a63ffffffff61089f16565b6a084595161401484a0000009063ffffffff6108f816565b899063ffffffff6108f816565b61046e6402540be400600c63ffffffff61089f16565b9063ffffffff61093a16565b90506000610493826402540be40063ffffffff6108f816565b905060006104a882600163ffffffff61097c16565b905060006104d16104c4846402540be40063ffffffff61089f16565b859063ffffffff61093a16565b9050848060005b85811015610509576104ff6a084595161401484a000000610397858b63ffffffff61089f16565b92506001016104d8565b5060005b8481101561053e576105346a084595161401484a000000610397848b63ffffffff61089f16565b915060010161050d565b50600061056a6402540be4006103978661055e878763ffffffff61093a16565b9063ffffffff61089f16565b9050600061057e848363ffffffff61093a16565b905060006105928b8363ffffffff61089f16565b90506105b36a084595161401484a000000610397838263ffffffff6108f816565b9e50505050505050505050505050505092915050565b6004546001600160a01b031690565b60025481565b6000610291600561055e84606463ffffffff6108f816565b6105fe6106a8565b61064f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b6003546001600160a01b031690565b6003546000906001600160a01b03166106bf6109d6565b6001600160a01b031614905090565b60008082116106dd57826106f3565b6106f3606461039785603363ffffffff61089f16565b9392505050565b6000678ac7230489e7ffff83101561071457506000610291565b600080831161072b57670de0b6b3a764000061072d565b825b905061074081600a63ffffffff61089f16565b9093119392505050565b60015481565b6000546001600160a01b031690565b6107676106a8565b6107b8576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6107e26106a8565b610833576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b61083c816109da565b50565b6000806108548461271063ffffffff6108f816565b905060006108728469152d02c7e14af680000063ffffffff6108f816565b905080821161088657600092505050610291565b610896828263ffffffff61093a16565b95945050505050565b6000826108ae57506000610291565b828202828482816108bb57fe5b04146106f35760405162461bcd60e51b8152600401808060200182810382526021815260200180610b9e6021913960400191505060405180910390fd5b60006106f383836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250610a7b565b60006106f383836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250610b1d565b6000828201838110156106f3576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b6001600160a01b038116610a1f5760405162461bcd60e51b8152600401808060200182810382526026815260200180610b786026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b60008183610b075760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015610acc578181015183820152602001610ab4565b50505050905090810190601f168015610af95780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b506000838581610b1357fe5b0495945050505050565b60008184841115610b6f5760405162461bcd60e51b8152602060048201818152835160248401528351909283926044909101919085019080838360008315610acc578181015183820152602001610ab4565b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77a265627a7a7231582059cc9225bfee4a6599eff0923840b4160bad1952ecb11bd7e65475bf0e6094ce64736f6c63430005110032

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

0000000000000000000000001d415aa39d647834786eb9b5a333a50e9935b796

-----Decoded View---------------
Arg [0] : _config (address): 0x1D415aa39D647834786EB9B5a333A50e9935b796

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000001d415aa39d647834786eb9b5a333a50e9935b796


Deployed Bytecode Sourcemap

28923:541:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;28923:541:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29178:93;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29178:93:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;27793:923;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27793:923:0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;29276:84;;;:::i;:::-;;;;-1:-1:-1;;;;;29276:84:0;;;;;;;;;;;;;;24882:42;;;:::i;29059:114::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29059:114:0;;:::i;2963:140::-;;;:::i;:::-;;2152:79;;;:::i;2518:94::-;;;:::i;26055:168::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26055:168:0;;;;;;;:::i;26515:317::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26515:317:0;;;;;;;:::i;24836:42::-;;;:::i;23503:81::-;;;:::i;29365:96::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29365:96:0;-1:-1:-1;;;;;29365:96:0;;:::i;3258:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;3258:109:0;-1:-1:-1;;;;;3258:109:0;;:::i;26228:282::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;26228:282:0;;;;;;;:::i;29178:93::-;29243:4;29178:93;;;;;:::o;27793:923::-;27877:7;27893:9;27911:8;:6;:8::i;:::-;-1:-1:-1;;;;;27911:14:0;;:16;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27911:16:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27911:16:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27911:16:0;27905:37;;;-1:-1:-1;;;27905:37:0;;;;-1:-1:-1;;;;;27905:35:0;;;;;;:37;;;;;27911:16;;27905:37;;;;;;;;:35;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;27905:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;27905:37:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27905:37:0;;-1:-1:-1;27947:9:0;27959:28;27905:37;27960:19;:8;27579:26;27960:19;:12;:19;:::i;:::-;27959:25;:28;:25;:28;:::i;:::-;27947:40;-1:-1:-1;27992:14:0;28009:25;28021:12;27579:26;27947:40;28021:12;:9;:12;:::i;:::-;28009:7;;:25;:11;:25;:::i;:::-;27992:42;-1:-1:-1;28039:11:0;28053:36;27992:42;27715:15;28053:36;:10;:36;:::i;:::-;28039:50;-1:-1:-1;28094:10:0;28107:12;27579:26;28117:1;28107:12;:9;:12;:::i;:::-;28094:25;-1:-1:-1;28124:10:0;28141:107;28246:1;28148:81;28181:41;28188:32;28199:19;27648:11;28215:2;28199:19;:15;:19;:::i;:::-;27579:26;;28188:32;:9;:32;:::i;:::-;28181:1;;:41;:5;:41;:::i;:::-;28149:19;27648:11;28165:2;28149:19;:15;:19;:::i;:::-;28148:25;:81;:25;:81;:::i;28141:107::-;28124:124;-1:-1:-1;28253:9:0;28265:19;28124:124;27648:11;28265:19;:6;:19;:::i;:::-;28253:31;-1:-1:-1;28289:10:0;28302:8;28253:31;28308:1;28302:8;:5;:8;:::i;:::-;28289:21;-1:-1:-1;28315:9:0;28327:26;28334:18;:1;27648:11;28334:18;:5;:18;:::i;:::-;28327:2;;:26;:6;:26;:::i;:::-;28315:38;-1:-1:-1;28371:2:0;;28358:10;28398:72;28422:1;28418;:5;28398:72;;;28441:23;27579:26;28442:10;:2;28449;28442:10;:6;:10;:::i;28441:23::-;28436:28;-1:-1:-1;28425:3:0;;28398:72;;;-1:-1:-1;28479:9:0;28474:73;28498:2;28494:1;:6;28474:73;;;28518:23;27579:26;28519:10;:2;28526;28519:10;:6;:10;:::i;28518:23::-;28513:28;-1:-1:-1;28502:3:0;;28474:73;;;-1:-1:-1;28551:9:0;28563:38;27648:11;28564:19;28581:1;28565:10;:2;28572;28565:10;:6;:10;:::i;:::-;28564:16;:19;:16;:19;:::i;28563:38::-;28551:50;-1:-1:-1;28606:9:0;28618;:2;28551:50;28618:9;:6;:9;:::i;:::-;28606:21;-1:-1:-1;28632:12:0;28647:10;:3;28606:21;28647:10;:7;:10;:::i;:::-;28632:25;-1:-1:-1;28669:26:0;27579;28669:15;28632:25;27579:26;28669:15;:8;:15;:::i;:26::-;28662:33;-1:-1:-1;;;;;;;;;;;;;;;27793:923:0;;;;:::o;29276:84::-;29340:15;;-1:-1:-1;;;;;29340:15:0;29276:84;:::o;24882:42::-;;;;:::o;29059:114::-;29124:7;29145:23;29166:1;29145:16;:7;29157:3;29145:16;:11;:16;:::i;2963:140::-;2364:9;:7;:9::i;:::-;2356:54;;;;;-1:-1:-1;;;2356:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3046:6;;3025:40;;3062:1;;-1:-1:-1;;;;;3046:6:0;;3025:40;;3062:1;;3025:40;3076:6;:19;;-1:-1:-1;;;;;;3076:19:0;;;2963:140::o;2152:79::-;2217:6;;-1:-1:-1;;;;;2217:6:0;2152:79;:::o;2518:94::-;2598:6;;2558:4;;-1:-1:-1;;;;;2598:6:0;2582:12;:10;:12::i;:::-;-1:-1:-1;;;;;2582:22:0;;2575:29;;2518:94;:::o;26055:168::-;26144:7;26178:1;26167:8;:12;:51;;26211:7;26167:51;;;26182:26;26204:3;26183:15;:7;26195:2;26183:15;:11;:15;:::i;26182:26::-;26160:58;26055:168;-1:-1:-1;;;26055:168:0:o;26515:317::-;26615:4;26644:19;26632:9;:31;26628:61;;;-1:-1:-1;26678:5:0;26671:12;;26628:61;26693:22;26740:1;26722:15;:19;:59;;26762:19;26722:59;;;26744:15;26722:59;26693:88;-1:-1:-1;26805:22:0;26693:88;26824:2;26805:22;:18;:22;:::i;:::-;26793:34;;;;26515:317;-1:-1:-1;;;26515:317:0:o;24836:42::-;;;;:::o;23503:81::-;23551:7;23572;-1:-1:-1;;;;;23572:7:0;23503:81;:::o;29365:96::-;2364:9;:7;:9::i;:::-;2356:54;;;;;-1:-1:-1;;;2356:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29429:15;:27;;-1:-1:-1;;;;;;29429:27:0;-1:-1:-1;;;;;29429:27:0;;;;;;;;;;29365:96::o;3258:109::-;2364:9;:7;:9::i;:::-;2356:54;;;;;-1:-1:-1;;;2356:54:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3331:28;3350:8;3331:18;:28::i;:::-;3258:109;:::o;26228:282::-;26335:7;;26363:23;:12;26380:5;26363:23;:16;:23;:::i;:::-;26351:35;-1:-1:-1;26391:9:0;26403:46;:16;26424:24;26403:46;:20;:46;:::i;:::-;26391:58;;26463:1;26458;:6;26454:32;;26479:1;26472:8;;;;;;26454:32;26497:8;:1;26503;26497:8;:5;:8;:::i;:::-;26490:15;26228:282;-1:-1:-1;;;;;26228:282:0:o;8874:471::-;8932:7;9177:6;9173:47;;-1:-1:-1;9207:1:0;9200:8;;9173:47;9244:5;;;9248:1;9244;:5;:1;9268:5;;;;;:10;9260:56;;;;-1:-1:-1;;;9260:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9813:132;9871:7;9898:39;9902:1;9905;9898:39;;;;;;;;;;;;;;;;;:3;:39::i;7958:136::-;8016:7;8043:43;8047:1;8050;8043:43;;;;;;;;;;;;;;;;;:3;:43::i;7502:181::-;7560:7;7592:5;;;7616:6;;;;7608:46;;;;;-1:-1:-1;;;7608:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;858:98;938:10;858:98;:::o;3473:229::-;-1:-1:-1;;;;;3547:22:0;;3539:73;;;;-1:-1:-1;;;3539:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3649:6;;3628:38;;-1:-1:-1;;;;;3628:38:0;;;;3649:6;;3628:38;;3649:6;;3628:38;3677:6;:17;;-1:-1:-1;;;;;;3677:17:0;-1:-1:-1;;;;;3677:17:0;;;;;;;;;;3473:229::o;10475:345::-;10561:7;10663:12;10656:5;10648:28;;;;-1:-1:-1;;;10648:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;10648:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10687:9;10703:1;10699;:5;;;;;;;10475:345;-1:-1:-1;;;;;10475:345:0:o;8431:192::-;8517:7;8553:12;8545:6;;;;8537:29;;;;-1:-1:-1;;;8537:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;8537:29:0;-1:-1:-1;;;8589:5:0;;;8431:192::o

Swarm Source

bzzr://59cc9225bfee4a6599eff0923840b4160bad1952ecb11bd7e65475bf0e6094ce

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.