S Price: $0.435249 (+6.02%)

Contract

0x70b894c564DA4B5EAC7Ded1998d8C03755551DCb

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YelGovernance

Compiler Version
v0.8.24+commit.e11b9ed9

Optimization Enabled:
Yes with 0 runs

Other Settings:
paris EvmVersion
File 1 of 4 : YelGovernance.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "./interfaces/IUniswapV2Pair.sol";

contract YelGovernance {
    using SafeMath for uint256;

    address public yel;
    address public lYel;
    address public lYelStaking;
    IUniswapV2Pair public lpPair;
    IUniswapV2Pair public lpPairPotion;

    constructor(
        address _yel,
        address _lYel,
        address _lYelStaking,
        address _lpPair,
        address _lpPairPotion
    ) {
        yel = _yel;
        lYel = _lYel;
        lYelStaking = _lYelStaking;
        lpPair = IUniswapV2Pair(_lpPair);
        lpPairPotion = IUniswapV2Pair(_lpPairPotion);
    }

    function getTotalYelHolding(address user) external view returns (uint) {
        uint yelBal = IERC20(yel).balanceOf(user);
        uint lYelBal = IERC20(lYel).balanceOf(user);
        uint sBal = getLyelFromStaking(user);
        uint lpBal = getYelFromLP(user);
        return yelBal + sBal + lpBal + lYelBal;
    }

    function getLyelFromStaking(address user) public view returns (uint) {
        uint liquidity = IERC20(lYelStaking).balanceOf(user);

        address token0 = lpPairPotion.token0();
        address token1 = lpPairPotion.token1();

        uint256 balance0 = IERC20(token0).balanceOf(address(lpPairPotion));
        uint256 balance1 = IERC20(token1).balanceOf(address(lpPairPotion));

        uint totalSupply = lpPairPotion.totalSupply();

        uint amount0 = liquidity.mul(balance0) / totalSupply;
        uint amount1 = liquidity.mul(balance1) / totalSupply;

        if (token0 == lYel) {
            return amount0;
        } else {
            return amount1;
        }
    }

    function getYelFromLP(address user) public view returns (uint) {
        uint liquidity = lpPair.balanceOf(user);

        address token0 = lpPair.token0();
        address token1 = lpPair.token1();

        uint256 balance0 = IERC20(token0).balanceOf(address(lpPair));
        uint256 balance1 = IERC20(token1).balanceOf(address(lpPair));

        uint totalSupply = lpPair.totalSupply();

        uint amount0 = liquidity.mul(balance0) / totalSupply;
        uint amount1 = liquidity.mul(balance1) / totalSupply;

        if (token0 == yel) {
            return amount0;
        } else {
            return amount1;
        }
    }
}

File 2 of 4 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 4 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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 4 of 4 : IUniswapV2Pair.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

interface IUniswapV2Pair {
    function token0() external view returns (address);

    function token1() external view returns (address);

    function balanceOf(address user) external view returns (uint);

    function totalSupply() external view returns (uint);

    function kLast() external view returns (uint);

    function getReserves()
        external
        view
        returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 0,
    "details": {
      "yul": true,
      "yulDetails": {
        "optimizerSteps": "dhfoDgvulfnTUtnIf [xa[r]scLM cCTUtTOntnfDIul Lcul Vcul [j] Tpeul xa[rul] xa[r]cL gvif CTUca[r]LsTOtfDnca[r]Iulc] jmul[jul] VcTOcul jmul"
      }
    }
  },
  "evmVersion": "paris",
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_yel","type":"address"},{"internalType":"address","name":"_lYel","type":"address"},{"internalType":"address","name":"_lYelStaking","type":"address"},{"internalType":"address","name":"_lpPair","type":"address"},{"internalType":"address","name":"_lpPairPotion","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getLyelFromStaking","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getTotalYelHolding","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getYelFromLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lYel","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lYelStaking","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpPair","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lpPairPotion","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"yel","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b50604051610b27380380610b2783398101604081905261002f916100ad565b600080546001600160a01b03199081166001600160a01b03978816179091556001805482169587169590951790945560028054851693861693909317909255600380548416918516919091179055600480549092169216919091179055610112565b80516001600160a01b03811681146100a857600080fd5b919050565b600080600080600060a086880312156100c557600080fd5b6100ce86610091565b94506100dc60208701610091565b93506100ea60408701610091565b92506100f860608701610091565b915061010660808701610091565b90509295509295909350565b610a06806101216000396000f3fe608060405234801561001057600080fd5b50600436106100785760003560e01c8063407ed2ca1461007d578063452ed4f1146100a65780635833ebe0146100b95780638325d8df146100cc578063a0378cf6146100df578063b588058b14610100578063b5c3d8f014610113578063b7e4051314610126575b600080fd5b600254610090906001600160a01b031681565b60405161009d91906108e8565b60405180910390f35b600354610090906001600160a01b031681565b600054610090906001600160a01b031681565b600454610090906001600160a01b031681565b6100f26100ed366004610914565b610139565b60405190815260200161009d565b6100f261010e366004610914565b610473565b6100f2610121366004610914565b6107a4565b600154610090906001600160a01b031681565b6002546040516370a0823160e01b815260009182916001600160a01b03909116906370a082319061016e9086906004016108e8565b602060405180830381865afa15801561018b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101af9190610938565b90506000600460009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022a9190610951565b90506000600460009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a59190610951565b600480546040516370a0823160e01b81529293506000926001600160a01b03808716936370a08231936102db93921691016108e8565b602060405180830381865afa1580156102f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031c9190610938565b600480546040516370a0823160e01b81529293506000926001600160a01b03808716936370a082319361035293921691016108e8565b602060405180830381865afa15801561036f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103939190610938565b90506000600460009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040e9190610938565b905060008161041d88866108d3565b6104279190610984565b905060008261043689866108d3565b6104409190610984565b6001549091506001600160a01b0390811690881603610466575098975050505050505050565b9998505050505050505050565b6003546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906104a89086906004016108e8565b602060405180830381865afa1580156104c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e99190610938565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105649190610951565b90506000600360009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105df9190610951565b6003546040516370a0823160e01b81529192506000916001600160a01b03858116926370a082319261061792909116906004016108e8565b602060405180830381865afa158015610634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106589190610938565b6003546040516370a0823160e01b81529192506000916001600160a01b03858116926370a082319261069092909116906004016108e8565b602060405180830381865afa1580156106ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d19190610938565b90506000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c9190610938565b905060008161075b88866108d3565b6107659190610984565b905060008261077489866108d3565b61077e9190610984565b6000549091506001600160a01b0390811690881603610466575098975050505050505050565b600080546040516370a0823160e01b815282916001600160a01b0316906370a08231906107d59086906004016108e8565b602060405180830381865afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190610938565b6001546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061084c9087906004016108e8565b602060405180830381865afa158015610869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088d9190610938565b9050600061089a85610139565b905060006108a786610473565b905082816108b584876109a6565b6108bf91906109a6565b6108c991906109a6565b9695505050505050565b60006108df82846109b9565b90505b92915050565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461091157600080fd5b50565b60006020828403121561092657600080fd5b8135610931816108fc565b9392505050565b60006020828403121561094a57600080fd5b5051919050565b60006020828403121561096357600080fd5b8151610931816108fc565b634e487b7160e01b600052601160045260246000fd5b6000826109a157634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156108e2576108e261096e565b80820281158282048414176108e2576108e261096e56fea2646970667358221220b3165e3d04d2e6948a8ba7b662d240ad526ed81eb90150753f208ac66f1fb5cd64736f6c63430008180033000000000000000000000000949185d3be66775ea648f4a306740ea9eff9c5670000000000000000000000001dc50da045ad23812c22148e03d62c9691958b47000000000000000000000000f03b44f7c687a4f8e3449cad3b1f639c844c757500000000000000000000000052be1857ab44beee07eaf52978d73acc23ebf44a000000000000000000000000eb7c12e1395517300bf7d2dc322b9422ec220af4

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100785760003560e01c8063407ed2ca1461007d578063452ed4f1146100a65780635833ebe0146100b95780638325d8df146100cc578063a0378cf6146100df578063b588058b14610100578063b5c3d8f014610113578063b7e4051314610126575b600080fd5b600254610090906001600160a01b031681565b60405161009d91906108e8565b60405180910390f35b600354610090906001600160a01b031681565b600054610090906001600160a01b031681565b600454610090906001600160a01b031681565b6100f26100ed366004610914565b610139565b60405190815260200161009d565b6100f261010e366004610914565b610473565b6100f2610121366004610914565b6107a4565b600154610090906001600160a01b031681565b6002546040516370a0823160e01b815260009182916001600160a01b03909116906370a082319061016e9086906004016108e8565b602060405180830381865afa15801561018b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101af9190610938565b90506000600460009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610206573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061022a9190610951565b90506000600460009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa158015610281573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102a59190610951565b600480546040516370a0823160e01b81529293506000926001600160a01b03808716936370a08231936102db93921691016108e8565b602060405180830381865afa1580156102f8573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061031c9190610938565b600480546040516370a0823160e01b81529293506000926001600160a01b03808716936370a082319361035293921691016108e8565b602060405180830381865afa15801561036f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103939190610938565b90506000600460009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ea573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061040e9190610938565b905060008161041d88866108d3565b6104279190610984565b905060008261043689866108d3565b6104409190610984565b6001549091506001600160a01b0390811690881603610466575098975050505050505050565b9998505050505050505050565b6003546040516370a0823160e01b815260009182916001600160a01b03909116906370a08231906104a89086906004016108e8565b602060405180830381865afa1580156104c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104e99190610938565b90506000600360009054906101000a90046001600160a01b03166001600160a01b0316630dfe16816040518163ffffffff1660e01b8152600401602060405180830381865afa158015610540573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105649190610951565b90506000600360009054906101000a90046001600160a01b03166001600160a01b031663d21220a76040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105bb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105df9190610951565b6003546040516370a0823160e01b81529192506000916001600160a01b03858116926370a082319261061792909116906004016108e8565b602060405180830381865afa158015610634573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106589190610938565b6003546040516370a0823160e01b81529192506000916001600160a01b03858116926370a082319261069092909116906004016108e8565b602060405180830381865afa1580156106ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d19190610938565b90506000600360009054906101000a90046001600160a01b03166001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610728573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061074c9190610938565b905060008161075b88866108d3565b6107659190610984565b905060008261077489866108d3565b61077e9190610984565b6000549091506001600160a01b0390811690881603610466575098975050505050505050565b600080546040516370a0823160e01b815282916001600160a01b0316906370a08231906107d59086906004016108e8565b602060405180830381865afa1580156107f2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108169190610938565b6001546040516370a0823160e01b81529192506000916001600160a01b03909116906370a082319061084c9087906004016108e8565b602060405180830381865afa158015610869573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061088d9190610938565b9050600061089a85610139565b905060006108a786610473565b905082816108b584876109a6565b6108bf91906109a6565b6108c991906109a6565b9695505050505050565b60006108df82846109b9565b90505b92915050565b6001600160a01b0391909116815260200190565b6001600160a01b038116811461091157600080fd5b50565b60006020828403121561092657600080fd5b8135610931816108fc565b9392505050565b60006020828403121561094a57600080fd5b5051919050565b60006020828403121561096357600080fd5b8151610931816108fc565b634e487b7160e01b600052601160045260246000fd5b6000826109a157634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156108e2576108e261096e565b80820281158282048414176108e2576108e261096e56fea2646970667358221220b3165e3d04d2e6948a8ba7b662d240ad526ed81eb90150753f208ac66f1fb5cd64736f6c63430008180033

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

000000000000000000000000949185d3be66775ea648f4a306740ea9eff9c5670000000000000000000000001dc50da045ad23812c22148e03d62c9691958b47000000000000000000000000f03b44f7c687a4f8e3449cad3b1f639c844c757500000000000000000000000052be1857ab44beee07eaf52978d73acc23ebf44a000000000000000000000000eb7c12e1395517300bf7d2dc322b9422ec220af4

-----Decoded View---------------
Arg [0] : _yel (address): 0x949185D3BE66775Ea648F4a306740EA9eFF9C567
Arg [1] : _lYel (address): 0x1DC50dA045Ad23812c22148e03D62C9691958B47
Arg [2] : _lYelStaking (address): 0xf03B44f7c687A4f8E3449CAD3B1F639C844C7575
Arg [3] : _lpPair (address): 0x52bE1857Ab44beee07EaF52978D73acc23ebf44A
Arg [4] : _lpPairPotion (address): 0xeB7C12e1395517300BF7D2Dc322B9422eC220af4

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000949185d3be66775ea648f4a306740ea9eff9c567
Arg [1] : 0000000000000000000000001dc50da045ad23812c22148e03d62c9691958b47
Arg [2] : 000000000000000000000000f03b44f7c687a4f8e3449cad3b1f639c844c7575
Arg [3] : 00000000000000000000000052be1857ab44beee07eaf52978d73acc23ebf44a
Arg [4] : 000000000000000000000000eb7c12e1395517300bf7d2dc322b9422ec220af4


Block Transaction Gas Used Reward
view all blocks produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits

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.