More Info
Private Name Tags
ContractCreator:
Sponsored
Latest 25 from a total of 124 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
Value | ||||
---|---|---|---|---|---|---|---|---|---|
Withdraw | 38954614 | 673 days ago | IN | 0 FTM | 0.0203591 | ||||
Withdraw | 38954589 | 673 days ago | IN | 0 FTM | 0.01267304 | ||||
Withdraw | 38954409 | 673 days ago | IN | 0 FTM | 0.21093862 | ||||
Withdraw | 38954400 | 673 days ago | IN | 0 FTM | 0.09942896 | ||||
Deposit | 38939071 | 674 days ago | IN | 0 FTM | 0.00686118 | ||||
Withdraw | 38938731 | 674 days ago | IN | 0 FTM | 0.00603327 | ||||
Withdraw | 38938558 | 674 days ago | IN | 0 FTM | 0.00536089 | ||||
Withdraw | 38909468 | 674 days ago | IN | 0 FTM | 0.02074062 | ||||
Withdraw | 38892212 | 674 days ago | IN | 0 FTM | 0.00556942 | ||||
Withdraw | 38892181 | 674 days ago | IN | 0 FTM | 0.0055794 | ||||
Deposit | 38868736 | 675 days ago | IN | 0 FTM | 0.00841612 | ||||
Withdraw | 38860992 | 675 days ago | IN | 0 FTM | 0.01566571 | ||||
Withdraw | 38860813 | 675 days ago | IN | 0 FTM | 0.029634 | ||||
Withdraw | 38750154 | 676 days ago | IN | 0 FTM | 0.02158017 | ||||
Deposit | 38618806 | 678 days ago | IN | 0 FTM | 0.01436677 | ||||
Deposit | 38618673 | 678 days ago | IN | 0 FTM | 0.01419586 | ||||
Withdraw | 38617790 | 678 days ago | IN | 0 FTM | 0.01703566 | ||||
Deposit | 38565035 | 679 days ago | IN | 0 FTM | 0.03529397 | ||||
Deposit | 38358353 | 681 days ago | IN | 0 FTM | 0.17336524 | ||||
Withdraw | 38358232 | 681 days ago | IN | 0 FTM | 0.15072294 | ||||
Deposit | 38330900 | 682 days ago | IN | 0 FTM | 0.07512322 | ||||
Withdraw | 38325429 | 682 days ago | IN | 0 FTM | 0.12836797 | ||||
Deposit | 38325289 | 682 days ago | IN | 0 FTM | 0.12973411 | ||||
Withdraw | 38325076 | 682 days ago | IN | 0 FTM | 0.09015656 | ||||
Withdraw | 38319691 | 682 days ago | IN | 0 FTM | 0.14589042 |
Latest 1 internal transaction
Parent Txn Hash | Block | From | To | Value | ||
---|---|---|---|---|---|---|
37844021 | 689 days ago | Contract Creation | 0 FTM |
Loading...
Loading
Contract Name:
AresRewardPool
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at ftmscan.com on 2022-05-08 */ /** *Submitted for verification at FtmScan.com on 2022-04-14 */ /** *Submitted for verification at FtmScan.com on 2022-04-14 */ /** *Submitted for verification at FtmScan.com on 2022-04-12 */ /** *Submitted for verification at FtmScan.com on 2022-04-06 */ // SPDX-License-Identifier: MIT pragma solidity >=0.6.0 <0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } pragma solidity >=0.6.2 <0.8.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); } } } } pragma solidity >=0.6.0 <0.8.0; /** * @dev Wrappers over Solidity's arithmetic operations with added overflow * checks. * * Arithmetic operations in Solidity wrap on overflow. This can easily result * in bugs, because programmers usually assume that an overflow raises an * error, which is the standard behavior in high level programming languages. * `SafeMath` restores this intuition by reverting the transaction when an * operation overflows. * * Using this library instead of the unchecked operations eliminates an entire * class of bugs, so it's recommended to use it always. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } /** * @dev Returns the substraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b > a) return (false, 0); return (true, a - b); } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a / b); } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { if (b == 0) return (false, 0); return (true, a % b); } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtraction overflow"); return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) return 0; uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: division by zero"); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { require(b > 0, "SafeMath: modulo by zero"); return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); return a - b; } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryDiv}. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b > 0, errorMessage); return a % b; } } pragma solidity >=0.6.0 <0.8.0; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ 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"); } } } pragma solidity 0.6.12; // Note that this pool has no minter key of ARES (rewards). // Instead, the governance will call ARES distributeReward method and send reward to this pool at the beginning. contract AresRewardPool { using SafeMath for uint256; using SafeERC20 for IERC20; // governance address public operator; // Info of each user. struct UserInfo { uint256 amount; // How many LP tokens the user has provided. uint256 rewardDebt; // Reward debt. See explanation below. } // Info of each pool. struct PoolInfo { IERC20 token; // Address of LP token contract. uint256 allocPoint; // How many allocation points assigned to this pool. ARESs to distribute per block. uint256 lastRewardTime; // Last time that ARESs distribution occurs. uint256 accAresPerShare; // Accumulated ARESs per share, times 1e18. See below. bool isStarted; // if lastRewardTime has passed } IERC20 public ares; // Info of each pool. PoolInfo[] public poolInfo; // Info of each user that stakes LP tokens. mapping(uint256 => mapping(address => UserInfo)) public userInfo; // Total allocation points. Must be the sum of all allocation points in all pools. uint256 public totalAllocPoint = 0; // The time when ARES mining starts. uint256 public poolStartTime; // The time when ARES mining ends. uint256 public poolEndTime; uint256 public AresPerSecond = 0.00186122 ether; // 59500 ares / (370 days * 24h * 60min * 60s) uint256 public runningTime = 370 days; // 370 days uint256 public constant TOTAL_REWARDS = 59500 ether; event Deposit(address indexed user, uint256 indexed pid, uint256 amount); event Withdraw(address indexed user, uint256 indexed pid, uint256 amount); event EmergencyWithdraw(address indexed user, uint256 indexed pid, uint256 amount); event RewardPaid(address indexed user, uint256 amount); constructor( address _ares, uint256 _poolStartTime ) public { require(block.timestamp < _poolStartTime, "late"); if (_ares != address(0)) ares = IERC20(_ares); poolStartTime = _poolStartTime; poolEndTime = poolStartTime + runningTime; operator = msg.sender; } modifier onlyOperator() { require(operator == msg.sender, "AresRewardPool: caller is not the operator"); _; } function checkPoolDuplicate(IERC20 _token) internal view { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { require(poolInfo[pid].token != _token, "AresRewardPool: existing pool?"); } } // Add a new lp to the pool. Can only be called by the owner. function add( uint256 _allocPoint, IERC20 _token, bool _withUpdate, uint256 _lastRewardTime ) public onlyOperator { checkPoolDuplicate(_token); if (_withUpdate) { massUpdatePools(); } if (block.timestamp < poolStartTime) { // chef is sleeping if (_lastRewardTime == 0) { _lastRewardTime = poolStartTime; } else { if (_lastRewardTime < poolStartTime) { _lastRewardTime = poolStartTime; } } } else { // chef is cooking if (_lastRewardTime == 0 || _lastRewardTime < block.timestamp) { _lastRewardTime = block.timestamp; } } bool _isStarted = (_lastRewardTime <= poolStartTime) || (_lastRewardTime <= block.timestamp); poolInfo.push(PoolInfo({ token : _token, allocPoint : _allocPoint, lastRewardTime : _lastRewardTime, accAresPerShare : 0, isStarted : _isStarted })); if (_isStarted) { totalAllocPoint = totalAllocPoint.add(_allocPoint); } } // Update the given pool's ARES allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint) public onlyOperator { massUpdatePools(); PoolInfo storage pool = poolInfo[_pid]; if (pool.isStarted) { totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add( _allocPoint ); } pool.allocPoint = _allocPoint; } // Return accumulate rewards over the given _from to _to block. function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) { if (_fromTime >= _toTime) return 0; if (_toTime >= poolEndTime) { if (_fromTime >= poolEndTime) return 0; if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(AresPerSecond); return poolEndTime.sub(_fromTime).mul(AresPerSecond); } else { if (_toTime <= poolStartTime) return 0; if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(AresPerSecond); return _toTime.sub(_fromTime).mul(AresPerSecond); } } // View function to see pending ARESs on frontend. function pendingShare(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accAresPerShare = pool.accAresPerShare; uint256 tokenSupply = pool.token.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp); uint256 _aresReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); accAresPerShare = accAresPerShare.add(_aresReward.mul(1e18).div(tokenSupply)); } return user.amount.mul(accAresPerShare).div(1e18).sub(user.rewardDebt); } // Update reward variables for all pools. Be careful of gas spending! function massUpdatePools() public { uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { updatePool(pid); } } // Update reward variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastRewardTime) { return; } uint256 tokenSupply = pool.token.balanceOf(address(this)); if (tokenSupply == 0) { pool.lastRewardTime = block.timestamp; return; } if (!pool.isStarted) { pool.isStarted = true; totalAllocPoint = totalAllocPoint.add(pool.allocPoint); } if (totalAllocPoint > 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp); uint256 _aresReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); pool.accAresPerShare = pool.accAresPerShare.add(_aresReward.mul(1e18).div(tokenSupply)); } pool.lastRewardTime = block.timestamp; } // Deposit LP tokens. function deposit(uint256 _pid, uint256 _amount) public { address _sender = msg.sender; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_sender]; updatePool(_pid); if (user.amount > 0) { uint256 _pending = user.amount.mul(pool.accAresPerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeAresTransfer(_sender, _pending); emit RewardPaid(_sender, _pending); } } if (_amount > 0) { pool.token.safeTransferFrom(_sender, address(this), _amount); user.amount = user.amount.add(_amount); } user.rewardDebt = user.amount.mul(pool.accAresPerShare).div(1e18); emit Deposit(_sender, _pid, _amount); } // Withdraw LP tokens. function withdraw(uint256 _pid, uint256 _amount) public { address _sender = msg.sender; PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_sender]; require(user.amount >= _amount, "withdraw: not good"); updatePool(_pid); uint256 _pending = user.amount.mul(pool.accAresPerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeAresTransfer(_sender, _pending); emit RewardPaid(_sender, _pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.token.safeTransfer(_sender, _amount); } user.rewardDebt = user.amount.mul(pool.accAresPerShare).div(1e18); emit Withdraw(_sender, _pid, _amount); } // Withdraw without caring about rewards. EMERGENCY ONLY. function emergencyWithdraw(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][msg.sender]; uint256 _amount = user.amount; user.amount = 0; user.rewardDebt = 0; pool.token.safeTransfer(msg.sender, _amount); emit EmergencyWithdraw(msg.sender, _pid, _amount); } // Safe ares transfer function, just in case if rounding error causes pool to not have enough ARESs. function safeAresTransfer(address _to, uint256 _amount) internal { uint256 _aresBal = ares.balanceOf(address(this)); if (_aresBal > 0) { if (_amount > _aresBal) { ares.safeTransfer(_to, _aresBal); } else { ares.safeTransfer(_to, _amount); } } } function setOperator(address _operator) external onlyOperator { operator = _operator; } function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator { if (block.timestamp < poolEndTime + 90 days) { // do not allow to drain core token (ARES or lps) if less than 90 days after pool ends require(_token != ares, "ares"); uint256 length = poolInfo.length; for (uint256 pid = 0; pid < length; ++pid) { PoolInfo storage pool = poolInfo[pid]; require(_token != pool.token, "pool.token"); } } _token.safeTransfer(to, amount); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_ares","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"EmergencyWithdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"AresPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastRewardTime","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ares","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fromTime","type":"uint256"},{"internalType":"uint256","name":"_toTime","type":"uint256"}],"name":"getGeneratedReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"governanceRecoverUnsupported","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"massUpdatePools","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"address","name":"_user","type":"address"}],"name":"pendingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint256","name":"accAresPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"}],"name":"updatePool","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"address","name":"","type":"address"}],"name":"userInfo","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"rewardDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600060045566069cc50cf2e8006007556301e7cb0060085534801561002857600080fd5b506040516118553803806118558339818101604052604081101561004b57600080fd5b508051602090910151428111610091576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038216156100bc57600180546001600160a01b0319166001600160a01b0384161790555b60058190556008540160065550600080546001600160a01b0319163317905561176b806100ea6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80635f96dc11116100b8578063943f013d1161007c578063943f013d1461031657806396805e541461031e578063b12626c114610358578063b3ab15fb14610360578063cf4b55cb14610386578063e2bbb158146103b257610137565b80635f96dc11146102b1578063630b5ba1146102b95780636d2ee71c146102c15780636e271dd5146102c957806393f1a40b146102d157610137565b8063441a3e70116100ff578063441a3e70146101fa57806351eb05a61461021d5780635312ea8e1461023a57806354575af414610257578063570ca7351461028d57610137565b806309cf60911461013c5780631526fe271461015657806317caf6f1146101aa5780631ab06ee5146101b2578063231f0c6a146101d7575b600080fd5b6101446103d5565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356103e3565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61014461042e565b6101d5600480360360408110156101c857600080fd5b5080359060200135610434565b005b610144600480360360408110156101ed57600080fd5b50803590602001356104e2565b6101d56004803603604081101561021057600080fd5b50803590602001356105a7565b6101d56004803603602081101561023357600080fd5b5035610764565b6101d56004803603602081101561025057600080fd5b50356108c2565b6101d56004803603606081101561026d57600080fd5b506001600160a01b0381358116916020810135916040909101351661095e565b610295610aa6565b604080516001600160a01b039092168252519081900360200190f35b610144610ab5565b6101d5610abb565b610295610ade565b610144610aed565b6102fd600480360360408110156102e757600080fd5b50803590602001356001600160a01b0316610af3565b6040805192835260208301919091528051918290030190f35b610144610b17565b6101d56004803603608081101561033457600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b1d565b610144610d1a565b6101d56004803603602081101561037657600080fd5b50356001600160a01b0316610d20565b6101446004803603604081101561039c57600080fd5b50803590602001356001600160a01b0316610d8b565b6101d5600480360360408110156103c857600080fd5b5080359060200135610ee7565b690c99805fe37d3e30000081565b600281815481106103f057fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60045481565b6000546001600160a01b0316331461047d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b610485610abb565b60006002838154811061049457fe5b60009182526020909120600590910201600481015490915060ff16156104db576104d7826104d1836001015460045461105790919063ffffffff16565b906110b4565b6004555b6001015550565b60008183106104f3575060006105a1565b600654821061055b57600654831061050d575060006105a1565b60055483116105405761053960075461053360055460065461105790919063ffffffff16565b90611115565b90506105a1565b6105396007546105338560065461105790919063ffffffff16565b600554821161056c575060006105a1565b6005548311610590576105396007546105336005548561105790919063ffffffff16565b600754610539906105338486611057565b92915050565b60003390506000600284815481106105bb57fe5b600091825260208083208784526003825260408085206001600160a01b03881686529092529220805460059092029092019250841115610637576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61064085610764565b600061067d8260010154610677670de0b6b3a76400006106718760030154876000015461111590919063ffffffff16565b9061116e565b90611057565b905080156106cf5761068f84826111d5565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156106f95781546106e19086611057565b825582546106f9906001600160a01b0316858761128b565b6003830154825461071791670de0b6b3a76400009161067191611115565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061077357fe5b906000526020600020906005020190508060020154421161079457506108bf565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107de57600080fd5b505afa1580156107f2573d6000803e3d6000fd5b505050506040513d602081101561080857600080fd5b505190508061081e5750426002909101556108bf565b600482015460ff1661084f576004808301805460ff19166001908117909155830154905461084b916110b4565b6004555b600454156108b65760006108678360020154426104e2565b9050600061088860045461067186600101548561111590919063ffffffff16565b90506108ae6108a38461067184670de0b6b3a7640000611115565b6003860154906110b4565b600385015550505b50426002909101555b50565b6000600282815481106108d157fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610921916001600160a01b0391909116908361128b565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109a75760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b6006546276a70001421015610a8d576001546001600160a01b0384811691161415610a02576040805162461bcd60e51b815260206004808301919091526024820152636172657360e01b604482015290519081900360640190fd5b60025460005b81811015610a8a57600060028281548110610a1f57fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a81576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a08565b50505b610aa16001600160a01b038416828461128b565b505050565b6000546001600160a01b031681565b60055481565b60025460005b81811015610ada57610ad281610764565b600101610ac1565b5050565b6001546001600160a01b031681565b60065481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6000546001600160a01b03163314610b665760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b610b6f836112dd565b8115610b7d57610b7d610abb565b600554421015610ba95780610b955750600554610ba4565b600554811015610ba457506005545b610bbd565b801580610bb557504281105b15610bbd5750425b600060055482111580610bd05750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610d1357600454610d0f90866110b4565b6004555b5050505050565b60075481565b6000546001600160a01b03163314610d695760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d9b57fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600590960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610e1357600080fd5b505afa158015610e27573d6000803e3d6000fd5b505050506040513d6020811015610e3d57600080fd5b5051600285015490915042118015610e5457508015155b15610eb1576000610e698560020154426104e2565b90506000610e8a60045461067188600101548561111590919063ffffffff16565b9050610eac610ea58461067184670de0b6b3a7640000611115565b85906110b4565b935050505b610edc8360010154610677670de0b6b3a764000061067186886000015461111590919063ffffffff16565b979650505050505050565b6000339050600060028481548110610efb57fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060059091029091019150610f3585610764565b805415610fc1576000610f6d8260010154610677670de0b6b3a76400006106718760030154876000015461111590919063ffffffff16565b90508015610fbf57610f7f84826111d5565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315610fed578154610fde906001600160a01b0316843087611377565b8054610fea90856110b4565b81555b6003820154815461100b91670de0b6b3a76400009161067191611115565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6000828211156110ae576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561110e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082611124575060006105a1565b8282028284828161113157fe5b041461110e5760405162461bcd60e51b81526004018080602001828103825260218152602001806116c16021913960400191505060405180910390fd5b60008082116111c4576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111cd57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561122057600080fd5b505afa158015611234573d6000803e3d6000fd5b505050506040513d602081101561124a57600080fd5b505190508015610aa1578082111561127857600154611273906001600160a01b0316848361128b565b610aa1565b600154610aa1906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aa19084906113d7565b60025460005b81811015610aa157826001600160a01b03166002828154811061130257fe5b60009182526020909120600590910201546001600160a01b0316141561136f576040805162461bcd60e51b815260206004820152601e60248201527f41726573526577617264506f6f6c3a206578697374696e6720706f6f6c3f0000604482015290519081900360640190fd5b6001016112e3565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113d19085906113d7565b50505050565b606061142c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114889092919063ffffffff16565b805190915015610aa15780806020019051602081101561144b57600080fd5b5051610aa15760405162461bcd60e51b815260040180806020018281038252602a81526020018061170c602a913960400191505060405180910390fd5b6060611497848460008561149f565b949350505050565b6060824710156114e05760405162461bcd60e51b815260040180806020018281038252602681526020018061169b6026913960400191505060405180910390fd5b6114e9856115f0565b61153a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115795780518252601f19909201916020918201910161155a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115db576040519150601f19603f3d011682016040523d82523d6000602084013e6115e0565b606091505b5091509150610edc8282866115f6565b3b151590565b6060831561160557508161110e565b8251156116155782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561165f578181015183820152602001611647565b50505050905090810190601f16801561168c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741726573526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220849b07bafb635ceb24ffb18440bcaf807273bf2bd5f1085cd10a1f78fe96113264736f6c634300060c0033000000000000000000000000158521ab22a4e22f01e6f2d3717ca85341dc694a00000000000000000000000000000000000000000000000000000000627fe010
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c80635f96dc11116100b8578063943f013d1161007c578063943f013d1461031657806396805e541461031e578063b12626c114610358578063b3ab15fb14610360578063cf4b55cb14610386578063e2bbb158146103b257610137565b80635f96dc11146102b1578063630b5ba1146102b95780636d2ee71c146102c15780636e271dd5146102c957806393f1a40b146102d157610137565b8063441a3e70116100ff578063441a3e70146101fa57806351eb05a61461021d5780635312ea8e1461023a57806354575af414610257578063570ca7351461028d57610137565b806309cf60911461013c5780631526fe271461015657806317caf6f1146101aa5780631ab06ee5146101b2578063231f0c6a146101d7575b600080fd5b6101446103d5565b60408051918252519081900360200190f35b6101736004803603602081101561016c57600080fd5b50356103e3565b604080516001600160a01b039096168652602086019490945284840192909252606084015215156080830152519081900360a00190f35b61014461042e565b6101d5600480360360408110156101c857600080fd5b5080359060200135610434565b005b610144600480360360408110156101ed57600080fd5b50803590602001356104e2565b6101d56004803603604081101561021057600080fd5b50803590602001356105a7565b6101d56004803603602081101561023357600080fd5b5035610764565b6101d56004803603602081101561025057600080fd5b50356108c2565b6101d56004803603606081101561026d57600080fd5b506001600160a01b0381358116916020810135916040909101351661095e565b610295610aa6565b604080516001600160a01b039092168252519081900360200190f35b610144610ab5565b6101d5610abb565b610295610ade565b610144610aed565b6102fd600480360360408110156102e757600080fd5b50803590602001356001600160a01b0316610af3565b6040805192835260208301919091528051918290030190f35b610144610b17565b6101d56004803603608081101561033457600080fd5b508035906001600160a01b0360208201351690604081013515159060600135610b1d565b610144610d1a565b6101d56004803603602081101561037657600080fd5b50356001600160a01b0316610d20565b6101446004803603604081101561039c57600080fd5b50803590602001356001600160a01b0316610d8b565b6101d5600480360360408110156103c857600080fd5b5080359060200135610ee7565b690c99805fe37d3e30000081565b600281815481106103f057fe5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b60045481565b6000546001600160a01b0316331461047d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b610485610abb565b60006002838154811061049457fe5b60009182526020909120600590910201600481015490915060ff16156104db576104d7826104d1836001015460045461105790919063ffffffff16565b906110b4565b6004555b6001015550565b60008183106104f3575060006105a1565b600654821061055b57600654831061050d575060006105a1565b60055483116105405761053960075461053360055460065461105790919063ffffffff16565b90611115565b90506105a1565b6105396007546105338560065461105790919063ffffffff16565b600554821161056c575060006105a1565b6005548311610590576105396007546105336005548561105790919063ffffffff16565b600754610539906105338486611057565b92915050565b60003390506000600284815481106105bb57fe5b600091825260208083208784526003825260408085206001600160a01b03881686529092529220805460059092029092019250841115610637576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b61064085610764565b600061067d8260010154610677670de0b6b3a76400006106718760030154876000015461111590919063ffffffff16565b9061116e565b90611057565b905080156106cf5761068f84826111d5565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b84156106f95781546106e19086611057565b825582546106f9906001600160a01b0316858761128b565b6003830154825461071791670de0b6b3a76400009161067191611115565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061077357fe5b906000526020600020906005020190508060020154421161079457506108bf565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156107de57600080fd5b505afa1580156107f2573d6000803e3d6000fd5b505050506040513d602081101561080857600080fd5b505190508061081e5750426002909101556108bf565b600482015460ff1661084f576004808301805460ff19166001908117909155830154905461084b916110b4565b6004555b600454156108b65760006108678360020154426104e2565b9050600061088860045461067186600101548561111590919063ffffffff16565b90506108ae6108a38461067184670de0b6b3a7640000611115565b6003860154906110b4565b600385015550505b50426002909101555b50565b6000600282815481106108d157fe5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610921916001600160a01b0391909116908361128b565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031633146109a75760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b6006546276a70001421015610a8d576001546001600160a01b0384811691161415610a02576040805162461bcd60e51b815260206004808301919091526024820152636172657360e01b604482015290519081900360640190fd5b60025460005b81811015610a8a57600060028281548110610a1f57fe5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610a81576040805162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b604482015290519081900360640190fd5b50600101610a08565b50505b610aa16001600160a01b038416828461128b565b505050565b6000546001600160a01b031681565b60055481565b60025460005b81811015610ada57610ad281610764565b600101610ac1565b5050565b6001546001600160a01b031681565b60065481565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6000546001600160a01b03163314610b665760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b610b6f836112dd565b8115610b7d57610b7d610abb565b600554421015610ba95780610b955750600554610ba4565b600554811015610ba457506005545b610bbd565b801580610bb557504281105b15610bbd5750425b600060055482111580610bd05750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610d1357600454610d0f90866110b4565b6004555b5050505050565b60075481565b6000546001600160a01b03163314610d695760405162461bcd60e51b815260040180806020018281038252602a8152602001806116e2602a913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d9b57fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600590960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610e1357600080fd5b505afa158015610e27573d6000803e3d6000fd5b505050506040513d6020811015610e3d57600080fd5b5051600285015490915042118015610e5457508015155b15610eb1576000610e698560020154426104e2565b90506000610e8a60045461067188600101548561111590919063ffffffff16565b9050610eac610ea58461067184670de0b6b3a7640000611115565b85906110b4565b935050505b610edc8360010154610677670de0b6b3a764000061067186886000015461111590919063ffffffff16565b979650505050505050565b6000339050600060028481548110610efb57fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060059091029091019150610f3585610764565b805415610fc1576000610f6d8260010154610677670de0b6b3a76400006106718760030154876000015461111590919063ffffffff16565b90508015610fbf57610f7f84826111d5565b6040805182815290516001600160a01b038616917fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486919081900360200190a25b505b8315610fed578154610fde906001600160a01b0316843087611377565b8054610fea90856110b4565b81555b6003820154815461100b91670de0b6b3a76400009161067191611115565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6000828211156110ae576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b60008282018381101561110e576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b600082611124575060006105a1565b8282028284828161113157fe5b041461110e5760405162461bcd60e51b81526004018080602001828103825260218152602001806116c16021913960400191505060405180910390fd5b60008082116111c4576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b8183816111cd57fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561122057600080fd5b505afa158015611234573d6000803e3d6000fd5b505050506040513d602081101561124a57600080fd5b505190508015610aa1578082111561127857600154611273906001600160a01b0316848361128b565b610aa1565b600154610aa1906001600160a01b031684845b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610aa19084906113d7565b60025460005b81811015610aa157826001600160a01b03166002828154811061130257fe5b60009182526020909120600590910201546001600160a01b0316141561136f576040805162461bcd60e51b815260206004820152601e60248201527f41726573526577617264506f6f6c3a206578697374696e6720706f6f6c3f0000604482015290519081900360640190fd5b6001016112e3565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526113d19085906113d7565b50505050565b606061142c826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114889092919063ffffffff16565b805190915015610aa15780806020019051602081101561144b57600080fd5b5051610aa15760405162461bcd60e51b815260040180806020018281038252602a81526020018061170c602a913960400191505060405180910390fd5b6060611497848460008561149f565b949350505050565b6060824710156114e05760405162461bcd60e51b815260040180806020018281038252602681526020018061169b6026913960400191505060405180910390fd5b6114e9856115f0565b61153a576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115795780518252601f19909201916020918201910161155a565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d80600081146115db576040519150601f19603f3d011682016040523d82523d6000602084013e6115e0565b606091505b5091509150610edc8282866115f6565b3b151590565b6060831561160557508161110e565b8251156116155782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561165f578181015183820152602001611647565b50505050905090810190601f16801561168c5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f7741726573526577617264506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f725361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a2646970667358221220849b07bafb635ceb24ffb18440bcaf807273bf2bd5f1085cd10a1f78fe96113264736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000158521ab22a4e22f01e6f2d3717ca85341dc694a00000000000000000000000000000000000000000000000000000000627fe010
-----Decoded View---------------
Arg [0] : _ares (address): 0x158521Ab22A4e22f01E6F2d3717cA85341dc694A
Arg [1] : _poolStartTime (uint256): 1652547600
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000158521ab22a4e22f01e6f2d3717ca85341dc694a
Arg [1] : 00000000000000000000000000000000000000000000000000000000627fe010
Deployed Bytecode Sourcemap
22325:10518:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23777:51;;;:::i;:::-;;;;;;;;;;;;;;;;23178:26;;;;;;;;;;;;;;;;-1:-1:-1;23178:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;23178:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23423:34;;;:::i;26335:353::-;;;;;;;;;;;;;;;;-1:-1:-1;26335:353:0;;;;;;;:::i;:::-;;26765:653;;;;;;;;;;;;;;;;-1:-1:-1;26765:653:0;;;;;;;:::i;30398:810::-;;;;;;;;;;;;;;;;-1:-1:-1;30398:810:0;;;;;;;:::i;28593:908::-;;;;;;;;;;;;;;;;-1:-1:-1;28593:908:0;;:::i;31279:377::-;;;;;;;;;;;;;;;;-1:-1:-1;31279:377:0;;:::i;32236:604::-;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;32236:604:0;;;;;;;;;;;;;;;;;:::i;22443:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;22443:23:0;;;;;;;;;;;;;;23508:28;;;:::i;28337:180::-;;;:::i;23124:18::-;;;:::i;23585:26::-;;;:::i;23262:64::-;;;;;;;;;;;;;;;;-1:-1:-1;23262:64:0;;;;;;-1:-1:-1;;;;;23262:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23721:37;;;:::i;24963:1276::-;;;;;;;;;;;;;;;;-1:-1:-1;24963:1276:0;;;-1:-1:-1;;;;;24963:1276:0;;;;;;;;;;;;;;;;;:::i;23620:47::-;;;:::i;32127:101::-;;;;;;;;;;;;;;;;-1:-1:-1;32127:101:0;-1:-1:-1;;;;;32127:101:0;;:::i;27482:772::-;;;;;;;;;;;;;;;;-1:-1:-1;27482:772:0;;;;;;-1:-1:-1;;;;;27482:772:0;;:::i;29536:826::-;;;;;;;;;;;;;;;;-1:-1:-1;29536:826:0;;;;;;;:::i;23777:51::-;23817:11;23777:51;:::o;23178:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23178:26:0;;;;-1:-1:-1;23178:26:0;;;;;;;:::o;23423:34::-;;;;:::o;26335:353::-;24531:8;;-1:-1:-1;;;;;24531:8:0;24543:10;24531:22;24523:77;;;;-1:-1:-1;;;24523:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26414:17:::1;:15;:17::i;:::-;26442:21;26466:8;26475:4;26466:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26495;::::0;::::1;::::0;26466;;-1:-1:-1;26495:14:0::1;;26491:150;;;26544:85;26603:11;26544:36;26564:4;:15;;;26544;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:85::i;:::-;26526:15;:103:::0;26491:150:::1;26651:15;;:29:::0;-1:-1:-1;26335:353:0:o;26765:653::-;26850:7;26887;26874:9;:20;26870:34;;-1:-1:-1;26903:1:0;26896:8;;26870:34;26930:11;;26919:7;:22;26915:496;;26975:11;;26962:9;:24;26958:38;;-1:-1:-1;26995:1:0;26988:8;;26958:38;27028:13;;27015:9;:26;27011:88;;27050:49;27085:13;;27050:30;27066:13;;27050:11;;:15;;:30;;;;:::i;:::-;:34;;:49::i;:::-;27043:56;;;;27011:88;27121:45;27152:13;;27121:26;27137:9;27121:11;;:15;;:26;;;;:::i;26915:496::-;27214:13;;27203:7;:24;27199:38;;-1:-1:-1;27236:1:0;27229:8;;27199:38;27269:13;;27256:9;:26;27252:84;;27291:45;27322:13;;27291:26;27303:13;;27291:7;:11;;:26;;;;:::i;27252:84::-;27385:13;;27358:41;;:22;:7;27370:9;27358:11;:22::i;26915:496::-;26765:653;;;;:::o;30398:810::-;30465:15;30483:10;30465:28;;30504:21;30528:8;30537:4;30528:14;;;;;;;;;;;;;;;;30577;;;:8;:14;;;;;;-1:-1:-1;;;;;30577:23:0;;;;;;;;;30619:11;;30528:14;;;;;;;;-1:-1:-1;30619:22:0;-1:-1:-1;30619:22:0;30611:53;;;;;-1:-1:-1;;;30611:53:0;;;;;;;;;;;;-1:-1:-1;;;30611:53:0;;;;;;;;;;;;;;;30675:16;30686:4;30675:10;:16::i;:::-;30702;30721:68;30773:4;:15;;;30721:47;30763:4;30721:37;30737:4;:20;;;30721:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47::i;:::-;:51;;:68::i;:::-;30702:87;-1:-1:-1;30804:12:0;;30800:129;;30833:35;30850:7;30859:8;30833:16;:35::i;:::-;30888:29;;;;;;;;-1:-1:-1;;;;;30888:29:0;;;;;;;;;;;;;30800:129;30943:11;;30939:138;;30985:11;;:24;;31001:7;30985:15;:24::i;:::-;30971:38;;31024:10;;:41;;-1:-1:-1;;;;;31024:10:0;31048:7;31057;31024:23;:41::i;:::-;31121:20;;;;31105:11;;:47;;31147:4;;31105:37;;:15;:37::i;:47::-;31087:15;;;:65;31168:32;;;;;;;;31186:4;;-1:-1:-1;;;;;31168:32:0;;;;;;;;;;;;30398:810;;;;;;:::o;28593:908::-;28645:21;28669:8;28678:4;28669:14;;;;;;;;;;;;;;;;;;28645:38;;28717:4;:19;;;28698:15;:38;28694:77;;28753:7;;;28694:77;28803:10;;:35;;;-1:-1:-1;;;28803:35:0;;28832:4;28803:35;;;;;;28781:19;;-1:-1:-1;;;;;28803:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28803:35:0;;-1:-1:-1;28853:16:0;28849:107;;-1:-1:-1;28908:15:0;28886:19;;;;:37;28938:7;;28849:107;28971:14;;;;;;28966:138;;29002:14;;;;:21;;-1:-1:-1;;29002:21:0;29019:4;29002:21;;;;;;29076:15;;;29056;;:36;;:19;:36::i;:::-;29038:15;:54;28966:138;29118:15;;:19;29114:332;;29154:24;29181:56;29200:4;:19;;;29221:15;29181:18;:56::i;:::-;29154:83;;29252:19;29274:58;29316:15;;29274:37;29295:4;:15;;;29274:16;:20;;:37;;;;:::i;:58::-;29252:80;-1:-1:-1;29370:64:0;29395:38;29421:11;29395:21;29252:80;29411:4;29395:15;:21::i;:38::-;29370:20;;;;;:24;:64::i;:::-;29347:20;;;:87;-1:-1:-1;;29114:332:0;-1:-1:-1;29478:15:0;29456:19;;;;:37;28593:908;;:::o;31279:377::-;31338:21;31362:8;31371:4;31362:14;;;;;;;;;;;;;;;;31411;;;:8;:14;;;;;;31426:10;31411:26;;;;;;;31466:11;;31488:15;;;-1:-1:-1;31514:15:0;;:19;;;;31362:14;;;;;31544:10;;31362:14;;-1:-1:-1;31411:26:0;;31466:11;31544:44;;-1:-1:-1;;;;;31544:10:0;;;;;31466:11;31544:23;:44::i;:::-;31604;;;;;;;;31634:4;;31622:10;;31604:44;;;;;;;;;31279:377;;;;:::o;32236:604::-;24531:8;;-1:-1:-1;;;;;24531:8:0;24543:10;24531:22;24523:77;;;;-1:-1:-1;;;24523:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32372:11:::1;;32386:7;32372:21;32354:15;:39;32350:441;;;32528:4;::::0;-1:-1:-1;;;;;32518:14:0;;::::1;32528:4:::0;::::1;32518:14;;32510:31;;;::::0;;-1:-1:-1;;;32510:31:0;;::::1;;::::0;;::::1;::::0;;;;;;;;-1:-1:-1;;;32510:31:0;;;;;;;;;;;;;::::1;;32573:8;:15:::0;32556:14:::1;32603:177;32631:6;32625:3;:12;32603:177;;;32665:21;32689:8;32698:3;32689:13;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;32739:10:::0;;32689:13;;-1:-1:-1;;;;;;32729:20:0;;::::1;32739:10:::0;::::1;32729:20;;32721:43;;;::::0;;-1:-1:-1;;;32721:43:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;32721:43:0;;;;;;;;;;;;;::::1;;-1:-1:-1::0;32639:5:0::1;;32603:177;;;;32350:441;;32801:31;-1:-1:-1::0;;;;;32801:19:0;::::1;32821:2:::0;32825:6;32801:19:::1;:31::i;:::-;32236:604:::0;;;:::o;22443:23::-;;;-1:-1:-1;;;;;22443:23:0;;:::o;23508:28::-;;;;:::o;28337:180::-;28399:8;:15;28382:14;28425:85;28453:6;28447:3;:12;28425:85;;;28483:15;28494:3;28483:10;:15::i;:::-;28461:5;;28425:85;;;;28337:180;:::o;23124:18::-;;;-1:-1:-1;;;;;23124:18:0;;:::o;23585:26::-;;;;:::o;23262:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23721:37::-;;;;:::o;24963:1276::-;24531:8;;-1:-1:-1;;;;;24531:8:0;24543:10;24531:22;24523:77;;;;-1:-1:-1;;;24523:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25129:26:::1;25148:6;25129:18;:26::i;:::-;25170:11;25166:61;;;25198:17;:15;:17::i;:::-;25259:13;;25241:15;:31;25237:534;;;25326:20:::0;25322:243:::1;;-1:-1:-1::0;25385:13:0::1;::::0;25322:243:::1;;;25461:13;;25443:15;:31;25439:111;;;-1:-1:-1::0;25517:13:0::1;::::0;25439:111:::1;25237:534;;;25633:20:::0;;;:57:::1;;;25675:15;25657;:33;25633:57;25629:131;;;-1:-1:-1::0;25729:15:0::1;25629:131;25781:15;25828:13;;25809:15;:32;;25808:83;;;;25875:15;25856;:34;;25808:83;25916:211;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;25916:211:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;25916:211:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;25902:8:::1;:226:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;25902:226:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25902:226:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;25916:211;;-1:-1:-1;26139:93:0::1;;26188:15;::::0;:32:::1;::::0;26208:11;26188:19:::1;:32::i;:::-;26170:15;:50:::0;26139:93:::1;24611:1;24963:1276:::0;;;;:::o;23620:47::-;;;;:::o;32127:101::-;24531:8;;-1:-1:-1;;;;;24531:8:0;24543:10;24531:22;24523:77;;;;-1:-1:-1;;;24523:77:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32200:8:::1;:20:::0;;-1:-1:-1;;;;;;32200:20:0::1;-1:-1:-1::0;;;;;32200:20:0;;;::::1;::::0;;;::::1;::::0;;32127:101::o;27482:772::-;27556:7;27576:21;27600:8;27609:4;27600:14;;;;;;;;;;;;;;;;27649;;;:8;:14;;;;;;;-1:-1:-1;;;;;27649:21:0;;;;;;;;;;;27600:14;;;;;;;27707:20;;;;27760:10;;:35;;-1:-1:-1;;;27760:35:0;;27789:4;27760:35;;;;;;27600:14;;-1:-1:-1;27649:21:0;;27707:20;;27600:14;;27760:10;;;:20;;:35;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27760:35:0;27828:19;;;;27760:35;;-1:-1:-1;27810:15:0;:37;:57;;;;-1:-1:-1;27851:16:0;;;27810:57;27806:360;;;27884:24;27911:56;27930:4;:19;;;27951:15;27911:18;:56::i;:::-;27884:83;;27982:19;28004:58;28046:15;;28004:37;28025:4;:15;;;28004:16;:20;;:37;;;;:::i;:58::-;27982:80;-1:-1:-1;28095:59:0;28115:38;28141:11;28115:21;27982:80;28131:4;28115:15;:21::i;:38::-;28095:15;;:19;:59::i;:::-;28077:77;;27806:360;;;28183:63;28230:4;:15;;;28183:42;28220:4;28183:32;28199:15;28183:4;:11;;;:15;;:32;;;;:::i;:63::-;28176:70;27482:772;-1:-1:-1;;;;;;;27482:772:0:o;29536:826::-;29602:15;29620:10;29602:28;;29641:21;29665:8;29674:4;29665:14;;;;;;;;;;;;;;;;29714;;;:8;:14;;;;;;-1:-1:-1;;;;;29714:23:0;;;;;;;;;29665:14;;;;;;;;-1:-1:-1;29748:16:0;29723:4;29748:10;:16::i;:::-;29779:11;;:15;29775:290;;29811:16;29830:68;29882:4;:15;;;29830:47;29872:4;29830:37;29846:4;:20;;;29830:4;:11;;;:15;;:37;;;;:::i;:68::-;29811:87;-1:-1:-1;29917:12:0;;29913:141;;29950:35;29967:7;29976:8;29950:16;:35::i;:::-;30009:29;;;;;;;;-1:-1:-1;;;;;30009:29:0;;;;;;;;;;;;;29913:141;29775:290;;30079:11;;30075:157;;30107:10;;:60;;-1:-1:-1;;;;;30107:10:0;30135:7;30152:4;30159:7;30107:27;:60::i;:::-;30196:11;;:24;;30212:7;30196:15;:24::i;:::-;30182:38;;30075:157;30276:20;;;;30260:11;;:47;;30302:4;;30260:37;;:15;:37::i;:47::-;30242:15;;;:65;30323:31;;;;;;;;30340:4;;-1:-1:-1;;;;;30323:31:0;;;;;;;;;;;;29536:826;;;;;:::o;14245:158::-;14303:7;14336:1;14331;:6;;14323:49;;;;;-1:-1:-1;;;14323:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;14390:5:0;;;14245:158::o;13783:179::-;13841:7;13873:5;;;13897:6;;;;13889:46;;;;;-1:-1:-1;;;13889:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;13953:1;13783:179;-1:-1:-1;;;13783:179:0:o;14662:220::-;14720:7;14744:6;14740:20;;-1:-1:-1;14759:1:0;14752:8;;14740:20;14783:5;;;14787:1;14783;:5;:1;14807:5;;;;;:10;14799:56;;;;-1:-1:-1;;;14799:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15360:153;15418:7;15450:1;15446;:5;15438:44;;;;;-1:-1:-1;;;15438:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15504:1;15500;:5;;;;;;;15360:153;-1:-1:-1;;;15360:153:0:o;31770:349::-;31865:4;;:29;;;-1:-1:-1;;;31865:29:0;;31888:4;31865:29;;;;;;31846:16;;-1:-1:-1;;;;;31865:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;31865:29:0;;-1:-1:-1;31909:12:0;;31905:207;;31952:8;31942:7;:18;31938:163;;;31981:4;;:32;;-1:-1:-1;;;;;31981:4:0;31999:3;32004:8;31981:17;:32::i;:::-;31938:163;;;32054:4;;:31;;-1:-1:-1;;;;;32054:4:0;32072:3;32077:7;19046:177;19156:58;;;-1:-1:-1;;;;;19156:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19156:58:0;-1:-1:-1;;;19156:58:0;;;19129:86;;19149:5;;19129:19;:86::i;24628:260::-;24713:8;:15;24696:14;24739:142;24767:6;24761:3;:12;24739:142;;;24828:6;-1:-1:-1;;;;;24805:29:0;:8;24814:3;24805:13;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;24805:19:0;:29;;24797:72;;;;;-1:-1:-1;;;24797:72:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24775:5;;24739:142;;19231:205;19359:68;;;-1:-1:-1;;;;;19359:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19359:68:0;-1:-1:-1;;;19359:68:0;;;19332:96;;19352:5;;19332:19;:96::i;:::-;19231:205;;;;:::o;21351:761::-;21775:23;21801:69;21829:4;21801:69;;;;;;;;;;;;;;;;;21809:5;-1:-1:-1;;;;;21801:27:0;;;:69;;;;;:::i;:::-;21885:17;;21775:95;;-1:-1:-1;21885:21:0;21881:224;;22027:10;22016:30;;;;;;;;;;;;;;;-1:-1:-1;22016:30:0;22008:85;;;;-1:-1:-1;;;22008:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6701:195;6804:12;6836:52;6858:6;6866:4;6872:1;6875:12;6836:21;:52::i;:::-;6829:59;6701:195;-1:-1:-1;;;;6701:195:0:o;7753:530::-;7880:12;7938:5;7913:21;:30;;7905:81;;;;-1:-1:-1;;;7905:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8005:18;8016:6;8005:10;:18::i;:::-;7997:60;;;;;-1:-1:-1;;;7997:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;8131:12;8145:23;8172:6;-1:-1:-1;;;;;8172:11:0;8192:5;8200:4;8172:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;8172:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8130:75;;;;8223:52;8241:7;8250:10;8262:12;8223:17;:52::i;3783:422::-;4150:20;4189:8;;;3783:422::o;10293:742::-;10408:12;10437:7;10433:595;;;-1:-1:-1;10468:10:0;10461:17;;10433:595;10582:17;;:21;10578:439;;10845:10;10839:17;10906:15;10893:10;10889:2;10885:19;10878:44;10793:148;10988:12;10981:20;;-1:-1:-1;;;10981:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://849b07bafb635ceb24ffb18440bcaf807273bf2bd5f1085cd10a1f78fe961132
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.