Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,268 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Harvest | 12502110 | 1278 days ago | IN | 0 ETH | 0.00296733 | ||||
Harvest | 12501995 | 1278 days ago | IN | 0 ETH | 0.00271664 | ||||
Harvest | 12501063 | 1278 days ago | IN | 0 ETH | 0.00284675 | ||||
Harvest | 12497900 | 1279 days ago | IN | 0 ETH | 0.00459327 | ||||
Harvest | 12497506 | 1279 days ago | IN | 0 ETH | 0.00494883 | ||||
Harvest | 12495313 | 1279 days ago | IN | 0 ETH | 0.00207075 | ||||
Registration | 12494841 | 1279 days ago | IN | 0 ETH | 0.00291632 | ||||
Harvest | 12494689 | 1279 days ago | IN | 0 ETH | 0.00310881 | ||||
Harvest | 12494490 | 1279 days ago | IN | 0 ETH | 0.00368149 | ||||
Harvest | 12494325 | 1279 days ago | IN | 0 ETH | 0.00286338 | ||||
Harvest | 12488160 | 1280 days ago | IN | 0 ETH | 0.0027814 | ||||
Harvest | 12485086 | 1281 days ago | IN | 0 ETH | 0.00310473 | ||||
Harvest | 12483691 | 1281 days ago | IN | 0 ETH | 0.00291177 | ||||
Registration | 12482828 | 1281 days ago | IN | 0 ETH | 0.00342667 | ||||
Harvest | 12482493 | 1281 days ago | IN | 0 ETH | 0.00531661 | ||||
Harvest | 12475859 | 1282 days ago | IN | 0 ETH | 0.00119767 | ||||
Harvest | 12475859 | 1282 days ago | IN | 0 ETH | 0.00405416 | ||||
Harvest | 12475754 | 1282 days ago | IN | 0 ETH | 0.00499016 | ||||
Harvest | 12473978 | 1282 days ago | IN | 0 ETH | 0.00355817 | ||||
Harvest | 12468809 | 1283 days ago | IN | 0 ETH | 0.00744119 | ||||
Harvest | 12466833 | 1284 days ago | IN | 0 ETH | 0.01047334 | ||||
Harvest | 12462625 | 1284 days ago | IN | 0 ETH | 0.00879838 | ||||
Harvest | 12462504 | 1284 days ago | IN | 0 ETH | 0.00841022 | ||||
Harvest | 12458925 | 1285 days ago | IN | 0 ETH | 0.00582291 | ||||
Harvest | 12458777 | 1285 days ago | IN | 0 ETH | 0.00670948 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
ShadowStakingV3
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-02-02 */ /** *Submitted for verification at Etherscan.io on 2021-02-01 */ // SPDX-License-Identifier: MIT pragma solidity ^0.6.12; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { // Check the signature length if (signature.length != 65) { revert("ECDSA: invalid signature length"); } // Divide the signature in r, s and v variables bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. // solhint-disable-next-line no-inline-assembly assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (281): 0 < s < secp256k1n ÷ 2 + 1, and for v in (282): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. require(uint256(s) <= 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0, "ECDSA: invalid signature 's' value"); require(v == 27 || v == 28, "ECDSA: invalid signature 'v' value"); // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); require(signer != address(0), "ECDSA: invalid signature"); return signer; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * replicates the behavior of the * https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_sign[`eth_sign`] * JSON-RPC method. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } } /** * @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. */ 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. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { 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. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b != 0, errorMessage); return a % b; } } 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; } } 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(_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; } } library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * ==== */ function isContract(address account) internal view returns (bool) { // According to EIP-1052, 0x0 is the value returned for not-yet created accounts // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned // for accounts without code, i.e. `keccak256('')` bytes32 codehash; bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470; // solhint-disable-next-line no-inline-assembly assembly { codehash := extcodehash(account) } return (codehash != accountHash && codehash != 0x0); } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); // solhint-disable-next-line avoid-low-level-calls, avoid-call-value (bool success, ) = recipient.call{ value: amount }(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return _functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); return _functionCallWithValue(target, data, value, errorMessage); } function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) { require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: weiValue }(data); if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } 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); } library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } interface IMilk2Token { function mint(address _to, uint256 _amount) external returns (bool); function burn(address _to, uint256 _amount) external returns (bool); } contract MultiplierMath { function max(uint256 a, uint256 b) internal pure returns (uint256) { return a > b ? a : b; } function min(uint256 a, uint256 b) internal pure returns (uint256) { return a < b ? a : b; } function getInterval(uint256 a, uint256 b) internal pure returns(uint256) { return a > b ? a - b : 0; } } contract ShadowStakingV3 is Ownable, MultiplierMath { using SafeMath for uint256; using SafeERC20 for IERC20; using ECDSA for bytes32; struct UserInfo { uint256 rewardDebt; uint256 lastBlock; } struct PoolInfo { IERC20 lpToken; uint256 allocPointAmount; uint256 blockCreation; } IMilk2Token public milk; mapping (address => UserInfo) private userInfo; mapping (address => bool) public trustedSigner; address[] internal users; PoolInfo[] private poolInfo; uint256 private totalPoints; uint256[5] internal epochs; uint256[5] internal multipliers; event Harvest(address sender, uint256 amount, uint256 blockNumber); event AddNewPool(address token, uint256 pid); event PoolUpdate(uint256 poolPid, uint256 previusPoints, uint256 newPoints); event AddNewKey(bytes keyHash, uint256 id); constructor(IMilk2Token _milk, uint256[5] memory _epochs, uint256[5] memory _multipliers) public { milk = _milk; epochs = _epochs; multipliers = _multipliers; //For debug trustedSigner[msg.sender]=true; } /** * @dev Add a new lp to the pool. * * @param _lpToken - address of ERC-20 LP token * @param _newPoints - share in the total amount of rewards * DO NOT add the same LP token more than once. Rewards will be messed up if you do. * Can only be called by the current owner. */ function addNewPool(IERC20 _lpToken, uint256 _newPoints) public onlyOwner { totalPoints = totalPoints.add(_newPoints); poolInfo.push(PoolInfo({lpToken: _lpToken, allocPointAmount: _newPoints, blockCreation:block.number})); emit AddNewPool(address(_lpToken), _newPoints); } /** * @dev Update lp address to the pool. * * @param _poolPid - number of pool * @param _newPoints - new amount of allocation points * DO NOT add the same LP token more than once. Rewards will be messed up if you do. * Can only be called by the current owner. */ function setPoll(uint256 _poolPid, uint256 _newPoints) public onlyOwner { totalPoints = totalPoints.sub(poolInfo[_poolPid].allocPointAmount).add(_newPoints); poolInfo[_poolPid].allocPointAmount = _newPoints; } /** *@dev set address that can sign */ function setTrustedSigner(address _signer, bool _isValid) public onlyOwner { trustedSigner[_signer] = _isValid; } function getPool(uint256 _poolPid) public view returns(address _lpToken, uint256 _block, uint256 _weight) { _lpToken = address(poolInfo[_poolPid].lpToken); _block = poolInfo[_poolPid].blockCreation; _weight = poolInfo[_poolPid].allocPointAmount; } /** * @dev - return Number of keys */ function getPoolsCount() public view returns(uint256) { return poolInfo.length; } /** * @dev - return info about current user's reward * @param _user - user's address */ function getRewards(address _user) public view returns(uint256) { return userInfo[_user].rewardDebt; } /** * @dev - return info about user's last block with update * * @param _user - user's address */ function getLastBlock(address _user) public view returns(uint256) { return userInfo[_user].lastBlock; } /** * @dev - return total allocation points */ function getTotalPoints() public view returns(uint256) { return totalPoints; } function registration() public { require(userInfo[msg.sender].lastBlock == 0, "User already exist"); UserInfo storage _userInfo = userInfo[msg.sender]; _userInfo.rewardDebt = 0; _userInfo.lastBlock = block.number; users.push(msg.sender); } function getData(uint256 _amount, uint256 _lastBlockNumber, uint256 _currentBlockNumber, address _sender) public pure returns(bytes32) { return sha256(abi.encode(_amount, _lastBlockNumber, _currentBlockNumber, _sender)); } /////////////////////////////////////////////////////////////////////////////////////// ///// Refactored items ///////////////////////////////////////////////////////////////////////////////////// /** *@dev Prepare abi encoded message */ function getMsgForSign( uint256 _amount, uint256 _lastBlockNumber, uint256 _currentBlockNumber, address _sender) public pure returns(bytes32) { return keccak256(abi.encode(_amount, _lastBlockNumber, _currentBlockNumber, _sender)); } /** * @dev prepare hash for sign with Ethereum comunity convention *see links below *https://ethereum.stackexchange.com/questions/24547/sign-without-x19ethereum-signed-message-prefix?rq=1 *https://github.com/ethereum/EIPs/pull/712 *https://programtheblockchain.com/posts/2018/02/17/signing-and-verifying-messages-in-ethereum/ */ function preSignMsg(bytes32 _msg) public pure returns(bytes32) { return _msg.toEthSignedMessageHash(); } /** * @dev Check signature and mint tokens * @param _amount - subj * @param _lastBlockNumber - subj * @param _currentBlockNumber - subj * @param _msgForSign - hash for sign with Ethereum style prefix!!! * @param _signature - signature */ function harvest( uint256 _amount, uint256 _lastBlockNumber, uint256 _currentBlockNumber, bytes32 _msgForSign, bytes memory _signature) public { require(_currentBlockNumber <= block.number, "currentBlockNumber cannot be larger than the last block"); //Double spend check require(userInfo[msg.sender].lastBlock == _lastBlockNumber, "lastBlockNumber must be equal to the value in the storage"); //1. Lets check signer address signedBy = _msgForSign.recover(_signature); require(trustedSigner[signedBy] == true, "Signature check failed!"); //2. Check signed msg integrety bytes32 actualMsg = getMsgForSign( _amount, _lastBlockNumber, _currentBlockNumber, msg.sender ); require(actualMsg.toEthSignedMessageHash() == _msgForSign,"Integrety check failed!"); //Actions userInfo[msg.sender].rewardDebt = userInfo[msg.sender].rewardDebt.add(_amount); userInfo[msg.sender].lastBlock = _currentBlockNumber; if (_amount > 0) { milk.mint(msg.sender, _amount); } emit Harvest(msg.sender, _amount, _currentBlockNumber); } /** * @dev Check signature and mint tokens * @param _amount - subj * @param _lastBlockNumber - subj * @param _currentBlockNumber - subj * @param _msgForSign - hash for sign with Ethereum style prefix!!! * @param _signature - signature */ function debug_harvest( uint256 _amount, uint256 _lastBlockNumber, uint256 _currentBlockNumber, bytes32 _msgForSign, bytes memory _signature) public view returns(address _signer, bytes32 _msg, bytes32 _prefixedMsg) { require(_currentBlockNumber <= block.number, "currentBlockNumber cannot be larger than the last block"); //Double spend check require(userInfo[msg.sender].lastBlock == _lastBlockNumber, "lastBlockNumber must be equal to the value in the storage"); //1. Lets check signer address signedBy = _msgForSign.recover(_signature); //require(trustedSigner[signedBy] == true, "Signature check failed!"); //2. Check signed msg integrety bytes32 actualMsg = getMsgForSign( _amount, _lastBlockNumber, _currentBlockNumber, msg.sender ); //require(actualMsg.toEthSignedMessageHash() == _msgForSign,"Integrety check failed!"); // //Actions // userInfo[msg.sender].rewardDebt = userInfo[msg.sender].rewardDebt.add(_amount); // userInfo[msg.sender].lastBlock = _currentBlockNumber; // if (_amount > 0) { // milk.mint(msg.sender, _amount); // } // emit Harvest(msg.sender, _amount, _currentBlockNumber); return (signedBy, actualMsg, actualMsg.toEthSignedMessageHash()); } /////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////// /** * @dev - return Number of users */ function getUsersCount() public view returns(uint256) { return users.length; } /** * @dev - return address of user * @param - _userId - unique number of user in array */ function getUser(uint256 _userId) public view returns(address) { return users[_userId]; } /** * @dev - return total rewards */ function getTotalRewards(address _user) public view returns(uint256) { return userInfo[_user].rewardDebt; } /** * @param - _id - multiplier's id (0-4) * @dev - return value of multiplier */ function getValueMultiplier(uint256 _id) public view returns(uint256) { return multipliers[_id]; } /** * @param - _id - epoch's id(0-4) * @dev - return value of epoch */ function getValueEpoch(uint256 _id) public view returns(uint256) { return epochs[_id]; } function getMultiplier(uint256 f, uint256 t) public view returns(uint256) { return getInterval(min(t, epochs[1]), max(f, epochs[0])) * multipliers[0] + getInterval(min(t, epochs[2]), max(f, epochs[1])) * multipliers[1] + getInterval(min(t, epochs[3]), max(f, epochs[2])) * multipliers[2] + getInterval(min(t, epochs[4]), max(f, epochs[3])) * multipliers[3] + getInterval(max(t, epochs[4]), max(f, epochs[4])) * multipliers[4]; } function getCurrentMultiplier() public view returns(uint256) { if (block.number < epochs[0]) { return 0; } if (block.number < epochs[1]) { return multipliers[0]; } if (block.number < epochs[2]) { return multipliers[1]; } if (block.number < epochs[3]) { return multipliers[2]; } if (block.number < epochs[4]) { return multipliers[3]; } if (block.number > epochs[4]) { return multipliers[4]; } } function setEpoch(uint256 _id, uint256 _amount) public onlyOwner { epochs[_id] = _amount; } function setMultiplier(uint256 _id, uint256 _amount) public onlyOwner { multipliers[_id] = _amount; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IMilk2Token","name":"_milk","type":"address"},{"internalType":"uint256[5]","name":"_epochs","type":"uint256[5]"},{"internalType":"uint256[5]","name":"_multipliers","type":"uint256[5]"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bytes","name":"keyHash","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"AddNewKey","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"pid","type":"uint256"}],"name":"AddNewPool","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"Harvest","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"poolPid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"previusPoints","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newPoints","type":"uint256"}],"name":"PoolUpdate","type":"event"},{"inputs":[{"internalType":"contract IERC20","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_newPoints","type":"uint256"}],"name":"addNewPool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lastBlockNumber","type":"uint256"},{"internalType":"uint256","name":"_currentBlockNumber","type":"uint256"},{"internalType":"bytes32","name":"_msgForSign","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"debug_harvest","outputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bytes32","name":"_msg","type":"bytes32"},{"internalType":"bytes32","name":"_prefixedMsg","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lastBlockNumber","type":"uint256"},{"internalType":"uint256","name":"_currentBlockNumber","type":"uint256"},{"internalType":"address","name":"_sender","type":"address"}],"name":"getData","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getLastBlock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lastBlockNumber","type":"uint256"},{"internalType":"uint256","name":"_currentBlockNumber","type":"uint256"},{"internalType":"address","name":"_sender","type":"address"}],"name":"getMsgForSign","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"f","type":"uint256"},{"internalType":"uint256","name":"t","type":"uint256"}],"name":"getMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolPid","type":"uint256"}],"name":"getPool","outputs":[{"internalType":"address","name":"_lpToken","type":"address"},{"internalType":"uint256","name":"_block","type":"uint256"},{"internalType":"uint256","name":"_weight","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPoolsCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalPoints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"getTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_userId","type":"uint256"}],"name":"getUser","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getUsersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getValueEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getValueMultiplier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_lastBlockNumber","type":"uint256"},{"internalType":"uint256","name":"_currentBlockNumber","type":"uint256"},{"internalType":"bytes32","name":"_msgForSign","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"milk","outputs":[{"internalType":"contract IMilk2Token","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_msg","type":"bytes32"}],"name":"preSignMsg","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"registration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setEpoch","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMultiplier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_poolPid","type":"uint256"},{"internalType":"uint256","name":"_newPoints","type":"uint256"}],"name":"setPoll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"},{"internalType":"bool","name":"_isValid","type":"bool"}],"name":"setTrustedSigner","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":"trustedSigner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60806040523480156200001157600080fd5b506040516200198d3803806200198d83398181016040526101608110156200003857600080fd5b50805190602081019060c001600062000050620000f9565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350600180546001600160a01b0319166001600160a01b038516179055620000c46007836005620000fd565b50620000d4600c826005620000fd565b5050336000908152600360205260409020805460ff1916600117905550620001579050565b3390565b82600581019282156200012e579160200282015b828111156200012e57825182559160200191906001019062000111565b506200013c92915062000140565b5090565b5b808211156200013c576000815560010162000141565b61182680620001676000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063bacf994611610097578063e9e211a111610071578063e9e211a1146105d0578063f2fde38b1461060a578063f7f4bf5d14610630578063fa61ed811461064d576101c4565b8063bacf99461461057d578063c46d927d146105ab578063dbf8b168146105c8576101c4565b80639c4bcc2c116100d35780639c4bcc2c14610492578063a4a1e26314610550578063b0467deb14610558578063b4ac686014610575576101c4565b80638da5cb5b146104135780638dbb1e3a1461043757806391115fb71461045a576101c4565b8063443bd1d011610166578063542cecdb11610140578063542cecdb146103155780636438a3101461034d578063715018a61461040b57806379ee54f714610279576101c4565b8063443bd1d0146102ca5780634929dfa1146102d2578063500a0964146102f8576101c4565b80632b63c300116101a25780632b63c3001461025f5780632bcf161c14610279578063326bfcc11461029f578063333271d0146102a7576101c4565b8063068bcd8d146101c957806317cbb4b91461020e57806329120b4014610233575b600080fd5b6101e6600480360360208110156101df57600080fd5b5035610670565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b6102316004803603604081101561022457600080fd5b50803590602001356106eb565b005b6102316004803603604081101561024957600080fd5b506001600160a01b0381351690602001356107ad565b610267610915565b60408051918252519081900360200190f35b6102676004803603602081101561028f57600080fd5b50356001600160a01b0316610991565b6102676109ac565b610231600480360360408110156102bd57600080fd5b50803590602001356109b2565b610231610a1e565b610267600480360360208110156102e857600080fd5b50356001600160a01b0316610ad2565b6102676004803603602081101561030e57600080fd5b5035610af0565b6102676004803603608081101561032b57600080fd5b50803590602081013590604081013590606001356001600160a01b0316610b07565b6101e6600480360360a081101561036357600080fd5b81359160208101359160408201359160608101359181019060a08101608082013564010000000081111561039657600080fd5b8201836020820111156103a857600080fd5b803590602001918460018302840111640100000000831117156103ca57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b4e945050505050565b610231610c1e565b61041b610cc0565b604080516001600160a01b039092168252519081900360200190f35b6102676004803603604081101561044d57600080fd5b5080359060200135610ccf565b6102676004803603608081101561047057600080fd5b50803590602081013590604081013590606001356001600160a01b0316610d99565b610231600480360360a08110156104a857600080fd5b81359160208101359160408201359160608101359181019060a0810160808201356401000000008111156104db57600080fd5b8201836020820111156104ed57600080fd5b8035906020019184600183028401116401000000008311171561050f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e6c945050505050565b6102676110ea565b61041b6004803603602081101561056e57600080fd5b50356110f0565b61026761111a565b6102316004803603604081101561059357600080fd5b506001600160a01b0381351690602001351515611120565b610267600480360360208110156105c157600080fd5b50356111a3565b61041b6111b2565b6105f6600480360360208110156105e657600080fd5b50356001600160a01b03166111c1565b604080519115158252519081900360200190f35b6102316004803603602081101561062057600080fd5b50356001600160a01b03166111d6565b6102676004803603602081101561064657600080fd5b50356112ce565b6102316004803603604081101561066357600080fd5b50803590602001356112df565b60008060006005848154811061068257fe5b6000918252602090912060039091020154600580546001600160a01b03909216945090859081106106af57fe5b9060005260206000209060030201600201549150600584815481106106d057fe5b90600052602060002090600302016001015490509193909250565b6106f3611345565b6000546001600160a01b03908116911614610743576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6107808161077a6005858154811061075757fe5b90600052602060002090600302016001015460065461134990919063ffffffff16565b90611392565b600681905550806005838154811061079457fe5b9060005260206000209060030201600101819055505050565b6107b5611345565b6000546001600160a01b03908116911614610805576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6006546108129082611392565b600655604080516060810182526001600160a01b038481168083526020808401868152438587019081526005805460018101825560009190915295517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600390970296870180546001600160a01b0319169190961617909455517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db185015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db2909301929092558251918252810183905281517f1e31b72e27ef37901051a07176bc3898ce1f63f60acdd170828b98ce10a1b15c929181900390910190a15050565b60075460009043101561092a5750600061098e565b60085443101561094257600c60005b0154905061098e565b60095443101561095557600c6001610939565b600a5443101561096857600c6002610939565b600b5443101561097b57600c6003610939565b600b5443111561098e57600c6004610939565b90565b6001600160a01b031660009081526002602052604090205490565b60065490565b6109ba611345565b6000546001600160a01b03908116911614610a0a576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b80600c8360058110610a1857fe5b01555050565b3360009081526002602052604090206001015415610a78576040805162461bcd60e51b8152602060048201526012602482015271155cd95c88185b1c9958591e48195e1a5cdd60721b604482015290519081900360640190fd5b336000818152600260205260408120818155436001918201556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055565b6001600160a01b031660009081526002602052604090206001015490565b6000600c8260058110610aff57fe5b015492915050565b604080516020808201969096528082019490945260608401929092526001600160a01b03166080808401919091528151808403909101815260a09092019052805191012090565b600080600043861115610b925760405162461bcd60e51b81526004018080602001828103825260378152602001806117ba6037913960400191505060405180910390fd5b336000908152600260205260409020600101548714610be25760405162461bcd60e51b81526004018080602001828103825260398152602001806117816039913960400191505060405180910390fd5b6000610bee86866113ec565b90506000610bfe8a8a8a33610b07565b90508181610c0b836115d3565b9450945094505050955095509592505050565b610c26611345565b6000546001600160a01b03908116911614610c76576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b601054600090610cfa610ce884600760045b0154611624565b610cf58660076004610ce1565b61163a565b02600c60030154610d21610d1485600760045b0154611650565b610cf58760076003610ce1565b02600c60020154610d45610d388660076003610d0d565b610cf58860076002610ce1565b02600c60010154610d69610d5c8760076002610d0d565b610cf58960076001610ce1565b02600c60000154610d8d610d808860076001610d0d565b610cf58a60076000610ce1565b02010101019392505050565b600060028585858560405160200180858152602001848152602001838152602001826001600160a01b031681526020019450505050506040516020818303038152906040526040518082805190602001908083835b60208310610e0d5780518252601f199092019160209182019101610dee565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015610e4c573d6000803e3d6000fd5b5050506040513d6020811015610e6157600080fd5b505195945050505050565b43831115610eab5760405162461bcd60e51b81526004018080602001828103825260378152602001806117ba6037913960400191505060405180910390fd5b336000908152600260205260409020600101548414610efb5760405162461bcd60e51b81526004018080602001828103825260398152602001806117816039913960400191505060405180910390fd5b6000610f0783836113ec565b6001600160a01b03811660009081526003602052604090205490915060ff161515600114610f7c576040805162461bcd60e51b815260206004820152601760248201527f5369676e617475726520636865636b206661696c656421000000000000000000604482015290519081900360640190fd5b6000610f8a87878733610b07565b905083610f96826115d3565b14610fe8576040805162461bcd60e51b815260206004820152601760248201527f496e7465677265747920636865636b206661696c656421000000000000000000604482015290519081900360640190fd5b336000908152600260205260409020546110029088611392565b33600090815260026020526040902090815560010185905586156110a157600154604080516340c10f1960e01b8152336004820152602481018a905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b15801561107457600080fd5b505af1158015611088573d6000803e3d6000fd5b505050506040513d602081101561109e57600080fd5b50505b604080513381526020810189905280820187905290517f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549181900360600190a150505050505050565b60045490565b6000600482815481106110ff57fe5b6000918252602090912001546001600160a01b031692915050565b60055490565b611128611345565b6000546001600160a01b03908116911614611178576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b600060078260058110610aff57fe5b6001546001600160a01b031681565b60036020526000908152604090205460ff1681565b6111de611345565b6000546001600160a01b0390811691161461122e576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6001600160a01b0381166112735760405162461bcd60e51b81526004018080602001828103825260268152602001806116f76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006112d9826115d3565b92915050565b6112e7611345565b6000546001600160a01b03908116911614611337576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b8060078360058110610a1857fe5b3390565b600061138b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061165f565b9392505050565b60008282018381101561138b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008151604114611444576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114b55760405162461bcd60e51b815260040180806020018281038252602281526020018061171d6022913960400191505060405180910390fd5b8060ff16601b14806114ca57508060ff16601c145b6115055760405162461bcd60e51b815260040180806020018281038252602281526020018061173f6022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611561573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115c9576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000818311611633578161138b565b5090919050565b600081831161164a57600061138b565b50900390565b6000818310611633578161138b565b600081848411156116ee5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116b357818101518382015260200161169b565b50505050905090810190601f1680156116e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c75654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726c617374426c6f636b4e756d626572206d75737420626520657175616c20746f207468652076616c756520696e207468652073746f7261676563757272656e74426c6f636b4e756d6265722063616e6e6f74206265206c6172676572207468616e20746865206c61737420626c6f636ba2646970667358221220103638a2c4ae1a3b9f9aadb0aa59b9c0fbf2fdbed579102f3ec03fbdd862b59d64736f6c634300060c003300000000000000000000000080c8c3dcfb854f9542567c8dac3f44d709ebc1de0000000000000000000000000000000000000000000000000000000000b398900000000000000000000000000000000000000000000000000000000000d21d100000000000000000000000000000000000000000000000000000000000f0a19000000000000000000000000000000000000000000000000000000000010f261000000000000000000000000000000000000000000000000000000000014c2f1000000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000045000000000000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000045
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101c45760003560e01c80638da5cb5b116100f9578063bacf994611610097578063e9e211a111610071578063e9e211a1146105d0578063f2fde38b1461060a578063f7f4bf5d14610630578063fa61ed811461064d576101c4565b8063bacf99461461057d578063c46d927d146105ab578063dbf8b168146105c8576101c4565b80639c4bcc2c116100d35780639c4bcc2c14610492578063a4a1e26314610550578063b0467deb14610558578063b4ac686014610575576101c4565b80638da5cb5b146104135780638dbb1e3a1461043757806391115fb71461045a576101c4565b8063443bd1d011610166578063542cecdb11610140578063542cecdb146103155780636438a3101461034d578063715018a61461040b57806379ee54f714610279576101c4565b8063443bd1d0146102ca5780634929dfa1146102d2578063500a0964146102f8576101c4565b80632b63c300116101a25780632b63c3001461025f5780632bcf161c14610279578063326bfcc11461029f578063333271d0146102a7576101c4565b8063068bcd8d146101c957806317cbb4b91461020e57806329120b4014610233575b600080fd5b6101e6600480360360208110156101df57600080fd5b5035610670565b604080516001600160a01b039094168452602084019290925282820152519081900360600190f35b6102316004803603604081101561022457600080fd5b50803590602001356106eb565b005b6102316004803603604081101561024957600080fd5b506001600160a01b0381351690602001356107ad565b610267610915565b60408051918252519081900360200190f35b6102676004803603602081101561028f57600080fd5b50356001600160a01b0316610991565b6102676109ac565b610231600480360360408110156102bd57600080fd5b50803590602001356109b2565b610231610a1e565b610267600480360360208110156102e857600080fd5b50356001600160a01b0316610ad2565b6102676004803603602081101561030e57600080fd5b5035610af0565b6102676004803603608081101561032b57600080fd5b50803590602081013590604081013590606001356001600160a01b0316610b07565b6101e6600480360360a081101561036357600080fd5b81359160208101359160408201359160608101359181019060a08101608082013564010000000081111561039657600080fd5b8201836020820111156103a857600080fd5b803590602001918460018302840111640100000000831117156103ca57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610b4e945050505050565b610231610c1e565b61041b610cc0565b604080516001600160a01b039092168252519081900360200190f35b6102676004803603604081101561044d57600080fd5b5080359060200135610ccf565b6102676004803603608081101561047057600080fd5b50803590602081013590604081013590606001356001600160a01b0316610d99565b610231600480360360a08110156104a857600080fd5b81359160208101359160408201359160608101359181019060a0810160808201356401000000008111156104db57600080fd5b8201836020820111156104ed57600080fd5b8035906020019184600183028401116401000000008311171561050f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610e6c945050505050565b6102676110ea565b61041b6004803603602081101561056e57600080fd5b50356110f0565b61026761111a565b6102316004803603604081101561059357600080fd5b506001600160a01b0381351690602001351515611120565b610267600480360360208110156105c157600080fd5b50356111a3565b61041b6111b2565b6105f6600480360360208110156105e657600080fd5b50356001600160a01b03166111c1565b604080519115158252519081900360200190f35b6102316004803603602081101561062057600080fd5b50356001600160a01b03166111d6565b6102676004803603602081101561064657600080fd5b50356112ce565b6102316004803603604081101561066357600080fd5b50803590602001356112df565b60008060006005848154811061068257fe5b6000918252602090912060039091020154600580546001600160a01b03909216945090859081106106af57fe5b9060005260206000209060030201600201549150600584815481106106d057fe5b90600052602060002090600302016001015490509193909250565b6106f3611345565b6000546001600160a01b03908116911614610743576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6107808161077a6005858154811061075757fe5b90600052602060002090600302016001015460065461134990919063ffffffff16565b90611392565b600681905550806005838154811061079457fe5b9060005260206000209060030201600101819055505050565b6107b5611345565b6000546001600160a01b03908116911614610805576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6006546108129082611392565b600655604080516060810182526001600160a01b038481168083526020808401868152438587019081526005805460018101825560009190915295517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0600390970296870180546001600160a01b0319169190961617909455517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db185015591517f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db2909301929092558251918252810183905281517f1e31b72e27ef37901051a07176bc3898ce1f63f60acdd170828b98ce10a1b15c929181900390910190a15050565b60075460009043101561092a5750600061098e565b60085443101561094257600c60005b0154905061098e565b60095443101561095557600c6001610939565b600a5443101561096857600c6002610939565b600b5443101561097b57600c6003610939565b600b5443111561098e57600c6004610939565b90565b6001600160a01b031660009081526002602052604090205490565b60065490565b6109ba611345565b6000546001600160a01b03908116911614610a0a576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b80600c8360058110610a1857fe5b01555050565b3360009081526002602052604090206001015415610a78576040805162461bcd60e51b8152602060048201526012602482015271155cd95c88185b1c9958591e48195e1a5cdd60721b604482015290519081900360640190fd5b336000818152600260205260408120818155436001918201556004805491820181559091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b0180546001600160a01b0319169091179055565b6001600160a01b031660009081526002602052604090206001015490565b6000600c8260058110610aff57fe5b015492915050565b604080516020808201969096528082019490945260608401929092526001600160a01b03166080808401919091528151808403909101815260a09092019052805191012090565b600080600043861115610b925760405162461bcd60e51b81526004018080602001828103825260378152602001806117ba6037913960400191505060405180910390fd5b336000908152600260205260409020600101548714610be25760405162461bcd60e51b81526004018080602001828103825260398152602001806117816039913960400191505060405180910390fd5b6000610bee86866113ec565b90506000610bfe8a8a8a33610b07565b90508181610c0b836115d3565b9450945094505050955095509592505050565b610c26611345565b6000546001600160a01b03908116911614610c76576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b6000546001600160a01b031690565b601054600090610cfa610ce884600760045b0154611624565b610cf58660076004610ce1565b61163a565b02600c60030154610d21610d1485600760045b0154611650565b610cf58760076003610ce1565b02600c60020154610d45610d388660076003610d0d565b610cf58860076002610ce1565b02600c60010154610d69610d5c8760076002610d0d565b610cf58960076001610ce1565b02600c60000154610d8d610d808860076001610d0d565b610cf58a60076000610ce1565b02010101019392505050565b600060028585858560405160200180858152602001848152602001838152602001826001600160a01b031681526020019450505050506040516020818303038152906040526040518082805190602001908083835b60208310610e0d5780518252601f199092019160209182019101610dee565b51815160209384036101000a60001901801990921691161790526040519190930194509192505080830381855afa158015610e4c573d6000803e3d6000fd5b5050506040513d6020811015610e6157600080fd5b505195945050505050565b43831115610eab5760405162461bcd60e51b81526004018080602001828103825260378152602001806117ba6037913960400191505060405180910390fd5b336000908152600260205260409020600101548414610efb5760405162461bcd60e51b81526004018080602001828103825260398152602001806117816039913960400191505060405180910390fd5b6000610f0783836113ec565b6001600160a01b03811660009081526003602052604090205490915060ff161515600114610f7c576040805162461bcd60e51b815260206004820152601760248201527f5369676e617475726520636865636b206661696c656421000000000000000000604482015290519081900360640190fd5b6000610f8a87878733610b07565b905083610f96826115d3565b14610fe8576040805162461bcd60e51b815260206004820152601760248201527f496e7465677265747920636865636b206661696c656421000000000000000000604482015290519081900360640190fd5b336000908152600260205260409020546110029088611392565b33600090815260026020526040902090815560010185905586156110a157600154604080516340c10f1960e01b8152336004820152602481018a905290516001600160a01b03909216916340c10f19916044808201926020929091908290030181600087803b15801561107457600080fd5b505af1158015611088573d6000803e3d6000fd5b505050506040513d602081101561109e57600080fd5b50505b604080513381526020810189905280820187905290517f71bab65ced2e5750775a0613be067df48ef06cf92a496ebf7663ae06609249549181900360600190a150505050505050565b60045490565b6000600482815481106110ff57fe5b6000918252602090912001546001600160a01b031692915050565b60055490565b611128611345565b6000546001600160a01b03908116911614611178576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6001600160a01b03919091166000908152600360205260409020805460ff1916911515919091179055565b600060078260058110610aff57fe5b6001546001600160a01b031681565b60036020526000908152604090205460ff1681565b6111de611345565b6000546001600160a01b0390811691161461122e576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b6001600160a01b0381166112735760405162461bcd60e51b81526004018080602001828103825260268152602001806116f76026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60006112d9826115d3565b92915050565b6112e7611345565b6000546001600160a01b03908116911614611337576040805162461bcd60e51b81526020600482018190526024820152600080516020611761833981519152604482015290519081900360640190fd5b8060078360058110610a1857fe5b3390565b600061138b83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061165f565b9392505050565b60008282018381101561138b576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b60008151604114611444576040805162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e67746800604482015290519081900360640190fd5b60208201516040830151606084015160001a7f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08211156114b55760405162461bcd60e51b815260040180806020018281038252602281526020018061171d6022913960400191505060405180910390fd5b8060ff16601b14806114ca57508060ff16601c145b6115055760405162461bcd60e51b815260040180806020018281038252602281526020018061173f6022913960400191505060405180910390fd5b600060018783868660405160008152602001604052604051808581526020018460ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015611561573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166115c9576040805162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e61747572650000000000000000604482015290519081900360640190fd5b9695505050505050565b604080517f19457468657265756d205369676e6564204d6573736167653a0a333200000000602080830191909152603c8083019490945282518083039094018452605c909101909152815191012090565b6000818311611633578161138b565b5090919050565b600081831161164a57600061138b565b50900390565b6000818310611633578161138b565b600081848411156116ee5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116b357818101518382015260200161169b565b50505050905090810190601f1680156116e05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b50505090039056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345434453413a20696e76616c6964207369676e6174757265202773272076616c756545434453413a20696e76616c6964207369676e6174757265202776272076616c75654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726c617374426c6f636b4e756d626572206d75737420626520657175616c20746f207468652076616c756520696e207468652073746f7261676563757272656e74426c6f636b4e756d6265722063616e6e6f74206265206c6172676572207468616e20746865206c61737420626c6f636ba2646970667358221220103638a2c4ae1a3b9f9aadb0aa59b9c0fbf2fdbed579102f3ec03fbdd862b59d64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000080c8c3dcfb854f9542567c8dac3f44d709ebc1de0000000000000000000000000000000000000000000000000000000000b398900000000000000000000000000000000000000000000000000000000000d21d100000000000000000000000000000000000000000000000000000000000f0a19000000000000000000000000000000000000000000000000000000000010f261000000000000000000000000000000000000000000000000000000000014c2f1000000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000045000000000000000000000000000000000000000000000000000000000000004500000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000045
-----Decoded View---------------
Arg [0] : _milk (address): 0x80c8C3dCfB854f9542567c8Dac3f44D709eBc1de
Arg [1] : _epochs (uint256[5]): 11770000,13770000,15770000,17770000,21770000
Arg [2] : _multipliers (uint256[5]): 69,69,69,69,69
-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000080c8c3dcfb854f9542567c8dac3f44d709ebc1de
Arg [1] : 0000000000000000000000000000000000000000000000000000000000b39890
Arg [2] : 0000000000000000000000000000000000000000000000000000000000d21d10
Arg [3] : 0000000000000000000000000000000000000000000000000000000000f0a190
Arg [4] : 00000000000000000000000000000000000000000000000000000000010f2610
Arg [5] : 00000000000000000000000000000000000000000000000000000000014c2f10
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000045
Arg [10] : 0000000000000000000000000000000000000000000000000000000000000045
Deployed Bytecode Sourcemap
23617:11176:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26228:279;;;;;;;;;;;;;;;;-1:-1:-1;26228:279:0;;:::i;:::-;;;;-1:-1:-1;;;;;26228:279:0;;;;;;;;;;;;;;;;;;;;;;;;;25795:232;;;;;;;;;;;;;;;;-1:-1:-1;25795:232:0;;;;;;;:::i;:::-;;25171:304;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;25171:304:0;;;;;;;;:::i;33964:584::-;;;:::i;:::-;;;;;;;;;;;;;;;;32918:121;;;;;;;;;;;;;;;;-1:-1:-1;32918:121:0;-1:-1:-1;;;;;32918:121:0;;:::i;27240:92::-;;;:::i;34673:115::-;;;;;;;;;;;;;;;;-1:-1:-1;34673:115:0;;;;;;;:::i;27342:289::-;;;:::i;27051:117::-;;;;;;;;;;;;;;;;-1:-1:-1;27051:117:0;-1:-1:-1;;;;;27051:117:0;;:::i;33151:112::-;;;;;;;;;;;;;;;;-1:-1:-1;33151:112:0;;:::i;28180:287::-;;;;;;;;;;;;;;;;-1:-1:-1;28180:287:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28180:287:0;;:::i;30828:1455::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30828:1455:0;;-1:-1:-1;30828:1455:0;;-1:-1:-1;;;;;30828:1455:0:i;10594:148::-;;;:::i;9952:79::-;;;:::i;:::-;;;;-1:-1:-1;;;;;9952:79:0;;;;;;;;;;;;;;33476:478;;;;;;;;;;;;;;;;-1:-1:-1;33476:478:0;;;;;;;:::i;27641:263::-;;;;;;;;;;;;;;;;-1:-1:-1;27641:263:0;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27641:263:0;;:::i;29251:1283::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;29251:1283:0;;-1:-1:-1;29251:1283:0;;-1:-1:-1;;;;;29251:1283:0:i;32535:92::-;;;:::i;32751:103::-;;;;;;;;;;;;;;;;-1:-1:-1;32751:103:0;;:::i;26574:95::-;;;:::i;26091:127::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;26091:127:0;;;;;;;;;;:::i;33364:102::-;;;;;;;;;;;;;;;;-1:-1:-1;33364:102:0;;:::i;23990:23::-;;;:::i;24075:46::-;;;;;;;;;;;;;;;;-1:-1:-1;24075:46:0;-1:-1:-1;;;;;24075:46:0;;:::i;:::-;;;;;;;;;;;;;;;;;;10897:244;;;;;;;;;;;;;;;;-1:-1:-1;10897:244:0;-1:-1:-1;;;;;10897:244:0;;:::i;28839:118::-;;;;;;;;;;;;;;;;-1:-1:-1;28839:118:0;;:::i;34558:105::-;;;;;;;;;;;;;;;;-1:-1:-1;34558:105:0;;;;;;;:::i;26228:279::-;26283:16;26301:14;26317:15;26364:8;26373;26364:18;;;;;;;;;;;;;;;;;;;;;:26;26411:8;:18;;-1:-1:-1;;;;;26364:26:0;;;;-1:-1:-1;26411:8:0;26420;;26411:18;;;;;;;;;;;;;;;;:32;;;26402:41;;26464:8;26473;26464:18;;;;;;;;;;;;;;;;;;:35;;;26454:45;;26228:279;;;;;:::o;25795:232::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;25892:68:::1;25949:10;25892:52;25908:8;25917;25908:18;;;;;;;;;;;;;;;;;;:35;;;25892:11;;:15;;:52;;;;:::i;:::-;:56:::0;::::1;:68::i;:::-;25878:11;:82;;;;26009:10;25971:8;25980;25971:18;;;;;;;;;;;;;;;;;;:35;;:48;;;;25795:232:::0;;:::o;25171:304::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;25270:11:::1;::::0;:27:::1;::::0;25286:10;25270:15:::1;:27::i;:::-;25256:11;:41:::0;25322:87:::1;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;25322:87:0;;::::1;::::0;;;::::1;::::0;;::::1;::::0;;;25395:12:::1;25322:87:::0;;;;;;25308:8:::1;:102:::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;25308:102:0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;25308:102:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;25426:41;;;;;;::::1;::::0;;;;;::::1;::::0;;;;;;;;;::::1;25171:304:::0;;:::o;33964:584::-;34055:6;:9;34016:7;;34040:12;:24;34036:65;;;-1:-1:-1;34088:1:0;34081:8;;34036:65;34130:9;;34115:12;:24;34111:78;;;34163:11;34175:1;34163:14;;;34156:21;;;;34111:78;34218:9;;34203:12;:24;34199:78;;;34251:11;34263:1;34251:14;;34199:78;34306:9;;34291:12;:24;34287:78;;;34339:11;34351:1;34339:14;;34287:78;34394:9;;34379:12;:24;34375:78;;;34427:11;34439:1;34427:14;;34375:78;34482:9;;34467:12;:24;34463:78;;;34515:11;34527:1;34515:14;;34463:78;33964:584;:::o;32918:121::-;-1:-1:-1;;;;;33005:15:0;32978:7;33005:15;;;:8;:15;;;;;:26;;32918:121::o;27240:92::-;27313:11;;27240:92;:::o;34673:115::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;34773:7:::1;34754:11;34766:3;34754:16;;;;;;;;:26:::0;-1:-1:-1;;34673:115:0:o;27342:289::-;27401:10;27392:20;;;;:8;:20;;;;;:30;;;:35;27384:66;;;;;-1:-1:-1;;;27384:66:0;;;;;;;;;;;;-1:-1:-1;;;27384:66:0;;;;;;;;;;;;;;;27499:10;27461:26;27490:20;;;:8;:20;;;;;27521:24;;;27578:12;27556:19;;;;:34;27601:5;:22;;;;;;;;;;;;;;-1:-1:-1;;;;;;27601:22:0;;;;;;27342:289::o;27051:117::-;-1:-1:-1;;;;;27135:15:0;27108:7;27135:15;;;:8;:15;;;;;:25;;;;27051:117::o;33151:112::-;33212:7;33239:11;33251:3;33239:16;;;;;;;;;;33151:112;-1:-1:-1;;33151:112:0:o;28180:287::-;28391:67;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;28391:67:0;;;;;;;;;;;;;;;;;;;;;;;;;28381:78;;;;;;28180:287::o;30828:1455::-;31040:15;31057:12;31071:20;31140:12;31117:19;:35;;31109:103;;;;-1:-1:-1;;;31109:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31272:10;31263:20;;;;:8;:20;;;;;:30;;;:50;;31255:120;;;;-1:-1:-1;;;31255:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31420:16;31439:31;:11;31459:10;31439:19;:31::i;:::-;31420:50;;31604:17;31624:136;31652:7;31674:16;31705:19;31739:10;31624:13;:136::i;:::-;31604:156;;32219:8;32229:9;32240:34;:9;:32;:34::i;:::-;32211:64;;;;;;;;30828:1455;;;;;;;;;:::o;10594:148::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;10701:1:::1;10685:6:::0;;10664:40:::1;::::0;-1:-1:-1;;;;;10685:6:0;;::::1;::::0;10664:40:::1;::::0;10701:1;;10664:40:::1;10732:1;10715:19:::0;;-1:-1:-1;;;;;;10715:19:0::1;::::0;;10594:148::o;9952:79::-;9990:7;10017:6;-1:-1:-1;;;;;10017:6:0;9952:79;:::o;33476:478::-;33932:14;;33541:7;;33880:49;33892:17;33896:1;33899:6;33944:1;33899:9;;;33892:3;:17::i;:::-;33911;33915:1;33918:6;33925:1;33918:9;;33911:17;33880:11;:49::i;:::-;:66;33854:11;33866:1;33854:14;;33802:49;33814:17;33818:1;33821:6;33828:1;33821:9;;;33814:3;:17::i;:::-;33833;33837:1;33840:6;33847:1;33840:9;;33802:49;:66;33776:11;33788:1;33776:14;;33724:49;33736:17;33740:1;33743:6;33750:1;33743:9;;33736:17;33755;33759:1;33762:6;33769:1;33762:9;;33724:49;:66;33698:11;33710:1;33698:14;;33646:49;33658:17;33662:1;33665:6;33672:1;33665:9;;33658:17;33677;33681:1;33684:6;33691:1;33684:9;;33646:49;:66;33620:11;33632:1;33620:14;;33568:49;33580:17;33584:1;33587:6;33594:1;33587:9;;33580:17;33599;33603:1;33606:6;33613:1;33606:9;;33568:49;:66;:144;:222;:300;:378;;33476:478;-1:-1:-1;;;33476:478:0:o;27641:263::-;27794:7;27821:75;27839:7;27848:16;27866:19;27887:7;27828:67;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;27828:67:0;;;;;;;;;;;;;;;;;;;;;;;27821:75;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;27821:75:0;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;27821:75:0;;;;;;;;;;;;;;;;;;-1:-1:-1;27821:75:0;;-1:-1:-1;;27821:75:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27821:75:0;;27641:263;-1:-1:-1;;;;;27641:263:0:o;29251:1283::-;29491:12;29468:19;:35;;29460:103;;;;-1:-1:-1;;;29460:103:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29623:10;29614:20;;;;:8;:20;;;;;:30;;;:50;;29606:120;;;;-1:-1:-1;;;29606:120:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29771:16;29790:31;:11;29810:10;29790:19;:31::i;:::-;-1:-1:-1;;;;;29840:23:0;;;;;;:13;:23;;;;;;29771:50;;-1:-1:-1;29840:23:0;;:31;;:23;:31;29832:67;;;;;-1:-1:-1;;;29832:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;29953:17;29973:136;30001:7;30023:16;30054:19;30088:10;29973:13;:136::i;:::-;29953:156;;30166:11;30128:34;:9;:32;:34::i;:::-;:49;30120:84;;;;;-1:-1:-1;;;30120:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;30279:10;30270:20;;;;:8;:20;;;;;:31;:44;;30306:7;30270:35;:44::i;:::-;30245:10;30236:20;;;;:8;:20;;;;;:78;;;30325:30;;:52;;;30392:11;;30388:74;;30420:4;;:30;;;-1:-1:-1;;;30420:30:0;;30430:10;30420:30;;;;;;;;;;;;-1:-1:-1;;;;;30420:4:0;;;;:9;;:30;;;;;;;;;;;;;;;:4;;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;30388:74:0;30477:49;;;30485:10;30477:49;;;;;;;;;;;;;;;;;;;;;;;;;29251:1283;;;;;;;:::o;32535:92::-;32607:5;:12;32535:92;:::o;32751:103::-;32805:7;32832:5;32838:7;32832:14;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;32832:14:0;;32751:103;-1:-1:-1;;32751:103:0:o;26574:95::-;26646:8;:15;26574:95;:::o;26091:127::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;26177:22:0;;;::::1;;::::0;;;:13:::1;:22;::::0;;;;:33;;-1:-1:-1;;26177:33:0::1;::::0;::::1;;::::0;;;::::1;::::0;;26091:127::o;33364:102::-;33420:7;33447:6;33454:3;33447:11;;;;;;23990:23;;;-1:-1:-1;;;;;23990:23:0;;:::o;24075:46::-;;;;;;;;;;;;;;;:::o;10897:244::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;10986:22:0;::::1;10978:73;;;;-1:-1:-1::0;;;10978:73:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11088:6;::::0;;11067:38:::1;::::0;-1:-1:-1;;;;;11067:38:0;;::::1;::::0;11088:6;::::1;::::0;11067:38:::1;::::0;::::1;11116:6;:17:::0;;-1:-1:-1;;;;;;11116:17:0::1;-1:-1:-1::0;;;;;11116:17:0;;;::::1;::::0;;;::::1;::::0;;10897:244::o;28839:118::-;28893:7;28920:29;:4;:27;:29::i;:::-;28913:36;28839:118;-1:-1:-1;;28839:118:0:o;34558:105::-;10174:12;:10;:12::i;:::-;10164:6;;-1:-1:-1;;;;;10164:6:0;;;:22;;;10156:67;;;;;-1:-1:-1;;;10156:67:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10156:67:0;;;;;;;;;;;;;;;34648:7:::1;34634:6;34641:3;34634:11;;;;;;9097:106:::0;9185:10;9097:106;:::o;5068:136::-;5126:7;5153:43;5157:1;5160;5153:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;5146:50;5068:136;-1:-1:-1;;;5068:136:0:o;4604:181::-;4662:7;4694:5;;;4718:6;;;;4710:46;;;;;-1:-1:-1;;;4710:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1161:2051;1239:7;1302:9;:16;1322:2;1302:22;1298:96;;1341:41;;;-1:-1:-1;;;1341:41:0;;;;;;;;;;;;;;;;;;;;;;;;;;;1298:96;1755:4;1740:20;;1734:27;1801:4;1786:20;;1780:27;1855:4;1840:20;;1834:27;1463:9;1826:36;2790:66;2776:80;;;2768:127;;;;-1:-1:-1;;;2768:127:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2914:1;:7;;2919:2;2914:7;:18;;;;2925:1;:7;;2930:2;2925:7;2914:18;2906:65;;;;-1:-1:-1;;;2906:65:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3069:14;3086:24;3096:4;3102:1;3105;3108;3086:24;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;3086:24:0;;-1:-1:-1;;3086:24:0;;;-1:-1:-1;;;;;;;3129:20:0;;3121:57;;;;;-1:-1:-1;;;3121:57:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;3198:6;1161:2051;-1:-1:-1;;;;;;1161:2051:0:o;3486:269::-;3688:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3678:69;;;;;;3486:269::o;23259:106::-;23317:7;23348:1;23344;:5;:13;;23356:1;23344:13;;;-1:-1:-1;23352:1:0;;23259:106;-1:-1:-1;23259:106:0:o;23491:117::-;23556:7;23587:1;23583;:5;:17;;23599:1;23583:17;;;-1:-1:-1;23591:5:0;;;23491:117::o;23375:106::-;23433:7;23464:1;23460;:5;:13;;23472:1;23460:13;;5507:192;5593:7;5629:12;5621:6;;;;5613:29;;;;-1:-1:-1;;;5613:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;5665:5:0;;;5507:192::o
Swarm Source
ipfs://103638a2c4ae1a3b9f9aadb0aa59b9c0fbf2fdbed579102f3ec03fbdd862b59d
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.