More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 1,070 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Emergency Withdr... | 34477207 | 727 days ago | IN | 0 POL | 0.00433837 | ||||
Emergency Withdr... | 34476103 | 727 days ago | IN | 0 POL | 0.00411638 | ||||
Emergency Withdr... | 34476061 | 727 days ago | IN | 0 POL | 0.00352137 | ||||
Withdraw | 34463075 | 727 days ago | IN | 0 POL | 0.00579836 | ||||
Deposit | 34462703 | 727 days ago | IN | 0 POL | 0.01421405 | ||||
Deposit | 34462262 | 727 days ago | IN | 0 POL | 0.01590315 | ||||
Deposit | 34460863 | 727 days ago | IN | 0 POL | 0.03152129 | ||||
Deposit | 34458819 | 727 days ago | IN | 0 POL | 0.01144812 | ||||
Withdraw | 34458014 | 727 days ago | IN | 0 POL | 0.00792698 | ||||
Deposit | 34456445 | 727 days ago | IN | 0 POL | 0.0062135 | ||||
Withdraw | 34454183 | 727 days ago | IN | 0 POL | 0.00404306 | ||||
Deposit | 34452780 | 727 days ago | IN | 0 POL | 0.00722665 | ||||
Withdraw | 34450391 | 727 days ago | IN | 0 POL | 0.00467117 | ||||
Deposit | 34450309 | 727 days ago | IN | 0 POL | 0.00738623 | ||||
Withdraw | 34444926 | 727 days ago | IN | 0 POL | 0.00405966 | ||||
Deposit | 34444688 | 727 days ago | IN | 0 POL | 0.00619141 | ||||
Withdraw | 34440583 | 728 days ago | IN | 0 POL | 0.00583173 | ||||
Withdraw | 34437701 | 728 days ago | IN | 0 POL | 0.00428613 | ||||
Deposit | 34436167 | 728 days ago | IN | 0 POL | 0.00853965 | ||||
Withdraw | 34435666 | 728 days ago | IN | 0 POL | 0.00447417 | ||||
Deposit | 34434160 | 728 days ago | IN | 0 POL | 0.01311545 | ||||
Withdraw | 34432192 | 728 days ago | IN | 0 POL | 0.00747441 | ||||
Deposit | 34431876 | 728 days ago | IN | 0 POL | 0.02900673 | ||||
Withdraw | 34431445 | 728 days ago | IN | 0 POL | 0.0020325 | ||||
Withdraw | 34431444 | 728 days ago | IN | 0 POL | 0.00834697 |
Loading...
Loading
Contract Name:
GenesisMarsPool
Compiler Version
v0.6.12+commit.27d51765
Contract Source Code (Solidity)
/** *Submitted for verification at polygonscan.com on 2022-10-09 */ // SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/token/ERC20/IERC20.sol 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); } // File: @openzeppelin/contracts/math/SafeMath.sol 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; } } // File: @openzeppelin/contracts/utils/Address.sol 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); } } } } // File: @openzeppelin/contracts/token/ERC20/SafeERC20.sol 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"); } } } // File: contracts/distribution/GenesisMarsPool.sol pragma solidity 0.6.12; contract GenesisMarsPool { using SafeMath for uint256; using SafeERC20 for IERC20; // governance address public operator; // Info of each user. struct UserInfo { uint256 amount; // How many tokens the user has provided. uint256 marsDebt; // Mars 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. Mars to distribute. uint256 lastMarsTime; // Last time that Mars distribution occurs. uint256 accMarsPerShare; // Accumulated Mars per share, times 1e18. See below. bool isStarted; // if lastMarsBlock has passed uint256 depositFee; // deposit fee, x / 10000, 2% max } IERC20 public mars; // 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 Mars mining starts. uint256 public poolStartTime; // The time when Mars mining ends. uint256 public poolEndTime; uint256 public marsPerSecond = 0.00006 ether; uint256 public runningTime = 2 days; uint256 constant MAX_DEPOSIT_FEE = 100; // 1% address public treasuryFund; 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 MarsPaid(address indexed user, uint256 amount); constructor( address _mars, uint256 _poolStartTime, address _treasuryFund ) public { require(block.timestamp < _poolStartTime, "late"); if (_mars != address(0)) mars = IERC20(_mars); poolStartTime = _poolStartTime; poolEndTime = poolStartTime + runningTime; operator = msg.sender; treasuryFund = _treasuryFund; } modifier onlyOperator() { require(operator == msg.sender, "GenesisPool: 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, "GenesisPool: existing pool?"); } } // Add a new token to the pool. Can only be called by the owner. function add( uint256 _allocPoint, IERC20 _token, bool _withUpdate, uint256 _lastMarsTime, uint256 _depositFee ) public onlyOperator { require(_depositFee <= MAX_DEPOSIT_FEE, "deposit fee too high"); checkPoolDuplicate(_token); if (_withUpdate) { massUpdatePools(); } if (block.timestamp < poolStartTime) { // chef is sleeping if (_lastMarsTime == 0) { _lastMarsTime = poolStartTime; } else { if (_lastMarsTime < poolStartTime) { _lastMarsTime = poolStartTime; } } } else { // chef is cooking if (_lastMarsTime == 0 || _lastMarsTime < block.timestamp) { _lastMarsTime = block.timestamp; } } bool _isStarted = (_lastMarsTime <= poolStartTime) || (_lastMarsTime <= block.timestamp); poolInfo.push(PoolInfo({ token : _token, allocPoint : _allocPoint, lastMarsTime : _lastMarsTime, accMarsPerShare : 0, isStarted : _isStarted, depositFee: _depositFee })); if (_isStarted) { totalAllocPoint = totalAllocPoint.add(_allocPoint); } } // Update the given pool's Mars allocation point. Can only be called by the owner. function set(uint256 _pid, uint256 _allocPoint, uint256 _depositFee) public onlyOperator { require(_depositFee <= MAX_DEPOSIT_FEE, "deposit fee too high"); massUpdatePools(); PoolInfo storage pool = poolInfo[_pid]; if (pool.isStarted) { totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add( _allocPoint ); } pool.allocPoint = _allocPoint; pool.depositFee = _depositFee; } // Return accumulate marss over the given _from to _to block. function getGeneratedMars(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(marsPerSecond); return poolEndTime.sub(_fromTime).mul(marsPerSecond); } else { if (_toTime <= poolStartTime) return 0; if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(marsPerSecond); return _toTime.sub(_fromTime).mul(marsPerSecond); } } // View function to see pending Mars on frontend. function pendingMars(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accMarsPerShare = pool.accMarsPerShare; uint256 tokenSupply = pool.token.balanceOf(address(this)); if (block.timestamp > pool.lastMarsTime && tokenSupply != 0) { uint256 _generatedMars = getGeneratedMars(pool.lastMarsTime, block.timestamp); uint256 _mars = _generatedMars.mul(pool.allocPoint).div(totalAllocPoint); accMarsPerShare = accMarsPerShare.add(_mars.mul(1e18).div(tokenSupply)); } return user.amount.mul(accMarsPerShare).div(1e18).sub(user.marsDebt); } // Update mars 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 mars variables of the given pool to be up-to-date. function updatePool(uint256 _pid) public { PoolInfo storage pool = poolInfo[_pid]; if (block.timestamp <= pool.lastMarsTime) { return; } uint256 tokenSupply = pool.token.balanceOf(address(this)); if (tokenSupply == 0) { pool.lastMarsTime = block.timestamp; return; } if (!pool.isStarted) { pool.isStarted = true; totalAllocPoint = totalAllocPoint.add(pool.allocPoint); } if (totalAllocPoint > 0) { uint256 _generatedMars = getGeneratedMars(pool.lastMarsTime, block.timestamp); uint256 _mars = _generatedMars.mul(pool.allocPoint).div(totalAllocPoint); pool.accMarsPerShare = pool.accMarsPerShare.add(_mars.mul(1e18).div(tokenSupply)); } pool.lastMarsTime = 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.accMarsPerShare).div(1e18).sub(user.marsDebt); if (_pending > 0) { safeMarsTransfer(_sender, _pending); emit MarsPaid(_sender, _pending); } } if (_amount > 0) { pool.token.safeTransferFrom(_sender, address(this), _amount); uint256 depositFee = _amount.mul(pool.depositFee).div(10000); user.amount = user.amount.add(_amount.sub(depositFee)); if (depositFee > 0) { pool.token.safeTransfer(treasuryFund, depositFee); } } user.marsDebt = user.amount.mul(pool.accMarsPerShare).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.accMarsPerShare).div(1e18).sub(user.marsDebt); if (_pending > 0) { safeMarsTransfer(_sender, _pending); emit MarsPaid(_sender, _pending); } if (_amount > 0) { user.amount = user.amount.sub(_amount); pool.token.safeTransfer(_sender, _amount); } user.marsDebt = user.amount.mul(pool.accMarsPerShare).div(1e18); emit Withdraw(_sender, _pid, _amount); } // Withdraw without caring about marss. 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.marsDebt = 0; pool.token.safeTransfer(msg.sender, _amount); emit EmergencyWithdraw(msg.sender, _pid, _amount); } // Safe Mars transfer function, just in case if rounding error causes pool to not have enough Marss. function safeMarsTransfer(address _to, uint256 _amount) internal { uint256 _marsBalance = mars.balanceOf(address(this)); if (_marsBalance > 0) { if (_amount > _marsBalance) { mars.safeTransfer(_to, _marsBalance); } else { mars.safeTransfer(_to, _amount); } } } function setOperator(address _operator) external onlyOperator { operator = _operator; } function setTreasuryFund(address _treasuryFund) external { require(msg.sender == treasuryFund, "!treasury"); treasuryFund = _treasuryFund; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_mars","type":"address"},{"internalType":"uint256","name":"_poolStartTime","type":"uint256"},{"internalType":"address","name":"_treasuryFund","type":"address"}],"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":"MarsPaid","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":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint256","name":"_lastMarsTime","type":"uint256"},{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"add","outputs":[],"stateMutability":"nonpayable","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":"getGeneratedMars","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mars","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marsPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"pendingMars","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":"lastMarsTime","type":"uint256"},{"internalType":"uint256","name":"accMarsPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"},{"internalType":"uint256","name":"depositFee","type":"uint256"}],"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"},{"internalType":"uint256","name":"_depositFee","type":"uint256"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_treasuryFund","type":"address"}],"name":"setTreasuryFund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalAllocPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"treasuryFund","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"marsDebt","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
60806040526000600455653691d6afc0006007556202a30060085534801561002657600080fd5b506040516118d33803806118d38339818101604052606081101561004957600080fd5b5080516020820151604090920151909190428211610097576040805162461bcd60e51b815260206004808301919091526024820152636c61746560e01b604482015290519081900360640190fd5b6001600160a01b038316156100c257600180546001600160a01b0319166001600160a01b0385161790555b6005829055600854909101600655600080546001600160a01b03199081163317909155600980546001600160a01b039390931692909116919091179055506117c48061010f6000396000f3fe608060405234801561001057600080fd5b50600436106101375760003560e01c80636e271dd5116100b8578063b15a9c401161007c578063b15a9c401461032e578063b3ab15fb14610336578063ce56fa051461035c578063e0c4f12d14610388578063e2bbb15814610390578063f746b718146103b357610137565b80636e271dd5146102ae57806392222e3a146102b657806393f1a40b146102d9578063943f013d1461031e578063aa6637dd1461032657610137565b80635312ea8e116100ff5780635312ea8e1461021d578063570ca7351461023a5780635f96dc111461025e57806362e006c714610266578063630b5ba1146102a657610137565b80631526fe271461013c57806317caf6f11461019857806343b0e8df146101b2578063441a3e70146101dd57806351eb05a614610200575b600080fd5b6101596004803603602081101561015257600080fd5b50356103d9565b604080516001600160a01b03909716875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b6101a061042c565b60408051918252519081900360200190f35b6101db600480360360608110156101c857600080fd5b5080359060208101359060400135610432565b005b6101db600480360360408110156101f357600080fd5b5080359060200135610537565b6101db6004803603602081101561021657600080fd5b50356106f4565b6101db6004803603602081101561023357600080fd5b5035610852565b6102426108ee565b604080516001600160a01b039092168252519081900360200190f35b6101a06108fd565b6101db600480360360a081101561027c57600080fd5b508035906001600160a01b0360208201351690604081013515159060608101359060800135610903565b6101db610b7d565b6101a0610ba0565b6101a0600480360360408110156102cc57600080fd5b5080359060200135610ba6565b610305600480360360408110156102ef57600080fd5b50803590602001356001600160a01b0316610c6b565b6040805192835260208301919091528051918290030190f35b6101a0610c8f565b610242610c95565b6101a0610ca4565b6101db6004803603602081101561034c57600080fd5b50356001600160a01b0316610caa565b6101a06004803603604081101561037257600080fd5b50803590602001356001600160a01b0316610d15565b610242610e71565b6101db600480360360408110156103a657600080fd5b5080359060200135610e80565b6101db600480360360208110156103c957600080fd5b50356001600160a01b031661103d565b600281815481106103e657fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff9091169086565b60045481565b6000546001600160a01b0316331461047b5760405162461bcd60e51b815260040180806020018281038252602781526020018061171d6027913960400191505060405180910390fd5b60648111156104c8576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b6104d0610b7d565b6000600284815481106104df57fe5b60009182526020909120600690910201600481015490915060ff1615610526576105228361051c83600101546004546110aa90919063ffffffff16565b90611107565b6004555b600181019290925560059091015550565b600033905060006002848154811061054b57fe5b600091825260208083208784526003825260408085206001600160a01b038816865290925292208054600690920290920192508411156105c7576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6105d0856106f4565b600061060d8260010154610607670de0b6b3a76400006106018760030154876000015461116890919063ffffffff16565b906111c1565b906110aa565b9050801561065f5761061f8482611228565b6040805182815290516001600160a01b038616917f45da806b866bc9f8f48de85be50855976c0b4929476b01bac0435f4d9deb0efd919081900360200190a25b841561068957815461067190866110aa565b82558254610689906001600160a01b031685876112e7565b600383015482546106a791670de0b6b3a76400009161060191611168565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061070357fe5b9060005260206000209060060201905080600201544211610724575061084f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561076e57600080fd5b505afa158015610782573d6000803e3d6000fd5b505050506040513d602081101561079857600080fd5b50519050806107ae57504260029091015561084f565b600482015460ff166107df576004808301805460ff1916600190811790915583015490546107db91611107565b6004555b600454156108465760006107f7836002015442610ba6565b9050600061081860045461060186600101548561116890919063ffffffff16565b905061083e6108338461060184670de0b6b3a7640000611168565b600386015490611107565b600385015550505b50426002909101555b50565b60006002828154811061086157fe5b6000918252602080832085845260038252604080852033808752935284208054858255600182019590955560069093020180549094509192916108b1916001600160a01b039190911690836112e7565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031681565b60055481565b6000546001600160a01b0316331461094c5760405162461bcd60e51b815260040180806020018281038252602781526020018061171d6027913960400191505060405180910390fd5b6064811115610999576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b6109a284611339565b82156109b0576109b0610b7d565b6005544210156109de57816109c95760055491506109d9565b6005548210156109d95760055491505b6109f3565b8115806109ea57504282105b156109f3574291505b600060055483111580610a065750428311155b6040805160c0810182526001600160a01b038881168252602082018a8152928201878152600060608401818152861580156080870190815260a087018b815260028054600181018255955296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600690950294850180546001600160a01b031916919097161790955595517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf83015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad182015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad28201805460ff191691151591909117905590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad390910155909150610b7557600454610b719087611107565b6004555b505050505050565b60025460005b81811015610b9c57610b94816106f4565b600101610b83565b5050565b60065481565b6000818310610bb757506000610c65565b6006548210610c1f576006548310610bd157506000610c65565b6005548311610c0457610bfd600754610bf76005546006546110aa90919063ffffffff16565b90611168565b9050610c65565b610bfd600754610bf7856006546110aa90919063ffffffff16565b6005548211610c3057506000610c65565b6005548311610c5457610bfd600754610bf7600554856110aa90919063ffffffff16565b600754610bfd90610bf784866110aa565b92915050565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6001546001600160a01b031681565b60075481565b6000546001600160a01b03163314610cf35760405162461bcd60e51b815260040180806020018281038252602781526020018061171d6027913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d2557fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600690960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610d9d57600080fd5b505afa158015610db1573d6000803e3d6000fd5b505050506040513d6020811015610dc757600080fd5b5051600285015490915042118015610dde57508015155b15610e3b576000610df3856002015442610ba6565b90506000610e1460045461060188600101548561116890919063ffffffff16565b9050610e36610e2f8461060184670de0b6b3a7640000611168565b8590611107565b935050505b610e668360010154610607670de0b6b3a764000061060186886000015461116890919063ffffffff16565b979650505050505050565b6009546001600160a01b031681565b6000339050600060028481548110610e9457fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060069091029091019150610ece856106f4565b805415610f5a576000610f068260010154610607670de0b6b3a76400006106018760030154876000015461116890919063ffffffff16565b90508015610f5857610f188482611228565b6040805182815290516001600160a01b038616917f45da806b866bc9f8f48de85be50855976c0b4929476b01bac0435f4d9deb0efd919081900360200190a25b505b8315610fd3578154610f77906001600160a01b03168430876113d3565b6000610f9661271061060185600501548861116890919063ffffffff16565b9050610fad610fa586836110aa565b835490611107565b82558015610fd1576009548354610fd1916001600160a01b039182169116836112e7565b505b60038201548154610ff191670de0b6b3a76400009161060191611168565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6009546001600160a01b03163314611088576040805162461bcd60e51b815260206004820152600960248201526821747265617375727960b81b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115611101576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611161576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261117757506000610c65565b8282028284828161118457fe5b04146111615760405162461bcd60e51b81526004018080602001828103825260218152602001806117446021913960400191505060405180910390fd5b6000808211611217576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161122057fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561127357600080fd5b505afa158015611287573d6000803e3d6000fd5b505050506040513d602081101561129d57600080fd5b5051905080156112e257808211156112cb576001546112c6906001600160a01b031684836112e7565b6112e2565b6001546112e2906001600160a01b031684846112e7565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112e2908490611433565b60025460005b818110156112e257826001600160a01b03166002828154811061135e57fe5b60009182526020909120600690910201546001600160a01b031614156113cb576040805162461bcd60e51b815260206004820152601b60248201527f47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000000000604482015290519081900360640190fd5b60010161133f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261142d908590611433565b50505050565b6060611488826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114e49092919063ffffffff16565b8051909150156112e2578080602001905160208110156114a757600080fd5b50516112e25760405162461bcd60e51b815260040180806020018281038252602a815260200180611765602a913960400191505060405180910390fd5b60606114f384846000856114fb565b949350505050565b60608247101561153c5760405162461bcd60e51b81526004018080602001828103825260268152602001806116f76026913960400191505060405180910390fd5b6115458561164c565b611596576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115d55780518252601f1990920191602091820191016115b6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611637576040519150601f19603f3d011682016040523d82523d6000602084013e61163c565b606091505b5091509150610e66828286611652565b3b151590565b60608315611661575081611161565b8251156116715782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116bb5781810151838201526020016116a3565b50505050905090810190601f1680156116e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204f522adbbbd043afeb8108f16af6b95dcaffbb8195bd08806186d74e320162fb64736f6c634300060c0033000000000000000000000000bd3be68bcb92aa8b59b894d0811acadaeeb213690000000000000000000000000000000000000000000000000000000063494f400000000000000000000000007511db640139d053191339b69afb6e4e9217c93f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101375760003560e01c80636e271dd5116100b8578063b15a9c401161007c578063b15a9c401461032e578063b3ab15fb14610336578063ce56fa051461035c578063e0c4f12d14610388578063e2bbb15814610390578063f746b718146103b357610137565b80636e271dd5146102ae57806392222e3a146102b657806393f1a40b146102d9578063943f013d1461031e578063aa6637dd1461032657610137565b80635312ea8e116100ff5780635312ea8e1461021d578063570ca7351461023a5780635f96dc111461025e57806362e006c714610266578063630b5ba1146102a657610137565b80631526fe271461013c57806317caf6f11461019857806343b0e8df146101b2578063441a3e70146101dd57806351eb05a614610200575b600080fd5b6101596004803603602081101561015257600080fd5b50356103d9565b604080516001600160a01b03909716875260208701959095528585019390935260608501919091521515608084015260a0830152519081900360c00190f35b6101a061042c565b60408051918252519081900360200190f35b6101db600480360360608110156101c857600080fd5b5080359060208101359060400135610432565b005b6101db600480360360408110156101f357600080fd5b5080359060200135610537565b6101db6004803603602081101561021657600080fd5b50356106f4565b6101db6004803603602081101561023357600080fd5b5035610852565b6102426108ee565b604080516001600160a01b039092168252519081900360200190f35b6101a06108fd565b6101db600480360360a081101561027c57600080fd5b508035906001600160a01b0360208201351690604081013515159060608101359060800135610903565b6101db610b7d565b6101a0610ba0565b6101a0600480360360408110156102cc57600080fd5b5080359060200135610ba6565b610305600480360360408110156102ef57600080fd5b50803590602001356001600160a01b0316610c6b565b6040805192835260208301919091528051918290030190f35b6101a0610c8f565b610242610c95565b6101a0610ca4565b6101db6004803603602081101561034c57600080fd5b50356001600160a01b0316610caa565b6101a06004803603604081101561037257600080fd5b50803590602001356001600160a01b0316610d15565b610242610e71565b6101db600480360360408110156103a657600080fd5b5080359060200135610e80565b6101db600480360360208110156103c957600080fd5b50356001600160a01b031661103d565b600281815481106103e657fe5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909260ff9091169086565b60045481565b6000546001600160a01b0316331461047b5760405162461bcd60e51b815260040180806020018281038252602781526020018061171d6027913960400191505060405180910390fd5b60648111156104c8576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b6104d0610b7d565b6000600284815481106104df57fe5b60009182526020909120600690910201600481015490915060ff1615610526576105228361051c83600101546004546110aa90919063ffffffff16565b90611107565b6004555b600181019290925560059091015550565b600033905060006002848154811061054b57fe5b600091825260208083208784526003825260408085206001600160a01b038816865290925292208054600690920290920192508411156105c7576040805162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015290519081900360640190fd5b6105d0856106f4565b600061060d8260010154610607670de0b6b3a76400006106018760030154876000015461116890919063ffffffff16565b906111c1565b906110aa565b9050801561065f5761061f8482611228565b6040805182815290516001600160a01b038616917f45da806b866bc9f8f48de85be50855976c0b4929476b01bac0435f4d9deb0efd919081900360200190a25b841561068957815461067190866110aa565b82558254610689906001600160a01b031685876112e7565b600383015482546106a791670de0b6b3a76400009161060191611168565b600183015560408051868152905187916001600160a01b038716917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689181900360200190a3505050505050565b60006002828154811061070357fe5b9060005260206000209060060201905080600201544211610724575061084f565b8054604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561076e57600080fd5b505afa158015610782573d6000803e3d6000fd5b505050506040513d602081101561079857600080fd5b50519050806107ae57504260029091015561084f565b600482015460ff166107df576004808301805460ff1916600190811790915583015490546107db91611107565b6004555b600454156108465760006107f7836002015442610ba6565b9050600061081860045461060186600101548561116890919063ffffffff16565b905061083e6108338461060184670de0b6b3a7640000611168565b600386015490611107565b600385015550505b50426002909101555b50565b60006002828154811061086157fe5b6000918252602080832085845260038252604080852033808752935284208054858255600182019590955560069093020180549094509192916108b1916001600160a01b039190911690836112e7565b604080518281529051859133917fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959181900360200190a350505050565b6000546001600160a01b031681565b60055481565b6000546001600160a01b0316331461094c5760405162461bcd60e51b815260040180806020018281038252602781526020018061171d6027913960400191505060405180910390fd5b6064811115610999576040805162461bcd60e51b81526020600482015260146024820152730c8cae0dee6d2e840cccaca40e8dede40d0d2ced60631b604482015290519081900360640190fd5b6109a284611339565b82156109b0576109b0610b7d565b6005544210156109de57816109c95760055491506109d9565b6005548210156109d95760055491505b6109f3565b8115806109ea57504282105b156109f3574291505b600060055483111580610a065750428311155b6040805160c0810182526001600160a01b038881168252602082018a8152928201878152600060608401818152861580156080870190815260a087018b815260028054600181018255955296517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600690950294850180546001600160a01b031916919097161790955595517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf83015591517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad182015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad28201805460ff191691151591909117905590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad390910155909150610b7557600454610b719087611107565b6004555b505050505050565b60025460005b81811015610b9c57610b94816106f4565b600101610b83565b5050565b60065481565b6000818310610bb757506000610c65565b6006548210610c1f576006548310610bd157506000610c65565b6005548311610c0457610bfd600754610bf76005546006546110aa90919063ffffffff16565b90611168565b9050610c65565b610bfd600754610bf7856006546110aa90919063ffffffff16565b6005548211610c3057506000610c65565b6005548311610c5457610bfd600754610bf7600554856110aa90919063ffffffff16565b600754610bfd90610bf784866110aa565b92915050565b60036020908152600092835260408084209091529082529020805460019091015482565b60085481565b6001546001600160a01b031681565b60075481565b6000546001600160a01b03163314610cf35760405162461bcd60e51b815260040180806020018281038252602781526020018061171d6027913960400191505060405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008060028481548110610d2557fe5b60009182526020808320878452600380835260408086206001600160a01b03808b168852908552818720600690960290930191820154825482516370a0823160e01b815230600482015292519398509596909590949316926370a0823192602480840193829003018186803b158015610d9d57600080fd5b505afa158015610db1573d6000803e3d6000fd5b505050506040513d6020811015610dc757600080fd5b5051600285015490915042118015610dde57508015155b15610e3b576000610df3856002015442610ba6565b90506000610e1460045461060188600101548561116890919063ffffffff16565b9050610e36610e2f8461060184670de0b6b3a7640000611168565b8590611107565b935050505b610e668360010154610607670de0b6b3a764000061060186886000015461116890919063ffffffff16565b979650505050505050565b6009546001600160a01b031681565b6000339050600060028481548110610e9457fe5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922060069091029091019150610ece856106f4565b805415610f5a576000610f068260010154610607670de0b6b3a76400006106018760030154876000015461116890919063ffffffff16565b90508015610f5857610f188482611228565b6040805182815290516001600160a01b038616917f45da806b866bc9f8f48de85be50855976c0b4929476b01bac0435f4d9deb0efd919081900360200190a25b505b8315610fd3578154610f77906001600160a01b03168430876113d3565b6000610f9661271061060185600501548861116890919063ffffffff16565b9050610fad610fa586836110aa565b835490611107565b82558015610fd1576009548354610fd1916001600160a01b039182169116836112e7565b505b60038201548154610ff191670de0b6b3a76400009161060191611168565b600182015560408051858152905186916001600160a01b038616917f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159181900360200190a35050505050565b6009546001600160a01b03163314611088576040805162461bcd60e51b815260206004820152600960248201526821747265617375727960b81b604482015290519081900360640190fd5b600980546001600160a01b0319166001600160a01b0392909216919091179055565b600082821115611101576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b600082820183811015611161576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b60008261117757506000610c65565b8282028284828161118457fe5b04146111615760405162461bcd60e51b81526004018080602001828103825260218152602001806117446021913960400191505060405180910390fd5b6000808211611217576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b81838161122057fe5b049392505050565b600154604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561127357600080fd5b505afa158015611287573d6000803e3d6000fd5b505050506040513d602081101561129d57600080fd5b5051905080156112e257808211156112cb576001546112c6906001600160a01b031684836112e7565b6112e2565b6001546112e2906001600160a01b031684846112e7565b505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526112e2908490611433565b60025460005b818110156112e257826001600160a01b03166002828154811061135e57fe5b60009182526020909120600690910201546001600160a01b031614156113cb576040805162461bcd60e51b815260206004820152601b60248201527f47656e65736973506f6f6c3a206578697374696e6720706f6f6c3f0000000000604482015290519081900360640190fd5b60010161133f565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b17905261142d908590611433565b50505050565b6060611488826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114e49092919063ffffffff16565b8051909150156112e2578080602001905160208110156114a757600080fd5b50516112e25760405162461bcd60e51b815260040180806020018281038252602a815260200180611765602a913960400191505060405180910390fd5b60606114f384846000856114fb565b949350505050565b60608247101561153c5760405162461bcd60e51b81526004018080602001828103825260268152602001806116f76026913960400191505060405180910390fd5b6115458561164c565b611596576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106115d55780518252601f1990920191602091820191016115b6565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611637576040519150601f19603f3d011682016040523d82523d6000602084013e61163c565b606091505b5091509150610e66828286611652565b3b151590565b60608315611661575081611161565b8251156116715782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156116bb5781810151838201526020016116a3565b50505050905090810190601f1680156116e85780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c47656e65736973506f6f6c3a2063616c6c6572206973206e6f7420746865206f70657261746f72536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a26469706673582212204f522adbbbd043afeb8108f16af6b95dcaffbb8195bd08806186d74e320162fb64736f6c634300060c0033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bd3be68bcb92aa8b59b894d0811acadaeeb213690000000000000000000000000000000000000000000000000000000063494f400000000000000000000000007511db640139d053191339b69afb6e4e9217c93f
-----Decoded View---------------
Arg [0] : _mars (address): 0xbD3bE68bcb92AA8b59B894D0811ACAdAeeB21369
Arg [1] : _poolStartTime (uint256): 1665748800
Arg [2] : _treasuryFund (address): 0x7511dB640139d053191339b69AFb6E4e9217c93F
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000bd3be68bcb92aa8b59b894d0811acadaeeb21369
Arg [1] : 0000000000000000000000000000000000000000000000000000000063494f40
Arg [2] : 0000000000000000000000007511db640139d053191339b69afb6e4e9217c93f
Deployed Bytecode Sourcemap
22162:10553:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23056:26;;;;;;;;;;;;;;;;-1:-1:-1;23056:26:0;;:::i;:::-;;;;-1:-1:-1;;;;;23056:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23301:34;;;:::i;:::-;;;;;;;;;;;;;;;;26364:488;;;;;;;;;;;;;;;;-1:-1:-1;26364:488:0;;;;;;;;;;;;:::i;:::-;;30703:804;;;;;;;;;;;;;;;;-1:-1:-1;30703:804:0;;;;;;;:::i;28721:882::-;;;;;;;;;;;;;;;;-1:-1:-1;28721:882:0;;:::i;31576:375::-;;;;;;;;;;;;;;;;-1:-1:-1;31576:375:0;;:::i;22281:23::-;;;:::i;:::-;;;;-1:-1:-1;;;;;22281:23:0;;;;;;;;;;;;;;23386:28;;;:::i;24874:1394::-;;;;;;;;;;;;;;;;-1:-1:-1;24874:1394:0;;;-1:-1:-1;;;;;24874:1394:0;;;;;;;;;;;;;;;;;;;;;;:::i;28467:180::-;;;:::i;23463:26::-;;;:::i;26927:651::-;;;;;;;;;;;;;;;;-1:-1:-1;26927:651:0;;;;;;;:::i;23140:64::-;;;;;;;;;;;;;;;;-1:-1:-1;23140:64:0;;;;;;-1:-1:-1;;;;;23140:64:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23549:35;;;:::i;23002:18::-;;;:::i;23498:44::-;;;:::i;32438:101::-;;;;;;;;;;;;;;;;-1:-1:-1;32438:101:0;-1:-1:-1;;;;;32438:101:0;;:::i;27641:745::-;;;;;;;;;;;;;;;;-1:-1:-1;27641:745:0;;;;;;-1:-1:-1;;;;;27641:745:0;;:::i;23646:27::-;;;:::i;29638:1029::-;;;;;;;;;;;;;;;;-1:-1:-1;29638:1029:0;;;;;;;:::i;32547:163::-;;;;;;;;;;;;;;;;-1:-1:-1;32547:163:0;-1:-1:-1;;;;;32547:163:0;;:::i;23056:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23056:26:0;;;;-1:-1:-1;23056:26:0;;;;;;;;;;:::o;23301:34::-;;;;:::o;26364:488::-;24445:8;;-1:-1:-1;;;;;24445:8:0;24457:10;24445:22;24437:74;;;;-1:-1:-1;;;24437:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23628:3:::1;26472:11;:30;;26464:63;;;::::0;;-1:-1:-1;;;26464:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;26464:63:0;;;;;;;;;;;;;::::1;;26538:17;:15;:17::i;:::-;26566:21;26590:8;26599:4;26590:14;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26619;::::0;::::1;::::0;26590;;-1:-1:-1;26619:14:0::1;;26615:150;;;26668:85;26727:11;26668:36;26688:4;:15;;;26668;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:85::i;:::-;26650:15;:103:::0;26615:150:::1;26775:15;::::0;::::1;:29:::0;;;;26815:15:::1;::::0;;::::1;:29:::0;-1:-1:-1;26364:488:0:o;30703:804::-;30770:15;30788:10;30770:28;;30809:21;30833:8;30842:4;30833:14;;;;;;;;;;;;;;;;30882;;;:8;:14;;;;;;-1:-1:-1;;;;;30882:23:0;;;;;;;;;30924:11;;30833:14;;;;;;;;-1:-1:-1;30924:22:0;-1:-1:-1;30924:22:0;30916:53;;;;;-1:-1:-1;;;30916:53:0;;;;;;;;;;;;-1:-1:-1;;;30916:53:0;;;;;;;;;;;;;;;30980:16;30991:4;30980:10;:16::i;:::-;31007;31026:66;31078:4;:13;;;31026:47;31068:4;31026:37;31042:4;:20;;;31026:4;:11;;;:15;;:37;;;;:::i;:::-;:41;;:47::i;:::-;:51;;:66::i;:::-;31007:85;-1:-1:-1;31107:12:0;;31103:127;;31136:35;31153:7;31162:8;31136:16;:35::i;:::-;31191:27;;;;;;;;-1:-1:-1;;;;;31191:27:0;;;;;;;;;;;;;31103:127;31244:11;;31240:138;;31286:11;;:24;;31302:7;31286:15;:24::i;:::-;31272:38;;31325:10;;:41;;-1:-1:-1;;;;;31325:10:0;31349:7;31358;31325:23;:41::i;:::-;31420:20;;;;31404:11;;:47;;31446:4;;31404:37;;:15;:37::i;:47::-;31388:13;;;:63;31467:32;;;;;;;;31485:4;;-1:-1:-1;;;;;31467:32:0;;;;;;;;;;;;30703:804;;;;;;:::o;28721:882::-;28773:21;28797:8;28806:4;28797:14;;;;;;;;;;;;;;;;;;28773:38;;28845:4;:17;;;28826:15;:36;28822:75;;28879:7;;;28822:75;28929:10;;:35;;;-1:-1:-1;;;28929:35:0;;28958:4;28929:35;;;;;;28907:19;;-1:-1:-1;;;;;28929:10:0;;:20;;:35;;;;;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;28929:35:0;;-1:-1:-1;28979:16:0;28975:105;;-1:-1:-1;29032:15:0;29012:17;;;;:35;29062:7;;28975:105;29095:14;;;;;;29090:138;;29126:14;;;;:21;;-1:-1:-1;;29126:21:0;29143:4;29126:21;;;;;;29200:15;;;29180;;:36;;:19;:36::i;:::-;29162:15;:54;29090:138;29242:15;;:19;29238:312;;29278:22;29303:52;29320:4;:17;;;29339:15;29303:16;:52::i;:::-;29278:77;;29370:13;29386:56;29426:15;;29386:35;29405:4;:15;;;29386:14;:18;;:35;;;;:::i;:56::-;29370:72;-1:-1:-1;29480:58:0;29505:32;29525:11;29505:15;29370:72;29515:4;29505:9;:15::i;:32::-;29480:20;;;;;:24;:58::i;:::-;29457:20;;;:81;-1:-1:-1;;29238:312:0;-1:-1:-1;29580:15:0;29560:17;;;;:35;28721:882;;:::o;31576:375::-;31635:21;31659:8;31668:4;31659:14;;;;;;;;;;;;;;;;31708;;;:8;:14;;;;;;31723:10;31708:26;;;;;;;31763:11;;31785:15;;;-1:-1:-1;31811:13:0;;:17;;;;31659:14;;;;;31839:10;;31659:14;;-1:-1:-1;31708:26:0;;31763:11;31839:44;;-1:-1:-1;;;;;31839:10:0;;;;;31763:11;31839:23;:44::i;:::-;31899;;;;;;;;31929:4;;31917:10;;31899:44;;;;;;;;;31576:375;;;;:::o;22281:23::-;;;-1:-1:-1;;;;;22281:23:0;;:::o;23386:28::-;;;;:::o;24874:1394::-;24445:8;;-1:-1:-1;;;;;24445:8:0;24457:10;24445:22;24437:74;;;;-1:-1:-1;;;24437:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23628:3:::1;25076:11;:30;;25068:63;;;::::0;;-1:-1:-1;;;25068:63:0;;::::1;;::::0;::::1;::::0;::::1;::::0;;;;-1:-1:-1;;;25068:63:0;;;;;;;;;;;;;::::1;;25142:26;25161:6;25142:18;:26::i;:::-;25183:11;25179:61;;;25211:17;:15;:17::i;:::-;25272:13;;25254:15;:31;25250:520;;;25339:18:::0;25335:235:::1;;25394:13;;25378:29;;25335:235;;;25468:13;;25452;:29;25448:107;;;25522:13;;25506:29;;25448:107;25250:520;;;25638:18:::0;;;:53:::1;;;25676:15;25660:13;:31;25638:53;25634:125;;;25728:15;25712:31;;25634:125;25780:15;25825:13;;25808;:30;;25807:79;;;;25870:15;25853:13;:32;;25807:79;25911:245;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;25911:245:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;25911:245:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;;;;;;;25897:8:::1;:260:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;25897:260:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;25897:260:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;;;;;;;25911:245;;-1:-1:-1;26168:93:0::1;;26217:15;::::0;:32:::1;::::0;26237:11;26217:19:::1;:32::i;:::-;26199:15;:50:::0;26168:93:::1;24522:1;24874:1394:::0;;;;;:::o;28467:180::-;28529:8;:15;28512:14;28555:85;28583:6;28577:3;:12;28555:85;;;28613:15;28624:3;28613:10;:15::i;:::-;28591:5;;28555:85;;;;28467:180;:::o;23463:26::-;;;;:::o;26927:651::-;27010:7;27047;27034:9;:20;27030:34;;-1:-1:-1;27063:1:0;27056:8;;27030:34;27090:11;;27079:7;:22;27075:496;;27135:11;;27122:9;:24;27118:38;;-1:-1:-1;27155:1:0;27148:8;;27118:38;27188:13;;27175:9;:26;27171:88;;27210:49;27245:13;;27210:30;27226:13;;27210:11;;:15;;:30;;;;:::i;:::-;:34;;:49::i;:::-;27203:56;;;;27171:88;27281:45;27312:13;;27281:26;27297:9;27281:11;;:15;;:26;;;;:::i;27075:496::-;27374:13;;27363:7;:24;27359:38;;-1:-1:-1;27396:1:0;27389:8;;27359:38;27429:13;;27416:9;:26;27412:84;;27451:45;27482:13;;27451:26;27463:13;;27451:7;:11;;:26;;;;:::i;27412:84::-;27545:13;;27518:41;;:22;:7;27530:9;27518:11;:22::i;27075:496::-;26927:651;;;;:::o;23140:64::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;23549:35::-;;;;:::o;23002:18::-;;;-1:-1:-1;;;;;23002:18:0;;:::o;23498:44::-;;;;:::o;32438:101::-;24445:8;;-1:-1:-1;;;;;24445:8:0;24457:10;24445:22;24437:74;;;;-1:-1:-1;;;24437:74:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32511:8:::1;:20:::0;;-1:-1:-1;;;;;;32511:20:0::1;-1:-1:-1::0;;;;;32511:20:0;;;::::1;::::0;;;::::1;::::0;;32438:101::o;27641:745::-;27714:7;27734:21;27758:8;27767:4;27758:14;;;;;;;;;;;;;;;;27807;;;:8;:14;;;;;;;-1:-1:-1;;;;;27807:21:0;;;;;;;;;;;27758:14;;;;;;;27865:20;;;;27918:10;;:35;;-1:-1:-1;;;27918:35:0;;27947:4;27918:35;;;;;;27758:14;;-1:-1:-1;27807:21:0;;27865:20;;27758:14;;27918:10;;;:20;;:35;;;;;;;;;;:10;:35;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;27918:35:0;27986:17;;;;27918:35;;-1:-1:-1;27968:15:0;:35;:55;;;;-1:-1:-1;28007:16:0;;;27968:55;27964:336;;;28040:22;28065:52;28082:4;:17;;;28101:15;28065:16;:52::i;:::-;28040:77;;28132:13;28148:56;28188:15;;28148:35;28167:4;:15;;;28148:14;:18;;:35;;;;:::i;:56::-;28132:72;-1:-1:-1;28235:53:0;28255:32;28275:11;28255:15;28132:72;28265:4;28255:9;:15::i;:32::-;28235:15;;:19;:53::i;:::-;28217:71;;27964:336;;;28317:61;28364:4;:13;;;28317:42;28354:4;28317:32;28333:15;28317:4;:11;;;:15;;:32;;;;:::i;:61::-;28310:68;27641:745;-1:-1:-1;;;;;;;27641:745:0:o;23646:27::-;;;-1:-1:-1;;;;;23646:27:0;;:::o;29638:1029::-;29704:15;29722:10;29704:28;;29743:21;29767:8;29776:4;29767:14;;;;;;;;;;;;;;;;29816;;;:8;:14;;;;;;-1:-1:-1;;;;;29816:23:0;;;;;;;;;29767:14;;;;;;;;-1:-1:-1;29850:16:0;29825:4;29850:10;:16::i;:::-;29881:11;;:15;29877:286;;29913:16;29932:66;29984:4;:13;;;29932:47;29974:4;29932:37;29948:4;:20;;;29932:4;:11;;;:15;;:37;;;;:::i;:66::-;29913:85;-1:-1:-1;30017:12:0;;30013:139;;30050:35;30067:7;30076:8;30050:16;:35::i;:::-;30109:27;;;;;;;;-1:-1:-1;;;;;30109:27:0;;;;;;;;;;;;;30013:139;29877:286;;30177:11;;30173:366;;30205:10;;:60;;-1:-1:-1;;;;;30205:10:0;30233:7;30250:4;30257:7;30205:27;:60::i;:::-;30280:18;30301:39;30334:5;30301:28;30313:4;:15;;;30301:7;:11;;:28;;;;:::i;:39::-;30280:60;-1:-1:-1;30369:40:0;30385:23;:7;30280:60;30385:11;:23::i;:::-;30369:11;;;:15;:40::i;:::-;30355:54;;30428:14;;30424:104;;30487:12;;30463:10;;:49;;-1:-1:-1;;;;;30463:10:0;;;;30487:12;30501:10;30463:23;:49::i;:::-;30173:366;;30581:20;;;;30565:11;;:47;;30607:4;;30565:37;;:15;:37::i;:47::-;30549:13;;;:63;30628:31;;;;;;;;30645:4;;-1:-1:-1;;;;;30628:31:0;;;;;;;;;;;;29638:1029;;;;;:::o;32547:163::-;32637:12;;-1:-1:-1;;;;;32637:12:0;32623:10;:26;32615:48;;;;;-1:-1:-1;;;32615:48:0;;;;;;;;;;;;-1:-1:-1;;;32615:48:0;;;;;;;;;;;;;;;32674:12;:28;;-1:-1:-1;;;;;;32674:28:0;-1:-1:-1;;;;;32674:28:0;;;;;;;;;;32547:163::o;6099:158::-;6157:7;6190:1;6185;:6;;6177:49;;;;;-1:-1:-1;;;6177:49:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;6244:5:0;;;6099:158::o;5637:179::-;5695:7;5727:5;;;5751:6;;;;5743:46;;;;;-1:-1:-1;;;5743:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;5807:1;5637:179;-1:-1:-1;;;5637:179:0:o;6516:220::-;6574:7;6598:6;6594:20;;-1:-1:-1;6613:1:0;6606:8;;6594:20;6637:5;;;6641:1;6637;:5;:1;6661:5;;;;;:10;6653:56;;;;-1:-1:-1;;;6653:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;7214:153;7272:7;7304:1;7300;:5;7292:44;;;;;-1:-1:-1;;;7292:44:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;7358:1;7354;:5;;;;;;;7214:153;-1:-1:-1;;;7214:153:0:o;32065:365::-;32164:4;;:29;;;-1:-1:-1;;;32164:29:0;;32187:4;32164:29;;;;;;32141:20;;-1:-1:-1;;;;;32164:4:0;;:14;;:29;;;;;;;;;;;;;;:4;:29;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;32164:29:0;;-1:-1:-1;32208:16:0;;32204:219;;32255:12;32245:7;:22;32241:171;;;32288:4;;:36;;-1:-1:-1;;;;;32288:4:0;32306:3;32311:12;32288:17;:36::i;:::-;32241:171;;;32365:4;;:31;;-1:-1:-1;;;;;32365:4:0;32383:3;32388:7;32365:17;:31::i;:::-;32065:365;;;:::o;18999:177::-;19109:58;;;-1:-1:-1;;;;;19109:58:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19109:58:0;-1:-1:-1;;;19109:58:0;;;19082:86;;19102:5;;19082:19;:86::i;24539:257::-;24624:8;:15;24607:14;24650:139;24678:6;24672:3;:12;24650:139;;;24739:6;-1:-1:-1;;;;;24716:29:0;:8;24725:3;24716:13;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;24716:19:0;:29;;24708:69;;;;;-1:-1:-1;;;24708:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;24686:5;;24650:139;;19184:205;19312:68;;;-1:-1:-1;;;;;19312:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;19312:68:0;-1:-1:-1;;;19312:68:0;;;19285:96;;19305:5;;19285:19;:96::i;:::-;19184:205;;;;:::o;21304:761::-;21728:23;21754:69;21782:4;21754:69;;;;;;;;;;;;;;;;;21762:5;-1:-1:-1;;;;;21754:27:0;;;:69;;;;;:::i;:::-;21838:17;;21728:95;;-1:-1:-1;21838:21:0;21834:224;;21980:10;21969:30;;;;;;;;;;;;;;;-1:-1:-1;21969:30:0;21961:85;;;;-1:-1:-1;;;21961:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13994:195;14097:12;14129:52;14151:6;14159:4;14165:1;14168:12;14129:21;:52::i;:::-;14122:59;13994:195;-1:-1:-1;;;;13994:195:0:o;15046:530::-;15173:12;15231:5;15206:21;:30;;15198:81;;;;-1:-1:-1;;;15198:81:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15298:18;15309:6;15298:10;:18::i;:::-;15290:60;;;;;-1:-1:-1;;;15290:60:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;15424:12;15438:23;15465:6;-1:-1:-1;;;;;15465:11:0;15485:5;15493:4;15465:33;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;15465:33:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;15423:75;;;;15516:52;15534:7;15543:10;15555:12;15516:17;:52::i;11076:422::-;11443:20;11482:8;;;11076:422::o;17586:742::-;17701:12;17730:7;17726:595;;;-1:-1:-1;17761:10:0;17754:17;;17726:595;17875:17;;:21;17871:439;;18138:10;18132:17;18199:15;18186:10;18182:2;18178:19;18171:44;18086:148;18281:12;18274:20;;-1:-1:-1;;;18274:20:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Swarm Source
ipfs://4f522adbbbd043afeb8108f16af6b95dcaffbb8195bd08806186d74e320162fb
Loading...
Loading
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.