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 521 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Mass Harvest | 16503142 | 739 days ago | IN | 0 ETH | 0.00360726 | ||||
Mass Harvest | 16095617 | 796 days ago | IN | 0 ETH | 0.00137787 | ||||
Mass Harvest | 15957149 | 815 days ago | IN | 0 ETH | 0.00126337 | ||||
Mass Harvest | 15836975 | 832 days ago | IN | 0 ETH | 0.00112548 | ||||
Mass Harvest | 15732596 | 846 days ago | IN | 0 ETH | 0.00378032 | ||||
Mass Harvest | 15673661 | 855 days ago | IN | 0 ETH | 0.00066079 | ||||
Mass Harvest | 15621511 | 862 days ago | IN | 0 ETH | 0.00093135 | ||||
Mass Harvest | 15609188 | 864 days ago | IN | 0 ETH | 0.00043359 | ||||
Mass Harvest | 15518518 | 877 days ago | IN | 0 ETH | 0.00173235 | ||||
Mass Harvest | 15510874 | 878 days ago | IN | 0 ETH | 0.00094156 | ||||
Mass Harvest | 15449668 | 888 days ago | IN | 0 ETH | 0.00309712 | ||||
Mass Harvest | 15421803 | 892 days ago | IN | 0 ETH | 0.00213567 | ||||
Mass Harvest | 15419967 | 893 days ago | IN | 0 ETH | 0.00043712 | ||||
Mass Harvest | 15408013 | 895 days ago | IN | 0 ETH | 0.00139009 | ||||
Mass Harvest | 15385861 | 898 days ago | IN | 0 ETH | 0.00137153 | ||||
Mass Harvest | 15365814 | 901 days ago | IN | 0 ETH | 0.00167671 | ||||
Mass Harvest | 15357896 | 903 days ago | IN | 0 ETH | 0.00089342 | ||||
Mass Harvest | 15355980 | 903 days ago | IN | 0 ETH | 0.00084028 | ||||
Mass Harvest | 15345587 | 905 days ago | IN | 0 ETH | 0.00156887 | ||||
Mass Harvest | 15343177 | 905 days ago | IN | 0 ETH | 0.00208648 | ||||
Mass Harvest | 15318034 | 909 days ago | IN | 0 ETH | 0.00571997 | ||||
Mass Harvest | 15263913 | 917 days ago | IN | 0 ETH | 0.00406802 | ||||
Mass Harvest | 15263321 | 917 days ago | IN | 0 ETH | 0.00134066 | ||||
Mass Harvest | 15235270 | 922 days ago | IN | 0 ETH | 0.00110884 | ||||
Mass Harvest | 15165790 | 933 days ago | IN | 0 ETH | 0.00195437 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
YieldFarmLP
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity Multiple files format)
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; import "./SafeMath.sol"; import "./IERC20.sol"; interface IStaking { function getEpochId(uint timestamp) external view returns (uint); // get epoch id function getEpochUserBalance(address user, address token, uint128 epoch) external view returns(uint); function getEpochPoolSize(address token, uint128 epoch) external view returns (uint); function epoch1Start() external view returns (uint); function epochDuration() external view returns (uint); function hasReferrer(address addr) external view returns(bool); function referrals(address addr) external view returns(address); function firstReferrerRewardPercentage() external view returns(uint256); function secondReferrerRewardPercentage() external view returns(uint256); } interface TokenInterface is IERC20 { function mintSupply(address _investorAddress, uint256 _amount) external; } contract YieldFarmLP { // lib using SafeMath for uint; using SafeMath for uint128; // constants uint public constant NR_OF_EPOCHS = 24; // addreses address public _uniLP; address public _owner; // contracts TokenInterface private _swapp; IStaking private _staking; uint[] private epochs = new uint[](NR_OF_EPOCHS + 1); uint128 public lastInitializedEpoch; mapping(address => uint128) private lastEpochIdHarvested; uint public epochDuration; // init from staking contract uint public epochStart; // init from staking contract mapping(uint128 => uint256) public epochAmounts; // events event MassHarvest(address indexed user, uint256 epochsHarvested, uint256 totalValue); event Harvest(address indexed user, uint128 indexed epochId, uint256 amount); event ReferrerRewardCollected(address indexed staker, address indexed referrer, uint256 rewardAmount); event Referrer2RewardCollected(address indexed staker, address indexed referrer, address indexed referrer2, uint256 rewardAmount); // constructor constructor() { _swapp = TokenInterface(0x8CB924583681cbFE487A62140a994A49F833c244); _staking = IStaking(0x245a551ee0F55005e510B239c917fA34b41B3461); epochDuration = _staking.epochDuration(); epochStart = _staking.epoch1Start(); _owner = msg.sender; } function setEpochAmount(uint128 epochId, uint256 amount) external { require(msg.sender == _owner, "Only owner can update epoch amount"); require(epochId > 0 && epochId <= NR_OF_EPOCHS, "Minimum epoch number is 1 and Maximum number of epochs is 24"); require(epochId > _getEpochId(), "Only future epoch can be updated"); epochAmounts[epochId] = amount; } function getTotalAmountPerEpoch() public view returns (uint) { uint128 currentEpoch = _getEpochId(); if (currentEpoch > NR_OF_EPOCHS) { currentEpoch = 25; } return epochAmounts[currentEpoch-1].mul(10**18); } function getCurrentEpochAmount() public view returns (uint) { uint128 currentEpoch = _getEpochId(); if (currentEpoch <= 0 || currentEpoch > NR_OF_EPOCHS) { return 0; } return epochAmounts[currentEpoch]; } function getTotalDistributedAmount() external view returns(uint256) { uint256 totalDistributed; for (uint128 i = 1; i <= NR_OF_EPOCHS; i++) { totalDistributed += epochAmounts[i]; } return totalDistributed; } function setLPAddress(address lp) external { if (_uniLP == address(0)) { _uniLP = lp; } } // public methods // public method to harvest all the unharvested epochs until current epoch - 1 function massHarvest() external returns (uint){ uint totalDistributedValue; uint epochId = _getEpochId().sub(1); // fails in epoch 0 // force max number of epochs if (epochId > NR_OF_EPOCHS) { epochId = NR_OF_EPOCHS; } for (uint128 i = lastEpochIdHarvested[msg.sender] + 1; i <= epochId; i++) { // i = epochId // compute distributed Value and do one single transfer at the end totalDistributedValue += _harvest(i); } emit MassHarvest(msg.sender, epochId - lastEpochIdHarvested[msg.sender], totalDistributedValue); if (totalDistributedValue > 0) { _swapp.mintSupply(msg.sender, totalDistributedValue); //Referrer reward distributeReferrerReward(totalDistributedValue); } return totalDistributedValue; } function harvest (uint128 epochId) external returns (uint){ // checks for requested epoch require (_getEpochId() > epochId, "This epoch is in the future"); require(epochId <= NR_OF_EPOCHS, "Maximum number of epochs is 24"); require (lastEpochIdHarvested[msg.sender].add(1) == epochId, "Harvest in order"); uint userReward = _harvest(epochId); if (userReward > 0) { _swapp.mintSupply(msg.sender, userReward); //Referrer reward distributeReferrerReward(userReward); } emit Harvest(msg.sender, epochId, userReward); return userReward; } function distributeReferrerReward(uint256 stakerReward) internal { if (_staking.hasReferrer(msg.sender)) { address referrer = _staking.referrals(msg.sender); uint256 ref1Reward = stakerReward.mul(_staking.firstReferrerRewardPercentage()).div(10000); _swapp.mintSupply(referrer, ref1Reward); emit ReferrerRewardCollected(msg.sender, referrer, ref1Reward); // second step referrer if (_staking.hasReferrer(referrer)) { address referrer2 = _staking.referrals(referrer); uint256 ref2Reward = stakerReward.mul(_staking.secondReferrerRewardPercentage()).div(10000); _swapp.mintSupply(referrer2, ref2Reward); emit Referrer2RewardCollected(msg.sender, referrer, referrer2, ref2Reward); } } } // views // calls to the staking smart contract to retrieve the epoch total pool size function getPoolSize(uint128 epochId) external view returns (uint) { return _getPoolSize(epochId); } function getCurrentEpoch() external view returns (uint) { return _getEpochId(); } // calls to the staking smart contract to retrieve user balance for an epoch function getEpochStake(address userAddress, uint128 epochId) external view returns (uint) { return _getUserBalancePerEpoch(userAddress, epochId); } function userLastEpochIdHarvested() external view returns (uint){ return lastEpochIdHarvested[msg.sender]; } // internal methods function _initEpoch(uint128 epochId) internal { require(lastInitializedEpoch.add(1) == epochId, "Epoch can be init only in order"); lastInitializedEpoch = epochId; // call the staking smart contract to init the epoch epochs[epochId] = _getPoolSize(epochId); } function _harvest (uint128 epochId) internal returns (uint) { // try to initialize an epoch. if it can't it fails // if it fails either user either a Swapp account will init not init epochs if (lastInitializedEpoch < epochId) { _initEpoch(epochId); } // Set user state for last harvested lastEpochIdHarvested[msg.sender] = epochId; // compute and return user total reward. For optimization reasons the transfer have been moved to an upper layer (i.e. massHarvest needs to do a single transfer) // exit if there is no stake on the epoch if (epochs[epochId] == 0) { return 0; } return getTotalAmountPerEpoch() .mul(_getUserBalancePerEpoch(msg.sender, epochId)) .div(epochs[epochId]); } function _getPoolSize(uint128 epochId) internal view returns (uint) { // retrieve unilp token balance return _staking.getEpochPoolSize(_uniLP, epochId); } function _getUserBalancePerEpoch(address userAddress, uint128 epochId) internal view returns (uint){ // retrieve unilp token balance per user per epoch return _staking.getEpochUserBalance(userAddress, _uniLP, epochId); } // compute epoch id from blocktimestamp and epochstart date function _getEpochId() internal view returns (uint128 epochId) { if (block.timestamp < epochStart) { return 0; } epochId = uint128(block.timestamp.sub(epochStart).div(epochDuration).add(1)); } }
// SPDX-License-Identifier: MIT /* Copyright (c) 2016-2020 zOS Global Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ pragma solidity ^0.7.0; /** * @dev Collection of functions related to the address type */ 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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.delegatecall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { 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); } } } }
// SPDX-License-Identifier: MIT /* Copyright (c) 2016-2020 zOS Global Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 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 /* Copyright (c) 2016-2020 zOS Global Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 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, 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; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint128","name":"epochId","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Harvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"epochsHarvested","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalValue","type":"uint256"}],"name":"MassHarvest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":true,"internalType":"address","name":"referrer2","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"Referrer2RewardCollected","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":true,"internalType":"address","name":"referrer","type":"address"},{"indexed":false,"internalType":"uint256","name":"rewardAmount","type":"uint256"}],"name":"ReferrerRewardCollected","type":"event"},{"inputs":[],"name":"NR_OF_EPOCHS","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":"_uniLP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"","type":"uint128"}],"name":"epochAmounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"epochStart","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCurrentEpochAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"uint128","name":"epochId","type":"uint128"}],"name":"getEpochStake","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"epochId","type":"uint128"}],"name":"getPoolSize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalAmountPerEpoch","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalDistributedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint128","name":"epochId","type":"uint128"}],"name":"harvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lastInitializedEpoch","outputs":[{"internalType":"uint128","name":"","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"massHarvest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint128","name":"epochId","type":"uint128"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setEpochAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"lp","type":"address"}],"name":"setLPAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"userLastEpochIdHarvested","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
601960808181526103c06040529060a061032080368337505081516200002d9260049250602001906200018a565b503480156200003b57600080fd5b50600280546001600160a01b0319908116738cb924583681cbfe487a62140a994a49f833c244179091556003805490911673245a551ee0f55005e510b239c917fa34b41b34611790819055604080516327f843b560e11b815290516001600160a01b039290921691634ff0876a91600480820192602092909190829003018186803b158015620000ca57600080fd5b505afa158015620000df573d6000803e3d6000fd5b505050506040513d6020811015620000f657600080fd5b50516007556003546040805163f4a4341d60e01b815290516001600160a01b039092169163f4a4341d91600480820192602092909190829003018186803b1580156200014157600080fd5b505afa15801562000156573d6000803e3d6000fd5b505050506040513d60208110156200016d57600080fd5b5051600855600180546001600160a01b03191633179055620001f1565b828054828255906000526020600020908101928215620001c8579160200282015b82811115620001c8578251825591602001919060010190620001ab565b50620001d6929150620001da565b5090565b5b80821115620001d65760008155600101620001db565b61133f80620002016000396000f3fe608060405234801561001057600080fd5b50600436106101165760003560e01c80637a351a1d116100a2578063b2bdfa7b11610071578063b2bdfa7b1461025e578063b97dd9e214610282578063e346c7951461028a578063e7f4700e14610292578063f7e251f81461029a57610116565b80637a351a1d146101e65780639c7ec8811461020c578063a1c130d414610230578063a43564eb1461023857610116565b806343312451116100e9578063433124511461016b57806344321f6d146101a05780634ff0876a146101a857806367087ee3146101b0578063777b4b45146101b857610116565b806305917ac01461011b57806315e5a1e51461013557806322ded4f51461013d578063290e454414610163575b600080fd5b6101236102c0565b60408051918252519081900360200190f35b6101236102c5565b6101236004803603602081101561015357600080fd5b50356001600160801b03166102cb565b6101236102dd565b6101236004803603604081101561018157600080fd5b5080356001600160a01b031690602001356001600160801b0316610429565b61012361043e565b610123610496565b61012361049c565b6101e4600480360360408110156101ce57600080fd5b506001600160801b0381351690602001356104d9565b005b6101e4600480360360208110156101fc57600080fd5b50356001600160a01b0316610609565b610214610638565b604080516001600160801b039092168252519081900360200190f35b610123610647565b6101236004803603602081101561024e57600080fd5b50356001600160801b0316610663565b61026661086d565b604080516001600160a01b039092168252519081900360200190f35b61012361087c565b610266610894565b6101236108a3565b610123600480360360208110156102b057600080fd5b50356001600160801b03166108fb565b601881565b60085481565b60096020526000908152604090205481565b60008060006102fe60016102ef610906565b6001600160801b03169061094b565b9050601881111561030d575060185b336000908152600660205260409020546001600160801b03166001015b81816001600160801b03161161034f576103438161098d565b9092019160010161032a565b50336000818152600660209081526040918290205482516001600160801b039091168503815290810185905281517fb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c929181900390910190a2811561042257600254604080516373a1403560e11b81523360048201526024810185905290516001600160a01b039092169163e742806a9160448082019260009290919082900301818387803b15801561040157600080fd5b505af1158015610415573d6000803e3d6000fd5b5050505061042282610a43565b5090505b90565b60006104358383610eb0565b90505b92915050565b600080610449610906565b90506001600160801b038116158061046a57506018816001600160801b0316115b15610479576000915050610426565b6001600160801b0316600090815260096020526040902054905090565b60075481565b60008060015b6018816001600160801b031611610422576001600160801b03811660009081526009602052604090205491909101906001016104a2565b6001546001600160a01b031633146105225760405162461bcd60e51b81526004018080602001828103825260228152602001806112ac6022913960400191505060405180910390fd5b6000826001600160801b031611801561054557506018826001600160801b031611155b6105805760405162461bcd60e51b815260040180806020018281038252603c8152602001806112ce603c913960400191505060405180910390fd5b610588610906565b6001600160801b0316826001600160801b0316116105ed576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79206675747572652065706f63682063616e2062652075706461746564604482015290519081900360640190fd5b6001600160801b03909116600090815260096020526040902055565b6000546001600160a01b031661063557600080546001600160a01b0319166001600160a01b0383161790555b50565b6005546001600160801b031681565b336000908152600660205260409020546001600160801b031690565b6000816001600160801b0316610677610906565b6001600160801b0316116106d2576040805162461bcd60e51b815260206004820152601b60248201527f546869732065706f636820697320696e20746865206675747572650000000000604482015290519081900360640190fd5b6018826001600160801b03161115610731576040805162461bcd60e51b815260206004820152601e60248201527f4d6178696d756d206e756d626572206f662065706f6368732069732032340000604482015290519081900360640190fd5b336000908152600660205260409020546001600160801b038084169161075991166001610f4e565b1461079e576040805162461bcd60e51b815260206004820152601060248201526f2430b93b32b9ba1034b71037b93232b960811b604482015290519081900360640190fd5b60006107a98361098d565b9050801561082557600254604080516373a1403560e11b81523360048201526024810184905290516001600160a01b039092169163e742806a9160448082019260009290919082900301818387803b15801561080457600080fd5b505af1158015610818573d6000803e3d6000fd5b5050505061082581610a43565b6040805182815290516001600160801b0385169133917f04ad45a69eeed9c390c3a678fed2d4b90bde98e742de9936d5e0915bf3d0ea4e9181900360200190a390505b919050565b6001546001600160a01b031681565b6000610886610906565b6001600160801b0316905090565b6000546001600160a01b031681565b6000806108ae610906565b90506018816001600160801b031611156108c6575060195b6001600160801b036000198201166000908152600960205260409020546108f590670de0b6b3a7640000610fa8565b91505090565b600061043882611001565b600060085442101561091a57506000610426565b610946600161094060075461093a6008544261094b90919063ffffffff16565b90611096565b90610f4e565b905090565b600061043583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110d8565b6005546000906001600160801b03808416911610156109af576109af8261116f565b33600090815260066020526040902080546001600160801b0319166001600160801b0384169081179091556004805490919081106109e957fe5b906000526020600020015460001415610a0457506000610868565b6104386004836001600160801b031681548110610a1d57fe5b906000526020600020015461093a610a353386610eb0565b610a3d6108a3565b90610fa8565b60035460408051630308a59b60e31b815233600482015290516001600160a01b03909216916318452cd891602480820192602092909190829003018186803b158015610a8e57600080fd5b505afa158015610aa2573d6000803e3d6000fd5b505050506040513d6020811015610ab857600080fd5b5051156106355760035460408051639ca423b360e01b815233600482015290516000926001600160a01b031691639ca423b3916024808301926020929190829003018186803b158015610b0a57600080fd5b505afa158015610b1e573d6000803e3d6000fd5b505050506040513d6020811015610b3457600080fd5b5051600354604080516375cd903b60e01b81529051929350600092610bc0926127109261093a926001600160a01b03909216916375cd903b91600480820192602092909190829003018186803b158015610b8d57600080fd5b505afa158015610ba1573d6000803e3d6000fd5b505050506040513d6020811015610bb757600080fd5b50518690610fa8565b600254604080516373a1403560e11b81526001600160a01b03868116600483015260248201859052915193945091169163e742806a9160448082019260009290919082900301818387803b158015610c1757600080fd5b505af1158015610c2b573d6000803e3d6000fd5b50506040805184815290516001600160a01b03861693503392507f1834256d5ddaf7e9aafcd123dca0e155cef83bfc259ce07ba017587c6cdd9abc9181900360200190a360035460408051630308a59b60e31b81526001600160a01b038581166004830152915191909216916318452cd8916024808301926020929190829003018186803b158015610cbc57600080fd5b505afa158015610cd0573d6000803e3d6000fd5b505050506040513d6020811015610ce657600080fd5b505115610eab5760035460408051639ca423b360e01b81526001600160a01b03858116600483015291516000939290921691639ca423b391602480820192602092909190829003018186803b158015610d3e57600080fd5b505afa158015610d52573d6000803e3d6000fd5b505050506040513d6020811015610d6857600080fd5b5051600354604080516320f5984d60e01b81529051929350600092610df4926127109261093a926001600160a01b03909216916320f5984d91600480820192602092909190829003018186803b158015610dc157600080fd5b505afa158015610dd5573d6000803e3d6000fd5b505050506040513d6020811015610deb57600080fd5b50518890610fa8565b600254604080516373a1403560e11b81526001600160a01b03868116600483015260248201859052915193945091169163e742806a9160448082019260009290919082900301818387803b158015610e4b57600080fd5b505af1158015610e5f573d6000803e3d6000fd5b50506040805184815290516001600160a01b0380871694508816925033917f4514843c0c872aa44ebb71c5e6b05840c7de3261fb32de859afac91fcf0dafb7919081900360200190a450505b505050565b60035460008054604080516308c028dd60e41b81526001600160a01b03878116600483015292831660248201526001600160801b0386166044820152905192939190911691638c028dd091606480820192602092909190829003018186803b158015610f1b57600080fd5b505afa158015610f2f573d6000803e3d6000fd5b505050506040513d6020811015610f4557600080fd5b50519392505050565b600082820183811015610435576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082610fb757506000610438565b82820282848281610fc457fe5b04146104355760405162461bcd60e51b815260040180806020018281038252602181526020018061128b6021913960400191505060405180910390fd5b600354600080546040805163165196bf60e11b81526001600160a01b0392831660048201526001600160801b0386166024820152905192939190911691632ca32d7e91604480820192602092909190829003018186803b15801561106457600080fd5b505afa158015611078573d6000803e3d6000fd5b505050506040513d602081101561108e57600080fd5b505192915050565b600061043583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611225565b600081848411156111675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561112c578181015183820152602001611114565b50505050905090810190601f1680156111595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6005546001600160801b038083169161118a91166001610f4e565b146111dc576040805162461bcd60e51b815260206004820152601f60248201527f45706f63682063616e20626520696e6974206f6e6c7920696e206f7264657200604482015290519081900360640190fd5b600580546001600160801b0319166001600160801b03831617905561120081611001565b6004826001600160801b03168154811061121657fe5b60009182526020909120015550565b600081836112745760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561112c578181015183820152602001611114565b50600083858161128057fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f6e6c79206f776e65722063616e207570646174652065706f636820616d6f756e744d696e696d756d2065706f6368206e756d626572206973203120616e64204d6178696d756d206e756d626572206f662065706f636873206973203234a26469706673582212204d5663723665a922667552862c2a165fd91ad5bf11d04873672944cd70960c2264736f6c63430007060033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101165760003560e01c80637a351a1d116100a2578063b2bdfa7b11610071578063b2bdfa7b1461025e578063b97dd9e214610282578063e346c7951461028a578063e7f4700e14610292578063f7e251f81461029a57610116565b80637a351a1d146101e65780639c7ec8811461020c578063a1c130d414610230578063a43564eb1461023857610116565b806343312451116100e9578063433124511461016b57806344321f6d146101a05780634ff0876a146101a857806367087ee3146101b0578063777b4b45146101b857610116565b806305917ac01461011b57806315e5a1e51461013557806322ded4f51461013d578063290e454414610163575b600080fd5b6101236102c0565b60408051918252519081900360200190f35b6101236102c5565b6101236004803603602081101561015357600080fd5b50356001600160801b03166102cb565b6101236102dd565b6101236004803603604081101561018157600080fd5b5080356001600160a01b031690602001356001600160801b0316610429565b61012361043e565b610123610496565b61012361049c565b6101e4600480360360408110156101ce57600080fd5b506001600160801b0381351690602001356104d9565b005b6101e4600480360360208110156101fc57600080fd5b50356001600160a01b0316610609565b610214610638565b604080516001600160801b039092168252519081900360200190f35b610123610647565b6101236004803603602081101561024e57600080fd5b50356001600160801b0316610663565b61026661086d565b604080516001600160a01b039092168252519081900360200190f35b61012361087c565b610266610894565b6101236108a3565b610123600480360360208110156102b057600080fd5b50356001600160801b03166108fb565b601881565b60085481565b60096020526000908152604090205481565b60008060006102fe60016102ef610906565b6001600160801b03169061094b565b9050601881111561030d575060185b336000908152600660205260409020546001600160801b03166001015b81816001600160801b03161161034f576103438161098d565b9092019160010161032a565b50336000818152600660209081526040918290205482516001600160801b039091168503815290810185905281517fb68dafc1da13dc868096d0b87347c831d0bda92d178317eb1dec7f788444485c929181900390910190a2811561042257600254604080516373a1403560e11b81523360048201526024810185905290516001600160a01b039092169163e742806a9160448082019260009290919082900301818387803b15801561040157600080fd5b505af1158015610415573d6000803e3d6000fd5b5050505061042282610a43565b5090505b90565b60006104358383610eb0565b90505b92915050565b600080610449610906565b90506001600160801b038116158061046a57506018816001600160801b0316115b15610479576000915050610426565b6001600160801b0316600090815260096020526040902054905090565b60075481565b60008060015b6018816001600160801b031611610422576001600160801b03811660009081526009602052604090205491909101906001016104a2565b6001546001600160a01b031633146105225760405162461bcd60e51b81526004018080602001828103825260228152602001806112ac6022913960400191505060405180910390fd5b6000826001600160801b031611801561054557506018826001600160801b031611155b6105805760405162461bcd60e51b815260040180806020018281038252603c8152602001806112ce603c913960400191505060405180910390fd5b610588610906565b6001600160801b0316826001600160801b0316116105ed576040805162461bcd60e51b815260206004820181905260248201527f4f6e6c79206675747572652065706f63682063616e2062652075706461746564604482015290519081900360640190fd5b6001600160801b03909116600090815260096020526040902055565b6000546001600160a01b031661063557600080546001600160a01b0319166001600160a01b0383161790555b50565b6005546001600160801b031681565b336000908152600660205260409020546001600160801b031690565b6000816001600160801b0316610677610906565b6001600160801b0316116106d2576040805162461bcd60e51b815260206004820152601b60248201527f546869732065706f636820697320696e20746865206675747572650000000000604482015290519081900360640190fd5b6018826001600160801b03161115610731576040805162461bcd60e51b815260206004820152601e60248201527f4d6178696d756d206e756d626572206f662065706f6368732069732032340000604482015290519081900360640190fd5b336000908152600660205260409020546001600160801b038084169161075991166001610f4e565b1461079e576040805162461bcd60e51b815260206004820152601060248201526f2430b93b32b9ba1034b71037b93232b960811b604482015290519081900360640190fd5b60006107a98361098d565b9050801561082557600254604080516373a1403560e11b81523360048201526024810184905290516001600160a01b039092169163e742806a9160448082019260009290919082900301818387803b15801561080457600080fd5b505af1158015610818573d6000803e3d6000fd5b5050505061082581610a43565b6040805182815290516001600160801b0385169133917f04ad45a69eeed9c390c3a678fed2d4b90bde98e742de9936d5e0915bf3d0ea4e9181900360200190a390505b919050565b6001546001600160a01b031681565b6000610886610906565b6001600160801b0316905090565b6000546001600160a01b031681565b6000806108ae610906565b90506018816001600160801b031611156108c6575060195b6001600160801b036000198201166000908152600960205260409020546108f590670de0b6b3a7640000610fa8565b91505090565b600061043882611001565b600060085442101561091a57506000610426565b610946600161094060075461093a6008544261094b90919063ffffffff16565b90611096565b90610f4e565b905090565b600061043583836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506110d8565b6005546000906001600160801b03808416911610156109af576109af8261116f565b33600090815260066020526040902080546001600160801b0319166001600160801b0384169081179091556004805490919081106109e957fe5b906000526020600020015460001415610a0457506000610868565b6104386004836001600160801b031681548110610a1d57fe5b906000526020600020015461093a610a353386610eb0565b610a3d6108a3565b90610fa8565b60035460408051630308a59b60e31b815233600482015290516001600160a01b03909216916318452cd891602480820192602092909190829003018186803b158015610a8e57600080fd5b505afa158015610aa2573d6000803e3d6000fd5b505050506040513d6020811015610ab857600080fd5b5051156106355760035460408051639ca423b360e01b815233600482015290516000926001600160a01b031691639ca423b3916024808301926020929190829003018186803b158015610b0a57600080fd5b505afa158015610b1e573d6000803e3d6000fd5b505050506040513d6020811015610b3457600080fd5b5051600354604080516375cd903b60e01b81529051929350600092610bc0926127109261093a926001600160a01b03909216916375cd903b91600480820192602092909190829003018186803b158015610b8d57600080fd5b505afa158015610ba1573d6000803e3d6000fd5b505050506040513d6020811015610bb757600080fd5b50518690610fa8565b600254604080516373a1403560e11b81526001600160a01b03868116600483015260248201859052915193945091169163e742806a9160448082019260009290919082900301818387803b158015610c1757600080fd5b505af1158015610c2b573d6000803e3d6000fd5b50506040805184815290516001600160a01b03861693503392507f1834256d5ddaf7e9aafcd123dca0e155cef83bfc259ce07ba017587c6cdd9abc9181900360200190a360035460408051630308a59b60e31b81526001600160a01b038581166004830152915191909216916318452cd8916024808301926020929190829003018186803b158015610cbc57600080fd5b505afa158015610cd0573d6000803e3d6000fd5b505050506040513d6020811015610ce657600080fd5b505115610eab5760035460408051639ca423b360e01b81526001600160a01b03858116600483015291516000939290921691639ca423b391602480820192602092909190829003018186803b158015610d3e57600080fd5b505afa158015610d52573d6000803e3d6000fd5b505050506040513d6020811015610d6857600080fd5b5051600354604080516320f5984d60e01b81529051929350600092610df4926127109261093a926001600160a01b03909216916320f5984d91600480820192602092909190829003018186803b158015610dc157600080fd5b505afa158015610dd5573d6000803e3d6000fd5b505050506040513d6020811015610deb57600080fd5b50518890610fa8565b600254604080516373a1403560e11b81526001600160a01b03868116600483015260248201859052915193945091169163e742806a9160448082019260009290919082900301818387803b158015610e4b57600080fd5b505af1158015610e5f573d6000803e3d6000fd5b50506040805184815290516001600160a01b0380871694508816925033917f4514843c0c872aa44ebb71c5e6b05840c7de3261fb32de859afac91fcf0dafb7919081900360200190a450505b505050565b60035460008054604080516308c028dd60e41b81526001600160a01b03878116600483015292831660248201526001600160801b0386166044820152905192939190911691638c028dd091606480820192602092909190829003018186803b158015610f1b57600080fd5b505afa158015610f2f573d6000803e3d6000fd5b505050506040513d6020811015610f4557600080fd5b50519392505050565b600082820183811015610435576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082610fb757506000610438565b82820282848281610fc457fe5b04146104355760405162461bcd60e51b815260040180806020018281038252602181526020018061128b6021913960400191505060405180910390fd5b600354600080546040805163165196bf60e11b81526001600160a01b0392831660048201526001600160801b0386166024820152905192939190911691632ca32d7e91604480820192602092909190829003018186803b15801561106457600080fd5b505afa158015611078573d6000803e3d6000fd5b505050506040513d602081101561108e57600080fd5b505192915050565b600061043583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611225565b600081848411156111675760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561112c578181015183820152602001611114565b50505050905090810190601f1680156111595780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6005546001600160801b038083169161118a91166001610f4e565b146111dc576040805162461bcd60e51b815260206004820152601f60248201527f45706f63682063616e20626520696e6974206f6e6c7920696e206f7264657200604482015290519081900360640190fd5b600580546001600160801b0319166001600160801b03831617905561120081611001565b6004826001600160801b03168154811061121657fe5b60009182526020909120015550565b600081836112745760405162461bcd60e51b815260206004820181815283516024840152835190928392604490910191908501908083836000831561112c578181015183820152602001611114565b50600083858161128057fe5b049594505050505056fe536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f6e6c79206f776e65722063616e207570646174652065706f636820616d6f756e744d696e696d756d2065706f6368206e756d626572206973203120616e64204d6178696d756d206e756d626572206f662065706f636873206973203234a26469706673582212204d5663723665a922667552862c2a165fd91ad5bf11d04873672944cd70960c2264736f6c63430007060033
Deployed Bytecode Sourcemap
938:7783:3:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1055:38;;;:::i;:::-;;;;;;;;;;;;;;;;1476:22;;;:::i;1535:47::-;;;;;;;;;;;;;;;;-1:-1:-1;1535:47:3;-1:-1:-1;;;;;1535:47:3;;:::i;3754:881::-;;;:::i;6558:159::-;;;;;;;;;;;;;;;;-1:-1:-1;6558:159:3;;-1:-1:-1;;;;;6558:159:3;;;;;-1:-1:-1;;;;;6558:159:3;;:::i;3001:253::-;;;:::i;1415:25::-;;;:::i;3260:255::-;;;:::i;2340:389::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;2340:389:3;;;;;;;;:::i;:::-;;3522:121;;;;;;;;;;;;;;;;-1:-1:-1;3522:121:3;-1:-1:-1;;;;;3522:121:3;;:::i;1312:35::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1312:35:3;;;;;;;;;;;;;;6723:120;;;:::i;4641:645::-;;;;;;;;;;;;;;;;-1:-1:-1;4641:645:3;-1:-1:-1;;;;;4641:645:3;;:::i;1143:21::-;;;:::i;:::-;;;;-1:-1:-1;;;;;1143:21:3;;;;;;;;;;;;;;6378:93;;;:::i;1116:21::-;;;:::i;2735:256::-;;;:::i;6260:112::-;;;;;;;;;;;;;;;;-1:-1:-1;6260:112:3;-1:-1:-1;;;;;6260:112:3;;:::i;1055:38::-;1091:2;1055:38;:::o;1476:22::-;;;;:::o;1535:47::-;;;;;;;;;;;;;:::o;3754:881::-;3795:4;3810:26;3846:12;3861:20;3879:1;3861:13;:11;:13::i;:::-;-1:-1:-1;;;;;3861:17:3;;;:20::i;:::-;3846:35;;1091:2;3953:7;:22;3949:75;;;-1:-1:-1;1091:2:3;3949:75;4072:10;4039:9;4051:32;;;:20;:32;;;;;;-1:-1:-1;;;;;4051:32:3;;:36;4034:241;4094:7;4089:1;-1:-1:-1;;;;;4089:12:3;;4034:241;;4253:11;4262:1;4253:8;:11::i;:::-;4228:36;;;;4103:3;;4034:241;;;-1:-1:-1;4302:10:3;4324:32;;;;:20;:32;;;;;;;;;;4290:90;;-1:-1:-1;;;;;4324:32:3;;;4314:42;;4290:90;;;;;;;;;;;;;;;;;;;;;4395:25;;4391:199;;4436:6;;:52;;;-1:-1:-1;;;4436:52:3;;4454:10;4436:52;;;;;;;;;;;;-1:-1:-1;;;;;4436:6:3;;;;:17;;:52;;;;;:6;;:52;;;;;;;;:6;;:52;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4532:47;4557:21;4532:24;:47::i;:::-;-1:-1:-1;4607:21:3;-1:-1:-1;3754:881:3;;:::o;6558:159::-;6642:4;6665:45;6689:11;6702:7;6665:23;:45::i;:::-;6658:52;;6558:159;;;;;:::o;3001:253::-;3055:4;3071:20;3094:13;:11;:13::i;:::-;3071:36;-1:-1:-1;;;;;;3121:17:3;;;;:48;;;1091:2;3142:12;-1:-1:-1;;;;;3142:27:3;;3121:48;3117:87;;;3192:1;3185:8;;;;;3117:87;-1:-1:-1;;;;;3221:26:3;;;;;:12;:26;;;;;;;-1:-1:-1;3001:253:3;:::o;1415:25::-;;;;:::o;3260:255::-;3319:7;;3389:1;3372:104;1091:2;3392:1;-1:-1:-1;;;;;3392:17:3;;3372:104;;-1:-1:-1;;;;;3450:15:3;;;;;;:12;:15;;;;;;3430:35;;;;;3411:3;;3372:104;;2340:389;2438:6;;-1:-1:-1;;;;;2438:6:3;2424:10;:20;2416:67;;;;-1:-1:-1;;;2416:67:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2511:1;2501:7;-1:-1:-1;;;;;2501:11:3;;:38;;;;;1091:2;2516:7;-1:-1:-1;;;;;2516:23:3;;;2501:38;2493:111;;;;-1:-1:-1;;;2493:111:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2632:13;:11;:13::i;:::-;-1:-1:-1;;;;;2622:23:3;:7;-1:-1:-1;;;;;2622:23:3;;2614:68;;;;;-1:-1:-1;;;2614:68:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;2692:21:3;;;;;;;:12;:21;;;;;:30;2340:389::o;3522:121::-;3597:1;3579:6;-1:-1:-1;;;;;3579:6:3;3575:62;;3615:6;:11;;-1:-1:-1;;;;;;3615:11:3;-1:-1:-1;;;;;3615:11:3;;;;;3575:62;3522:121;:::o;1312:35::-;;;-1:-1:-1;;;;;1312:35:3;;:::o;6723:120::-;6825:10;6782:4;6804:32;;;:20;:32;;;;;;-1:-1:-1;;;;;6804:32:3;6723:120;:::o;4641:645::-;4694:4;4772:7;-1:-1:-1;;;;;4756:23:3;:13;:11;:13::i;:::-;-1:-1:-1;;;;;4756:23:3;;4747:64;;;;;-1:-1:-1;;;4747:64:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;1091:2;4829:7;-1:-1:-1;;;;;4829:23:3;;;4821:66;;;;;-1:-1:-1;;;4821:66:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;4927:10;4906:32;;;;:20;:32;;;;;;-1:-1:-1;;;;;4906:50:3;;;;:39;;:32;4943:1;4906:36;:39::i;:::-;:50;4897:80;;;;;-1:-1:-1;;;4897:80:3;;;;;;;;;;;;-1:-1:-1;;;4897:80:3;;;;;;;;;;;;;;;4987:15;5005:17;5014:7;5005:8;:17::i;:::-;4987:35;-1:-1:-1;5036:14:3;;5032:166;;5066:6;;:41;;;-1:-1:-1;;;5066:41:3;;5084:10;5066:41;;;;;;;;;;;;-1:-1:-1;;;;;5066:6:3;;;;:17;;:41;;;;;:6;;:41;;;;;;;;:6;;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5151:36;5176:10;5151:24;:36::i;:::-;5212:40;;;;;;;;-1:-1:-1;;;;;5212:40:3;;;5220:10;;5212:40;;;;;;;;;5269:10;-1:-1:-1;4641:645:3;;;;:::o;1143:21::-;;;-1:-1:-1;;;;;1143:21:3;;:::o;6378:93::-;6428:4;6451:13;:11;:13::i;:::-;-1:-1:-1;;;;;6444:20:3;;;6378:93;:::o;1116:21::-;;;-1:-1:-1;;;;;1116:21:3;;:::o;2735:256::-;2790:4;2806:20;2829:13;:11;:13::i;:::-;2806:36;;1091:2;2856:12;-1:-1:-1;;;;;2856:27:3;;2852:75;;;-1:-1:-1;2914:2:3;2852:75;-1:-1:-1;;;;;;;2957:14:3;;2944:28;;;;;:12;:28;;;;;;:40;;2977:6;2944:32;:40::i;:::-;2937:47;;;2735:256;:::o;6260:112::-;6321:4;6344:21;6357:7;6344:12;:21::i;8487:232::-;8533:15;8582:10;;8564:15;:28;8560:67;;;-1:-1:-1;8615:1:3;8608:8;;8560:67;8654:57;8709:1;8654:50;8690:13;;8654:31;8674:10;;8654:15;:19;;:31;;;;:::i;:::-;:35;;:50::i;:::-;:54;;:57::i;:::-;8636:76;;8487:232;:::o;2403:134:2:-;2461:7;2487:43;2491:1;2494;2487:43;;;;;;;;;;;;;;;;;:3;:43::i;7175:816:3:-;7393:20;;7229:4;;-1:-1:-1;;;;;7393:30:3;;;:20;;:30;7389:80;;;7439:19;7450:7;7439:10;:19::i;:::-;7544:10;7523:32;;;;:20;:32;;;;;:42;;-1:-1:-1;;;;;;7523:42:3;-1:-1:-1;;;;;7523:42:3;;;;;;;;7800:6;:15;;:6;;7523:42;7800:15;;;;;;;;;;;;;;7819:1;7800:20;7796:59;;;-1:-1:-1;7843:1:3;7836:8;;7796:59;7871:113;7968:6;7975:7;-1:-1:-1;;;;;7968:15:3;;;;;;;;;;;;;;;;;7871:83;7909:44;7933:10;7945:7;7909:23;:44::i;:::-;7871:24;:22;:24::i;:::-;:37;;:83::i;5296:864::-;5375:8;;:32;;;-1:-1:-1;;;5375:32:3;;5396:10;5375:32;;;;;;-1:-1:-1;;;;;5375:8:3;;;;:20;;:32;;;;;;;;;;;;;;;:8;:32;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5375:32:3;5371:783;;;5442:8;;:30;;;-1:-1:-1;;;5442:30:3;;5461:10;5442:30;;;;;;5423:16;;-1:-1:-1;;;;;5442:8:3;;:18;;:30;;;;;;;;;;;;;;:8;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5442:30:3;5524:8;;:40;;;-1:-1:-1;;;5524:40:3;;;;5442:30;;-1:-1:-1;5486:18:3;;5507:69;;5570:5;;5507:58;;-1:-1:-1;;;;;5524:8:3;;;;:38;;:40;;;;;5442:30;;5524:40;;;;;;;;:8;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5524:40:3;5507:12;;:16;:58::i;:69::-;5590:6;;:39;;;-1:-1:-1;;;5590:39:3;;-1:-1:-1;;;;;5590:39:3;;;;;;;;;;;;;;;5486:90;;-1:-1:-1;5590:6:3;;;:17;;:39;;;;;:6;;:39;;;;;;;;:6;;:39;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;5648:57:3;;;;;;;;-1:-1:-1;;;;;5648:57:3;;;-1:-1:-1;5672:10:3;;-1:-1:-1;5648:57:3;;;;;;;;;5772:8;;:30;;;-1:-1:-1;;;5772:30:3;;-1:-1:-1;;;;;5772:30:3;;;;;;;;;:8;;;;;:20;;:30;;;;;;;;;;;;;;:8;:30;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5772:30:3;5768:376;;;5842:8;;:28;;;-1:-1:-1;;;5842:28:3;;-1:-1:-1;;;;;5842:28:3;;;;;;;;;5822:17;;5842:8;;;;;:18;;:28;;;;;;;;;;;;;;;:8;:28;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5842:28:3;5926:8;;:41;;;-1:-1:-1;;;5926:41:3;;;;5842:28;;-1:-1:-1;5888:18:3;;5909:70;;5973:5;;5909:59;;-1:-1:-1;;;;;5926:8:3;;;;:39;;:41;;;;;5842:28;;5926:41;;;;;;;;:8;:41;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;5926:41:3;5909:12;;:16;:59::i;:70::-;5997:6;;:40;;;-1:-1:-1;;;5997:40:3;;-1:-1:-1;;;;;5997:40:3;;;;;;;;;;;;;;;5888:91;;-1:-1:-1;5997:6:3;;;:17;;:40;;;;;:6;;:40;;;;;;;;:6;;:40;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;6060:69:3;;;;;;;;-1:-1:-1;;;;;6060:69:3;;;;-1:-1:-1;6060:69:3;;;-1:-1:-1;6085:10:3;;6060:69;;;;;;;;;;5768:376;;;5371:783;;5296:864;:::o;8177:240::-;8352:8;;8271:4;8394:6;;8352:58;;;-1:-1:-1;;;8352:58:3;;-1:-1:-1;;;;;8352:58:3;;;;;;;8394:6;;;8352:58;;;;-1:-1:-1;;;;;8352:58:3;;;;;;;;8271:4;;8352:8;;;;;:28;;:58;;;;;;;;;;;;;;;:8;:58;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8352:58:3;;8177:240;-1:-1:-1;;;8177:240:3:o;1956:176:2:-;2014:7;2045:5;;;2068:6;;;;2060:46;;;;;-1:-1:-1;;;2060:46:2;;;;;;;;;;;;;;;;;;;;;;;;;;;3262:459;3320:7;3561:6;3557:45;;-1:-1:-1;3590:1:2;3583:8;;3557:45;3624:5;;;3628:1;3624;:5;:1;3647:5;;;;;:10;3639:56;;;;-1:-1:-1;;;3639:56:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7997:174:3;8122:8;;8059:4;8148:6;;8122:42;;;-1:-1:-1;;;8122:42:3;;-1:-1:-1;;;;;8148:6:3;;;8122:42;;;;-1:-1:-1;;;;;8122:42:3;;;;;;;;8059:4;;8122:8;;;;;:25;;:42;;;;;;;;;;;;;;;:8;:42;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;8122:42:3;;7997:174;-1:-1:-1;;7997:174:3:o;4183:130:2:-;4241:7;4267:39;4271:1;4274;4267:39;;;;;;;;;;;;;;;;;:3;:39::i;2828:187::-;2914:7;2949:12;2941:6;;;;2933:29;;;;-1:-1:-1;;;2933:29:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;2984:5:2;;;2828:187::o;6874:295:3:-;6938:20;;-1:-1:-1;;;;;6938:38:3;;;;:27;;:20;6963:1;6938:24;:27::i;:::-;:38;6930:82;;;;;-1:-1:-1;;;6930:82:3;;;;;;;;;;;;;;;;;;;;;;;;;;;;7022:20;:30;;-1:-1:-1;;;;;;7022:30:3;-1:-1:-1;;;;;7022:30:3;;;;;7141:21;7022:30;7141:12;:21::i;:::-;7123:6;7130:7;-1:-1:-1;;;;;7123:15:3;;;;;;;;;;;;;;;;;;:39;-1:-1:-1;6874:295:3:o;4795:272:2:-;4881:7;4915:12;4908:5;4900:28;;;;-1:-1:-1;;;4900:28:2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4938:9;4954:1;4950;:5;;;;;;;4795:272;-1:-1:-1;;;;;4795:272:2:o
Swarm Source
ipfs://4d5663723665a922667552862c2a165fd91ad5bf11d04873672944cd70960c22
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.