Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 714 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Release | 16414210 | 438 days ago | IN | 0 ETH | 0.00171531 | ||||
Release | 9192002 | 1549 days ago | IN | 0 ETH | 0.00027804 | ||||
Release | 9191992 | 1549 days ago | IN | 0 ETH | 0.00034756 | ||||
Release | 5731198 | 2124 days ago | IN | 0 ETH | 0.00091307 | ||||
Release | 5731178 | 2124 days ago | IN | 0 ETH | 0.00092405 | ||||
Release | 5731149 | 2124 days ago | IN | 0 ETH | 0.00254774 | ||||
Release | 5556860 | 2155 days ago | IN | 0 ETH | 0.00316274 | ||||
Hodl | 5525615 | 2161 days ago | IN | 0 ETH | 0.00007919 | ||||
Hodl | 5525612 | 2161 days ago | IN | 0 ETH | 0.00007919 | ||||
Hodl | 5525577 | 2161 days ago | IN | 0 ETH | 0.00044845 | ||||
Hodl | 5517889 | 2162 days ago | IN | 0 ETH | 0.00017934 | ||||
Hodl | 5504406 | 2164 days ago | IN | 0 ETH | 0.00044845 | ||||
Hodl | 5503083 | 2165 days ago | IN | 0 ETH | 0.00061288 | ||||
Hodl | 5498720 | 2165 days ago | IN | 0 ETH | 0.00029892 | ||||
Release | 5494222 | 2166 days ago | IN | 0 ETH | 0.00093377 | ||||
Release | 5485998 | 2168 days ago | IN | 0 ETH | 0.00018642 | ||||
Release | 5485969 | 2168 days ago | IN | 0 ETH | 0.00018642 | ||||
Release | 5485950 | 2168 days ago | IN | 0 ETH | 0.00018642 | ||||
Hodl | 5485271 | 2168 days ago | IN | 0 ETH | 0.00014946 | ||||
Hodl | 5474313 | 2169 days ago | IN | 0 ETH | 0.00032871 | ||||
Hodl | 5452683 | 2173 days ago | IN | 0 ETH | 0.00002627 | ||||
Hodl | 5452678 | 2173 days ago | IN | 0 ETH | 0.00014942 | ||||
Hodl | 5429035 | 2177 days ago | IN | 0 ETH | 0.00016448 | ||||
Hodl | 5428453 | 2177 days ago | IN | 0 ETH | 0.00032896 | ||||
Hodl | 5421307 | 2179 days ago | IN | 0 ETH | 0.00017929 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Hodler
Compiler Version
v0.4.18+commit.9cf6e910
Optimization Enabled:
No with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2018-01-23 */ pragma solidity 0.4.18; // File: zeppelin-solidity/contracts/ownership/rbac/Roles.sol /** * @title Roles * @author Francisco Giordano (@frangio) * @dev Library for managing addresses assigned to a Role. * See RBAC.sol for example usage. */ library Roles { struct Role { mapping (address => bool) bearer; } /** * @dev give an address access to this role */ function add(Role storage role, address addr) internal { role.bearer[addr] = true; } /** * @dev remove an address' access to this role */ function remove(Role storage role, address addr) internal { role.bearer[addr] = false; } /** * @dev check if an address has this role * // reverts */ function check(Role storage role, address addr) view internal { require(has(role, addr)); } /** * @dev check if an address has this role * @return bool */ function has(Role storage role, address addr) view internal returns (bool) { return role.bearer[addr]; } } // File: zeppelin-solidity/contracts/ownership/rbac/RBAC.sol /** * @title RBAC (Role-Based Access Control) * @author Matt Condon (@Shrugs) * @dev Stores and provides setters and getters for roles and addresses. * Supports unlimited numbers of roles and addresses. * See //contracts/examples/RBACExample.sol for an example of usage. * This RBAC method uses strings to key roles. It may be beneficial * for you to write your own implementation of this interface using Enums or similar. * It's also recommended that you define constants in the contract, like ROLE_ADMIN below, * to avoid typos. */ contract RBAC { using Roles for Roles.Role; mapping (string => Roles.Role) private roles; event RoleAdded(address addr, string roleName); event RoleRemoved(address addr, string roleName); /** * A constant role name for indicating admins. */ string public constant ROLE_ADMIN = "admin"; /** * @dev constructor. Sets msg.sender as admin by default */ function RBAC() public { addRole(msg.sender, ROLE_ADMIN); } /** * @dev add a role to an address * @param addr address * @param roleName the name of the role */ function addRole(address addr, string roleName) internal { roles[roleName].add(addr); RoleAdded(addr, roleName); } /** * @dev remove a role from an address * @param addr address * @param roleName the name of the role */ function removeRole(address addr, string roleName) internal { roles[roleName].remove(addr); RoleRemoved(addr, roleName); } /** * @dev reverts if addr does not have role * @param addr address * @param roleName the name of the role * // reverts */ function checkRole(address addr, string roleName) view public { roles[roleName].check(addr); } /** * @dev determine if addr has role * @param addr address * @param roleName the name of the role * @return bool */ function hasRole(address addr, string roleName) view public returns (bool) { return roles[roleName].has(addr); } /** * @dev add a role to an address * @param addr address * @param roleName the name of the role */ function adminAddRole(address addr, string roleName) onlyAdmin public { addRole(addr, roleName); } /** * @dev remove a role from an address * @param addr address * @param roleName the name of the role */ function adminRemoveRole(address addr, string roleName) onlyAdmin public { removeRole(addr, roleName); } /** * @dev modifier to scope access to a single role (uses msg.sender as addr) * @param roleName the name of the role * // reverts */ modifier onlyRole(string roleName) { checkRole(msg.sender, roleName); _; } /** * @dev modifier to scope access to admins * // reverts */ modifier onlyAdmin() { checkRole(msg.sender, ROLE_ADMIN); _; } /** * @dev modifier to scope access to a set of roles (uses msg.sender as addr) * @param roleNames the names of the roles to scope access to * // reverts * * @TODO - when solidity supports dynamic arrays as arguments to modifiers, provide this * see: https://github.com/ethereum/solidity/issues/2467 */ // modifier onlyRoles(string[] roleNames) { // bool hasAnyRole = false; // for (uint8 i = 0; i < roleNames.length; i++) { // if (hasRole(msg.sender, roleNames[i])) { // hasAnyRole = true; // break; // } // } // require(hasAnyRole); // _; // } } // File: zeppelin-solidity/contracts/math/SafeMath.sol /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; assert(c / a == b); return c; } 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 c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { assert(b <= a); return a - b; } function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; assert(c >= a); return c; } } // File: zeppelin-solidity/contracts/token/ERC20Basic.sol /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; 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: zeppelin-solidity/contracts/token/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; /** * @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]); // SafeMath.sub will throw if there is not enough balance. balances[msg.sender] = balances[msg.sender].sub(_value); balances[_to] = balances[_to].add(_value); 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 balance) { return balances[_owner]; } } // File: zeppelin-solidity/contracts/token/BurnableToken.sol /** * @title Burnable Token * @dev Token that can be irreversibly burned (destroyed). */ contract BurnableToken is BasicToken { event Burn(address indexed burner, uint256 value); /** * @dev Burns a specific amount of tokens. * @param _value The amount of token to be burned. */ function burn(uint256 _value) public { require(_value <= balances[msg.sender]); // no need to require value <= totalSupply, since that would imply the // sender's balance is greater than the totalSupply, which *should* be an assertion failure address burner = msg.sender; balances[burner] = balances[burner].sub(_value); totalSupply = totalSupply.sub(_value); Burn(burner, _value); } } // File: zeppelin-solidity/contracts/token/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: zeppelin-solidity/contracts/token/StandardToken.sol /** * @title Standard ERC20 token * * @dev Implementation of the basic standard token. * @dev https://github.com/ethereum/EIPs/issues/20 * @dev 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); 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; 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, uint _addedValue) public returns (bool) { allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue); 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, uint _subtractedValue) public returns (bool) { uint oldValue = allowed[msg.sender][_spender]; if (_subtractedValue > oldValue) { allowed[msg.sender][_spender] = 0; } else { allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue); } Approval(msg.sender, _spender, allowed[msg.sender][_spender]); return true; } } // File: contracts/DUBI.sol contract DUBI is StandardToken, BurnableToken, RBAC { string public constant name = "Decentralized Universal Basic Income"; string public constant symbol = "DUBI"; uint8 public constant decimals = 18; string constant public ROLE_MINT = "mint"; event MintLog(address indexed to, uint256 amount); function DUBI() public { totalSupply = 0; } // used by contracts to mint DUBI tokens function mint(address _to, uint256 _amount) external onlyRole(ROLE_MINT) returns (bool) { require(_to != address(0)); require(_amount > 0); // update state totalSupply = totalSupply.add(_amount); balances[_to] = balances[_to].add(_amount); // logs MintLog(_to, _amount); Transfer(0x0, _to, _amount); return true; } } // File: contracts/Purpose.sol contract Purpose is StandardToken, BurnableToken, RBAC { string public constant name = "Purpose"; string public constant symbol = "PRPS"; uint8 public constant decimals = 18; string constant public ROLE_BURN = "burn"; string constant public ROLE_TRANSFER = "transfer"; address public supplier; function Purpose(address _supplier) public { supplier = _supplier; totalSupply = 1000000000 ether; balances[supplier] = totalSupply; } // used by burner contract to burn athenes tokens function supplyBurn(uint256 _value) external onlyRole(ROLE_BURN) returns (bool) { require(_value > 0); // update state balances[supplier] = balances[supplier].sub(_value); totalSupply = totalSupply.sub(_value); // logs Burn(supplier, _value); return true; } // used by hodler contract to transfer users tokens to it function hodlerTransfer(address _from, uint256 _value) external onlyRole(ROLE_TRANSFER) returns (bool) { require(_from != address(0)); require(_value > 0); // hodler address _hodler = msg.sender; // update state balances[_from] = balances[_from].sub(_value); balances[_hodler] = balances[_hodler].add(_value); // logs Transfer(_from, _hodler, _value); return true; } } // File: zeppelin-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 OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev The Ownable constructor sets the original `owner` of the contract to the sender * account. */ function Ownable() 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 transfer control of the contract to a newOwner. * @param newOwner The address to transfer ownership to. */ function transferOwnership(address newOwner) public onlyOwner { require(newOwner != address(0)); OwnershipTransferred(owner, newOwner); owner = newOwner; } } // File: zeppelin-solidity/contracts/token/SafeERC20.sol /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure. * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { function safeTransfer(ERC20Basic token, address to, uint256 value) internal { assert(token.transfer(to, value)); } function safeTransferFrom(ERC20 token, address from, address to, uint256 value) internal { assert(token.transferFrom(from, to, value)); } function safeApprove(ERC20 token, address spender, uint256 value) internal { assert(token.approve(spender, value)); } } // File: contracts/Hodler.sol contract Hodler is Ownable { using SafeMath for uint256; using SafeERC20 for Purpose; using SafeERC20 for DUBI; Purpose public purpose; DUBI public dubi; struct Item { uint256 id; address beneficiary; uint256 value; uint256 releaseTime; bool fulfilled; } mapping(address => mapping(uint256 => Item)) private items; function Hodler(address _purpose, address _dubi) public { require(_purpose != address(0)); purpose = Purpose(_purpose); changeDubiAddress(_dubi); } function changeDubiAddress(address _dubi) public onlyOwner { require(_dubi != address(0)); dubi = DUBI(_dubi); } function hodl(uint256 _id, uint256 _value, uint256 _months) external { require(_id > 0); require(_value > 0); // only 3 types are allowed require(_months == 3 || _months == 6 || _months == 12); // user address _user = msg.sender; // get dubi item Item storage item = items[_user][_id]; // make sure dubi doesnt exist already require(item.id != _id); // turn months to seconds uint256 _seconds = _months.mul(2628000); // get release time uint256 _releaseTime = now.add(_seconds); require(_releaseTime > now); // check if user has enough balance uint256 balance = purpose.balanceOf(_user); require(balance >= _value); // calculate percentage to mint for user: 3 months = 1% => _months / 3 = x uint256 userPercentage = _months.div(3); // get dubi amount: => (_value * userPercentage) / 100 uint256 userDubiAmount = _value.mul(userPercentage).div(100); // calculate percentage * 100 to mint for owner: 3 months = 0.05% => (_months * (0.05 * 100)) / 3 = x * 100 uint256 ownerPercentage100 = _months.mul(5).div(3); // get dubi amount: => (_value * ownerPercentage100) / 100 * 100 uint256 ownerDubiAmount = _value.mul(ownerPercentage100).div(10000); // update state items[_user][_id] = Item(_id, _user, _value, _releaseTime, false); // transfer tokens to hodler assert(purpose.hodlerTransfer(_user, _value)); // mint tokens for user and owner assert(dubi.mint(_user, userDubiAmount)); assert(dubi.mint(owner, ownerDubiAmount)); } function release(uint256 _id) external { require(_id > 0); // user address _user = msg.sender; // get item Item storage item = items[_user][_id]; // check if it exists require(item.id == _id); // check if its not already fulfilled require(!item.fulfilled); // check time require(now >= item.releaseTime); // check if there is enough tokens uint256 balance = purpose.balanceOf(this); require(balance >= item.value); // update state item.fulfilled = true; // transfer tokens to beneficiary purpose.safeTransfer(item.beneficiary, item.value); } function getItem(address _user, uint256 _id) public view returns (uint256, address, uint256, uint256, bool) { Item storage item = items[_user][_id]; return ( item.id, item.beneficiary, item.value, item.releaseTime, item.fulfilled ); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"constant":false,"inputs":[{"name":"_id","type":"uint256"}],"name":"release","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"_dubi","type":"address"}],"name":"changeDubiAddress","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dubi","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_id","type":"uint256"},{"name":"_value","type":"uint256"},{"name":"_months","type":"uint256"}],"name":"hodl","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"purpose","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_user","type":"address"},{"name":"_id","type":"uint256"}],"name":"getItem","outputs":[{"name":"","type":"uint256"},{"name":"","type":"address"},{"name":"","type":"uint256"},{"name":"","type":"uint256"},{"name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"inputs":[{"name":"_purpose","type":"address"},{"name":"_dubi","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]
Contract Creation Code
6060604052341561000f57600080fd5b60405160408061128a83398101604052808051906020019091908051906020019091905050336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141515156100b057600080fd5b81600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555061010d8161011464010000000002610536176401000000009004565b50506101ef565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561016f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156101ab57600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61108c806101fe6000396000f30060606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806337bdc99b146100935780633d595134146100b657806354829cad146100ef57806364c343641461014457806370740aab146101795780638da5cb5b146101ce578063b8a80aac14610223578063f2fde38b146102c5575b600080fd5b341561009e57600080fd5b6100b460048080359060200190919050506102fe565b005b34156100c157600080fd5b6100ed600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610536565b005b34156100fa57600080fd5b610102610611565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561014f57600080fd5b6101776004808035906020019091908035906020019091908035906020019091905050610637565b005b341561018457600080fd5b61018c610cc3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101d957600080fd5b6101e1610ce9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561022e57600080fd5b610263600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610d0e565b604051808681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b34156102d057600080fd5b6102fc600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610dc4565b005b6000806000808411151561031157600080fd5b339250600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020915083826000015414151561037857600080fd5b8160040160009054906101000a900460ff1615151561039657600080fd5b816003015442101515156103a957600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561046e57600080fd5b6102c65a03f1151561047f57600080fd5b5050506040518051905090508160020154811015151561049e57600080fd5b60018260040160006101000a81548160ff0219169083151502179055506105308260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360020154600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f199092919063ffffffff16565b50505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561059157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156105cd57600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000806000806000806000808c11151561065357600080fd5b60008b11151561066257600080fd5b60038a1480610671575060068a145b8061067c5750600c8a145b151561068757600080fd5b339850600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008d815260200190815260200160002097508b8860000154141515156106ef57600080fd5b610705622819a08b610fec90919063ffffffff16565b965061071a874261102790919063ffffffff16565b9550428611151561072a57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318a6000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15156107ef57600080fd5b6102c65a03f1151561080057600080fd5b5050506040518051905094508a851015151561081b57600080fd5b61082f60038b61104590919063ffffffff16565b93506108576064610849868e610fec90919063ffffffff16565b61104590919063ffffffff16565b9250610880600361087260058d610fec90919063ffffffff16565b61104590919063ffffffff16565b91506108a961271061089b848e610fec90919063ffffffff16565b61104590919063ffffffff16565b905060a0604051908101604052808d81526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020018c815260200187815260200160001515815250600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008e81526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a0bd1ec18a8d6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610a9157600080fd5b6102c65a03f11515610aa257600080fd5b505050604051805190501515610ab457fe5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f198a856000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610b8157600080fd5b6102c65a03f11515610b9257600080fd5b505050604051805190501515610ba457fe5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f196000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610c9257600080fd5b6102c65a03f11515610ca357600080fd5b505050604051805190501515610cb557fe5b505050505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600080600080600360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000888152602001908152602001600020905080600001548160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826002015483600301548460040160009054906101000a900460ff1695509550955095509550509295509295909350565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e1f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e5b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610fc457600080fd5b6102c65a03f11515610fd557600080fd5b505050604051805190501515610fe757fe5b505050565b60008060008414156110015760009150611020565b828402905082848281151561101257fe5b0414151561101c57fe5b8091505b5092915050565b600080828401905083811015151561103b57fe5b8091505092915050565b600080828481151561105357fe5b04905080915050929150505600a165627a7a723058202d920fad924d8450b2d0f845c64ec747584c6c37dcafb2ce149c8793201814a600290000000000000000000000007641b2ca9ddd58addf6e3381c1f994aac5f1a32f000000000000000000000000d4cffeef10f60eca581b5e1146b5aca4194a4c3b
Deployed Bytecode
0x60606040526004361061008e576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806337bdc99b146100935780633d595134146100b657806354829cad146100ef57806364c343641461014457806370740aab146101795780638da5cb5b146101ce578063b8a80aac14610223578063f2fde38b146102c5575b600080fd5b341561009e57600080fd5b6100b460048080359060200190919050506102fe565b005b34156100c157600080fd5b6100ed600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610536565b005b34156100fa57600080fd5b610102610611565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561014f57600080fd5b6101776004808035906020019091908035906020019091908035906020019091905050610637565b005b341561018457600080fd5b61018c610cc3565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34156101d957600080fd5b6101e1610ce9565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561022e57600080fd5b610263600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091908035906020019091905050610d0e565b604051808681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001848152602001838152602001821515151581526020019550505050505060405180910390f35b34156102d057600080fd5b6102fc600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050610dc4565b005b6000806000808411151561031157600080fd5b339250600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000858152602001908152602001600020915083826000015414151561037857600080fd5b8160040160009054906101000a900460ff1615151561039657600080fd5b816003015442101515156103a957600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231306000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b151561046e57600080fd5b6102c65a03f1151561047f57600080fd5b5050506040518051905090508160020154811015151561049e57600080fd5b60018260040160006101000a81548160ff0219169083151502179055506105308260010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168360020154600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610f199092919063ffffffff16565b50505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561059157600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156105cd57600080fd5b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000806000806000806000806000808c11151561065357600080fd5b60008b11151561066257600080fd5b60038a1480610671575060068a145b8061067c5750600c8a145b151561068757600080fd5b339850600360008a73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008d815260200190815260200160002097508b8860000154141515156106ef57600080fd5b610705622819a08b610fec90919063ffffffff16565b965061071a874261102790919063ffffffff16565b9550428611151561072a57600080fd5b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318a6000604051602001526040518263ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001915050602060405180830381600087803b15156107ef57600080fd5b6102c65a03f1151561080057600080fd5b5050506040518051905094508a851015151561081b57600080fd5b61082f60038b61104590919063ffffffff16565b93506108576064610849868e610fec90919063ffffffff16565b61104590919063ffffffff16565b9250610880600361087260058d610fec90919063ffffffff16565b61104590919063ffffffff16565b91506108a961271061089b848e610fec90919063ffffffff16565b61104590919063ffffffff16565b905060a0604051908101604052808d81526020018a73ffffffffffffffffffffffffffffffffffffffff1681526020018c815260200187815260200160001515815250600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008e81526020019081526020016000206000820151816000015560208201518160010160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550604082015181600201556060820151816003015560808201518160040160006101000a81548160ff021916908315150217905550905050600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663a0bd1ec18a8d6000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610a9157600080fd5b6102c65a03f11515610aa257600080fd5b505050604051805190501515610ab457fe5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f198a856000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610b8157600080fd5b6102c65a03f11515610b9257600080fd5b505050604051805190501515610ba457fe5b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f196000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff16836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610c9257600080fd5b6102c65a03f11515610ca357600080fd5b505050604051805190501515610cb557fe5b505050505050505050505050565b600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080600080600080600360008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000888152602001908152602001600020905080600001548160010160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16826002015483600301548460040160009054906101000a900460ff1695509550955095509550509295509295909350565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16141515610e1f57600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151515610e5b57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836000604051602001526040518363ffffffff167c0100000000000000000000000000000000000000000000000000000000028152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1515610fc457600080fd5b6102c65a03f11515610fd557600080fd5b505050604051805190501515610fe757fe5b505050565b60008060008414156110015760009150611020565b828402905082848281151561101257fe5b0414151561101c57fe5b8091505b5092915050565b600080828401905083811015151561103b57fe5b8091505092915050565b600080828481151561105357fe5b04905080915050929150505600a165627a7a723058202d920fad924d8450b2d0f845c64ec747584c6c37dcafb2ce149c8793201814a60029
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007641b2ca9ddd58addf6e3381c1f994aac5f1a32f000000000000000000000000d4cffeef10f60eca581b5e1146b5aca4194a4c3b
-----Decoded View---------------
Arg [0] : _purpose (address): 0x7641b2Ca9DDD58adDf6e3381c1F994Aac5f1A32f
Arg [1] : _dubi (address): 0xD4CffeeF10F60eCA581b5E1146B5Aca4194a4C3b
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007641b2ca9ddd58addf6e3381c1f994aac5f1a32f
Arg [1] : 000000000000000000000000d4cffeef10f60eca581b5e1146b5aca4194a4c3b
Swarm Source
bzzr://2d920fad924d8450b2d0f845c64ec747584c6c37dcafb2ce149c8793201814a6
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 24 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
[ 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.