Feature Tip: Add private address tag to any address under My Name Tag !
This nametag was submitted by Kleros Curate.
More Info
Private Name Tags
ContractCreator
Multichain Info
No addresses found
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
0x36a1c41aaad532fb7b18bc6731c85f812f734f78c0e77d04360455979bc321ee | Claim All | (pending) | 11 days ago | IN | 0 ETH | (Pending) | |||
0xfad815702a3b23294b70dba0e71c83be9817c65f8f477e322085a1111ea18c5f | Claim All | (pending) | 11 days ago | IN | 0 ETH | (Pending) | |||
0x56fe19437dd7d49e01065cedb9fd63f506b35b5cabb259aa587b8ce2acb78140 | Claim All | (pending) | 11 days ago | IN | 0 ETH | (Pending) | |||
0x122494268da93212b97843d50e571c23504668a91b622d81e1cb763ec9bb0004 | Claim All | (pending) | 11 days ago | IN | 0 ETH | (Pending) | |||
Claim All | 22088312 | 3 hrs ago | IN | 0 ETH | 0.00005075 | ||||
Claim All | 22086625 | 8 hrs ago | IN | 0 ETH | 0.00012844 | ||||
Claim All | 22085483 | 12 hrs ago | IN | 0 ETH | 0.00014192 | ||||
Claim All | 22084998 | 14 hrs ago | IN | 0 ETH | 0.00013804 | ||||
Claim All | 22083969 | 17 hrs ago | IN | 0 ETH | 0.00005336 | ||||
Claim All | 22080731 | 28 hrs ago | IN | 0 ETH | 0.00038778 | ||||
Claim All | 22079446 | 32 hrs ago | IN | 0 ETH | 0.00004112 | ||||
Claim All | 22072465 | 2 days ago | IN | 0 ETH | 0.00007784 | ||||
Claim All | 22070278 | 2 days ago | IN | 0 ETH | 0.00008797 | ||||
Claim All | 22068737 | 2 days ago | IN | 0 ETH | 0.00010679 | ||||
Claim All | 22065024 | 3 days ago | IN | 0 ETH | 0.00010353 | ||||
Claim All | 22063168 | 3 days ago | IN | 0 ETH | 0.00009396 | ||||
Claim All | 22062825 | 3 days ago | IN | 0 ETH | 0.00013971 | ||||
Claim All | 22060206 | 4 days ago | IN | 0 ETH | 0.00006346 | ||||
Claim All | 22053328 | 5 days ago | IN | 0 ETH | 0.00006259 | ||||
Claim All | 22049471 | 5 days ago | IN | 0 ETH | 0.00014296 | ||||
Claim All | 22049185 | 5 days ago | IN | 0 ETH | 0.00010158 | ||||
Claim All | 22041619 | 6 days ago | IN | 0 ETH | 0.00005268 | ||||
Claim All | 22041334 | 6 days ago | IN | 0 ETH | 0.00010468 | ||||
Claim All | 22030515 | 8 days ago | IN | 0 ETH | 0.00007007 | ||||
Claim All | 22028163 | 8 days ago | IN | 0 ETH | 0.0001288 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Method | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|---|
Transfer | 16522222 | 779 days ago | 0.01283388 ETH |
Loading...
Loading
Contract Name:
BoneLocker
Compiler Version
v0.6.12+commit.27d51765
Optimization Enabled:
Yes with 5000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.6.12; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/math/SafeMath.sol"; // BoneToken locker contract. contract BoneLocker is Ownable { using SafeMath for uint256; IERC20 boneToken; address emergencyAddress; bool emergencyFlag = false; struct LockInfo{ uint256 _amount; uint256 _timestamp; bool _isDev; } uint256 public lockingPeriod; uint256 public devLockingPeriod; mapping (address => LockInfo[]) public lockInfoByUser; mapping (address => uint256) public latestCounterByUser; mapping (address => uint256) public unclaimedTokensByUser; event LockingPeriod(address indexed user, uint newLockingPeriod, uint newDevLockingPeriod); constructor(address _boneToken, address _emergencyAddress, uint256 _lockingPeriodInDays, uint256 _devLockingPeriodInDays) public { require(address(_boneToken) != address(0), "_bone token is a zero address"); require(address(_emergencyAddress) != address(0), "_emergencyAddress is a zero address"); boneToken = IERC20(_boneToken); emergencyAddress = _emergencyAddress; lockingPeriod = _lockingPeriodInDays * 1 days; devLockingPeriod = _devLockingPeriodInDays * 1 days; } // function to lock user reward bone tokens in token contract, called by onlyOwner that would be TopDog.sol function lock(address _holder, uint256 _amount, bool _isDev) external onlyOwner { require(_holder != address(0), "Invalid user address"); require(_amount > 0, "Invalid amount entered"); lockInfoByUser[_holder].push(LockInfo(_amount, now, _isDev)); unclaimedTokensByUser[_holder] = unclaimedTokensByUser[_holder].add(_amount); } // function to claim all the tokens locked for a user, after the locking period function claimAllForUser(uint256 r, address user) public { require(!emergencyFlag, "Emergency mode, cannot access this function"); require(r>latestCounterByUser[user], "Increase right header, already claimed till this"); require(r<=lockInfoByUser[user].length, "Decrease right header, it exceeds total length"); LockInfo[] memory lockInfoArrayForUser = lockInfoByUser[user]; uint256 totalTransferableAmount = 0; uint i; for (i=latestCounterByUser[user]; i<r; i++){ uint256 lockingPeriodHere = lockingPeriod; if(lockInfoArrayForUser[i]._isDev){ lockingPeriodHere = devLockingPeriod; } if(now >= (lockInfoArrayForUser[i]._timestamp.add(lockingPeriodHere))){ totalTransferableAmount = totalTransferableAmount.add(lockInfoArrayForUser[i]._amount); unclaimedTokensByUser[user] = unclaimedTokensByUser[user].sub(lockInfoArrayForUser[i]._amount); latestCounterByUser[user] = i.add(1); } else { break; } } boneToken.transfer(user, totalTransferableAmount); } // function to claim all the tokens locked by user, after the locking period function claimAll(uint256 r) external { claimAllForUser(r, msg.sender); } // function to get claimable amount for any user function getClaimableAmount(address _user) external view returns(uint256) { LockInfo[] memory lockInfoArrayForUser = lockInfoByUser[_user]; uint256 totalTransferableAmount = 0; uint i; for (i=latestCounterByUser[_user]; i<lockInfoArrayForUser.length; i++){ uint256 lockingPeriodHere = lockingPeriod; if(lockInfoArrayForUser[i]._isDev){ lockingPeriodHere = devLockingPeriod; } if(now >= (lockInfoArrayForUser[i]._timestamp.add(lockingPeriodHere))){ totalTransferableAmount = totalTransferableAmount.add(lockInfoArrayForUser[i]._amount); } else { break; } } return totalTransferableAmount; } // get the left and right headers for a user, left header is the index counter till which we have already iterated, right header is basically the length of user's lockInfo array function getLeftRightCounters(address _user) external view returns(uint256, uint256){ return(latestCounterByUser[_user], lockInfoByUser[_user].length); } // in cases of emergency, emergency address can set this to true, which will enable emergencyWithdraw function function setEmergencyFlag(bool _emergencyFlag) external { require(msg.sender == emergencyAddress, "This function can only be called by emergencyAddress"); emergencyFlag = _emergencyFlag; } // function for owner to transfer all tokens to another address function emergencyWithdrawOwner(address _to) external onlyOwner{ uint256 amount = boneToken.balanceOf(address(this)); require(boneToken.transfer(_to, amount), 'MerkleDistributor: Transfer failed.'); } // emergency address can be updated from here function setEmergencyAddr(address _newAddr) external { require(msg.sender == emergencyAddress, "This function can only be called by emergencyAddress"); require(_newAddr != address(0), "_newAddr is a zero address"); emergencyAddress = _newAddr; } // function to update/change the normal & dev locking period function setLockingPeriod(uint256 _newLockingPeriod, uint256 _newDevLockingPeriod) external onlyOwner { lockingPeriod = _newLockingPeriod; devLockingPeriod = _newDevLockingPeriod; emit LockingPeriod(msg.sender, _newLockingPeriod, _newDevLockingPeriod); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () internal { address msgSender = _msgSender(); _owner = msgSender; emit OwnershipTransferred(address(0), msgSender); } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == _msgSender(), "Ownable: caller is not the owner"); _; } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { 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 virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ 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); }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.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, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, 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 (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @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) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @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) { 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, reverting 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) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting 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) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * 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, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } }
// SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with 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. */ abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 5000 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_boneToken","type":"address"},{"internalType":"address","name":"_emergencyAddress","type":"address"},{"internalType":"uint256","name":"_lockingPeriodInDays","type":"uint256"},{"internalType":"uint256","name":"_devLockingPeriodInDays","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"newLockingPeriod","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDevLockingPeriod","type":"uint256"}],"name":"LockingPeriod","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"r","type":"uint256"}],"name":"claimAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"r","type":"uint256"},{"internalType":"address","name":"user","type":"address"}],"name":"claimAllForUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devLockingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"emergencyWithdrawOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getClaimableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getLeftRightCounters","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"latestCounterByUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_holder","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_isDev","type":"bool"}],"name":"lock","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"lockInfoByUser","outputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bool","name":"_isDev","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lockingPeriod","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newAddr","type":"address"}],"name":"setEmergencyAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_emergencyFlag","type":"bool"}],"name":"setEmergencyFlag","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newLockingPeriod","type":"uint256"},{"internalType":"uint256","name":"_newDevLockingPeriod","type":"uint256"}],"name":"setLockingPeriod","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"unclaimedTokensByUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040526002805460ff60a01b1916905534801561001d57600080fd5b506040516114923803806114928339818101604052608081101561004057600080fd5b5080516020820151604083015160609093015191929091600061006161018e565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038416610106576040805162461bcd60e51b815260206004820152601d60248201527f5f626f6e6520746f6b656e2069732061207a65726f2061646472657373000000604482015290519081900360640190fd5b6001600160a01b03831661014b5760405162461bcd60e51b815260040180806020018281038252602381526020018061146f6023913960400191505060405180910390fd5b600180546001600160a01b039586166001600160a01b03199182161790915560028054949095169316929092179092556201518091820260035502600455610192565b3390565b6112ce806101a16000396000f3fe608060405234801561001057600080fd5b506004361061011b5760003560e01c8063758a23e0116100b2578063c3ca2d8011610081578063e12f3a6111610066578063e12f3a611461032c578063f2fde38b14610352578063f92139df146103785761011b565b8063c3ca2d80146102ce578063c697444b1461030d5761011b565b8063758a23e0146102595780638da5cb5b1461027f578063bcf78da4146102a3578063bff783ae146102ab5761011b565b806362bfcb06116100ee57806362bfcb06146101e85780636930fd2a1461020e578063715018a61461022b578063750320f1146102335761011b565b8063230a3f7f146101205780634e60ac821461016c578063507bb14d1461019a578063550066d5146101ce575b600080fd5b61014c6004803603604081101561013657600080fd5b506001600160a01b03813516906020013561039e565b604080519384526020840192909252151582820152519081900360600190f35b6101986004803603604081101561018257600080fd5b50803590602001356001600160a01b03166103e0565b005b610198600480360360608110156101b057600080fd5b506001600160a01b038135169060208101359060400135151561074c565b6101d6610933565b60408051918252519081900360200190f35b610198600480360360208110156101fe57600080fd5b50356001600160a01b0316610939565b6101986004803603602081101561022457600080fd5b5035610b19565b610198610b26565b6101d66004803603602081101561024957600080fd5b50356001600160a01b0316610bfc565b6101d66004803603602081101561026f57600080fd5b50356001600160a01b0316610c0e565b610287610c20565b604080516001600160a01b039092168252519081900360200190f35b6101d6610c2f565b610198600480360360408110156102c157600080fd5b5080359060200135610c35565b6102f4600480360360208110156102e457600080fd5b50356001600160a01b0316610cf1565b6040805192835260208301919091528051918290030190f35b6101986004803603602081101561032357600080fd5b50351515610d19565b6101d66004803603602081101561034257600080fd5b50356001600160a01b0316610dac565b6101986004803603602081101561036857600080fd5b50356001600160a01b0316610ec6565b6101986004803603602081101561038e57600080fd5b50356001600160a01b0316610ff2565b600560205281600052604060002081815481106103b757fe5b600091825260209091206003909102018054600182015460029092015490935090915060ff1683565b60025474010000000000000000000000000000000000000000900460ff161561043a5760405162461bcd60e51b815260040180806020018281038252602b8152602001806111b9602b913960400191505060405180910390fd5b6001600160a01b03811660009081526006602052604090205482116104905760405162461bcd60e51b81526004018080602001828103825260308152602001806111e46030913960400191505060405180910390fd5b6001600160a01b0381166000908152600560205260409020548211156104e75760405162461bcd60e51b815260040180806020018281038252602e815260200180611237602e913960400191505060405180910390fd5b6001600160a01b0381166000908152600560209081526040808320805482518185028101850190935280835260609492939192909184015b828210156105705760008481526020908190206040805160608101825260038602909201805483526001808201548486015260029091015460ff16151591830191909152908352909201910161051f565b505050506001600160a01b038316600090815260066020526040812054919250905b848110156106aa5760035483518490839081106105ab57fe5b602002602001015160400151156105c157506004545b6105eb818584815181106105d157fe5b6020026020010151602001516110d090919063ffffffff16565b421061069b5761061b84838151811061060057fe5b602002602001015160000151846110d090919063ffffffff16565b925061065984838151811061062c57fe5b602090810291909101810151516001600160a01b0388166000908152600790925260409091205490611131565b6001600160a01b03861660009081526007602052604090205561067d8260016110d0565b6001600160a01b0386166000908152600660205260409020556106a1565b506106aa565b50600101610592565b600154604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561071957600080fd5b505af115801561072d573d6000803e3d6000fd5b505050506040513d602081101561074357600080fd5b50505050505050565b61075461118e565b6001600160a01b0316610765610c20565b6001600160a01b0316146107c0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03831661081b576040805162461bcd60e51b815260206004820152601460248201527f496e76616c696420757365722061646472657373000000000000000000000000604482015290519081900360640190fd5b60008211610870576040805162461bcd60e51b815260206004820152601660248201527f496e76616c696420616d6f756e7420656e746572656400000000000000000000604482015290519081900360640190fd5b6001600160a01b0383166000818152600560209081526040808320815160608101835287815242818501908152871515828501908152835460018082018655948852868820935160039091029093019283559051928201929092559051600290910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905592825260079052205461091290836110d0565b6001600160a01b039093166000908152600760205260409020929092555050565b60035481565b61094161118e565b6001600160a01b0316610952610c20565b6001600160a01b0316146109ad576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d6020811015610a3b57600080fd5b5051600154604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015260248201859052915193945091169163a9059cbb916044808201926020929091908290030181600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b505050506040513d6020811015610ad857600080fd5b5051610b155760405162461bcd60e51b81526004018080602001828103825260238152602001806112146023913960400191505060405180910390fd5b5050565b610b2381336103e0565b50565b610b2e61118e565b6001600160a01b0316610b3f610c20565b6001600160a01b031614610b9a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60076020526000908152604090205481565b60066020526000908152604090205481565b6000546001600160a01b031690565b60045481565b610c3d61118e565b6001600160a01b0316610c4e610c20565b6001600160a01b031614610ca9576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600382905560048190556040805183815260208101839052815133927f2d8847c3ea1c4b6f02609bff2ac1776bc3663d31a747102d5722bdffcc2e3721928290030190a25050565b6001600160a01b03166000908152600660209081526040808320546005909252909120549091565b6002546001600160a01b03163314610d625760405162461bcd60e51b81526004018080602001828103825260348152602001806112656034913960400191505060405180910390fd5b6002805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6001600160a01b03811660009081526005602090815260408083208054825181850281018501909352808352606093859084015b82821015610e315760008481526020908190206040805160608101825260038602909201805483526001808201548486015260029091015460ff161515918301919091529083529092019101610de0565b505050506001600160a01b038416600090815260066020526040812054919250905b8251811015610ebe576003548351849083908110610e6d57fe5b60200260200101516040015115610e8357506004545b610e93818584815181106105d157fe5b4210610eaf57610ea884838151811061060057fe5b9250610eb5565b50610ebe565b50600101610e53565b509392505050565b610ece61118e565b6001600160a01b0316610edf610c20565b6001600160a01b031614610f3a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610f7f5760405162461bcd60e51b81526004018080602001828103825260268152602001806111936026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002546001600160a01b0316331461103b5760405162461bcd60e51b81526004018080602001828103825260348152602001806112656034913960400191505060405180910390fd5b6001600160a01b038116611096576040805162461bcd60e51b815260206004820152601a60248201527f5f6e6577416464722069732061207a65726f2061646472657373000000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008282018381101561112a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611188576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373456d657267656e6379206d6f64652c2063616e6e6f742061636365737320746869732066756e6374696f6e496e637265617365207269676874206865616465722c20616c726561647920636c61696d65642074696c6c20746869734d65726b6c654469737472696275746f723a205472616e73666572206661696c65642e4465637265617365207269676874206865616465722c206974206578636565647320746f74616c206c656e677468546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656420627920656d657267656e637941646472657373a26469706673582212201daae400da432fcf87734c4cdec1b06d36c5bd3174e2ff3410c35b531349060764736f6c634300060c00335f656d657267656e6379416464726573732069732061207a65726f20616464726573730000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d90000000000000000000000004267a3ad7d20c2396ebb0fe72119984f7073761c00000000000000000000000000000000000000000000000000000000000000b40000000000000000000000000000000000000000000000000000000000000000
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061011b5760003560e01c8063758a23e0116100b2578063c3ca2d8011610081578063e12f3a6111610066578063e12f3a611461032c578063f2fde38b14610352578063f92139df146103785761011b565b8063c3ca2d80146102ce578063c697444b1461030d5761011b565b8063758a23e0146102595780638da5cb5b1461027f578063bcf78da4146102a3578063bff783ae146102ab5761011b565b806362bfcb06116100ee57806362bfcb06146101e85780636930fd2a1461020e578063715018a61461022b578063750320f1146102335761011b565b8063230a3f7f146101205780634e60ac821461016c578063507bb14d1461019a578063550066d5146101ce575b600080fd5b61014c6004803603604081101561013657600080fd5b506001600160a01b03813516906020013561039e565b604080519384526020840192909252151582820152519081900360600190f35b6101986004803603604081101561018257600080fd5b50803590602001356001600160a01b03166103e0565b005b610198600480360360608110156101b057600080fd5b506001600160a01b038135169060208101359060400135151561074c565b6101d6610933565b60408051918252519081900360200190f35b610198600480360360208110156101fe57600080fd5b50356001600160a01b0316610939565b6101986004803603602081101561022457600080fd5b5035610b19565b610198610b26565b6101d66004803603602081101561024957600080fd5b50356001600160a01b0316610bfc565b6101d66004803603602081101561026f57600080fd5b50356001600160a01b0316610c0e565b610287610c20565b604080516001600160a01b039092168252519081900360200190f35b6101d6610c2f565b610198600480360360408110156102c157600080fd5b5080359060200135610c35565b6102f4600480360360208110156102e457600080fd5b50356001600160a01b0316610cf1565b6040805192835260208301919091528051918290030190f35b6101986004803603602081101561032357600080fd5b50351515610d19565b6101d66004803603602081101561034257600080fd5b50356001600160a01b0316610dac565b6101986004803603602081101561036857600080fd5b50356001600160a01b0316610ec6565b6101986004803603602081101561038e57600080fd5b50356001600160a01b0316610ff2565b600560205281600052604060002081815481106103b757fe5b600091825260209091206003909102018054600182015460029092015490935090915060ff1683565b60025474010000000000000000000000000000000000000000900460ff161561043a5760405162461bcd60e51b815260040180806020018281038252602b8152602001806111b9602b913960400191505060405180910390fd5b6001600160a01b03811660009081526006602052604090205482116104905760405162461bcd60e51b81526004018080602001828103825260308152602001806111e46030913960400191505060405180910390fd5b6001600160a01b0381166000908152600560205260409020548211156104e75760405162461bcd60e51b815260040180806020018281038252602e815260200180611237602e913960400191505060405180910390fd5b6001600160a01b0381166000908152600560209081526040808320805482518185028101850190935280835260609492939192909184015b828210156105705760008481526020908190206040805160608101825260038602909201805483526001808201548486015260029091015460ff16151591830191909152908352909201910161051f565b505050506001600160a01b038316600090815260066020526040812054919250905b848110156106aa5760035483518490839081106105ab57fe5b602002602001015160400151156105c157506004545b6105eb818584815181106105d157fe5b6020026020010151602001516110d090919063ffffffff16565b421061069b5761061b84838151811061060057fe5b602002602001015160000151846110d090919063ffffffff16565b925061065984838151811061062c57fe5b602090810291909101810151516001600160a01b0388166000908152600790925260409091205490611131565b6001600160a01b03861660009081526007602052604090205561067d8260016110d0565b6001600160a01b0386166000908152600660205260409020556106a1565b506106aa565b50600101610592565b600154604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b038781166004830152602482018690529151919092169163a9059cbb9160448083019260209291908290030181600087803b15801561071957600080fd5b505af115801561072d573d6000803e3d6000fd5b505050506040513d602081101561074357600080fd5b50505050505050565b61075461118e565b6001600160a01b0316610765610c20565b6001600160a01b0316146107c0576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b03831661081b576040805162461bcd60e51b815260206004820152601460248201527f496e76616c696420757365722061646472657373000000000000000000000000604482015290519081900360640190fd5b60008211610870576040805162461bcd60e51b815260206004820152601660248201527f496e76616c696420616d6f756e7420656e746572656400000000000000000000604482015290519081900360640190fd5b6001600160a01b0383166000818152600560209081526040808320815160608101835287815242818501908152871515828501908152835460018082018655948852868820935160039091029093019283559051928201929092559051600290910180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001691151591909117905592825260079052205461091290836110d0565b6001600160a01b039093166000908152600760205260409020929092555050565b60035481565b61094161118e565b6001600160a01b0316610952610c20565b6001600160a01b0316146109ad576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a1157600080fd5b505afa158015610a25573d6000803e3d6000fd5b505050506040513d6020811015610a3b57600080fd5b5051600154604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081526001600160a01b03868116600483015260248201859052915193945091169163a9059cbb916044808201926020929091908290030181600087803b158015610aae57600080fd5b505af1158015610ac2573d6000803e3d6000fd5b505050506040513d6020811015610ad857600080fd5b5051610b155760405162461bcd60e51b81526004018080602001828103825260238152602001806112146023913960400191505060405180910390fd5b5050565b610b2381336103e0565b50565b610b2e61118e565b6001600160a01b0316610b3f610c20565b6001600160a01b031614610b9a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b60076020526000908152604090205481565b60066020526000908152604090205481565b6000546001600160a01b031690565b60045481565b610c3d61118e565b6001600160a01b0316610c4e610c20565b6001600160a01b031614610ca9576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600382905560048190556040805183815260208101839052815133927f2d8847c3ea1c4b6f02609bff2ac1776bc3663d31a747102d5722bdffcc2e3721928290030190a25050565b6001600160a01b03166000908152600660209081526040808320546005909252909120549091565b6002546001600160a01b03163314610d625760405162461bcd60e51b81526004018080602001828103825260348152602001806112656034913960400191505060405180910390fd5b6002805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b6001600160a01b03811660009081526005602090815260408083208054825181850281018501909352808352606093859084015b82821015610e315760008481526020908190206040805160608101825260038602909201805483526001808201548486015260029091015460ff161515918301919091529083529092019101610de0565b505050506001600160a01b038416600090815260066020526040812054919250905b8251811015610ebe576003548351849083908110610e6d57fe5b60200260200101516040015115610e8357506004545b610e93818584815181106105d157fe5b4210610eaf57610ea884838151811061060057fe5b9250610eb5565b50610ebe565b50600101610e53565b509392505050565b610ece61118e565b6001600160a01b0316610edf610c20565b6001600160a01b031614610f3a576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610f7f5760405162461bcd60e51b81526004018080602001828103825260268152602001806111936026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b6002546001600160a01b0316331461103b5760405162461bcd60e51b81526004018080602001828103825260348152602001806112656034913960400191505060405180910390fd5b6001600160a01b038116611096576040805162461bcd60e51b815260206004820152601a60248201527f5f6e6577416464722069732061207a65726f2061646472657373000000000000604482015290519081900360640190fd5b600280547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0392909216919091179055565b60008282018381101561112a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082821115611188576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b339056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373456d657267656e6379206d6f64652c2063616e6e6f742061636365737320746869732066756e6374696f6e496e637265617365207269676874206865616465722c20616c726561647920636c61696d65642074696c6c20746869734d65726b6c654469737472696275746f723a205472616e73666572206661696c65642e4465637265617365207269676874206865616465722c206974206578636565647320746f74616c206c656e677468546869732066756e6374696f6e2063616e206f6e6c792062652063616c6c656420627920656d657267656e637941646472657373a26469706673582212201daae400da432fcf87734c4cdec1b06d36c5bd3174e2ff3410c35b531349060764736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d90000000000000000000000004267a3ad7d20c2396ebb0fe72119984f7073761c00000000000000000000000000000000000000000000000000000000000000b40000000000000000000000000000000000000000000000000000000000000000
-----Decoded View---------------
Arg [0] : _boneToken (address): 0x9813037ee2218799597d83D4a5B6F3b6778218d9
Arg [1] : _emergencyAddress (address): 0x4267A3aD7d20c2396ebb0Fe72119984F7073761C
Arg [2] : _lockingPeriodInDays (uint256): 180
Arg [3] : _devLockingPeriodInDays (uint256): 0
-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000009813037ee2218799597d83d4a5b6f3b6778218d9
Arg [1] : 0000000000000000000000004267a3ad7d20c2396ebb0fe72119984f7073761c
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000b4
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000000
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.