Contract 0xC9444d31A580D35a951f77b36F0dE073DaC69316

 
Txn Hash
Method
Block
From
To
Value
0x201e0dab6d1c3fcdea0028ac695addf417d9e7464c1cda29feb30ee5d6f14dc1Approve132955032021-09-25 14:26:00327 days 8 hrs ago0xa4b2adb7c0afef6542af0bf25cafc818e9295681 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍00090782 37.‍48386251
0x98e65d8b7b9c36fc1b4df64500c50f4873ac6920a6d3b8d5bee256bb2f2c4805Unstake130865582021-08-24 6:57:13359 days 15 hrs agoENS Name chuckle.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0033926836.‍01
0x3fad2204b4f920675a24f323aa54907d693fa5399f2ce1d468c64bdbf10b6c99Unstake130031352021-08-11 9:45:00372 days 12 hrs agoENS Name 0x8888.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0040099852
0xe5ec3575ede436864ebd11ac0ff6b69f58d1b4fc35b683484765470436a7df7bUnstake130031242021-08-11 9:42:48372 days 12 hrs agoENS Name 0x8888.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0024946642.‍0940214
0x46f19ca1a54b9f756997fdc7e1909c0eb67b4a01ac24102fdefd6874c489dc2dUnstake130030912021-08-11 9:34:21372 days 12 hrs agoENS Name 0x8888.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0023054238.‍9009409
0xed80920bd6a1576131a853447bb1e86c8d57409c546d79bb33f25f762cfd7380Stake128236452021-07-14 6:54:44400 days 15 hrs agoENS Name khabibnurmagomedov.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0016709227
0x0a52d093e8da6be25e790f718c39bcde53294ec66cb99ec6e2eede6e83207039Unstake128194232021-07-13 14:51:26401 days 7 hrs ago0x4db4683485a116381e363a6daf5427d70dacb68b IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0022081933
0x61b4ed67bdf02a2a2fd111b2833512b5c9887908578c1f5e2eb51f9dc0c2b524Unstake128151462021-07-12 22:31:35402 days 2 mins agoENS Name henryelder.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0017397926
0xb621b6a18fa141b31705163238474e9e200dcd3ae9051224cafaa90a7a0f4b1bUnstake128151432021-07-12 22:31:01402 days 3 mins agoENS Name henryelder.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0019854626
0xdd13e934a85574a23362ffd4522d514c0a271d2a9276ce13292c3fe304d10013Stake128147052021-07-12 20:47:50402 days 1 hr agoENS Name 0xchambers.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0015474525
0xbeeb5e236c57082a018cb8ec6723d56dd5e82497a706f3d6bcc3c5b780145748Unstake128133462021-07-12 15:53:28402 days 6 hrs ago0x6959754dde646f5366a80cce848daa606aef7f16 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0038646946
0xc74233cf73a491a545c617fac662852bbdbec812ef0b04e9965b26737d1ad0e0Unstake128110012021-07-12 6:59:15402 days 15 hrs ago0xe579ac2dce69f44cc85d8d66e5eecc8fc4fe292a IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0005926410
0x7ff894042bf54e7eaa7dce4e5c167e7ec8508f0833c438b5a6fdc265f45e4bc5Unstake128094532021-07-12 1:11:47402 days 21 hrs agoENS Name khabibnurmagomedov.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0010165812.‍1
0x2b48e953ca17723f6aa4e344eef35f176b749f2a778f7a305228265c4ca725dfStake128090482021-07-11 23:39:52402 days 22 hrs ago0x1f2199f657b6594e975b26ba88f4269f865e5f79 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0006188610
0x7ec8d065ea096b0995ca83743fb296bf291bd7a698050f54e63f1c1851f6c443Unstake128089572021-07-11 23:20:07402 days 23 hrs ago0x1f2199f657b6594e975b26ba88f4269f865e5f79 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0008698913
0x05bd7c98bd45034c05265e4443807fa647ccad0ca6f9e3a298d4e928f59c5fdcUnstake128089402021-07-11 23:18:07402 days 23 hrs ago0x1f2199f657b6594e975b26ba88f4269f865e5f79 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0007356410
0x63abf1346916922eeace4dcc6458a93c986a473232b30ea143445bc46c0bfff5Unstake128089402021-07-11 23:18:07402 days 23 hrs ago0x71ec1bc3065f9f23ab91f6924d86456d21c177a2 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0005926410
0xb6ffe5ef5f4043eb16fff56c490524bba08e7af5e35fc1fc5b63287f9bedef0bUnstake128076562021-07-11 18:31:56403 days 4 hrs ago0xbef716e7fbc844020925dc372879becd2f932bf9 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0010083212
0x2ed41011abc50c96ee6738ec9ed9ec59f354c59db09f56ab83fc3fd0df6c53b2Unstake128070472021-07-11 16:17:23403 days 6 hrs ago0xa8c8b09549f3b83f9c742c22efaf8ffe3dbe4e37 IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0009242911
0x36a37ecc6a737e55d79b285b40a1de841d995f0f4a33454cf449944af9172b5bUnstake128068432021-07-11 15:37:46403 days 6 hrs agoENS Name 0xchambers.eth IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0010167212.‍1
0x77737910f082ef50f3a128954115e83ef55e622d5482098498d1ebf4abfd0d96Unstake128066622021-07-11 14:55:44403 days 7 hrs ago0xc77c6eab64fb3986ceeae9a76081dd2097edcd0c IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍001003915
0x7056485e7d2af11b4f35207ed3a388e90909729546fe19e7baeee0fb7811daadUnstake128066492021-07-11 14:52:56403 days 7 hrs ago0xc77c6eab64fb3986ceeae9a76081dd2097edcd0c IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0011454615
0x4b05c479992e5e1d1270a7d0961093cb325ab1297136dc43d894461e44f3c68fUnstake128061732021-07-11 13:08:35403 days 9 hrs ago0xc48b00607c88817e69779b686c3e388380e4a17e IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍001003915
0x3a70273c1b2e599a30ec54f035cf9ab19d66beb147a4a98f93cbbf2c5fa12baaUnstake128061442021-07-11 13:03:17403 days 9 hrs ago0xc48b00607c88817e69779b686c3e388380e4a17e IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0007595810
0x548fe986a38bb3ae715d65c4aa03c036c1b9c85775010489984d42fc23ba03b4Unstake128061412021-07-11 13:02:31403 days 9 hrs ago0xc48b00607c88817e69779b686c3e388380e4a17e IN  0xc9444d31a580d35a951f77b36f0de073dac693160 Ether0.‍0008889615
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DFPgov

Compiler Version
v0.7.6+commit.7338295f

Optimization Enabled:
Yes with 100000 runs

Other Settings:
default evmVersion
File 1 of 7 : DFPgovernance.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.6;

import "../interfaces/IDeFiPlazaGov.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
 * @title DeFi Plaza governance token (DFPgov)
 * @author Jazzer 9F
 * @notice Implements lean on gas liquidity reward program for DeFi Plaza
 */
contract DFPgov is IDeFiPlazaGov, Ownable, ERC20 {
  using SafeMath for uint256;

  // global staking contract state parameters squeezed in 256 bits
  struct StakingState {
    uint96 totalStake;                      // Total LP tokens currently staked
    uint96 rewardsAccumulatedPerLP;         // Rewards accumulated per staked LP token (16.80 bits)
    uint32 lastUpdate;                      // Timestamp of last update
    uint32 startTime;                       // Timestamp rewards started
  }

  // data per staker, some bits remaining available
  struct StakeData {
    uint96 stake;                           // Amount of LPs staked for this staker
    uint96 rewardsPerLPAtTimeStaked;        // Baseline rewards at the time these LPs were staked
  }

  address public founder;
  address public multisig;
  address public indexToken;
  StakingState public stakingState;
  mapping(address => StakeData) public stakerData;
  uint256 public multisigAllocationClaimed;
  uint256 public founderAllocationClaimed;

  /**
  * Basic setup
  */
  constructor(address founderAddress, uint32 startTime) ERC20("DeFi Plaza governance token", "DFP") {
    // contains the global state of the staking progress
    StakingState memory state;
    state.startTime = startTime;
    stakingState = state;

    // generate the initial 4M founder allocation
    founder = founderAddress;
    _mint(founderAddress, 4e24);
  }

  /**
  * For staking LPs to accumulate governance token rewards.
  * Maintains a single stake per user, but allows to add on top of existing stake.
  */
  function stake(uint96 LPamount)
    external
    override
    returns(bool success)
  {
    // Collect LPs
    require(
      IERC20(indexToken).transferFrom(msg.sender, address(this), LPamount),
      "DFP: Transfer failed"
    );

    // Update global staking state
    StakingState memory state = stakingState;
    if ((block.timestamp >= state.startTime) && (state.lastUpdate < 31536000)) {
      uint256 t1 = block.timestamp - state.startTime;       // calculate time relative to start time
      uint256 t0 = uint256(state.lastUpdate);
      t1 = (t1 > 31536000) ? 31536000 : t1;                 // clamp at 1 year
      uint256 R1 = 170e24 * t1 / 31536000 - 85e24 * t1 * t1 / 994519296000000;
      uint256 R0 = 170e24 * t0 / 31536000 - 85e24 * t0 * t0 / 994519296000000;
      uint256 totalStake = (state.totalStake < 1600e18) ? 1600e18 : state.totalStake;  // Clamp at 1600 for numerical reasons
      state.rewardsAccumulatedPerLP += uint96(((R1.sub(R0)) << 80) / totalStake);
      state.lastUpdate = uint32(t1);
    }
    state.totalStake += LPamount;
    stakingState = state;

    // Update staker data for this user
    StakeData memory staker = stakerData[msg.sender];
    if (staker.stake == 0) {
      staker.stake = LPamount;
      staker.rewardsPerLPAtTimeStaked = state.rewardsAccumulatedPerLP;
    } else {
      uint256 LP1 = staker.stake + LPamount;
      uint256 RLP0_ = (uint256(LPamount) * state.rewardsAccumulatedPerLP + uint256(staker.stake) * staker.rewardsPerLPAtTimeStaked) / LP1;
      staker.stake = uint96(LP1);
      staker.rewardsPerLPAtTimeStaked = uint96(RLP0_);
    }
    stakerData[msg.sender] = staker;

    // Emit staking event
    emit Staked(msg.sender, LPamount);
    return true;
  }

  /**
  * For unstaking LPs and collecting rewards accumulated up to this point.
  * Any unstake action distributes and resets rewards. Simply claiming rewards
  * without unstaking can be done by unstaking zero LPs.
  */
  function unstake(uint96 LPamount)
    external
    override
    returns(uint256 rewards)
  {
    // Collect data for this user
    StakeData memory staker = stakerData[msg.sender];
    require(
      staker.stake >= LPamount,
      "DFP: Insufficient stake"
    );

    // Update the global staking state
    StakingState memory state = stakingState;
    if ((block.timestamp >= state.startTime) && (state.lastUpdate < 31536000)) {
      uint256 t1 = block.timestamp - state.startTime;       // calculate time relative to start time
      uint256 t0 = uint256(state.lastUpdate);
      t1 = (t1 > 31536000) ? 31536000 : t1;                 // clamp at 1 year
      uint256 R1 = 170e24 * t1 / 31536000 - 85e24 * t1 * t1 / 994519296000000;
      uint256 R0 = 170e24 * t0 / 31536000 - 85e24 * t0 * t0 / 994519296000000;
      uint256 totalStake = (state.totalStake < 1600e18) ? 1600e18 : state.totalStake;  // Clamp at 1600 for numerical reasons
      state.rewardsAccumulatedPerLP += uint96(((R1.sub(R0)) << 80) / totalStake);
      state.lastUpdate = uint32(t1);
    }
    state.totalStake -= LPamount;
    stakingState = state;

    // Calculate rewards
    rewards = ((uint256(state.rewardsAccumulatedPerLP) - staker.rewardsPerLPAtTimeStaked) * staker.stake) >> 80;

    // Update user data
    if (LPamount == staker.stake) delete stakerData[msg.sender];
    else {
      staker.stake -= LPamount;
      staker.rewardsPerLPAtTimeStaked = state.rewardsAccumulatedPerLP;
      stakerData[msg.sender] = staker;
    }

    // Distribute reward and emit event
    _mint(msg.sender, rewards);
    IERC20(indexToken).transfer(msg.sender, LPamount);
    emit Unstaked(msg.sender, LPamount, rewards);
  }

  /**
  * Helper function to check unclaimed rewards for any address
  */
  function rewardsQuote(address stakerAddress)
    external
    view
    override
    returns(uint256 rewards)
  {
    // Collect user data
    StakeData memory staker = stakerData[stakerAddress];

    // Calculate distribution since last on chain update
    StakingState memory state = stakingState;
    if ((block.timestamp >= state.startTime) && (state.lastUpdate < 31536000)) {
      uint256 t1 = block.timestamp - state.startTime;       // calculate time relative to start time
      uint256 t0 = uint256(state.lastUpdate);
      t1 = (t1 > 31536000) ? 31536000 : t1;                 // clamp at 1 year
      uint256 R1 = 170e24 * t1 / 31536000 - 85e24 * t1 * t1 / 994519296000000;
      uint256 R0 = 170e24 * t0 / 31536000 - 85e24 * t0 * t0 / 994519296000000;
      uint256 totalStake = (state.totalStake < 1600e18) ? 1600e18 : state.totalStake;  // Clamp at 1600 for numerical reasons
      state.rewardsAccumulatedPerLP += uint96(((R1.sub(R0)) << 80) / totalStake);
    }

    // Calculate unclaimed rewards
    rewards = ((uint256(state.rewardsAccumulatedPerLP) - staker.rewardsPerLPAtTimeStaked) * staker.stake) >> 80;
  }

  /**
  * Configure which token is accepted as stake. Can only be done once.
  */
  function setIndexToken(address indexTokenAddress)
    external
    onlyOwner
    returns(bool success)
  {
    require(indexToken==address(0), "Already configured");
    indexToken = indexTokenAddress;
    _mint(indexTokenAddress, 1e24);
    return true;
  }

  /**
  * Set community multisig address
  */
  function setMultisigAddress(address multisigAddress)
    external
    onlyOwner
    returns(bool success)
  {
    multisig = multisigAddress;
    return true;
  }

  /**
  * Community is allocated 5M governance tokens which are released on the same
  * curve as the tokens that users can stake for. No staking required for this.
  * Rewards accumulated can be claimed into the multisig address anytime.
  */
  function claimMultisigAllocation()
    external
    returns(uint256 amountReleased)
  {
    // Collect global staking state
    StakingState memory state = stakingState;
    require(block.timestamp > state.startTime, "Too early guys");

    // Calculate total community allocation until now
    uint256 t1 = block.timestamp - state.startTime;       // calculate time relative to start time
    t1 = (t1 > 31536000) ? 31536000 : t1;                 // clamp at 1 year
    uint256 R1 = 10e24 * t1 / 31536000 - 5e24 * t1 * t1 / 994519296000000;

    // Calculate how much is to be released now & update released counter
    amountReleased = R1 - multisigAllocationClaimed;
    multisigAllocationClaimed = R1;

    // Grant rewards and emit event for logging
    _mint(multisig, amountReleased);
    emit MultisigClaim(multisig, amountReleased);
  }

  /**
  * Founder is granted 5M governance tokens after 1 year.
  */
  function claimFounderAllocation(uint256 amount, address destination)
    external
    returns(uint256 actualAmount)
  {
    // Basic validity checks
    require(msg.sender == founder, "Not yours man");
    StakingState memory state = stakingState;
    require(block.timestamp - state.startTime >= 31536000, "Too early man");

    // Calculate how many rewards are still available & update claimed counter
    uint256 availableAmount = 5e24 - founderAllocationClaimed;
    actualAmount = (amount > availableAmount) ? availableAmount : amount;
    founderAllocationClaimed += actualAmount;

    // Grant rewards and emit event for logging
    _mint(destination, actualAmount);
    emit FounderClaim(destination, actualAmount);
  }
}

File 2 of 7 : IDeFiPlazaGov.sol
// SPDX-License-Identifier: Unlicensed
pragma solidity ^0.7.6;

interface IDeFiPlazaGov {
  function stake(
    uint96 LPamount
  ) external returns(bool success);

  function unstake(
    uint96 LPamount
  ) external returns(uint256 rewards);

  function rewardsQuote(
    address stakerAddress
  ) external view returns(uint256 rewards);

  event Staked(
    address staker,
    uint256 LPamount
  );

  event Unstaked(
    address staker,
    uint256 LPamount,
    uint256 rewards
  );

  event MultisigClaim(
    address multisig,
    uint256 amount
  );

  event FounderClaim(
    address claimant,
    uint256 amount
  );
}

File 3 of 7 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 4 of 7 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");
        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) return 0;
        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");
        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 7 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin guidelines: functions revert instead
 * of returning `false` on failure. This behavior is nonetheless conventional
 * and does not conflict with the expectations of ERC20 applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) private _balances;

    mapping (address => mapping (address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name_, string memory symbol_) public {
        _name = name_;
        _symbol = symbol_;
        _decimals = 18;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5,05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
     * called.
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual returns (uint8) {
        return _decimals;
    }

    /**
     * @dev See {IERC20-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _totalSupply;
    }

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);
        _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
        return true;
    }

    /**
     * @dev Moves tokens `amount` from `sender` to `recipient`.
     *
     * This is internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(address sender, address recipient, uint256 amount) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(address owner, address spender, uint256 amount) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal virtual {
        _decimals = decimals_;
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be to transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}

File 6 of 7 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 7 of 7 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 100000
  },
  "evmVersion": "istanbul",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"founderAddress","type":"address"},{"internalType":"uint32","name":"startTime","type":"uint32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimant","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FounderClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"multisig","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MultisigClaim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"LPamount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"LPamount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rewards","type":"uint256"}],"name":"Unstaked","type":"event"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"destination","type":"address"}],"name":"claimFounderAllocation","outputs":[{"internalType":"uint256","name":"actualAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimMultisigAllocation","outputs":[{"internalType":"uint256","name":"amountReleased","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"founder","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"founderAllocationClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"indexToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multisig","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multisigAllocationClaimed","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stakerAddress","type":"address"}],"name":"rewardsQuote","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"indexTokenAddress","type":"address"}],"name":"setIndexToken","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"multisigAddress","type":"address"}],"name":"setMultisigAddress","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"LPamount","type":"uint96"}],"name":"stake","outputs":[{"internalType":"bool","name":"success","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"stakerData","outputs":[{"internalType":"uint96","name":"stake","type":"uint96"},{"internalType":"uint96","name":"rewardsPerLPAtTimeStaked","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingState","outputs":[{"internalType":"uint96","name":"totalStake","type":"uint96"},{"internalType":"uint96","name":"rewardsAccumulatedPerLP","type":"uint96"},{"internalType":"uint32","name":"lastUpdate","type":"uint32"},{"internalType":"uint32","name":"startTime","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint96","name":"LPamount","type":"uint96"}],"name":"unstake","outputs":[{"internalType":"uint256","name":"rewards","type":"uint256"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b5060405162002d7038038062002d70833981810160405260408110156200003757600080fd5b508051602091820151604080518082018252601b81527f4465466920506c617a6120676f7665726e616e636520746f6b656e0000000000818601528151808301909252600382526204446560ec1b948201949094529192909160006200009c62000202565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508151620000fb90600490602085019062000380565b5080516200011190600590602084019062000380565b50506006805460ff19166012179055506200012b62000415565b63ffffffff82811660608301819052825160098054602086015160408701516001600160601b03199092166001600160601b0394851617600160601b600160c01b0319166c0100000000000000000000000094909116939093029290921763ffffffff60c01b1916600160c01b9290941691909102929092176001600160e01b03908116600160e01b9092029190911790915560068054610100600160a81b0319166101006001600160a01b03871602179055620001f99084906a034f086f3b33b684000000906200020616565b50505062000453565b3390565b6001600160a01b03821662000262576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b620002706000838362000319565b6200028c816003546200031e60201b620021b81790919060201c565b6003556001600160a01b038216600090815260016020908152604090912054620002c1918390620021b86200031e821b17901c565b6001600160a01b03831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b505050565b60008282018381101562000379576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620003b8576000855562000403565b82601f10620003d357805160ff191683800117855562000403565b8280016001018555821562000403579182015b8281111562000403578251825591602001919060010190620003e6565b50620004119291506200043c565b5090565b60408051608081018252600080825260208201819052918101829052606081019190915290565b5b808211156200041157600081556001016200043d565b61290d80620004636000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c8063715018a6116100f9578063b82a35c511610097578063dea4ccf211610071578063dea4ccf2146105fb578063e082f1d414610626578063e7d015f21461066b578063f2fde38b14610673576101c4565b8063b82a35c514610521578063ce9972aa14610554578063dd62ed3e146105c0576101c4565b80638da5cb5b116100d35780638da5cb5b1461049f57806395d89b41146104a7578063a457c2d7146104af578063a9059cbb146104e8576101c4565b8063715018a61461045457806379224ed61461045e5780638319be7514610497576101c4565b806339509351116101665780634d853ee5116101405780634d853ee5146103e657806361f129ad146103ee578063641cee401461041957806370a0823114610421576101c4565b8063395093511461037457806347377e16146103ad5780634783c35b146103b5576101c4565b80630adeccc5116101a25780630adeccc5146102c657806318160ddd1461030b57806323b872dd14610313578063313ce56714610356576101c4565b806305540534146101c957806306fdde0314610210578063095ea7b31461028d575b600080fd5b6101fc600480360360208110156101df57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106a6565b604080519115158252519081900360200190f35b61021861079a565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561025257818101518382015260200161023a565b50505050905090810190601f16801561027f5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101fc600480360360408110156102a357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561084e565b6102f9600480360360208110156102dc57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661086b565b60408051918252519081900360200190f35b6102f9610a9a565b6101fc6004803603606081101561032957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610aa0565b61035e610b41565b6040805160ff9092168252519081900360200190f35b6101fc6004803603604081101561038a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610b4a565b6102f9610ba5565b6103bd610bab565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6103bd610bc7565b6101fc6004803603602081101561040457600080fd5b50356bffffffffffffffffffffffff16610be8565b6102f9611191565b6102f96004803603602081101561043757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661136b565b61045c611393565b005b6102f96004803603604081101561047457600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff166114aa565b6102f96116c4565b6103bd6116ca565b6102186116e6565b6101fc600480360360408110156104c557600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135611765565b6101fc600480360360408110156104fe57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356117da565b6101fc6004803603602081101561053757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166117ee565b6105876004803603602081101561056a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611979565b60405180836bffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff1681526020019250505060405180910390f35b6102f9600480360360408110156105d657600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160200135166119ad565b6102f96004803603602081101561061157600080fd5b50356bffffffffffffffffffffffff166119e5565b61062e611f8b565b604080516bffffffffffffffffffffffff958616815293909416602084015263ffffffff9182168385015216606082015290519081900360800190f35b6103bd611ffb565b61045c6004803603602081101561068957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16612017565b60006106b0612233565b73ffffffffffffffffffffffffffffffffffffffff166106ce6116ca565b73ffffffffffffffffffffffffffffffffffffffff161461075057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b506007805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091161790556001919050565b60048054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108445780601f1061081957610100808354040283529160200191610844565b820191906000526020600020905b81548152906001019060200180831161082757829003601f168201915b5050505050905090565b600061086261085b612233565b8484612237565b50600192915050565b73ffffffffffffffffffffffffffffffffffffffff81166000908152600a602090815260408083208151808301835290546bffffffffffffffffffffffff80821683526c0100000000000000000000000091829004811683860152835160808101855260095480831682529283049091169481019490945263ffffffff780100000000000000000000000000000000000000000000000082048116938501939093527c0100000000000000000000000000000000000000000000000000000000900490911660608301819052909190421080159061095657506301e13380816040015163ffffffff16105b15610a6d576060810151604082015163ffffffff918216420391166301e1338082116109825781610988565b6301e133805b9150600066038882915c40008380026a464f733baa0ae67500000002046301e133806a8c9ee6775415ccea000000850204039050600066038882915c40008380026a464f733baa0ae67500000002046301e133806a8c9ee6775415ccea00000085020403905060006856bc75e2d63100000086600001516bffffffffffffffffffffffff1610610a19578551610a24565b6856bc75e2d6310000005b6bffffffffffffffffffffffff169050806050610a41858561237e565b901b81610a4a57fe5b602088018051929091049091016bffffffffffffffffffffffff16905250505050505b815160209283015191909201516bffffffffffffffffffffffff9182169082160391160260501c92915050565b60035490565b6000610aad8484846123f5565b610b3784610ab9612233565b610b32856040518060600160405280602881526020016128426028913973ffffffffffffffffffffffffffffffffffffffff8a16600090815260026020526040812090610b04612233565b73ffffffffffffffffffffffffffffffffffffffff16815260208101919091526040016000205491906125c7565b612237565b5060019392505050565b60065460ff1690565b6000610862610b57612233565b84610b328560026000610b68612233565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918c1681529252902054906121b8565b600b5481565b60075473ffffffffffffffffffffffffffffffffffffffff1681565b600654610100900473ffffffffffffffffffffffffffffffffffffffff1681565b600854604080517f23b872dd0000000000000000000000000000000000000000000000000000000081523360048201523060248201526bffffffffffffffffffffffff84166044820152905160009273ffffffffffffffffffffffffffffffffffffffff16916323b872dd91606480830192602092919082900301818787803b158015610c7457600080fd5b505af1158015610c88573d6000803e3d6000fd5b505050506040513d6020811015610c9e57600080fd5b5051610d0b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4446503a205472616e73666572206661696c6564000000000000000000000000604482015290519081900360640190fd5b604080516080810182526009546bffffffffffffffffffffffff80821683526c01000000000000000000000000820416602083015263ffffffff780100000000000000000000000000000000000000000000000082048116938301939093527c01000000000000000000000000000000000000000000000000000000009004909116606082018190524210801590610db057506301e13380816040015163ffffffff16105b15610ed1576060810151604082015163ffffffff918216420391166301e133808211610ddc5781610de2565b6301e133805b9150600066038882915c40008380026a464f733baa0ae67500000002046301e133806a8c9ee6775415ccea000000850204039050600066038882915c40008380026a464f733baa0ae67500000002046301e133806a8c9ee6775415ccea00000085020403905060006856bc75e2d63100000086600001516bffffffffffffffffffffffff1610610e73578551610e7e565b6856bc75e2d6310000005b6bffffffffffffffffffffffff169050806050610e9b858561237e565b901b81610ea457fe5b602088018051929091049091016bffffffffffffffffffffffff1690525050505063ffffffff1660408201525b805183016bffffffffffffffffffffffff9081168083526009805460208086015160408088015160608901517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009095169096177fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff166c010000000000000000000000009288168302177fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000063ffffffff97881602177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c0100000000000000000000000000000000000000000000000000000000969094169590950292909217909255336000908152600a8352839020835180850190945254808516808552919004909316908201529061103a576bffffffffffffffffffffffff8085168252602080840151909116908201526110c5565b6000848260000151016bffffffffffffffffffffffff16905060008183602001516bffffffffffffffffffffffff1684600001516bffffffffffffffffffffffff160285602001516bffffffffffffffffffffffff16886bffffffffffffffffffffffff160201816110a857fe5b6bffffffffffffffffffffffff9384168552049091166020830152505b336000818152600a602090815260409182902084518154868401517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009091166bffffffffffffffffffffffff928316177fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff166c010000000000000000000000009183169190910217909155825193845287169083015280517f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d9281900390910190a15060019392505050565b604080516080810182526009546bffffffffffffffffffffffff80821683526c01000000000000000000000000820416602083015263ffffffff780100000000000000000000000000000000000000000000000082048116938301939093527c010000000000000000000000000000000000000000000000000000000090049091166060820181905260009190421161128b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f546f6f206561726c792067757973000000000000000000000000000000000000604482015290519081900360640190fd5b606081015163ffffffff1642036301e1338081116112a957806112af565b6301e133805b600b805466038882915c40006a0422ca8b0a00a42500000084800202046301e133806a084595161401484a00000085020403918290556007549082039550919250906113119073ffffffffffffffffffffffffffffffffffffffff1685612678565b6007546040805173ffffffffffffffffffffffffffffffffffffffff90921682526020820186905280517f12ed450bcc3fbbe60547c4b6ad842d061208aff7023a3412658688a87978aa389281900390910190a150505090565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b61139b612233565b73ffffffffffffffffffffffffffffffffffffffff166113b96116ca565b73ffffffffffffffffffffffffffffffffffffffff161461143b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055565b600654600090610100900473ffffffffffffffffffffffffffffffffffffffff16331461153857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420796f757273206d616e00000000000000000000000000000000000000604482015290519081900360640190fd5b604080516080810182526009546bffffffffffffffffffffffff80821683526c01000000000000000000000000820416602083015263ffffffff780100000000000000000000000000000000000000000000000082048116938301939093527c01000000000000000000000000000000000000000000000000000000009004909116606082018190526301e133804291909103101561163857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f546f6f206561726c79206d616e00000000000000000000000000000000000000604482015290519081900360640190fd5b600c546a0422ca8b0a00a425000000038085116116555784611657565b805b600c805482019055925061166b8484612678565b6040805173ffffffffffffffffffffffffffffffffffffffff861681526020810185905281517fe3fb82e12e4abf3decadf77f5be0447abeb73345b301196a9256a00bc46a1c4e929181900390910190a1505092915050565b600c5481565b60005473ffffffffffffffffffffffffffffffffffffffff1690565b60058054604080516020601f60027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108445780601f1061081957610100808354040283529160200191610844565b6000610862611772612233565b84610b32856040518060600160405280602581526020016128b3602591396002600061179c612233565b73ffffffffffffffffffffffffffffffffffffffff908116825260208083019390935260409182016000908120918d168152925290205491906125c7565b60006108626117e7612233565b84846123f5565b60006117f8612233565b73ffffffffffffffffffffffffffffffffffffffff166118166116ca565b73ffffffffffffffffffffffffffffffffffffffff161461189857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60085473ffffffffffffffffffffffffffffffffffffffff161561191d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f416c726561647920636f6e666967757265640000000000000000000000000000604482015290519081900360640190fd5b600880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff84161790556119718269d3c21bcecceda1000000612678565b506001919050565b600a602052600090815260409020546bffffffffffffffffffffffff808216916c0100000000000000000000000090041682565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b336000908152600a602090815260408083208151808301909252546bffffffffffffffffffffffff8082168084526c01000000000000000000000000909204811693830193909352909184161115611a9e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4446503a20496e73756666696369656e74207374616b65000000000000000000604482015290519081900360640190fd5b604080516080810182526009546bffffffffffffffffffffffff80821683526c01000000000000000000000000820416602083015263ffffffff780100000000000000000000000000000000000000000000000082048116938301939093527c01000000000000000000000000000000000000000000000000000000009004909116606082018190524210801590611b4357506301e13380816040015163ffffffff16105b15611c64576060810151604082015163ffffffff918216420391166301e133808211611b6f5781611b75565b6301e133805b9150600066038882915c40008380026a464f733baa0ae67500000002046301e133806a8c9ee6775415ccea000000850204039050600066038882915c40008380026a464f733baa0ae67500000002046301e133806a8c9ee6775415ccea00000085020403905060006856bc75e2d63100000086600001516bffffffffffffffffffffffff1610611c06578551611c11565b6856bc75e2d6310000005b6bffffffffffffffffffffffff169050806050611c2e858561237e565b901b81611c3757fe5b602088018051929091049091016bffffffffffffffffffffffff1690525050505063ffffffff1660408201525b80518490036bffffffffffffffffffffffff90811680835260098054602080860151604087015160608801517fffffffffffffffffffffffffffffffffffffffff0000000000000000000000009094169095177fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff166c01000000000000000000000000918716918202177fffffffff00000000ffffffffffffffffffffffffffffffffffffffffffffffff16780100000000000000000000000000000000000000000000000063ffffffff96871602177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167c0100000000000000000000000000000000000000000000000000000000959093169490940291909117909155845190850151908316908316909103810260501c94509085161415611dd857336000908152600a6020526040902080547fffffffffffffffff000000000000000000000000000000000000000000000000169055611e7a565b81518490036bffffffffffffffffffffffff90811683526020828101518216818501908152336000908152600a90925260409091208451815492517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000909316908416177fffffffffffffffff000000000000000000000000ffffffffffffffffffffffff166c0100000000000000000000000092909316919091029190911790555b611e843384612678565b600854604080517fa9059cbb0000000000000000000000000000000000000000000000000000000081523360048201526bffffffffffffffffffffffff87166024820152905173ffffffffffffffffffffffffffffffffffffffff9092169163a9059cbb916044808201926020929091908290030181600087803b158015611f0b57600080fd5b505af1158015611f1f573d6000803e3d6000fd5b505050506040513d6020811015611f3557600080fd5b5050604080513381526bffffffffffffffffffffffff8616602082015280820185905290517f7fc4727e062e336010f2c282598ef5f14facb3de68cf8195c2f23e1454b2b74e9181900360600190a15050919050565b6009546bffffffffffffffffffffffff808216916c0100000000000000000000000081049091169063ffffffff780100000000000000000000000000000000000000000000000082048116917c010000000000000000000000000000000000000000000000000000000090041684565b60085473ffffffffffffffffffffffffffffffffffffffff1681565b61201f612233565b73ffffffffffffffffffffffffffffffffffffffff1661203d6116ca565b73ffffffffffffffffffffffffffffffffffffffff16146120bf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811661212b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260268152602001806127d46026913960400191505060405180910390fd5b6000805460405173ffffffffffffffffffffffffffffffffffffffff808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60008282018381101561222c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b9392505050565b3390565b73ffffffffffffffffffffffffffffffffffffffff83166122a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602481526020018061288f6024913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff821661230f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806127fa6022913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff808416600081815260026020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6000828211156123ef57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b73ffffffffffffffffffffffffffffffffffffffff8316612461576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602581526020018061286a6025913960400191505060405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff82166124cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806127b16023913960400191505060405180910390fd5b6124d88383836127ab565b6125228160405180606001604052806026815260200161281c6026913973ffffffffffffffffffffffffffffffffffffffff861660009081526001602052604090205491906125c7565b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220939093559084168152205461255e90826121b8565b73ffffffffffffffffffffffffffffffffffffffff80841660008181526001602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60008184841115612670576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561263557818101518382015260200161261d565b50505050905090810190601f1680156126625780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b73ffffffffffffffffffffffffffffffffffffffff82166126fa57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b612706600083836127ab565b60035461271390826121b8565b60035573ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205461274690826121b8565b73ffffffffffffffffffffffffffffffffffffffff831660008181526001602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b50505056fe45524332303a207472616e7366657220746f20746865207a65726f20616464726573734f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa264697066735822122078a9596b8f6ecf38aba7f5cafe638fc57c9e5b1aeea56ba87444b116071becdf64736f6c634300070600330000000000000000000000002f7ab204f3675353f37c70f180944a65b9890a9a0000000000000000000000000000000000000000000000000000000060d74f00

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

0000000000000000000000002f7ab204f3675353f37c70f180944a65b9890a9a0000000000000000000000000000000000000000000000000000000060d74f00

-----Decoded View---------------
Arg [0] : founderAddress (address): 0x2f7ab204f3675353f37c70f180944a65b9890a9a
Arg [1] : startTime (uint32): 1624723200

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000002f7ab204f3675353f37c70f180944a65b9890a9a
Arg [1] : 0000000000000000000000000000000000000000000000000000000060d74f00


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

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.