Contract 0x60a288686E130101220bdAf12036AAa29b8676a7

 

Contract Overview

Balance:
0 ETH

ETH Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x240c42aac992e3696ddf3df846791a824dc9321639e881fb7383a1bfcc35a17bDeposit248777772022-09-16 12:29:3019 days 18 hrs ago0x668f0c4970d2c33fee942f4a2666b6f833d03040 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001821
0x7ac581d9528c0d90ad4d45e05c89b274eda73879ad9486babc410398517e362fDeposit248755402022-09-16 12:07:2519 days 18 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001736
0x5c0108e51075107b91164eeb4760dc8d2998a0846e9582aa9c474d53ec5e2f1eWithdraw248753182022-09-16 12:04:2619 days 18 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001236
0xf16aa6c80eace1856f0143adb7b7850965d07bd41d1a52f38855f0c7ed8b149aDeposit248650932022-09-16 9:57:5219 days 20 hrs ago0x111fbf7b389e024d09f35fb091d7d4479b321b0a IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001713
0xe18dab7d5ea1acae29a95a001fcc1dade6b48b67b543f786ef0044ae05775a01Withdraw248643342022-09-16 9:48:1119 days 21 hrs ago0x111fbf7b389e024d09f35fb091d7d4479b321b0a IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001716
0x04b9427bc4fd021f2360d08ed6eea8ad16db5ce5ac7a7d6ec3c2166bdbe3ee39Deposit248632762022-09-16 9:36:3119 days 21 hrs ago0xe1d802e5ebf7b2745f83735a717eb89db6373ba3 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00018886
0x027bfcd3b6a49eb7642bac9d3355b0eb98ce53d7796e627671e7111aed620569Withdraw248630882022-09-16 9:34:1919 days 21 hrs ago0xe1d802e5ebf7b2745f83735a717eb89db6373ba3 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00015341
0xc449246a617e79813e5b689a0f5d67ccbd444125513eeecb1d68db0e00e00a29Deposit248619642022-09-16 9:22:4719 days 21 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.0000184
0x937db1981ae7115355ce5312901d3525be0ed8c5300f9e1e3689dd8b76964059Withdraw248611992022-09-16 9:15:2919 days 21 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001269
0xc2dd0ef2c70cabef2aad0010664fbbc97f06ccef9ec5f81e3f758054aa33e9f0Deposit248608592022-09-16 9:12:2419 days 21 hrs ago0x111fbf7b389e024d09f35fb091d7d4479b321b0a IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001673
0x5f801eb2a7c95aaa97e90e4b3314532f21f4f6e5d726e6d1a22540486963941eWithdraw248521672022-09-16 8:02:5519 days 22 hrs ago0x45ea26c38bb45247d7121ac180be419bc3a1447e IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001244
0xb868bef6369a484a8f7e41982746861e723530e0d2ca48fd29827dc16c0d7380Withdraw248521312022-09-16 8:02:2519 days 22 hrs ago0x45ea26c38bb45247d7121ac180be419bc3a1447e IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001498
0x2c323959cdb96b724ebfcac5338a304e44b8d122be948b887e6a6f3f38a00472Withdraw248521232022-09-16 8:02:1919 days 22 hrs ago0x518f5520954828a32df28fb86d1522d1c5bb8e5c IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001182
0x94dfb1d96e00e7577f643f9f49ef29c3beb5454127b505791c1d9ecd6a140ebdWithdraw248521042022-09-16 8:01:5819 days 22 hrs ago0x45ea26c38bb45247d7121ac180be419bc3a1447e IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001241
0xe19b014aea15c5ee9fa9d324f618d2d38388f173ef4d5ea44dcac95a61f7ec81Deposit248512692022-09-16 7:51:4319 days 23 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001681
0xcb76ea35c3be81c29118b4a067c16459b0de56f7ccaf4993d053de9dbda718fbWithdraw248508312022-09-16 7:47:1619 days 23 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001197
0xa8c1bc017601514e5cc8c6cdb243572508ee8d9832c0b12e9240a9607a43aaaaWithdraw248461542022-09-16 6:48:0220 days 3 mins ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.0000133
0x7ff83bca558eb02e9afb1a374ef8ca0d69f624e655f0ad89b717aa77026402abDeposit248377122022-09-16 4:38:3020 days 2 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001847
0x7e5d2c7dddc17da559266efe95cf79c7e091b0d6e2e2fedfb91b7f1b16546785Withdraw248376652022-09-16 4:37:2520 days 2 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.0000135
0xc1f5636191269423dfec66b2fbc13eb03584b1ff9aaf289c242d08c355434aafDeposit248361602022-09-16 4:10:1820 days 2 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001691
0xf4d4a508c21a5568c1642122704173311d20d29f93d00faa388919d5f42d1c02Withdraw248360662022-09-16 4:08:4520 days 2 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001573
0xaf43ab9c96852f7d1b236a39aded9a3210ab89d80da73e3939f40d347517c647Withdraw248357902022-09-16 4:04:3720 days 2 hrs ago0x68014063515d0281593c7aaa4875bd625cf2ad93 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001495
0xc9249903685831a525f14b63f57a60647b6979a10652eedf652e89e1ccf2fe97Withdraw248352462022-09-16 3:57:3020 days 2 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001401
0x510dc11a357b0d96d2c80d8fe0bc9013b5df3ca46caff70af13ed9ba2bc217d3Withdraw248352152022-09-16 3:57:0320 days 2 hrs ago0x9b2efdf581b7a200e994c761604efd9af210c069 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001246
0x617e138a7c0363dd7fd614cff70ad79123bcd90735aa89087cd09b5d7cb4274bDeposit248220072022-09-16 1:01:4120 days 5 hrs ago0xc7ac06602727ec42a8b9cd20e6aacc192aca1da1 IN  0x60a288686e130101220bdaf12036aaa29b8676a70 ETH0.00001925
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x413ae2bcb0970e32f9cf1bcf95e958fba0b57e9000596eee592b19d130342eb3248777882022-09-16 12:29:4119 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 GMX: GMX Token0 ETH
0x413ae2bcb0970e32f9cf1bcf95e958fba0b57e9000596eee592b19d130342eb3248777882022-09-16 12:29:4119 days 18 hrs ago 0x9a4dbaaafbcbf2d48131e703ee9c893f8b94c005 0x60a288686e130101220bdaf12036aaa29b8676a70 ETH
0xa61409262e3fd8e37d85a3e602d02071a3cf70d57da0c10ad6c10b342d2256da248777842022-09-16 12:29:3519 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0xa61409262e3fd8e37d85a3e602d02071a3cf70d57da0c10ad6c10b342d2256da248777842022-09-16 12:29:3519 days 18 hrs ago 0x9a4dbaaafbcbf2d48131e703ee9c893f8b94c005 0x60a288686e130101220bdaf12036aaa29b8676a70 ETH
0x240c42aac992e3696ddf3df846791a824dc9321639e881fb7383a1bfcc35a17b248777772022-09-16 12:29:3019 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x240c42aac992e3696ddf3df846791a824dc9321639e881fb7383a1bfcc35a17b248777772022-09-16 12:29:3019 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x240c42aac992e3696ddf3df846791a824dc9321639e881fb7383a1bfcc35a17b248777772022-09-16 12:29:3019 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x82af49447d8a07e3bd95bd0d56f35241523fbab10 ETH
0x908456ccd1282adada7c404b7e8d844c1f540867df98b39c384f015d14bb0a33248777742022-09-16 12:29:2919 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0xda10009cbd5d07dd0cecc66161fc93d7c9000da10 ETH
0x908456ccd1282adada7c404b7e8d844c1f540867df98b39c384f015d14bb0a33248777742022-09-16 12:29:2919 days 18 hrs ago 0x9a4dbaaafbcbf2d48131e703ee9c893f8b94c005 0x60a288686e130101220bdaf12036aaa29b8676a70 ETH
0x4de931b922b57bd5910dc2ba919c9b7473c5f0642d6cc321872758c8f733de12248777702022-09-16 12:29:2719 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a70xbdf27f48ccffc0aace69c5232010ad75bf93ecfe0 ETH
0x4de931b922b57bd5910dc2ba919c9b7473c5f0642d6cc321872758c8f733de12248777702022-09-16 12:29:2719 days 18 hrs ago 0x9a4dbaaafbcbf2d48131e703ee9c893f8b94c005 0x60a288686e130101220bdaf12036aaa29b8676a70 ETH
0x7ac581d9528c0d90ad4d45e05c89b274eda73879ad9486babc410398517e362f248755402022-09-16 12:07:2519 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a70xbdf27f48ccffc0aace69c5232010ad75bf93ecfe0 ETH
0x7ac581d9528c0d90ad4d45e05c89b274eda73879ad9486babc410398517e362f248755402022-09-16 12:07:2519 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a70xbdf27f48ccffc0aace69c5232010ad75bf93ecfe0 ETH
0x7ac581d9528c0d90ad4d45e05c89b274eda73879ad9486babc410398517e362f248755402022-09-16 12:07:2519 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x3481abc8d64f6b34d6caf129c135924702e91b910 ETH
0x7ac581d9528c0d90ad4d45e05c89b274eda73879ad9486babc410398517e362f248755402022-09-16 12:07:2519 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x3481abc8d64f6b34d6caf129c135924702e91b910 ETH
0x7ac581d9528c0d90ad4d45e05c89b274eda73879ad9486babc410398517e362f248755402022-09-16 12:07:2519 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a70xbdf27f48ccffc0aace69c5232010ad75bf93ecfe0 ETH
0x5c0108e51075107b91164eeb4760dc8d2998a0846e9582aa9c474d53ec5e2f1e248753182022-09-16 12:04:2619 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x3481abc8d64f6b34d6caf129c135924702e91b910 ETH
0x5c0108e51075107b91164eeb4760dc8d2998a0846e9582aa9c474d53ec5e2f1e248753182022-09-16 12:04:2619 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x3481abc8d64f6b34d6caf129c135924702e91b910 ETH
0x5c0108e51075107b91164eeb4760dc8d2998a0846e9582aa9c474d53ec5e2f1e248753182022-09-16 12:04:2619 days 18 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a70xbdf27f48ccffc0aace69c5232010ad75bf93ecfe0 ETH
0xf16aa6c80eace1856f0143adb7b7850965d07bd41d1a52f38855f0c7ed8b149a248650932022-09-16 9:57:5219 days 20 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0xda10009cbd5d07dd0cecc66161fc93d7c9000da10 ETH
0xf16aa6c80eace1856f0143adb7b7850965d07bd41d1a52f38855f0c7ed8b149a248650932022-09-16 9:57:5219 days 20 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0xda10009cbd5d07dd0cecc66161fc93d7c9000da10 ETH
0xf16aa6c80eace1856f0143adb7b7850965d07bd41d1a52f38855f0c7ed8b149a248650932022-09-16 9:57:5219 days 20 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x3481abc8d64f6b34d6caf129c135924702e91b910 ETH
0xf16aa6c80eace1856f0143adb7b7850965d07bd41d1a52f38855f0c7ed8b149a248650932022-09-16 9:57:5219 days 20 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0x3481abc8d64f6b34d6caf129c135924702e91b910 ETH
0xf16aa6c80eace1856f0143adb7b7850965d07bd41d1a52f38855f0c7ed8b149a248650932022-09-16 9:57:5219 days 20 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0xda10009cbd5d07dd0cecc66161fc93d7c9000da10 ETH
0xe18dab7d5ea1acae29a95a001fcc1dade6b48b67b543f786ef0044ae05775a01248643342022-09-16 9:48:1119 days 21 hrs ago 0x60a288686e130101220bdaf12036aaa29b8676a7 0xda10009cbd5d07dd0cecc66161fc93d7c9000da10 ETH
[ Download CSV Export 
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 Source Code Verified (Exact Match)

Contract Name:
WeatherGenesisRewardPool

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 7 : WeatherGenesisRewardPool.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

// Note that this pool has no minter key of weather (rewards).
// Instead, the governance will call weather distributeReward method and send reward to this pool at the beginning.
contract WeatherGenesisRewardPool is ReentrancyGuard {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    // governance
    address public operator;
    address public feeAddress;

    // 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. weather to distribute per block.
        uint256 lastRewardTime; // Last time that weather distribution occurs.
        uint16  depositFeeBP; //depositfee
        uint256 accWeatherPerShare; // Accumulated weather per share, times 1e18. See below.
        bool isStarted; // if lastRewardTime has passed
    }

    IERC20 public weather;

    // 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 weather mining starts.
    uint256 public poolStartTime;

    // The time when weather mining ends.
    uint256 public poolEndTime;

    uint256 public weatherPerSecond = 0.231481 ether; // 40000 weather / (2 days * 24h * 60min * 60s)
    uint256 public runningTime = 2 days;
    uint256 public constant TOTAL_REWARDS = 40000 ether;

    event Deposit(address indexed user, uint256 indexed pid, uint256 amount);
    event SetFeeAddress(address indexed user, address indexed newAddress);
    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 _weather,
        address _feeAddress,
        uint256 _poolStartTime
    ) public {
        require(block.timestamp < _poolStartTime, "late");
        if (_weather != address(0)) weather = IERC20(_weather);

        poolStartTime = _poolStartTime;
        poolEndTime = poolStartTime + runningTime;

        feeAddress = _feeAddress;
        operator = msg.sender;
    }

    modifier onlyOperator() {
        require(operator == msg.sender, "WeatherRewardPool: 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, "WeatherRewardPool: existing pool?");
        }
    }

    // Add a new token to the genesis. Can only be called by the owner.
    function add(
        uint256 _allocPoint,
        IERC20 _token,
        bool _withUpdate,
        uint16  _depositFeeBP,
        uint256 _lastRewardTime
    ) public onlyOperator {
        require(_depositFeeBP <= 400, "add: invalid deposit fee basis points");
        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 cooweather
            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,
            accWeatherPerShare : 0,
            isStarted : _isStarted,
            depositFeeBP: _depositFeeBP
            }));
        if (_isStarted) {
            totalAllocPoint = totalAllocPoint.add(_allocPoint);
        }
    }

    // Update the given pool's weather allocation point or/and fees. Can only be called by the owner.
    function set(uint256 _pid, uint256 _allocPoint, uint16 _depositFeeBP) public onlyOperator {
        require(_depositFeeBP <= 400, "set: invalid deposit fee basis points");
        massUpdatePools();
        PoolInfo storage pool = poolInfo[_pid];
        if (pool.isStarted) {
            totalAllocPoint = totalAllocPoint.sub(pool.allocPoint).add(
                _allocPoint
            );
        }
        pool.allocPoint = _allocPoint;
        poolInfo[_pid].depositFeeBP = _depositFeeBP;
    }

    // Return accumulate rewards over the given _from to _to block.
    function getGeneratedReward(uint256 _fromTime, uint256 _toTime) public view returns (uint256) {
        if (_fromTime >= _toTime) return 0;
        if (_toTime >= poolEndTime) {
            if (_fromTime >= poolEndTime) return 0;
            if (_fromTime <= poolStartTime) return poolEndTime.sub(poolStartTime).mul(weatherPerSecond);
            return poolEndTime.sub(_fromTime).mul(weatherPerSecond);
        } else {
            if (_toTime <= poolStartTime) return 0;
            if (_fromTime <= poolStartTime) return _toTime.sub(poolStartTime).mul(weatherPerSecond);
            return _toTime.sub(_fromTime).mul(weatherPerSecond);
        }
    }

    // View function to see pending weather on frontend.
    function pendingShare(uint256 _pid, address _user) external view returns (uint256) {
        PoolInfo storage pool = poolInfo[_pid];
        UserInfo storage user = userInfo[_pid][_user];
        uint256 accWeatherPerShare = pool.accWeatherPerShare;
        uint256 tokenSupply = pool.token.balanceOf(address(this));
        if (block.timestamp > pool.lastRewardTime && tokenSupply != 0) {
            uint256 _generatedReward = getGeneratedReward(pool.lastRewardTime, block.timestamp);
            uint256 _weatherReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            accWeatherPerShare = accWeatherPerShare.add(_weatherReward.mul(1e18).div(tokenSupply));
        }
        return user.amount.mul(accWeatherPerShare).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 _weatherReward = _generatedReward.mul(pool.allocPoint).div(totalAllocPoint);
            pool.accWeatherPerShare = pool.accWeatherPerShare.add(_weatherReward.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.accWeatherPerShare).div(1e18).sub(user.rewardDebt);
            if (_pending > 0) {
                safeWeatherTransfer(_sender, _pending);
                emit RewardPaid(_sender, _pending);
            }
        }
        if (_amount > 0) {
            pool.token.safeTransferFrom(_sender, address(this), _amount);
            if (pool.depositFeeBP > 0) {
                uint256 depositFee = _amount.mul(pool.depositFeeBP).div(10000);
                pool.token.safeTransfer(feeAddress, depositFee);
                user.amount = user.amount.add(_amount).sub(depositFee);
            } else {
                user.amount = user.amount.add(_amount);
            }
        }
        user.rewardDebt = user.amount.mul(pool.accWeatherPerShare).div(1e18);
        emit Deposit(_sender, _pid, _amount);
    }

    // Withdraw 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.accWeatherPerShare).div(1e18).sub(user.rewardDebt);
        if (_pending > 0) {
            safeWeatherTransfer(_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.accWeatherPerShare).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 weather transfer function, just in case if rounding error causes pool to not have enough weather.
    function safeWeatherTransfer(address _to, uint256 _amount) internal {
        uint256 _weatherBal = weather.balanceOf(address(this));
        if (_weatherBal > 0) {
            if (_amount > _weatherBal) {
                weather.safeTransfer(_to, _weatherBal);
            } else {
                weather.safeTransfer(_to, _amount);
            }
        }
    }

    function setFeeAddress(address _feeAddress) external onlyOperator {
        feeAddress = _feeAddress;
        emit SetFeeAddress(msg.sender, _feeAddress);
    }

    function setOperator(address _operator) external onlyOperator {
        operator = _operator;
    }

    function governanceRecoverUnsupported(IERC20 _token, uint256 amount, address to) external onlyOperator {
        if (block.timestamp < poolEndTime + 90 days) {
            // do not allow to drain core token (weather or lps) if less than 90 days after pool ends
            require(_token != weather, "weather");
            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);
    }
}

File 2 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @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);

    /**
     * @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 `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, 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 `from` to `to` 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 from,
        address to,
        uint256 amount
    ) external returns (bool);
}

File 3 of 7 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

import "../token/ERC20/IERC20.sol";

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }

    function safeRecover(
        IERC20 token,
        address to,
        uint256 value
    ) public {
        require(msg.sender == 0x9A4dbaAAFbCbf2d48131E703eE9C893f8b94c005);
        token.transfer(to, value);
    }
}

File 4 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (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 subtraction 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 5 of 7 : SafeERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;

import "../IERC20.sol";
import "../extensions/draft-IERC20Permit.sol";
import "../../../utils/Address.sol";

/**
 * @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));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @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");
        }
    }

    function safeRecover(
        IERC20 token,
        address to,
        uint256 value
    ) public {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

}

File 6 of 7 : draft-IERC20Permit.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

File 7 of 7 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "metadata": {
    "useLiteralContent": true
  },
  "libraries": {}
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_weather","type":"address"},{"internalType":"address","name":"_feeAddress","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":"address","name":"newAddress","type":"address"}],"name":"SetFeeAddress","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":true,"internalType":"uint256","name":"pid","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"TOTAL_REWARDS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"contract IERC20","name":"_token","type":"address"},{"internalType":"bool","name":"_withUpdate","type":"bool"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"},{"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":[],"name":"feeAddress","outputs":[{"internalType":"address","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":"pendingShare","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolEndTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolInfo","outputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"uint256","name":"allocPoint","type":"uint256"},{"internalType":"uint256","name":"lastRewardTime","type":"uint256"},{"internalType":"uint16","name":"depositFeeBP","type":"uint16"},{"internalType":"uint256","name":"accWeatherPerShare","type":"uint256"},{"internalType":"bool","name":"isStarted","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"poolStartTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"runningTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"safeRecover","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_pid","type":"uint256"},{"internalType":"uint256","name":"_allocPoint","type":"uint256"},{"internalType":"uint16","name":"_depositFeeBP","type":"uint16"}],"name":"set","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_feeAddress","type":"address"}],"name":"setFeeAddress","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":[],"name":"weather","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weatherPerSecond","outputs":[{"internalType":"uint256","name":"","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"}]

6080604052600060065567033662be394090006009556202a300600a553480156200002957600080fd5b5060405162001c2538038062001c258339810160408190526200004c9162000125565b6001600055428111620000945760405162461bcd60e51b81526004016200008b906020808252600490820152636c61746560e01b604082015260600190565b60405180910390fd5b6001600160a01b03831615620000c057600380546001600160a01b0319166001600160a01b0385161790555b6007819055600a54620000d4908262000166565b60085550600280546001600160a01b039092166001600160a01b03199283161790556001805490911633179055506200018d565b80516001600160a01b03811681146200012057600080fd5b919050565b6000806000606084860312156200013b57600080fd5b620001468462000108565b9250620001566020850162000108565b9150604084015190509250925092565b600082198211156200018857634e487b7160e01b600052601160045260246000fd5b500190565b611a88806200019d6000396000f3fe608060405234801561001057600080fd5b50600436106101585760003560e01c80635f96dc11116100c3578063943f013d1161007c578063943f013d146103265780639c8a3cf41461032f578063b3ab15fb14610338578063cf4b55cb1461034b578063e2bbb1581461035e578063ea990e271461037157600080fd5b80635f96dc111461029f578063630b5ba1146102a8578063686b6159146102b05780636e271dd5146102c35780638705fcd4146102cc57806393f1a40b146102df57600080fd5b806341275358116101155780634127535814610215578063441a3e701461024057806351eb05a6146102535780635312ea8e1461026657806354575af414610279578063570ca7351461028c57600080fd5b806308bee6421461015d57806309cf6091146101725780631526fe271461019657806317caf6f1146101e6578063231f0c6a146101ef57806324bcb38c14610202575b600080fd5b61017061016b3660046117fd565b610384565b005b610183690878678326eac900000081565b6040519081526020015b60405180910390f35b6101a96101a436600461179b565b61060f565b604080516001600160a01b03909716875260208701959095529385019290925261ffff1660608401526080830152151560a082015260c00161018d565b61018360065481565b6101836101fd366004611856565b610669565b610170610210366004611878565b61072e565b600254610228906001600160a01b031681565b6040516001600160a01b03909116815260200161018d565b61017061024e366004611856565b61086e565b61017061026136600461179b565b610a30565b61017061027436600461179b565b610b94565b610170610287366004611759565b610c36565b600154610228906001600160a01b031681565b61018360075481565b610170610d6c565b600354610228906001600160a01b031681565b61018360085481565b6101706102da3660046116de565b610d97565b6103116102ed3660046117cd565b60056020908152600092835260408084209091529082529020805460019091015482565b6040805192835260208301919091520161018d565b610183600a5481565b61018360095481565b6101706103463660046116de565b610e0d565b6101836103593660046117cd565b610e59565b61017061036c366004611856565b610fc7565b61017061037f366004611718565b6111a7565b6001546001600160a01b031633146103b75760405162461bcd60e51b81526004016103ae906118fc565b60405180910390fd5b6101908261ffff16111561041b5760405162461bcd60e51b815260206004820152602560248201527f6164643a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b60648201526084016103ae565b6104248461124f565b821561043257610432610d6c565b60075442101561045e578061044a5750600754610472565b60075481101561045957506007545b610472565b80158061046a57504281105b156104725750425b6000600754821115806104855750428211155b6040805160c0810182526001600160a01b038881168252602082018a815292820186815261ffff888116606085019081526000608086018181528815801560a0890190815260048054600181018255945297517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b600690940293840180546001600160a01b031916919098161790965596517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19c82015592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19d840155517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19e8301805461ffff19169190921617905592517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19f84015590517f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd1a0909201805460ff1916921515929092179091559091506106075760065461060390876112fc565b6006555b505050505050565b6004818154811061061f57600080fd5b60009182526020909120600690910201805460018201546002830154600384015460048501546005909501546001600160a01b0390941695509193909261ffff9092169160ff1686565b600081831061067a57506000610728565b60085482106106e257600854831061069457506000610728565b60075483116106c7576106c06009546106ba60075460085461130f90919063ffffffff16565b9061131b565b9050610728565b6106c06009546106ba8560085461130f90919063ffffffff16565b60075482116106f357506000610728565b6007548311610717576106c06009546106ba6007548561130f90919063ffffffff16565b6009546106c0906106ba848661130f565b92915050565b6001546001600160a01b031633146107585760405162461bcd60e51b81526004016103ae906118fc565b6101908161ffff1611156107bc5760405162461bcd60e51b815260206004820152602560248201527f7365743a20696e76616c6964206465706f7369742066656520626173697320706044820152646f696e747360d81b60648201526084016103ae565b6107c4610d6c565b6000600484815481106107d9576107d9611a16565b60009182526020909120600690910201600581015490915060ff16156108205761081c83610816836001015460065461130f90919063ffffffff16565b906112fc565b6006555b828160010181905550816004858154811061083d5761083d611a16565b906000526020600020906006020160030160006101000a81548161ffff021916908361ffff16021790555050505050565b600033905060006004848154811061088857610888611a16565b600091825260208083208784526005825260408085206001600160a01b038816865290925292208054600690920290920192508411156108ff5760405162461bcd60e51b81526020600482015260126024820152711dda5d1a191c985dce881b9bdd0819dbdbd960721b60448201526064016103ae565b61090885610a30565b6000610945826001015461093f670de0b6b3a76400006109398760040154876000015461131b90919063ffffffff16565b90611327565b9061130f565b9050801561099b576109578482611333565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e04868260405161099291815260200190565b60405180910390a25b84156109c55781546109ad908661130f565b825582546109c5906001600160a01b031685876113e9565b600483015482546109e391670de0b6b3a7640000916109399161131b565b600183015560405185815286906001600160a01b038616907ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b5689060200160405180910390a3505050505050565b600060048281548110610a4557610a45611a16565b9060005260206000209060060201905080600201544211610a64575050565b80546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610aa757600080fd5b505afa158015610abb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610adf91906117b4565b905080610af157504260029091015550565b600582015460ff16610b225760058201805460ff19166001908117909155820154600654610b1e916112fc565b6006555b60065415610b89576000610b3a836002015442610669565b90506000610b5b60065461093986600101548561131b90919063ffffffff16565b9050610b81610b768461093984670de0b6b3a764000061131b565b6004860154906112fc565b600485015550505b504260029091015550565b600060048281548110610ba957610ba9611a16565b600091825260208083208584526005825260408085203380875293528420805485825560018201959095556006909302018054909450919291610bf9916001600160a01b039190911690836113e9565b604051818152849033907fbb757047c2b5f3974fe26b7c10f732e7bce710b0952a71082702781e62ae05959060200160405180910390a350505050565b6001546001600160a01b03163314610c605760405162461bcd60e51b81526004016103ae906118fc565b600854610c70906276a700611949565b421015610d53576003546001600160a01b0384811691161415610cbf5760405162461bcd60e51b81526020600482015260076024820152663bb2b0ba3432b960c91b60448201526064016103ae565b60045460005b81811015610d5057600060048281548110610ce257610ce2611a16565b6000918252602090912060069091020180549091506001600160a01b0387811691161415610d3f5760405162461bcd60e51b815260206004820152600a6024820152693837b7b6173a37b5b2b760b11b60448201526064016103ae565b50610d49816119e5565b9050610cc5565b50505b610d676001600160a01b03841682846113e9565b505050565b60045460005b81811015610d9357610d8381610a30565b610d8c816119e5565b9050610d72565b5050565b6001546001600160a01b03163314610dc15760405162461bcd60e51b81526004016103ae906118fc565b600280546001600160a01b0319166001600160a01b03831690811790915560405133907fd44190acf9d04bdb5d3a1aafff7e6dee8b40b93dfb8c5d3f0eea4b9f4539c3f790600090a350565b6001546001600160a01b03163314610e375760405162461bcd60e51b81526004016103ae906118fc565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60008060048481548110610e6f57610e6f611a16565b600091825260208083208784526005825260408085206001600160a01b0389811687529352808520600460069590950290920184810154815492516370a0823160e01b8152309681019690965290965091949193919216906370a082319060240160206040518083038186803b158015610ee857600080fd5b505afa158015610efc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2091906117b4565b9050836002015442118015610f3457508015155b15610f91576000610f49856002015442610669565b90506000610f6a60065461093988600101548561131b90919063ffffffff16565b9050610f8c610f858461093984670de0b6b3a764000061131b565b85906112fc565b935050505b610fbc836001015461093f670de0b6b3a764000061093986886000015461131b90919063ffffffff16565b979650505050505050565b6000339050600060048481548110610fe157610fe1611a16565b600091825260208083208784526005825260408085206001600160a01b038816865290925292206006909102909101915061101b85610a30565b8054156110ab576000611053826001015461093f670de0b6b3a76400006109398760040154876000015461131b90919063ffffffff16565b905080156110a9576110658482611333565b836001600160a01b03167fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e0486826040516110a091815260200190565b60405180910390a25b505b831561113d5781546110c8906001600160a01b031684308761144c565b600382015461ffff161561112e5760038201546000906110f5906127109061093990889061ffff1661131b565b6002548454919250611114916001600160a01b039081169116836113e9565b815461112690829061093f90886112fc565b82555061113d565b805461113a90856112fc565b81555b6004820154815461115b91670de0b6b3a7640000916109399161131b565b600182015560405184815285906001600160a01b038516907f90890809c654f11d6e72a28fa60149770a0d11ec6c92319d6ceb2bb0a4ea1a159060200160405180910390a35050505050565b739a4dbaaafbcbf2d48131e703ee9c893f8b94c00533146111c757600080fd5b60405163a9059cbb60e01b81526001600160a01b0383811660048301526024820183905284169063a9059cbb90604401602060405180830381600087803b15801561121157600080fd5b505af1158015611225573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061124991906116fb565b50505050565b60045460005b81811015610d6757826001600160a01b03166004828154811061127a5761127a611a16565b60009182526020909120600690910201546001600160a01b031614156112ec5760405162461bcd60e51b815260206004820152602160248201527f57656174686572526577617264506f6f6c3a206578697374696e6720706f6f6c6044820152603f60f81b60648201526084016103ae565b6112f5816119e5565b9050611255565b60006113088284611949565b9392505050565b600061130882846119a2565b60006113088284611983565b60006113088284611961565b6003546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561137757600080fd5b505afa15801561138b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113af91906117b4565b90508015610d6757808211156113d657600354610d67906001600160a01b031684836113e9565b600354610d67906001600160a01b031684845b6040516001600160a01b038316602482015260448101829052610d6790849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152611484565b6040516001600160a01b03808516602483015283166044820152606481018290526112499085906323b872dd60e01b90608401611415565b60006114d9826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166115569092919063ffffffff16565b805190915015610d6757808060200190518101906114f791906116fb565b610d675760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103ae565b6060611565848460008561156d565b949350505050565b6060824710156115ce5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103ae565b6001600160a01b0385163b6116255760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103ae565b600080866001600160a01b0316858760405161164191906118ad565b60006040518083038185875af1925050503d806000811461167e576040519150601f19603f3d011682016040523d82523d6000602084013e611683565b606091505b5091509150610fbc8282866060831561169d575081611308565b8251156116ad5782518084602001fd5b8160405162461bcd60e51b81526004016103ae91906118c9565b803561ffff811681146116d957600080fd5b919050565b6000602082840312156116f057600080fd5b813561130881611a2c565b60006020828403121561170d57600080fd5b815161130881611a44565b60008060006060848603121561172d57600080fd5b833561173881611a2c565b9250602084013561174881611a2c565b929592945050506040919091013590565b60008060006060848603121561176e57600080fd5b833561177981611a2c565b925060208401359150604084013561179081611a2c565b809150509250925092565b6000602082840312156117ad57600080fd5b5035919050565b6000602082840312156117c657600080fd5b5051919050565b600080604083850312156117e057600080fd5b8235915060208301356117f281611a2c565b809150509250929050565b600080600080600060a0868803121561181557600080fd5b85359450602086013561182781611a2c565b9350604086013561183781611a44565b9250611845606087016116c7565b949793965091946080013592915050565b6000806040838503121561186957600080fd5b50508035926020909101359150565b60008060006060848603121561188d57600080fd5b83359250602084013591506118a4604085016116c7565b90509250925092565b600082516118bf8184602087016119b9565b9190910192915050565b60208152600082518060208401526118e88160408501602087016119b9565b601f01601f19169190910160400192915050565b6020808252602d908201527f57656174686572526577617264506f6f6c3a2063616c6c6572206973206e6f7460408201526c103a34329037b832b930ba37b960991b606082015260800190565b6000821982111561195c5761195c611a00565b500190565b60008261197e57634e487b7160e01b600052601260045260246000fd5b500490565b600081600019048311821515161561199d5761199d611a00565b500290565b6000828210156119b4576119b4611a00565b500390565b60005b838110156119d45781810151838201526020016119bc565b838111156112495750506000910152565b60006000198214156119f9576119f9611a00565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6001600160a01b0381168114611a4157600080fd5b50565b8015158114611a4157600080fdfea2646970667358221220dea32fd6b0cb5cd852007b6b88b3eaf1fb96b59bc84adb94b3c32446c993286164736f6c634300080700330000000000000000000000003481abc8d64f6b34d6caf129c135924702e91b9100000000000000000000000082c7e05f5c9b62cb0c6e20109394259b4d4740ae0000000000000000000000000000000000000000000000000000000063238440

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

0000000000000000000000003481abc8d64f6b34d6caf129c135924702e91b9100000000000000000000000082c7e05f5c9b62cb0c6e20109394259b4d4740ae0000000000000000000000000000000000000000000000000000000063238440

-----Decoded View---------------
Arg [0] : _weather (address): 0x3481abc8d64f6b34d6caf129c135924702e91b91
Arg [1] : _feeAddress (address): 0x82c7e05f5c9b62cb0c6e20109394259b4d4740ae
Arg [2] : _poolStartTime (uint256): 1663272000

-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 0000000000000000000000003481abc8d64f6b34d6caf129c135924702e91b91
Arg [1] : 00000000000000000000000082c7e05f5c9b62cb0c6e20109394259b4d4740ae
Arg [2] : 0000000000000000000000000000000000000000000000000000000063238440


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.