Source Code
Latest 25 from a total of 3,144 transactions
| Transaction Hash |
|
Block
|
From
|
To
|
|||||
|---|---|---|---|---|---|---|---|---|---|
| Withdraw | 1192322 | 1334 days ago | IN | 0 GLMR | 0.00566613 | ||||
| Withdraw | 513355 | 1432 days ago | IN | 0 GLMR | 0.0055824 | ||||
| Withdraw | 458909 | 1440 days ago | IN | 0 GLMR | 0.0050596 | ||||
| Deposit | 458900 | 1440 days ago | IN | 0 GLMR | 0.0104882 | ||||
| Withdraw | 415615 | 1446 days ago | IN | 0 GLMR | 0.0029078 | ||||
| Deposit | 415600 | 1446 days ago | IN | 0 GLMR | 0.0094894 | ||||
| Withdraw | 393307 | 1450 days ago | IN | 0 GLMR | 0.0029078 | ||||
| Deposit | 393298 | 1450 days ago | IN | 0 GLMR | 0.0094894 | ||||
| Deposit | 386246 | 1451 days ago | IN | 0 GLMR | 0.0189764 | ||||
| Withdraw | 385055 | 1451 days ago | IN | 0 GLMR | 0.0029078 | ||||
| Deposit | 385047 | 1451 days ago | IN | 0 GLMR | 0.0094894 | ||||
| Withdraw | 373455 | 1453 days ago | IN | 0 GLMR | 0.0046624 | ||||
| Withdraw | 360502 | 1454 days ago | IN | 0 GLMR | 0.0029078 | ||||
| Deposit | 356253 | 1455 days ago | IN | 0 GLMR | 0.0073894 | ||||
| Withdraw | 340078 | 1457 days ago | IN | 0 GLMR | 0.0029072 | ||||
| Deposit | 339791 | 1457 days ago | IN | 0 GLMR | 0.0094882 | ||||
| Withdraw | 330534 | 1459 days ago | IN | 0 GLMR | 0.0029078 | ||||
| Deposit | 330527 | 1459 days ago | IN | 0 GLMR | 0.0094894 | ||||
| Withdraw | 325619 | 1459 days ago | IN | 0 GLMR | 0.0029066 | ||||
| Deposit | 325616 | 1459 days ago | IN | 0 GLMR | 0.009487 | ||||
| Withdraw | 325612 | 1459 days ago | IN | 0 GLMR | 0.0029066 | ||||
| Deposit | 325597 | 1459 days ago | IN | 0 GLMR | 0.009487 | ||||
| Withdraw | 311686 | 1461 days ago | IN | 0 GLMR | 0.0029066 | ||||
| Deposit | 311588 | 1461 days ago | IN | 0 GLMR | 0.009487 | ||||
| Withdraw | 309194 | 1462 days ago | IN | 0 GLMR | 0.0046624 |
View more zero value Internal Transactions in Advanced View mode
Cross-Chain Transactions
Loading...
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.
Contract Name:
GalaxyRewardPool
Compiler Version
v0.8.4+commit.c7e474f2
Contract Source Code (Solidity)
/** *Submitted for verification at moonbeam.moonscan.io on 2022-02-07 */ // Sources flattened with hardhat v2.8.3 https://hardhat.org // File @openzeppelin/contracts/token/ERC20/[email protected] // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol) pragma solidity ^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/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/Address.sol) pragma solidity ^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; 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"); (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"); (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"); (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"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } /** * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal 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 assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } // File @openzeppelin/contracts/token/ERC20/utils/[email protected] // OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol) pragma solidity ^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 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' 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _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 require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } // File @openzeppelin/contracts/utils/math/[email protected] // OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ 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) { unchecked { 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) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } } // File contracts/distribution/GalaxyRewardPool.sol pragma solidity ^0.8.0; // Note that this pool has no minter key of GLX (rewards). // Instead, the governance will call GLX distributeReward method and send reward to this pool at the beginning. contract GalaxyRewardPool { 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. GLXs to distribute in the pool. uint256 lastRewardTime; // Last time that GLXs distribution occurred. uint256 accGalaxyPerShare; // Accumulated GLXs per share, times 1e18. See below. bool isStarted; // if lastRewardTime has passed } IERC20 public galaxy; // 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 GLX mining starts. uint256 public poolStartTime; uint256[] public epochTotalRewards = [600 ether, 600 ether]; // CHANGE // Time when each epoch ends. uint256[3] public epochEndTimes; // Reward per second for each of 2 epochs (last item is equal to 0 - for sanity). uint256[3] public epochGalaxyPerSecond; 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 _galaxy, uint256 _poolStartTime) { require(block.timestamp < _poolStartTime, "late"); if (_galaxy != address(0)) galaxy = IERC20(_galaxy); poolStartTime = _poolStartTime; epochEndTimes[0] = poolStartTime + 1 days; // day 1 epochEndTimes[1] = epochEndTimes[0] + 1 days; // day 2 epochGalaxyPerSecond[0] = epochTotalRewards[0].div(1 days); epochGalaxyPerSecond[1] = epochTotalRewards[1].div(1 days); epochGalaxyPerSecond[2] = 0; operator = msg.sender; } modifier onlyOperator() { require(operator == msg.sender, "GalaxyRewardPool: 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, "GalaxyRewardPool: 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 _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, accGalaxyPerShare: 0, isStarted: _isStarted})); if (_isStarted) { totalAllocPoint = totalAllocPoint.add(_allocPoint); } } // Update the given pool's GLX 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 _fromTime to _toTime. function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) { for (uint8 epochId = 2; epochId >= 1; --epochId) { if (_toTime >= epochEndTimes[epochId - 1]) { if (_fromTime >= epochEndTimes[epochId - 1]) { return _toTime.sub(_fromTime).mul(epochGalaxyPerSecond[epochId]); } uint256 _generatedReward = _toTime.sub(epochEndTimes[epochId - 1]).mul(epochGalaxyPerSecond[epochId]); if (epochId == 1) { return _generatedReward.add(epochEndTimes[0].sub(_fromTime).mul(epochGalaxyPerSecond[0])); } for (epochId = epochId - 1; epochId >= 1; --epochId) { if (_fromTime >= epochEndTimes[epochId - 1]) { return _generatedReward.add(epochEndTimes[epochId].sub(_fromTime).mul(epochGalaxyPerSecond[epochId])); } _generatedReward = _generatedReward.add(epochEndTimes[epochId].sub(epochEndTimes[epochId - 1]).mul(epochGalaxyPerSecond[epochId])); } return _generatedReward.add(epochEndTimes[0].sub(_fromTime).mul(epochGalaxyPerSecond[0])); } } return _toTime.sub(_fromTime).mul(epochGalaxyPerSecond[0]); } // View function to see pending GLXs on frontend. function pendingGLX(uint256 _pid, address _user) external view returns (uint256) { PoolInfo storage pool = poolInfo[_pid]; UserInfo storage user = userInfo[_pid][_user]; uint256 accGalaxyPerShare = pool.accGalaxyPerShare; uint256 tokenSupply = pool.token.balanceOf(address(this)); if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) { uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp); uint256 _galaxyReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); accGalaxyPerShare = accGalaxyPerShare.add(_galaxyReward.mul(1e18).div(tokenSupply)); } return user.amount.mul(accGalaxyPerShare).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 _galaxyReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint); pool.accGalaxyPerShare = pool.accGalaxyPerShare.add(_galaxyReward.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.accGalaxyPerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeGalaxyTransfer(_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.accGalaxyPerShare).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.accGalaxyPerShare).div(1e18).sub(user.rewardDebt); if (_pending > 0) { safeGalaxyTransfer(_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.accGalaxyPerShare).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 galaxy transfer function, just in case if rounding error causes pool to not have enough GLXs. function safeGalaxyTransfer(address _to, uint256 _amount) internal { uint256 _galaxyBal = galaxy.balanceOf(address(this)); if (_galaxyBal > 0) { if (_amount > _galaxyBal) { galaxy.safeTransfer(_to, _galaxyBal); } else { galaxy.safeTransfer(_to, _amount); } } } function setOperator(address _operator) external onlyOperator { operator = _operator; } function governanceRecoverUnsupported( IERC20 _token, uint256 amount, address to ) external onlyOperator { if (block.timestamp < epochEndTimes[1] + 30 days) { // do not allow to drain token if less than 30 days after farming require(_token != galaxy, "!galaxy"); 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
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_galaxy","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":[{"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":[{"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":"","type":"uint256"}],"name":"epochEndTimes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochGalaxyPerSecond","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"epochTotalRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"galaxy","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","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":"pendingGLX","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":"accGalaxyPerShare","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":[{"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
600060045560c0604052682086ac351052600000608081815260a0919091526200002e906006906002620001ac565b503480156200003c57600080fd5b5060405162001c2638038062001c268339810160408190526200005f916200021e565b804210620000a25760405162461bcd60e51b815260040162000099906020808252600490820152636c61746560e01b604082015260600190565b60405180910390fd5b6001600160a01b03821615620000ce57600180546001600160a01b0319166001600160a01b0384161790555b6005819055620000e2816201518062000258565b6007819055620000f6906201518062000258565b60085560068054620001449162015180916000906200012557634e487b7160e01b600052603260045260246000fd5b90600052602060002001546200019760201b620011c21790919060201c565b600a55600680546200017591620151809160019081106200012557634e487b7160e01b600052603260045260246000fd5b600b5550506000600c81905580546001600160a01b031916331790556200029e565b6000620001a582846200027d565b9392505050565b828054828255906000526020600020908101928215620001f5579160200282015b82811115620001f557825182906001600160481b0316905591602001919060010190620001cd565b506200020392915062000207565b5090565b5b8082111562000203576000815560010162000208565b6000806040838503121562000231578182fd5b82516001600160a01b038116811462000248578283fd5b6020939093015192949293505050565b600082198211156200027857634e487b7160e01b81526011600452602481fd5b500190565b6000826200029957634e487b7160e01b81526012600452602481fd5b500490565b61197880620002ae6000396000f3fe608060405234801561001057600080fd5b506004361061012c5760003560e01c80635f96dc11116100ad578063b3ab15fb11610071578063b3ab15fb146102c4578063b89e73c1146102d7578063d357169a146102ea578063dd63026e146102fd578063e2bbb1581461031057600080fd5b80635f96dc1114610246578063630b5ba11461024f57806393f1a40b1461025757806396805e541461029e5780639a25cefc146102b157600080fd5b8063441a3e70116100f4578063441a3e70146101e757806351eb05a6146101fa5780635312ea8e1461020d57806354575af414610220578063570ca7351461023357600080fd5b80631526fe271461013157806317caf6f11461017d5780631ab06ee514610194578063231f0c6a146101a957806343774864146101bc575b600080fd5b61014461013f3660046116af565b610323565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a0015b60405180910390f35b61018660045481565b604051908152602001610174565b6101a76101a2366004611755565b610371565b005b6101866101b7366004611755565b61041d565b6001546101cf906001600160a01b031681565b6040516001600160a01b039091168152602001610174565b6101a76101f5366004611755565b6106ed565b6101a76102083660046116af565b6108bd565b6101a761021b3660046116af565b610a2f565b6101a761022e36600461166e565b610adf565b6000546101cf906001600160a01b031681565b61018660055481565b6101a7610c24565b6102896102653660046116df565b60036020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610174565b6101a76102ac36600461170e565b610c4f565b6101866102bf3660046116af565b610e2d565b6101a76102d2366004611636565b610e4e565b6101866102e53660046116af565b610e9a565b6101866102f83660046116af565b610eb1565b61018661030b3660046116df565b610ec1565b6101a761031e366004611755565b61103a565b6002818154811061033357600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b6000546001600160a01b031633146103a45760405162461bcd60e51b815260040161039b906117c5565b60405180910390fd5b6103ac610c24565b6000600283815481106103cf57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201600481015490915060ff1615610416576104128261040c83600101546004546111ce90919063ffffffff16565b906111da565b6004555b6001015550565b600060025b60018160ff16106106d257600761043a60018361187f565b60ff166003811061045b57634e487b7160e01b600052603260045260246000fd5b015483106106c257600761047060018361187f565b60ff166003811061049157634e487b7160e01b600052603260045260246000fd5b015484106104da576104d2600a8260ff16600381106104c057634e487b7160e01b600052603260045260246000fd5b01546104cc85876111ce565b906111e6565b9150506106e7565b600061053f600a8360ff166003811061050357634e487b7160e01b600052603260045260246000fd5b01546104cc600761051560018761187f565b60ff166003811061053657634e487b7160e01b600052603260045260246000fd5b015487906111ce565b90508160ff166001141561057b5761057261056b600a60005b01546104cc88600760005b0154906111ce565b82906111da565b925050506106e7565b61058660018361187f565b91505b60018260ff16106106b35760076105a160018461187f565b60ff16600381106105c257634e487b7160e01b600052603260045260246000fd5b0154851061061e5761057261056b600a8460ff16600381106105f457634e487b7160e01b600052603260045260246000fd5b01546104cc8860078760ff166003811061056357634e487b7160e01b600052603260045260246000fd5b6106a161056b600a8460ff166003811061064857634e487b7160e01b600052603260045260246000fd5b01546104cc600761065a60018861187f565b60ff166003811061067b57634e487b7160e01b600052603260045260246000fd5b015460078760ff166003811061056357634e487b7160e01b600052603260045260246000fd5b90506106ac826118ce565b9150610589565b61057261056b600a6000610558565b6106cb816118ce565b9050610422565b50600a546106e4906104cc84866111ce565b90505b92915050565b600033905060006002848154811061071557634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922080546005909202909201925084111561078c5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015260640161039b565b610795856108bd565b60006107d282600101546107cc670de0b6b3a76400006107c6876003015487600001546111e690919063ffffffff16565b906111c2565b906111ce565b90508015610828576107e484826111f2565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260405161081f91815260200190565b60405180910390a25b841561085257815461083a90866111ce565b82558254610852906001600160a01b031685876112a8565b6003830154825461087091670de0b6b3a7640000916107c6916111e6565b600183015560405185815286906001600160a01b038616907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050565b6000600282815481106108e057634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502019050806002015442116108ff575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561094257600080fd5b505afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a91906116c7565b90508061098c57504260029091015550565b600482015460ff166109bd576004808301805460ff1916600190811790915583015490546109b9916111da565b6004555b60045415610a245760006109d583600201544261041d565b905060006109f66004546107c68660010154856111e690919063ffffffff16565b9050610a1c610a11846107c684670de0b6b3a76400006111e6565b6003860154906111da565b600385015550505b504260029091015550565b600060028281548110610a5257634e487b7160e01b600052603260045260246000fd5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610aa2916001600160a01b039190911690836112a8565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a350505050565b6000546001600160a01b03163314610b095760405162461bcd60e51b815260040161039b906117c5565b600854610b199062278d00611811565b421015610c0b576001546001600160a01b0384811691161415610b685760405162461bcd60e51b81526020600482015260076024820152662167616c61787960c81b604482015260640161039b565b60025460005b81811015610c0857600060028281548110610b9957634e487b7160e01b600052603260045260246000fd5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610bf75760405162461bcd60e51b815260206004820152600b60248201526a10b837b7b6173a37b5b2b760a91b604482015260640161039b565b50610c01816118eb565b9050610b6e565b50505b610c1f6001600160a01b03841682846112a8565b505050565b60025460005b81811015610c4b57610c3b816108bd565b610c44816118eb565b9050610c2a565b5050565b6000546001600160a01b03163314610c795760405162461bcd60e51b815260040161039b906117c5565b610c828361130b565b8115610c9057610c90610c24565b600554421015610cbc5780610ca85750600554610cd0565b600554811015610cb757506005545b610cd0565b801580610cc857504281105b15610cd05750425b600060055482111580610ce35750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610e2657600454610e2290866111da565b6004555b5050505050565b60068181548110610e3d57600080fd5b600091825260209091200154905081565b6000546001600160a01b03163314610e785760405162461bcd60e51b815260040161039b906117c5565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60078160038110610eaa57600080fd5b0154905081565b600a8160038110610eaa57600080fd5b60008060028481548110610ee557634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600380835260408086206001600160a01b038a81168852945280862060059590950290920190810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b158015610f5b57600080fd5b505afa158015610f6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9391906116c7565b9050836002015442118015610fa757508015155b15611004576000610fbc85600201544261041d565b90506000610fdd6004546107c68860010154856111e690919063ffffffff16565b9050610fff610ff8846107c684670de0b6b3a76400006111e6565b85906111da565b935050505b61102f83600101546107cc670de0b6b3a76400006107c68688600001546111e690919063ffffffff16565b979650505050505050565b600033905060006002848154811061106257634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526003825260408085206001600160a01b038816865290925292206005909102909101915061109c856108bd565b80541561112c5760006110d482600101546107cc670de0b6b3a76400006107c6876003015487600001546111e690919063ffffffff16565b9050801561112a576110e684826111f2565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260405161112191815260200190565b60405180910390a25b505b8315611158578154611149906001600160a01b03168430876113bc565b805461115590856111da565b81555b6003820154815461117691670de0b6b3a7640000916107c6916111e6565b600182015560405184815285906001600160a01b038516907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a35050505050565b60006106e48284611829565b60006106e48284611868565b60006106e48284611811565b60006106e48284611849565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561123657600080fd5b505afa15801561124a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126e91906116c7565b90508015610c1f578082111561129557600154610c1f906001600160a01b031684836112a8565b600154610c1f906001600160a01b031684845b6040516001600160a01b038316602482015260448101829052610c1f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526113fa565b60025460005b81811015610c1f57826001600160a01b03166002828154811061134457634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201546001600160a01b031614156113ac5760405162461bcd60e51b815260206004820181905260248201527f47616c617879526577617264506f6f6c3a206578697374696e6720706f6f6c3f604482015260640161039b565b6113b5816118eb565b9050611311565b6040516001600160a01b03808516602483015283166044820152606481018290526113f49085906323b872dd60e01b906084016112d4565b50505050565b600061144f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114cc9092919063ffffffff16565b805190915015610c1f578080602001905181019061146d9190611652565b610c1f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039b565b60606114db84846000856114e5565b90505b9392505050565b6060824710156115465760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161039b565b843b6115945760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039b565b600080866001600160a01b031685876040516115b09190611776565b60006040518083038185875af1925050503d80600081146115ed576040519150601f19603f3d011682016040523d82523d6000602084013e6115f2565b606091505b509150915061102f8282866060831561160c5750816114de565b82511561161c5782518084602001fd5b8160405162461bcd60e51b815260040161039b9190611792565b600060208284031215611647578081fd5b81356114de8161191c565b600060208284031215611663578081fd5b81516114de81611934565b600080600060608486031215611682578182fd5b833561168d8161191c565b92506020840135915060408401356116a48161191c565b809150509250925092565b6000602082840312156116c0578081fd5b5035919050565b6000602082840312156116d8578081fd5b5051919050565b600080604083850312156116f1578182fd5b8235915060208301356117038161191c565b809150509250929050565b60008060008060808587031215611723578081fd5b8435935060208501356117358161191c565b9250604085013561174581611934565b9396929550929360600135925050565b60008060408385031215611767578182fd5b50508035926020909101359150565b600082516117888184602087016118a2565b9190910192915050565b60208152600082518060208401526117b18160408501602087016118a2565b601f01601f19169190910160400192915050565b6020808252602c908201527f47616c617879526577617264506f6f6c3a2063616c6c6572206973206e6f742060408201526b3a34329037b832b930ba37b960a11b606082015260800190565b6000821982111561182457611824611906565b500190565b60008261184457634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561186357611863611906565b500290565b60008282101561187a5761187a611906565b500390565b600060ff821660ff84168082101561189957611899611906565b90039392505050565b60005b838110156118bd5781810151838201526020016118a5565b838111156113f45750506000910152565b600060ff8216806118e1576118e1611906565b6000190192915050565b60006000198214156118ff576118ff611906565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461193157600080fd5b50565b801515811461193157600080fdfea26469706673582212201f2c543a7c1a8ff7146c883c457f98c88235929f9e6764c7062181f55fe2f6bd64736f6c63430008040033000000000000000000000000bd174c9d2a564b2eb187bd6556ae1d12256d5add0000000000000000000000000000000000000000000000000000000061f06674
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061012c5760003560e01c80635f96dc11116100ad578063b3ab15fb11610071578063b3ab15fb146102c4578063b89e73c1146102d7578063d357169a146102ea578063dd63026e146102fd578063e2bbb1581461031057600080fd5b80635f96dc1114610246578063630b5ba11461024f57806393f1a40b1461025757806396805e541461029e5780639a25cefc146102b157600080fd5b8063441a3e70116100f4578063441a3e70146101e757806351eb05a6146101fa5780635312ea8e1461020d57806354575af414610220578063570ca7351461023357600080fd5b80631526fe271461013157806317caf6f11461017d5780631ab06ee514610194578063231f0c6a146101a957806343774864146101bc575b600080fd5b61014461013f3660046116af565b610323565b604080516001600160a01b03909616865260208601949094529284019190915260608301521515608082015260a0015b60405180910390f35b61018660045481565b604051908152602001610174565b6101a76101a2366004611755565b610371565b005b6101866101b7366004611755565b61041d565b6001546101cf906001600160a01b031681565b6040516001600160a01b039091168152602001610174565b6101a76101f5366004611755565b6106ed565b6101a76102083660046116af565b6108bd565b6101a761021b3660046116af565b610a2f565b6101a761022e36600461166e565b610adf565b6000546101cf906001600160a01b031681565b61018660055481565b6101a7610c24565b6102896102653660046116df565b60036020908152600092835260408084209091529082529020805460019091015482565b60408051928352602083019190915201610174565b6101a76102ac36600461170e565b610c4f565b6101866102bf3660046116af565b610e2d565b6101a76102d2366004611636565b610e4e565b6101866102e53660046116af565b610e9a565b6101866102f83660046116af565b610eb1565b61018661030b3660046116df565b610ec1565b6101a761031e366004611755565b61103a565b6002818154811061033357600080fd5b6000918252602090912060059091020180546001820154600283015460038401546004909401546001600160a01b0390931694509092909160ff1685565b6000546001600160a01b031633146103a45760405162461bcd60e51b815260040161039b906117c5565b60405180910390fd5b6103ac610c24565b6000600283815481106103cf57634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201600481015490915060ff1615610416576104128261040c83600101546004546111ce90919063ffffffff16565b906111da565b6004555b6001015550565b600060025b60018160ff16106106d257600761043a60018361187f565b60ff166003811061045b57634e487b7160e01b600052603260045260246000fd5b015483106106c257600761047060018361187f565b60ff166003811061049157634e487b7160e01b600052603260045260246000fd5b015484106104da576104d2600a8260ff16600381106104c057634e487b7160e01b600052603260045260246000fd5b01546104cc85876111ce565b906111e6565b9150506106e7565b600061053f600a8360ff166003811061050357634e487b7160e01b600052603260045260246000fd5b01546104cc600761051560018761187f565b60ff166003811061053657634e487b7160e01b600052603260045260246000fd5b015487906111ce565b90508160ff166001141561057b5761057261056b600a60005b01546104cc88600760005b0154906111ce565b82906111da565b925050506106e7565b61058660018361187f565b91505b60018260ff16106106b35760076105a160018461187f565b60ff16600381106105c257634e487b7160e01b600052603260045260246000fd5b0154851061061e5761057261056b600a8460ff16600381106105f457634e487b7160e01b600052603260045260246000fd5b01546104cc8860078760ff166003811061056357634e487b7160e01b600052603260045260246000fd5b6106a161056b600a8460ff166003811061064857634e487b7160e01b600052603260045260246000fd5b01546104cc600761065a60018861187f565b60ff166003811061067b57634e487b7160e01b600052603260045260246000fd5b015460078760ff166003811061056357634e487b7160e01b600052603260045260246000fd5b90506106ac826118ce565b9150610589565b61057261056b600a6000610558565b6106cb816118ce565b9050610422565b50600a546106e4906104cc84866111ce565b90505b92915050565b600033905060006002848154811061071557634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526003825260408085206001600160a01b0388168652909252922080546005909202909201925084111561078c5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b604482015260640161039b565b610795856108bd565b60006107d282600101546107cc670de0b6b3a76400006107c6876003015487600001546111e690919063ffffffff16565b906111c2565b906111ce565b90508015610828576107e484826111f2565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260405161081f91815260200190565b60405180910390a25b841561085257815461083a90866111ce565b82558254610852906001600160a01b031685876112a8565b6003830154825461087091670de0b6b3a7640000916107c6916111e6565b600183015560405185815286906001600160a01b038616907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050565b6000600282815481106108e057634e487b7160e01b600052603260045260246000fd5b90600052602060002090600502019050806002015442116108ff575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561094257600080fd5b505afa158015610956573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061097a91906116c7565b90508061098c57504260029091015550565b600482015460ff166109bd576004808301805460ff1916600190811790915583015490546109b9916111da565b6004555b60045415610a245760006109d583600201544261041d565b905060006109f66004546107c68660010154856111e690919063ffffffff16565b9050610a1c610a11846107c684670de0b6b3a76400006111e6565b6003860154906111da565b600385015550505b504260029091015550565b600060028281548110610a5257634e487b7160e01b600052603260045260246000fd5b600091825260208083208584526003825260408085203380875293528420805485825560018201959095556005909302018054909450919291610aa2916001600160a01b039190911690836112a8565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a350505050565b6000546001600160a01b03163314610b095760405162461bcd60e51b815260040161039b906117c5565b600854610b199062278d00611811565b421015610c0b576001546001600160a01b0384811691161415610b685760405162461bcd60e51b81526020600482015260076024820152662167616c61787960c81b604482015260640161039b565b60025460005b81811015610c0857600060028281548110610b9957634e487b7160e01b600052603260045260246000fd5b6000918252602090912060059091020180549091506001600160a01b0387811691161415610bf75760405162461bcd60e51b815260206004820152600b60248201526a10b837b7b6173a37b5b2b760a91b604482015260640161039b565b50610c01816118eb565b9050610b6e565b50505b610c1f6001600160a01b03841682846112a8565b505050565b60025460005b81811015610c4b57610c3b816108bd565b610c44816118eb565b9050610c2a565b5050565b6000546001600160a01b03163314610c795760405162461bcd60e51b815260040161039b906117c5565b610c828361130b565b8115610c9057610c90610c24565b600554421015610cbc5780610ca85750600554610cd0565b600554811015610cb757506005545b610cd0565b801580610cc857504281105b15610cd05750425b600060055482111580610ce35750428211155b6040805160a0810182526001600160a01b03878116825260208201898152928201868152600060608401818152861580156080870190815260028054600181018255945295517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace600590940293840180546001600160a01b031916919096161790945594517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acf82015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad082015592517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad184015590517f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ad2909201805460ff191692151592909217909155909150610e2657600454610e2290866111da565b6004555b5050505050565b60068181548110610e3d57600080fd5b600091825260209091200154905081565b6000546001600160a01b03163314610e785760405162461bcd60e51b815260040161039b906117c5565b600080546001600160a01b0319166001600160a01b0392909216919091179055565b60078160038110610eaa57600080fd5b0154905081565b600a8160038110610eaa57600080fd5b60008060028481548110610ee557634e487b7160e01b600052603260045260246000fd5b60009182526020808320878452600380835260408086206001600160a01b038a81168852945280862060059590950290920190810154815492516370a0823160e01b815230600482015291965093949291909116906370a082319060240160206040518083038186803b158015610f5b57600080fd5b505afa158015610f6f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9391906116c7565b9050836002015442118015610fa757508015155b15611004576000610fbc85600201544261041d565b90506000610fdd6004546107c68860010154856111e690919063ffffffff16565b9050610fff610ff8846107c684670de0b6b3a76400006111e6565b85906111da565b935050505b61102f83600101546107cc670de0b6b3a76400006107c68688600001546111e690919063ffffffff16565b979650505050505050565b600033905060006002848154811061106257634e487b7160e01b600052603260045260246000fd5b600091825260208083208784526003825260408085206001600160a01b038816865290925292206005909102909101915061109c856108bd565b80541561112c5760006110d482600101546107cc670de0b6b3a76400006107c6876003015487600001546111e690919063ffffffff16565b9050801561112a576110e684826111f2565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260405161112191815260200190565b60405180910390a25b505b8315611158578154611149906001600160a01b03168430876113bc565b805461115590856111da565b81555b6003820154815461117691670de0b6b3a7640000916107c6916111e6565b600182015560405184815285906001600160a01b038516907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a35050505050565b60006106e48284611829565b60006106e48284611868565b60006106e48284611811565b60006106e48284611849565b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561123657600080fd5b505afa15801561124a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061126e91906116c7565b90508015610c1f578082111561129557600154610c1f906001600160a01b031684836112a8565b600154610c1f906001600160a01b031684845b6040516001600160a01b038316602482015260448101829052610c1f90849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526113fa565b60025460005b81811015610c1f57826001600160a01b03166002828154811061134457634e487b7160e01b600052603260045260246000fd5b60009182526020909120600590910201546001600160a01b031614156113ac5760405162461bcd60e51b815260206004820181905260248201527f47616c617879526577617264506f6f6c3a206578697374696e6720706f6f6c3f604482015260640161039b565b6113b5816118eb565b9050611311565b6040516001600160a01b03808516602483015283166044820152606481018290526113f49085906323b872dd60e01b906084016112d4565b50505050565b600061144f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114cc9092919063ffffffff16565b805190915015610c1f578080602001905181019061146d9190611652565b610c1f5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161039b565b60606114db84846000856114e5565b90505b9392505050565b6060824710156115465760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161039b565b843b6115945760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161039b565b600080866001600160a01b031685876040516115b09190611776565b60006040518083038185875af1925050503d80600081146115ed576040519150601f19603f3d011682016040523d82523d6000602084013e6115f2565b606091505b509150915061102f8282866060831561160c5750816114de565b82511561161c5782518084602001fd5b8160405162461bcd60e51b815260040161039b9190611792565b600060208284031215611647578081fd5b81356114de8161191c565b600060208284031215611663578081fd5b81516114de81611934565b600080600060608486031215611682578182fd5b833561168d8161191c565b92506020840135915060408401356116a48161191c565b809150509250925092565b6000602082840312156116c0578081fd5b5035919050565b6000602082840312156116d8578081fd5b5051919050565b600080604083850312156116f1578182fd5b8235915060208301356117038161191c565b809150509250929050565b60008060008060808587031215611723578081fd5b8435935060208501356117358161191c565b9250604085013561174581611934565b9396929550929360600135925050565b60008060408385031215611767578182fd5b50508035926020909101359150565b600082516117888184602087016118a2565b9190910192915050565b60208152600082518060208401526117b18160408501602087016118a2565b601f01601f19169190910160400192915050565b6020808252602c908201527f47616c617879526577617264506f6f6c3a2063616c6c6572206973206e6f742060408201526b3a34329037b832b930ba37b960a11b606082015260800190565b6000821982111561182457611824611906565b500190565b60008261184457634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561186357611863611906565b500290565b60008282101561187a5761187a611906565b500390565b600060ff821660ff84168082101561189957611899611906565b90039392505050565b60005b838110156118bd5781810151838201526020016118a5565b838111156113f45750506000910152565b600060ff8216806118e1576118e1611906565b6000190192915050565b60006000198214156118ff576118ff611906565b5060010190565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b038116811461193157600080fd5b50565b801515811461193157600080fdfea26469706673582212201f2c543a7c1a8ff7146c883c457f98c88235929f9e6764c7062181f55fe2f6bd64736f6c63430008040033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000bd174c9d2a564b2eb187bd6556ae1d12256d5add0000000000000000000000000000000000000000000000000000000061f06674
-----Decoded View---------------
Arg [0] : _galaxy (address): 0xBd174C9d2A564b2eB187BD6556ae1d12256D5adD
Arg [1] : _poolStartTime (uint256): 1643144820
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000bd174c9d2a564b2eb187bd6556ae1d12256d5add
Arg [1] : 0000000000000000000000000000000000000000000000000000000061f06674
Deployed Bytecode Sourcemap
22453:11394:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23313:26;;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4205:32:1;;;4187:51;;4269:2;4254:18;;4247:34;;;;4297:18;;;4290:34;;;;4355:2;4340:18;;4333:34;4411:14;4404:22;4398:3;4383:19;;4376:51;4174:3;4159:19;23313:26:0;;;;;;;;23558:34;;;;;;;;;7944:25:1;;;7932:2;7917:18;23558:34:0;7899:76:1;26604:321:0;;;;;;:::i;:::-;;:::i;:::-;;27004:1346;;;;;;:::i;:::-;;:::i;23257:20::-;;;;;-1:-1:-1;;;;;23257:20:0;;;;;;-1:-1:-1;;;;;2997:32:1;;;2979:51;;2967:2;2952:18;23257:20:0;2934:102:1;31355:816:0;;;;;;:::i;:::-;;:::i;29536:916::-;;;;;;:::i;:::-;;:::i;32242:377::-;;;;;;:::i;:::-;;:::i;33216:628::-;;;;;;:::i;:::-;;:::i;22573:23::-;;;;;-1:-1:-1;;;;;22573:23:0;;;23642:28;;;;;;29280:180;;;:::i;23397:64::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8154:25:1;;;8210:2;8195:18;;8188:34;;;;8127:18;23397:64:0;8109:119:1;25334:1175:0;;;;;;:::i;:::-;;:::i;23679:59::-;;;;;;:::i;:::-;;:::i;33107:101::-;;;;;;:::i;:::-;;:::i;23792:31::-;;;;;;:::i;:::-;;:::i;23919:38::-;;;;;;:::i;:::-;;:::i;28413:784::-;;;;;;:::i;:::-;;:::i;30487:832::-;;;;;;:::i;:::-;;:::i;23313:26::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;23313:26:0;;;;-1:-1:-1;23313:26:0;;;;;;;:::o;26604:321::-;24895:8;;-1:-1:-1;;;;;24895:8:0;24907:10;24895:22;24887:79;;;;-1:-1:-1;;;24887:79:0;;;;;;;:::i;:::-;;;;;;;;;26683:17:::1;:15;:17::i;:::-;26711:21;26735:8;26744:4;26735:14;;;;;;-1:-1:-1::0;;;26735:14:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;26764;::::0;::::1;::::0;26735;;-1:-1:-1;26764:14:0::1;;26760:118;;;26813:53;26854:11;26813:36;26833:4;:15;;;26813;;:19;;:36;;;;:::i;:::-;:40:::0;::::1;:53::i;:::-;26795:15;:71:::0;26760:118:::1;26888:15;;:29:::0;-1:-1:-1;26604:321:0:o;27004:1346::-;27089:7;27130:1;27109:1165;27144:1;27133:7;:12;;;27109:1165;;27188:13;27202:11;27212:1;27202:7;:11;:::i;:::-;27188:26;;;;;;;-1:-1:-1;;;27188:26:0;;;;;;;;;;;27177:7;:37;27173:1090;;27252:13;27266:11;27276:1;27266:7;:11;:::i;:::-;27252:26;;;;;;;-1:-1:-1;;;27252:26:0;;;;;;;;;;;27239:9;:39;27235:152;;27310:57;27337:20;27358:7;27337:29;;;;;;;-1:-1:-1;;;27337:29:0;;;;;;;;;;;27310:22;:7;27322:9;27310:11;:22::i;:::-;:26;;:57::i;:::-;27303:64;;;;;27235:152;27407:24;27434:74;27478:20;27499:7;27478:29;;;;;;;-1:-1:-1;;;27478:29:0;;;;;;;;;;;27434:39;27446:13;27460:11;27470:1;27460:7;:11;:::i;:::-;27446:26;;;;;;;-1:-1:-1;;;27446:26:0;;;;;;;;;;;27434:7;;:11;:39::i;:74::-;27407:101;;27531:7;:12;;27542:1;27531:12;27527:150;;;27575:82;27596:60;27632:20;27653:1;27632:23;;;27596:31;27617:9;27596:13;27610:1;27596:16;;;;:20;:31::i;:60::-;27575:16;;:20;:82::i;:::-;27568:89;;;;;;27527:150;27710:11;27720:1;27710:7;:11;:::i;:::-;27700:21;;27695:445;27734:1;27723:7;:12;;;27695:445;;27788:13;27802:11;27812:1;27802:7;:11;:::i;:::-;27788:26;;;;;;;-1:-1:-1;;;27788:26:0;;;;;;;;;;;27775:9;:39;27771:197;;27850:94;27871:72;27913:20;27934:7;27913:29;;;;;;;-1:-1:-1;;;27913:29:0;;;;;;;;;;;27871:37;27898:9;27871:13;27885:7;27871:22;;;;;;;-1:-1:-1;;;27871:22:0;;;;;;;;27771:197;28009:111;28030:89;28089:20;28110:7;28089:29;;;;;;;-1:-1:-1;;;28089:29:0;;;;;;;;;;;28030:54;28057:13;28071:11;28081:1;28071:7;:11;:::i;:::-;28057:26;;;;;;;-1:-1:-1;;;28057:26:0;;;;;;;;;;;28030:13;28044:7;28030:22;;;;;;;-1:-1:-1;;;28030:22:0;;;;;;;;28009:111;27990:130;-1:-1:-1;27737:9:0;;;:::i;:::-;;;27695:445;;;28165:82;28186:60;28222:20;28243:1;28222:23;;27173:1090;27147:9;;;:::i;:::-;;;27109:1165;;;-1:-1:-1;28318:20:0;:23;28291:51;;:22;:7;28303:9;28291:11;:22::i;:51::-;28284:58;;27004:1346;;;;;:::o;31355:816::-;31422:15;31440:10;31422:28;;31461:21;31485:8;31494:4;31485:14;;;;;;-1:-1:-1;;;31485:14:0;;;;;;;;;;;;;;;;;31534;;;:8;:14;;;;;;-1:-1:-1;;;;;31534:23:0;;;;;;;;;31576:11;;31485:14;;;;;;;;-1:-1:-1;31576:22:0;-1:-1:-1;31576:22:0;31568:53;;;;-1:-1:-1;;;31568:53:0;;6881:2:1;31568:53:0;;;6863:21:1;6920:2;6900:18;;;6893:30;-1:-1:-1;;;6939:18:1;;;6932:48;6997:18;;31568:53:0;6853:168:1;31568:53:0;31632:16;31643:4;31632:10;:16::i;:::-;31659;31678:70;31732:4;:15;;;31678:49;31722:4;31678:39;31694:4;:22;;;31678:4;:11;;;:15;;:39;;;;:::i;:::-;:43;;:49::i;:::-;:53;;:70::i;:::-;31659:89;-1:-1:-1;31763:12:0;;31759:131;;31792:37;31811:7;31820:8;31792:18;:37::i;:::-;31860:7;-1:-1:-1;;;;;31849:29:0;;31869:8;31849:29;;;;7944:25:1;;7932:2;7917:18;;7899:76;31849:29:0;;;;;;;;31759:131;31904:11;;31900:138;;31946:11;;:24;;31962:7;31946:15;:24::i;:::-;31932:38;;31985:10;;:41;;-1:-1:-1;;;;;31985:10:0;32009:7;32018;31985:23;:41::i;:::-;32082:22;;;;32066:11;;:49;;32110:4;;32066:39;;:15;:39::i;:49::-;32048:15;;;:67;32131:32;;7944:25:1;;;32149:4:0;;-1:-1:-1;;;;;32131:32:0;;;;;7932:2:1;7917:18;32131:32:0;;;;;;;31355:816;;;;;;:::o;29536:916::-;29588:21;29612:8;29621:4;29612:14;;;;;;-1:-1:-1;;;29612:14:0;;;;;;;;;;;;;;;;;;;29588:38;;29660:4;:19;;;29641:15;:38;29637:77;;29696:7;29536:916;:::o;29637:77::-;29746:10;;:35;;-1:-1:-1;;;29746:35:0;;29775:4;29746:35;;;2979:51:1;29724:19:0;;-1:-1:-1;;;;;29746:10:0;;:20;;2952:18:1;;29746:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;29724:57;-1:-1:-1;29796:16:0;29792:107;;-1:-1:-1;29851:15:0;29829:19;;;;:37;-1:-1:-1;29536:916:0:o;29792:107::-;29914:14;;;;;;29909:138;;29945:14;;;;:21;;-1:-1:-1;;29945:21:0;29962:4;29945:21;;;;;;30019:15;;;29999;;:36;;:19;:36::i;:::-;29981:15;:54;29909:138;30061:15;;:19;30057:340;;30097:24;30124:56;30143:4;:19;;;30164:15;30124:18;:56::i;:::-;30097:83;;30195:21;30219:58;30261:15;;30219:37;30240:4;:15;;;30219:16;:20;;:37;;;;:::i;:58::-;30195:82;-1:-1:-1;30317:68:0;30344:40;30372:11;30344:23;30195:82;30362:4;30344:17;:23::i;:40::-;30317:22;;;;;:26;:68::i;:::-;30292:22;;;:93;-1:-1:-1;;30057:340:0;-1:-1:-1;30429:15:0;30407:19;;;;:37;-1:-1:-1;29536:916:0:o;32242:377::-;32301:21;32325:8;32334:4;32325:14;;;;;;-1:-1:-1;;;32325:14:0;;;;;;;;;;;;;;;;;32374;;;:8;:14;;;;;;32389:10;32374:26;;;;;;;32429:11;;32451:15;;;-1:-1:-1;32477:15:0;;:19;;;;32325:14;;;;;32507:10;;32325:14;;-1:-1:-1;32374:26:0;;32429:11;32507:44;;-1:-1:-1;;;;;32507:10:0;;;;;32429:11;32507:23;:44::i;:::-;32567;;7944:25:1;;;32597:4:0;;32585:10;;32567:44;;7932:2:1;7917:18;32567:44:0;;;;;;;32242:377;;;;:::o;33216:628::-;24895:8;;-1:-1:-1;;;;;24895:8:0;24907:10;24895:22;24887:79;;;;-1:-1:-1;;;24887:79:0;;;;;;;:::i;:::-;33386:16;;:26:::1;::::0;33405:7:::1;33386:26;:::i;:::-;33368:15;:44;33364:431;;;33526:6;::::0;-1:-1:-1;;;;;33516:16:0;;::::1;33526:6:::0;::::1;33516:16;;33508:36;;;::::0;-1:-1:-1;;;33508:36:0;;5368:2:1;33508:36:0::1;::::0;::::1;5350:21:1::0;5407:1;5387:18;;;5380:29;-1:-1:-1;;;5425:18:1;;;5418:37;5472:18;;33508:36:0::1;5340:156:1::0;33508:36:0::1;33576:8;:15:::0;33559:14:::1;33606:178;33634:6;33628:3;:12;33606:178;;;33668:21;33692:8;33701:3;33692:13;;;;;;-1:-1:-1::0;;;33692:13:0::1;;;;;;;;;;::::0;;;::::1;::::0;;;::::1;::::0;;::::1;;33742:10:::0;;33692:13;;-1:-1:-1;;;;;;33732:20:0;;::::1;33742:10:::0;::::1;33732:20;;33724:44;;;::::0;-1:-1:-1;;;33724:44:0;;5028:2:1;33724:44:0::1;::::0;::::1;5010:21:1::0;5067:2;5047:18;;;5040:30;-1:-1:-1;;;5086:18:1;;;5079:41;5137:18;;33724:44:0::1;5000:161:1::0;33724:44:0::1;-1:-1:-1::0;33642:5:0::1;::::0;::::1;:::i;:::-;;;33606:178;;;;33364:431;;33805:31;-1:-1:-1::0;;;;;33805:19:0;::::1;33825:2:::0;33829:6;33805:19:::1;:31::i;:::-;33216:628:::0;;;:::o;29280:180::-;29342:8;:15;29325:14;29368:85;29396:6;29390:3;:12;29368:85;;;29426:15;29437:3;29426:10;:15::i;:::-;29404:5;;;:::i;:::-;;;29368:85;;;;29280:180;:::o;25334:1175::-;24895:8;;-1:-1:-1;;;;;24895:8:0;24907:10;24895:22;24887:79;;;;-1:-1:-1;;;24887:79:0;;;;;;;:::i;:::-;25500:26:::1;25519:6;25500:18;:26::i;:::-;25541:11;25537:61;;;25569:17;:15;:17::i;:::-;25630:13;;25612:15;:31;25608:534;;;25697:20:::0;25693:243:::1;;-1:-1:-1::0;25756:13:0::1;::::0;25608:534:::1;;25693:243;25832:13;;25814:15;:31;25810:111;;;-1:-1:-1::0;25888:13:0::1;::::0;25810:111:::1;25608:534;;;26004:20:::0;;;:57:::1;;;26046:15;26028;:33;26004:57;26000:131;;;-1:-1:-1::0;26100:15:0::1;26000:131;26152:15;26190:13;;26171:15;:32;;26170:74;;;;26228:15;26209;:34;;26170:74;26269:128;::::0;;::::1;::::0;::::1;::::0;;-1:-1:-1;;;;;26269:128:0;;::::1;::::0;;::::1;::::0;::::1;::::0;;;;;;;;;-1:-1:-1;26269:128:0;;;;;;;::::1;::::0;::::1;::::0;;;;;;26255:8:::1;:143:::0;;::::1;::::0;::::1;::::0;;;;;;;::::1;::::0;;::::1;::::0;;::::1;::::0;;-1:-1:-1;;;;;;26255:143:0::1;::::0;;;::::1;;::::0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;26255:143:0::1;::::0;::::1;;::::0;;;::::1;::::0;;;26269:128;;-1:-1:-1;26409:93:0::1;;26458:15;::::0;:32:::1;::::0;26478:11;26458:19:::1;:32::i;:::-;26440:15;:50:::0;26409:93:::1;24977:1;25334:1175:::0;;;;:::o;23679:59::-;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;23679:59:0;:::o;33107:101::-;24895:8;;-1:-1:-1;;;;;24895:8:0;24907:10;24895:22;24887:79;;;;-1:-1:-1;;;24887:79:0;;;;;;;:::i;:::-;33180:8:::1;:20:::0;;-1:-1:-1;;;;;;33180:20:0::1;-1:-1:-1::0;;;;;33180:20:0;;;::::1;::::0;;;::::1;::::0;;33107:101::o;23792:31::-;;;;;;;;;;;;;;;-1:-1:-1;23792:31:0;:::o;23919:38::-;;;;;;;;;;;28413:784;28485:7;28505:21;28529:8;28538:4;28529:14;;;;;;-1:-1:-1;;;28529:14:0;;;;;;;;;;;;;;;;;28578;;;:8;:14;;;;;;;-1:-1:-1;;;;;28578:21:0;;;;;;;;;;28529:14;;;;;;;;28638:22;;;;28693:10;;:35;;-1:-1:-1;;;28693:35:0;;28722:4;28693:35;;;2979:51:1;28529:14:0;;-1:-1:-1;28578:21:0;;28529:14;28693:10;;;;;:20;;2952:18:1;;28693:35:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;28671:57;;28761:4;:19;;;28743:15;:37;:57;;;;-1:-1:-1;28784:16:0;;;28743:57;28739:368;;;28817:24;28844:56;28863:4;:19;;;28884:15;28844:18;:56::i;:::-;28817:83;;28915:21;28939:58;28981:15;;28939:37;28960:4;:15;;;28939:16;:20;;:37;;;;:::i;:58::-;28915:82;-1:-1:-1;29032:63:0;29054:40;29082:11;29054:23;28915:82;29072:4;29054:17;:23::i;:40::-;29032:17;;:21;:63::i;:::-;29012:83;;28739:368;;;29124:65;29173:4;:15;;;29124:44;29163:4;29124:34;29140:17;29124:4;:11;;;:15;;:34;;;;:::i;:65::-;29117:72;28413:784;-1:-1:-1;;;;;;;28413:784:0:o;30487:832::-;30553:15;30571:10;30553:28;;30592:21;30616:8;30625:4;30616:14;;;;;;-1:-1:-1;;;30616:14:0;;;;;;;;;;;;;;;;;30665;;;:8;:14;;;;;;-1:-1:-1;;;;;30665:23:0;;;;;;;;;30616:14;;;;;;;;-1:-1:-1;30699:16:0;30674:4;30699:10;:16::i;:::-;30730:11;;:15;30726:294;;30762:16;30781:70;30835:4;:15;;;30781:49;30825:4;30781:39;30797:4;:22;;;30781:4;:11;;;:15;;:39;;;;:::i;:70::-;30762:89;-1:-1:-1;30870:12:0;;30866:143;;30903:37;30922:7;30931:8;30903:18;:37::i;:::-;30975:7;-1:-1:-1;;;;;30964:29:0;;30984:8;30964:29;;;;7944:25:1;;7932:2;7917:18;;7899:76;30964:29:0;;;;;;;;30866:143;30726:294;;31034:11;;31030:157;;31062:10;;:60;;-1:-1:-1;;;;;31062:10:0;31090:7;31107:4;31114:7;31062:27;:60::i;:::-;31151:11;;:24;;31167:7;31151:15;:24::i;:::-;31137:38;;31030:157;31231:22;;;;31215:11;;:49;;31259:4;;31215:39;;:15;:39::i;:49::-;31197:15;;;:67;31280:31;;7944:25:1;;;31297:4:0;;-1:-1:-1;;;;;31280:31:0;;;;;7932:2:1;7917:18;31280:31:0;;;;;;;30487:832;;;;;:::o;19162:98::-;19220:7;19247:5;19251:1;19247;:5;:::i;18406:98::-;18464:7;18491:5;18495:1;18491;:5;:::i;18025:98::-;18083:7;18110:5;18114:1;18110;:5;:::i;18763:98::-;18821:7;18848:5;18852:1;18848;:5;:::i;32734:365::-;32833:6;;:31;;-1:-1:-1;;;32833:31:0;;32858:4;32833:31;;;2979:51:1;32812:18:0;;-1:-1:-1;;;;;32833:6:0;;:16;;2952:18:1;;32833:31:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;32812:52;-1:-1:-1;32879:14:0;;32875:217;;32924:10;32914:7;:20;32910:171;;;32955:6;;:36;;-1:-1:-1;;;;;32955:6:0;32975:3;32980:10;32955:19;:36::i;32910:171::-;33032:6;;:33;;-1:-1:-1;;;;;33032:6:0;33052:3;33057:7;11859:211;12003:58;;-1:-1:-1;;;;;3613:32:1;;12003:58:0;;;3595:51:1;3662:18;;;3655:34;;;11976:86:0;;11996:5;;-1:-1:-1;;;12026:23:0;3568:18:1;;12003:58:0;;;;-1:-1:-1;;12003:58:0;;;;;;;;;;;;;;-1:-1:-1;;;;;12003:58:0;-1:-1:-1;;;;;;12003:58:0;;;;;;;;;;11976:19;:86::i;24994:262::-;25079:8;:15;25062:14;25105:144;25133:6;25127:3;:12;25105:144;;;25194:6;-1:-1:-1;;;;;25171:29:0;:8;25180:3;25171:13;;;;;;-1:-1:-1;;;25171:13:0;;;;;;;;;;;;;;;;;;;;;;:19;-1:-1:-1;;;;;25171:19:0;:29;;25163:74;;;;-1:-1:-1;;;25163:74:0;;7639:2:1;25163:74:0;;;7621:21:1;;;7658:18;;;7651:30;7717:34;7697:18;;;7690:62;7769:18;;25163:74:0;7611:182:1;25163:74:0;25141:5;;;:::i;:::-;;;25105:144;;12078:248;12249:68;;-1:-1:-1;;;;;3299:15:1;;;12249:68:0;;;3281:34:1;3351:15;;3331:18;;;3324:43;3383:18;;;3376:34;;;12222:96:0;;12242:5;;-1:-1:-1;;;12272:27:0;3216:18:1;;12249:68:0;3198:218:1;12222:96:0;12078:248;;;;:::o;14432:716::-;14856:23;14882:69;14910:4;14882:69;;;;;;;;;;;;;;;;;14890:5;-1:-1:-1;;;;;14882:27:0;;;:69;;;;;:::i;:::-;14966:17;;14856:95;;-1:-1:-1;14966:21:0;14962:179;;15063:10;15052:30;;;;;;;;;;;;:::i;:::-;15044:85;;;;-1:-1:-1;;;15044:85:0;;7228:2:1;15044:85:0;;;7210:21:1;7267:2;7247:18;;;7240:30;7306:34;7286:18;;;7279:62;-1:-1:-1;;;7357:18:1;;;7350:40;7407:19;;15044:85:0;7200:232:1;6631:229:0;6768:12;6800:52;6822:6;6830:4;6836:1;6839:12;6800:21;:52::i;:::-;6793:59;;6631:229;;;;;;:::o;7751:510::-;7921:12;7979:5;7954:21;:30;;7946:81;;;;-1:-1:-1;;;7946:81:0;;5703:2:1;7946:81:0;;;5685:21:1;5742:2;5722:18;;;5715:30;5781:34;5761:18;;;5754:62;-1:-1:-1;;;5832:18:1;;;5825:36;5878:19;;7946:81:0;5675:228:1;7946:81:0;4148:20;;8038:60;;;;-1:-1:-1;;;8038:60:0;;6523:2:1;8038:60:0;;;6505:21:1;6562:2;6542:18;;;6535:30;6601:31;6581:18;;;6574:59;6650:18;;8038:60:0;6495:179:1;8038:60:0;8112:12;8126:23;8153:6;-1:-1:-1;;;;;8153:11:0;8172:5;8179:4;8153:31;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8111:73;;;;8202:51;8219:7;8228:10;8240:12;10587;10616:7;10612:530;;;-1:-1:-1;10647:10:0;10640:17;;10612:530;10761:17;;:21;10757:374;;10959:10;10953:17;11020:15;11007:10;11003:2;10999:19;10992:44;10907:148;11102:12;11095:20;;-1:-1:-1;;;11095:20:0;;;;;;;;:::i;14:257:1:-;73:6;126:2;114:9;105:7;101:23;97:32;94:2;;;147:6;139;132:22;94:2;191:9;178:23;210:31;235:5;210:31;:::i;276:255::-;343:6;396:2;384:9;375:7;371:23;367:32;364:2;;;417:6;409;402:22;364:2;454:9;448:16;473:28;495:5;473:28;:::i;536:479::-;626:6;634;642;695:2;683:9;674:7;670:23;666:32;663:2;;;716:6;708;701:22;663:2;760:9;747:23;779:31;804:5;779:31;:::i;:::-;829:5;-1:-1:-1;881:2:1;866:18;;853:32;;-1:-1:-1;937:2:1;922:18;;909:32;950:33;909:32;950:33;:::i;:::-;1002:7;992:17;;;653:362;;;;;:::o;1020:190::-;1079:6;1132:2;1120:9;1111:7;1107:23;1103:32;1100:2;;;1153:6;1145;1138:22;1100:2;-1:-1:-1;1181:23:1;;1090:120;-1:-1:-1;1090:120:1:o;1215:194::-;1285:6;1338:2;1326:9;1317:7;1313:23;1309:32;1306:2;;;1359:6;1351;1344:22;1306:2;-1:-1:-1;1387:16:1;;1296:113;-1:-1:-1;1296:113:1:o;1414:325::-;1482:6;1490;1543:2;1531:9;1522:7;1518:23;1514:32;1511:2;;;1564:6;1556;1549:22;1511:2;1605:9;1592:23;1582:33;;1665:2;1654:9;1650:18;1637:32;1678:31;1703:5;1678:31;:::i;:::-;1728:5;1718:15;;;1501:238;;;;;:::o;1744:542::-;1840:6;1848;1856;1864;1917:3;1905:9;1896:7;1892:23;1888:33;1885:2;;;1939:6;1931;1924:22;1885:2;1980:9;1967:23;1957:33;;2040:2;2029:9;2025:18;2012:32;2053:31;2078:5;2053:31;:::i;:::-;2103:5;-1:-1:-1;2160:2:1;2145:18;;2132:32;2173:30;2132:32;2173:30;:::i;:::-;1875:411;;;;-1:-1:-1;2222:7:1;;2276:2;2261:18;2248:32;;-1:-1:-1;;1875:411:1:o;2291:258::-;2359:6;2367;2420:2;2408:9;2399:7;2395:23;2391:32;2388:2;;;2441:6;2433;2426:22;2388:2;-1:-1:-1;;2469:23:1;;;2539:2;2524:18;;;2511:32;;-1:-1:-1;2378:171:1:o;2554:274::-;2683:3;2721:6;2715:13;2737:53;2783:6;2778:3;2771:4;2763:6;2759:17;2737:53;:::i;:::-;2806:16;;;;;2691:137;-1:-1:-1;;2691:137:1:o;4438:383::-;4587:2;4576:9;4569:21;4550:4;4619:6;4613:13;4662:6;4657:2;4646:9;4642:18;4635:34;4678:66;4737:6;4732:2;4721:9;4717:18;4712:2;4704:6;4700:15;4678:66;:::i;:::-;4805:2;4784:15;-1:-1:-1;;4780:29:1;4765:45;;;;4812:2;4761:54;;4559:262;-1:-1:-1;;4559:262:1:o;5908:408::-;6110:2;6092:21;;;6149:2;6129:18;;;6122:30;6188:34;6183:2;6168:18;;6161:62;-1:-1:-1;;;6254:2:1;6239:18;;6232:42;6306:3;6291:19;;6082:234::o;8233:128::-;8273:3;8304:1;8300:6;8297:1;8294:13;8291:2;;;8310:18;;:::i;:::-;-1:-1:-1;8346:9:1;;8281:80::o;8366:217::-;8406:1;8432;8422:2;;-1:-1:-1;;;8457:31:1;;8511:4;8508:1;8501:15;8539:4;8464:1;8529:15;8422:2;-1:-1:-1;8568:9:1;;8412:171::o;8588:168::-;8628:7;8694:1;8690;8686:6;8682:14;8679:1;8676:21;8671:1;8664:9;8657:17;8653:45;8650:2;;;8701:18;;:::i;:::-;-1:-1:-1;8741:9:1;;8640:116::o;8761:125::-;8801:4;8829:1;8826;8823:8;8820:2;;;8834:18;;:::i;:::-;-1:-1:-1;8871:9:1;;8810:76::o;8891:195::-;8929:4;8966;8963:1;8959:12;8998:4;8995:1;8991:12;9023:3;9018;9015:12;9012:2;;;9030:18;;:::i;:::-;9067:13;;;8938:148;-1:-1:-1;;;8938:148:1:o;9091:258::-;9163:1;9173:113;9187:6;9184:1;9181:13;9173:113;;;9263:11;;;9257:18;9244:11;;;9237:39;9209:2;9202:10;9173:113;;;9304:6;9301:1;9298:13;9295:2;;;-1:-1:-1;;9339:1:1;9321:16;;9314:27;9144:205::o;9354:178::-;9391:3;9435:4;9428:5;9424:16;9459:7;9449:2;;9470:18;;:::i;:::-;-1:-1:-1;;9506:20:1;;9399:133;-1:-1:-1;;9399:133:1:o;9537:135::-;9576:3;-1:-1:-1;;9597:17:1;;9594:2;;;9617:18;;:::i;:::-;-1:-1:-1;9664:1:1;9653:13;;9584:88::o;9677:127::-;9738:10;9733:3;9729:20;9726:1;9719:31;9769:4;9766:1;9759:15;9793:4;9790:1;9783:15;9809:131;-1:-1:-1;;;;;9884:31:1;;9874:42;;9864:2;;9930:1;9927;9920:12;9864:2;9854:86;:::o;9945:118::-;10031:5;10024:13;10017:21;10010:5;10007:32;9997:2;;10053:1;10050;10043:12
Swarm Source
ipfs://1f2c543a7c1a8ff7146c883c457f98c88235929f9e6764c7062181f55fe2f6bd
Loading...
Loading
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in GLMR
Multichain Portfolio | 35 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
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.