ETH Price: $3,307.62 (-0.95%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Breed111092062020-10-23 0:06:061556 days ago1603411566IN
0x6469220C...8Ac96dbBe
0 ETH0.0051948231
Withdraw111091662020-10-22 23:56:571556 days ago1603411017IN
0x6469220C...8Ac96dbBe
0 ETH0.0013580123
Withdraw111088362020-10-22 22:45:581556 days ago1603406758IN
0x6469220C...8Ac96dbBe
0 ETH0.0019830645
Deposit111080142020-10-22 19:45:151557 days ago1603395915IN
0x6469220C...8Ac96dbBe
0 ETH0.0013117728
Withdraw111075442020-10-22 18:03:191557 days ago1603389799IN
0x6469220C...8Ac96dbBe
0 ETH0.0031890254
Deposit111052272020-10-22 9:37:181557 days ago1603359438IN
0x6469220C...8Ac96dbBe
0 ETH0.0042266955
Deposit111042912020-10-22 6:10:441557 days ago1603347044IN
0x6469220C...8Ac96dbBe
0 ETH0.0023419849.989999
Breed111026652020-10-22 0:04:561557 days ago1603325096IN
0x6469220C...8Ac96dbBe
0 ETH0.0082111749
Withdraw111010942020-10-21 18:19:501558 days ago1603304390IN
0x6469220C...8Ac96dbBe
0 ETH0.0069686118
Withdraw111010072020-10-21 17:58:021558 days ago1603303082IN
0x6469220C...8Ac96dbBe
0 ETH0.00649748110
Deposit110980042020-10-21 6:53:121558 days ago1603263192IN
0x6469220C...8Ac96dbBe
0 ETH0.0013586229
Deposit110971252020-10-21 3:42:101558 days ago1603251730IN
0x6469220C...8Ac96dbBe
0 ETH0.0026703957
Breed110961522020-10-21 0:06:331558 days ago1603238793IN
0x6469220C...8Ac96dbBe
0 ETH0.0065354239
Deposit110948502020-10-20 19:15:381559 days ago1603221338IN
0x6469220C...8Ac96dbBe
0 ETH0.0056868274
Transfer Ownersh...110932572020-10-20 13:27:071559 days ago1603200427IN
0x6469220C...8Ac96dbBe
0 ETH0.0018466860
Withdraw110908102020-10-20 4:22:241559 days ago1603167744IN
0x6469220C...8Ac96dbBe
0 ETH0.0021469229
Deposit110902202020-10-20 2:14:201559 days ago1603160060IN
0x6469220C...8Ac96dbBe
0 ETH0.0014601319.00000145
Breed110896442020-10-20 0:05:111559 days ago1603152311IN
0x6469220C...8Ac96dbBe
0 ETH0.004021824
Deposit110884122020-10-19 19:30:381560 days ago1603135838IN
0x6469220C...8Ac96dbBe
0 ETH0.0013586229
Deposit110835392020-10-19 1:55:371560 days ago1603072537IN
0x6469220C...8Ac96dbBe
0 ETH0.0021550546
Deposit110834982020-10-19 1:45:401560 days ago1603071940IN
0x6469220C...8Ac96dbBe
0 ETH0.001758322.88
Deposit110831492020-10-19 0:26:261560 days ago1603067186IN
0x6469220C...8Ac96dbBe
0 ETH0.0015369820
Breed110831362020-10-19 0:24:101560 days ago1603067050IN
0x6469220C...8Ac96dbBe
0 ETH0.0036866522
Deposit110826932020-10-18 22:44:481560 days ago1603061088IN
0x6469220C...8Ac96dbBe
0 ETH0.0014601319
Deposit110808922020-10-18 16:15:071561 days ago1603037707IN
0x6469220C...8Ac96dbBe
0 ETH0.0030739640
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x4f730775...23Ff9A92f
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
Farm

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2020-10-18
*/

/**
 *Submitted for verification at Etherscan.io on 2020-10-10
*/

pragma solidity 0.5.17;

library SafeMath {

    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        if (a == 0) 
            return 0;
        uint256 c = a * b;
        require(c / a == b);
        return c;
    }

    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0);
        uint256 c = a / b;
        return c;
    }

    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b <= a);
        uint256 c = a - b;
        return c;
    }

    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a);
        return c;
    }

    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b != 0);
        return a % b;
    }
}

contract Ownable {
    address public owner;

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

    constructor() public {
        owner = msg.sender;
    }

    modifier onlyOwner() {
        require(msg.sender == owner, "permission denied");
        _;
    }

    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0), "invalid address");
        emit OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }
}

contract ERC20 {
    using SafeMath for uint256;

    mapping (address => uint256) internal _balances;
    mapping (address => mapping (address => uint256)) internal _allowed;
    
    event Transfer(address indexed from, address indexed to, uint256 value);
    event Approval(address indexed owner, address indexed spender, uint256 value);

    uint256 internal _totalSupply;

    /**
    * @dev Total number of tokens in existence
    */
    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    /**
    * @dev Gets the balance of the specified address.
    * @param owner The address to query the balance of.
    * @return A uint256 representing the amount owned by the passed address.
    */
    function balanceOf(address owner) public view returns (uint256) {
        return _balances[owner];
    }

    /**
    * @dev Function to check the amount of tokens that an owner allowed to a spender.
    * @param owner address The address which owns the funds.
    * @param spender address The address which will spend the funds.
    * @return A uint256 specifying the amount of tokens still available for the spender.
    */
    function allowance(address owner, address spender) public view returns (uint256) {
        return _allowed[owner][spender];
    }

    /**
    * @dev Transfer token to a specified address
    * @param to The address to transfer to.
    * @param value The amount to be transferred.
    */
    function transfer(address to, uint256 value) public returns (bool) {
        _transfer(msg.sender, to, value);
        return true;
    }

    /**
    * @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
    * 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
    * @param spender The address which will spend the funds.
    * @param value The amount of tokens to be spent.
    */
    function approve(address spender, uint256 value) public returns (bool) {
        _allowed[msg.sender][spender] = value;
        emit Approval(msg.sender, spender, value);
        return true;
    }

    /**
    * @dev Transfer tokens from one address to another.
    * Note that while this function emits an Approval event, this is not required as per the specification,
    * and other compliant implementations may not emit the event.
    * @param from address The address which you want to send tokens from
    * @param to address The address which you want to transfer to
    * @param value uint256 the amount of tokens to be transferred
    */
    function transferFrom(address from, address to, uint256 value) public returns (bool) {
        if (from != msg.sender && _allowed[from][msg.sender] != uint256(-1))
            _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(value);
        _transfer(from, to, value);
        return true;
    }

    function _transfer(address from, address to, uint256 value) internal {
        require(to != address(0));
        _balances[from] = _balances[from].sub(value);
        _balances[to] = _balances[to].add(value);
        emit Transfer(from, to, value);
    }

}

contract ERC20Mintable is ERC20 {
    string public name;
    string public symbol;
    uint8 public decimals;

    function _mint(address to, uint256 amount) internal {
        _balances[to] = _balances[to].add(amount);
        _totalSupply = _totalSupply.add(amount);
        emit Transfer(address(0), to, amount);
    }

    function _burn(address from, uint256 amount) internal {
        _balances[from] = _balances[from].sub(amount);
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(from, address(0), amount);
    }
}

contract Sloth is ERC20Mintable, Ownable {
    using SafeMath for uint256;
    
    mapping (address => bool) public isMinter;

    constructor() public {
        name = "Sloth Finance";
        symbol = "Sloth";
        decimals = 18;
    }

    function setMinter(address minter, bool flag) external onlyOwner {
        isMinter[minter] = flag;
    }

    function mint(address to, uint256 amount) external {
        require(isMinter[msg.sender], "Not Minter");
        _mint(to, amount);
    }

    function burn(address from, uint256 amount) external {
        if (from != msg.sender && _allowed[from][msg.sender] != uint256(-1))
            _allowed[from][msg.sender] = _allowed[from][msg.sender].sub(amount);
        require(_balances[from] >= amount, "insufficient-balance");
        _burn(from, amount);
    }
    
}

interface IUniswapV2Pair {
    event Approval(address indexed owner, address indexed spender, uint value);
    event Transfer(address indexed from, address indexed to, uint value);

    function name() external pure returns (string memory);
    function symbol() external pure returns (string memory);
    function decimals() external pure returns (uint8);
    function totalSupply() external view returns (uint);
    function balanceOf(address owner) external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);

    function approve(address spender, uint value) external returns (bool);
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);

    function DOMAIN_SEPARATOR() external view returns (bytes32);
    function PERMIT_TYPEHASH() external pure returns (bytes32);
    function nonces(address owner) external view returns (uint);

    function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s) external;

    event Mint(address indexed sender, uint amount0, uint amount1);
    event Burn(address indexed sender, uint amount0, uint amount1, address indexed to);
    event Swap(
        address indexed sender,
        uint amount0In,
        uint amount1In,
        uint amount0Out,
        uint amount1Out,
        address indexed to
    );
    event Sync(uint112 reserve0, uint112 reserve1);

    function MINIMUM_LIQUIDITY() external pure returns (uint);
    function factory() external view returns (address);
    function token0() external view returns (address);
    function token1() external view returns (address);
    function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast);
    function price0CumulativeLast() external view returns (uint);
    function price1CumulativeLast() external view returns (uint);
    function kLast() external view returns (uint);

    function mint(address to) external returns (uint liquidity);
    function burn(address to) external returns (uint amount0, uint amount1);
    function swap(uint amount0Out, uint amount1Out, address to, bytes calldata data) external;
    function skim(address to) external;
    function sync() external;

    function initialize(address, address) external;
}

library UniswapV2Library {
    using SafeMath for uint;

    // returns sorted token addresses, used to handle return values from pairs sorted in this order
    function sortTokens(address tokenA, address tokenB) internal pure returns (address token0, address token1) {
        require(tokenA != tokenB, 'UniswapV2Library: IDENTICAL_ADDRESSES');
        (token0, token1) = tokenA < tokenB ? (tokenA, tokenB) : (tokenB, tokenA);
        require(token0 != address(0), 'UniswapV2Library: ZERO_ADDRESS');
    }

    // calculates the CREATE2 address for a pair without making any external calls
    function pairFor(address factory, address tokenA, address tokenB) internal pure returns (address pair) {
        (address token0, address token1) = sortTokens(tokenA, tokenB);
        pair = address(uint(keccak256(abi.encodePacked(
                hex'ff',
                factory,
                keccak256(abi.encodePacked(token0, token1)),
                hex'96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f' // init code hash
            ))));
    }

    // fetches and sorts the reserves for a pair
    function getReserves(address factory, address tokenA, address tokenB) internal view returns (uint reserveA, uint reserveB) {
        (address token0,) = sortTokens(tokenA, tokenB);
        (uint reserve0, uint reserve1,) = IUniswapV2Pair(pairFor(factory, tokenA, tokenB)).getReserves();
        (reserveA, reserveB) = tokenA == token0 ? (reserve0, reserve1) : (reserve1, reserve0);
    }

    // given some amount of an asset and pair reserves, returns an equivalent amount of the other asset
    function quote(uint amountA, uint reserveA, uint reserveB) internal pure returns (uint amountB) {
        require(amountA > 0, 'UniswapV2Library: INSUFFICIENT_AMOUNT');
        require(reserveA > 0 && reserveB > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        amountB = amountA.mul(reserveB) / reserveA;
    }

    // given an input amount of an asset and pair reserves, returns the maximum output amount of the other asset
    function getAmountOut(uint amountIn, uint reserveIn, uint reserveOut) internal pure returns (uint amountOut) {
        require(amountIn > 0, 'UniswapV2Library: INSUFFICIENT_INPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint amountInWithFee = amountIn.mul(997);
        uint numerator = amountInWithFee.mul(reserveOut);
        uint denominator = reserveIn.mul(1000).add(amountInWithFee);
        amountOut = numerator / denominator;
    }

    // given an output amount of an asset and pair reserves, returns a required input amount of the other asset
    function getAmountIn(uint amountOut, uint reserveIn, uint reserveOut) internal pure returns (uint amountIn) {
        require(amountOut > 0, 'UniswapV2Library: INSUFFICIENT_OUTPUT_AMOUNT');
        require(reserveIn > 0 && reserveOut > 0, 'UniswapV2Library: INSUFFICIENT_LIQUIDITY');
        uint numerator = reserveIn.mul(amountOut).mul(1000);
        uint denominator = reserveOut.sub(amountOut).mul(997);
        amountIn = (numerator / denominator).add(1);
    }

    // performs chained getAmountOut calculations on any number of pairs
    function getAmountsOut(address factory, uint amountIn, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[0] = amountIn;
        for (uint i; i < path.length - 1; i++) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i], path[i + 1]);
            amounts[i + 1] = getAmountOut(amounts[i], reserveIn, reserveOut);
        }
    }

    // performs chained getAmountIn calculations on any number of pairs
    function getAmountsIn(address factory, uint amountOut, address[] memory path) internal view returns (uint[] memory amounts) {
        require(path.length >= 2, 'UniswapV2Library: INVALID_PATH');
        amounts = new uint[](path.length);
        amounts[amounts.length - 1] = amountOut;
        for (uint i = path.length - 1; i > 0; i--) {
            (uint reserveIn, uint reserveOut) = getReserves(factory, path[i - 1], path[i]);
            amounts[i - 1] = getAmountIn(amounts[i], reserveIn, reserveOut);
        }
    }
}


contract Farm is Ownable {
    using SafeMath for uint256;

    Sloth public sloth; //white sloth
    IUniswapV2Pair public cSloth; //colored sloth
    ERC20 public token; //token
    uint256 public today;
    uint256 public spawnRate;
    uint256 public withdrawRate;
    uint256 public timeLock;

    uint256 internal _totalSupply;
    mapping(address => uint256) internal _balances;
    mapping(address => uint256) public depositTimeStamp;

    constructor(uint256 _spawnRate, uint256 _withdrawRate, uint256 _timeLock, address _sloth, address _cSloth, address _token) public {
        today = now / 1 days;
        spawnRate = _spawnRate;
        withdrawRate = _withdrawRate;
        timeLock = _timeLock;
        sloth = Sloth(_sloth);
        cSloth = IUniswapV2Pair(_cSloth);
        token = ERC20(_token);
    }

    function setParams(uint256 _spawnRate, uint256 _withdrawRate, uint256 _timeLock) external onlyOwner {
        require(_spawnRate <= 0.1e18);
        require(_withdrawRate >= 0.85e18 && _withdrawRate <= 1e18);
        require(_timeLock <= 15 days);
        spawnRate = _spawnRate;
        withdrawRate = _withdrawRate;
        timeLock = _timeLock;
    }

    function totalSupply() public view returns (uint256) {
        return _totalSupply;
    }

    function balanceOf(address account) public view returns (uint256) {
        return _balances[account];
    }

    function totalValue() public view returns(uint256) {
        return cSloth.balanceOf(address(this));
    }

    function deposit(uint256 amount) external returns (uint256 share) {
        if(totalSupply() > 0) 
            share = totalSupply().mul(amount).div(totalValue());
        else
            share = amount;
        _balances[msg.sender] = _balances[msg.sender].add(share);
        depositTimeStamp[msg.sender] = now;
        _totalSupply = _totalSupply.add(share);
        require(cSloth.transferFrom(msg.sender, address(this), amount));
    }

    function withdraw(address to, uint256 share) external returns (uint256 amount) {
        require(depositTimeStamp[msg.sender].add(timeLock) <= now, "locked");
        amount = share.mul(totalValue()).div(totalSupply());
        if(share < _totalSupply)
            amount = amount.mul(withdrawRate).div(1e18);
        _balances[msg.sender] = _balances[msg.sender].sub(share);
        _totalSupply = _totalSupply.sub(share);
        require(cSloth.transfer(to, amount));
    }

    function rescueToken(ERC20 _token, uint256 _amount) onlyOwner public {
        require(_token != ERC20(address(cSloth)));
        _token.transfer(msg.sender, _amount);
    }

    function breed() external {
        require(now / 1 days > today);
        today += 1;

        uint256 slothPairAmount = sloth.balanceOf(address(cSloth));
        uint256 tokenPairAmount = token.balanceOf(address(cSloth));
        uint256 newSloth = slothPairAmount.mul(spawnRate).div(1e18);
        uint256 amount = UniswapV2Library.getAmountOut(newSloth, slothPairAmount, tokenPairAmount);

        sloth.mint(address(cSloth), newSloth);
        if(address(sloth) < address(token))
            cSloth.swap(0, amount, address(this), "");
        else
            cSloth.swap(amount, 0, address(this), "");
        token.transfer(address(cSloth), amount);
        sloth.mint(address(cSloth), newSloth);
        cSloth.mint(address(this));
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint256","name":"_spawnRate","type":"uint256"},{"internalType":"uint256","name":"_withdrawRate","type":"uint256"},{"internalType":"uint256","name":"_timeLock","type":"uint256"},{"internalType":"address","name":"_sloth","type":"address"},{"internalType":"address","name":"_cSloth","type":"address"},{"internalType":"address","name":"_token","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"breed","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"cSloth","outputs":[{"internalType":"contract IUniswapV2Pair","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"share","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"depositTimeStamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"contract ERC20","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"rescueToken","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"_spawnRate","type":"uint256"},{"internalType":"uint256","name":"_withdrawRate","type":"uint256"},{"internalType":"uint256","name":"_timeLock","type":"uint256"}],"name":"setParams","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"sloth","outputs":[{"internalType":"contract Sloth","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"spawnRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"timeLock","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"today","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"token","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"totalValue","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"share","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"withdrawRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101165760003560e01c8063b6b55f25116100a2578063dff05f8211610071578063dff05f821461022b578063f2fde38b14610251578063f3fef3a314610277578063f838f1cf146102a3578063fc0c546a146102ab57610116565b8063b6b55f25146101f6578063b74e452b14610213578063d085835a1461021b578063d4c3eea01461022357610116565b80635a0ce676116100e95780635a0ce6761461017357806368b85fb11461019c57806370a08231146101a45780638da5cb5b146101ca578063afbfe8c1146101ee57610116565b80630dcf14171461011b57806318160ddd1461013557806333f3d6281461013d5780633db18f4d1461016b575b600080fd5b6101236102b3565b60408051918252519081900360200190f35b6101236102b9565b6101696004803603604081101561015357600080fd5b506001600160a01b0381351690602001356102bf565b005b6101236103ac565b6101696004803603606081101561018957600080fd5b50803590602081013590604001356103b2565b610169610461565b610123600480360360208110156101ba57600080fd5b50356001600160a01b03166108c8565b6101d26108e7565b604080516001600160a01b039092168252519081900360200190f35b6101d26108f6565b6101236004803603602081101561020c57600080fd5b5035610905565b610123610a26565b610123610a2c565b610123610a32565b6101236004803603602081101561024157600080fd5b50356001600160a01b0316610aae565b6101696004803603602081101561026757600080fd5b50356001600160a01b0316610ac0565b6101236004803603604081101561028d57600080fd5b506001600160a01b038135169060200135610bbb565b6101d2610d47565b6101d2610d56565b60065481565b60085490565b6000546001600160a01b03163314610312576040805162461bcd60e51b81526020600482015260116024820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b6002546001600160a01b038381169116141561032d57600080fd5b6040805163a9059cbb60e01b81523360048201526024810183905290516001600160a01b0384169163a9059cbb9160448083019260209291908290030181600087803b15801561037c57600080fd5b505af1158015610390573d6000803e3d6000fd5b505050506040513d60208110156103a657600080fd5b50505050565b60055481565b6000546001600160a01b03163314610405576040805162461bcd60e51b81526020600482015260116024820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b67016345785d8a000083111561041a57600080fd5b670bcbce7f1b150000821015801561043a5750670de0b6b3a76400008211155b61044357600080fd5b6213c68081111561045357600080fd5b600592909255600655600755565b6004546201518042041161047457600080fd5b600480546001908101825554600254604080516370a0823160e01b81526001600160a01b03928316948101949094525160009391909216916370a0823191602480820192602092909190829003018186803b1580156104d257600080fd5b505afa1580156104e6573d6000803e3d6000fd5b505050506040513d60208110156104fc57600080fd5b5051600354600254604080516370a0823160e01b81526001600160a01b039283166004820152905193945060009391909216916370a08231916024808301926020929190829003018186803b15801561055457600080fd5b505afa158015610568573d6000803e3d6000fd5b505050506040513d602081101561057e57600080fd5b50516005549091506000906105b490670de0b6b3a7640000906105a890869063ffffffff610d6516565b9063ffffffff610d9316565b905060006105c3828585610db5565b600154600254604080516340c10f1960e01b81526001600160a01b0392831660048201526024810187905290519394509116916340c10f199160448082019260009290919082900301818387803b15801561061d57600080fd5b505af1158015610631573d6000803e3d6000fd5b50506003546001546001600160a01b039182169116101591506106d49050576002546040805163022c0d9f60e01b815260006004820181905260248201859052306044830152608060648301526084820181905291516001600160a01b039093169263022c0d9f9260c48084019391929182900301818387803b1580156106b757600080fd5b505af11580156106cb573d6000803e3d6000fd5b50505050610754565b6002546040805163022c0d9f60e01b815260048101849052600060248201819052306044830152608060648301526084820181905291516001600160a01b039093169263022c0d9f9260c48084019391929182900301818387803b15801561073b57600080fd5b505af115801561074f573d6000803e3d6000fd5b505050505b6003546002546040805163a9059cbb60e01b81526001600160a01b039283166004820152602481018590529051919092169163a9059cbb9160448083019260209291908290030181600087803b1580156107ad57600080fd5b505af11580156107c1573d6000803e3d6000fd5b505050506040513d60208110156107d757600080fd5b5050600154600254604080516340c10f1960e01b81526001600160a01b03928316600482015260248101869052905191909216916340c10f1991604480830192600092919082900301818387803b15801561083157600080fd5b505af1158015610845573d6000803e3d6000fd5b5050600254604080516335313c2160e11b815230600482015290516001600160a01b039092169350636a62784292506024808201926020929091908290030181600087803b15801561089657600080fd5b505af11580156108aa573d6000803e3d6000fd5b505050506040513d60208110156108c057600080fd5b505050505050565b6001600160a01b0381166000908152600960205260409020545b919050565b6000546001600160a01b031681565b6002546001600160a01b031681565b6000806109106102b9565b111561094057610939610921610a32565b6105a88461092d6102b9565b9063ffffffff610d6516565b9050610943565b50805b33600090815260096020526040902054610963908263ffffffff610ea516565b33600090815260096020908152604080832093909355600a905220429055600854610994908263ffffffff610ea516565b600855600254604080516323b872dd60e01b81523360048201523060248201526044810185905290516001600160a01b03909216916323b872dd916064808201926020929091908290030181600087803b1580156109f157600080fd5b505af1158015610a05573d6000803e3d6000fd5b505050506040513d6020811015610a1b57600080fd5b50516108e257600080fd5b60045481565b60075481565b600254604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610a7d57600080fd5b505afa158015610a91573d6000803e3d6000fd5b505050506040513d6020811015610aa757600080fd5b5051905090565b600a6020526000908152604090205481565b6000546001600160a01b03163314610b13576040805162461bcd60e51b81526020600482015260116024820152701c195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b6001600160a01b038116610b60576040805162461bcd60e51b815260206004820152600f60248201526e696e76616c6964206164647265737360881b604482015290519081900360640190fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600754336000908152600a602052604081205490914291610be19163ffffffff610ea516565b1115610c1d576040805162461bcd60e51b81526020600482015260066024820152651b1bd8dad95960d21b604482015290519081900360640190fd5b610c40610c286102b9565b6105a8610c33610a32565b859063ffffffff610d6516565b9050600854821015610c7057610c6d670de0b6b3a76400006105a860065484610d6590919063ffffffff16565b90505b33600090815260096020526040902054610c90908363ffffffff610eb716565b33600090815260096020526040902055600854610cb3908363ffffffff610eb716565b6008556002546040805163a9059cbb60e01b81526001600160a01b038681166004830152602482018590529151919092169163a9059cbb9160448083019260209291908290030181600087803b158015610d0c57600080fd5b505af1158015610d20573d6000803e3d6000fd5b505050506040513d6020811015610d3657600080fd5b5051610d4157600080fd5b92915050565b6001546001600160a01b031681565b6003546001600160a01b031681565b600082610d7457506000610d41565b82820282848281610d8157fe5b0414610d8c57600080fd5b9392505050565b6000808211610da157600080fd5b6000828481610dac57fe5b04949350505050565b6000808411610df55760405162461bcd60e51b815260040180806020018281038252602b815260200180610ef5602b913960400191505060405180910390fd5b600083118015610e055750600082115b610e405760405162461bcd60e51b8152600401808060200182810382526028815260200180610ecd6028913960400191505060405180910390fd5b6000610e54856103e563ffffffff610d6516565b90506000610e68828563ffffffff610d6516565b90506000610e8e83610e82886103e863ffffffff610d6516565b9063ffffffff610ea516565b9050808281610e9957fe5b04979650505050505050565b600082820183811015610d8c57600080fd5b600082821115610ec657600080fd5b5090039056fe556e697377617056324c6962726172793a20494e53554646494349454e545f4c4951554944495459556e697377617056324c6962726172793a20494e53554646494349454e545f494e5055545f414d4f554e54a265627a7a7231582013129e7f3fe6682c3825543e5f461880aa06addf5e8f7e8bb57f19cbd686eba164736f6c63430005110032

Deployed Bytecode Sourcemap

13287:3449:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;13287:3449:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;13535:27;;;:::i;:::-;;;;;;;;;;;;;;;;14505:91;;;:::i;15787:176::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15787:176:0;;;;;;;;:::i;:::-;;13504:24;;;:::i;14137:360::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14137:360:0;;;;;;;;;;;;:::i;15971:762::-;;;:::i;14604:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14604:110:0;-1:-1:-1;;;;;14604:110:0;;:::i;951:20::-;;;:::i;:::-;;;;-1:-1:-1;;;;;951:20:0;;;;;;;;;;;;;;13393:28;;;:::i;14838:450::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14838:450:0;;:::i;13477:20::-;;;:::i;13569:23::-;;;:::i;14722:108::-;;;:::i;13690:51::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;13690:51:0;-1:-1:-1;;;;;13690:51:0;;:::i;1247:211::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;1247:211:0;-1:-1:-1;;;;;1247:211:0;;:::i;15296:483::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15296:483:0;;;;;;;;:::i;13354:18::-;;;:::i;13444:::-;;;:::i;13535:27::-;;;;:::o;14505:91::-;14576:12;;14505:91;:::o;15787:176::-;1192:5;;-1:-1:-1;;;;;1192:5:0;1178:10;:19;1170:49;;;;;-1:-1:-1;;;1170:49:0;;;;;;;;;;;;-1:-1:-1;;;1170:49:0;;;;;;;;;;;;;;;15899:6;;-1:-1:-1;;;;;15875:32:0;;;15899:6;;15875:32;;15867:41;;;;;;15919:36;;;-1:-1:-1;;;15919:36:0;;15935:10;15919:36;;;;;;;;;;;;-1:-1:-1;;;;;15919:15:0;;;;;:36;;;;;;;;;;;;;;-1:-1:-1;15919:15:0;:36;;;5:2:-1;;;;30:1;27;20:12;5:2;15919:36:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15919:36:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;15787:176:0:o;13504:24::-;;;;:::o;14137:360::-;1192:5;;-1:-1:-1;;;;;1192:5:0;1178:10;:19;1170:49;;;;;-1:-1:-1;;;1170:49:0;;;;;;;;;;;;-1:-1:-1;;;1170:49:0;;;;;;;;;;;;;;;14270:6;14256:10;:20;;14248:29;;;;;;14313:7;14296:13;:24;;:49;;;;;14341:4;14324:13;:21;;14296:49;14288:58;;;;;;14378:7;14365:9;:20;;14357:29;;;;;;14397:9;:22;;;;14430:12;:28;14469:8;:20;14137:360::o;15971:762::-;16031:5;;16022:6;16016:3;:12;:20;16008:29;;;;;;16048:5;:10;;16057:1;16048:10;;;;;16097:5;16121:6;;16097:32;;;-1:-1:-1;;;16097:32:0;;-1:-1:-1;;;;;16121:6:0;;;16097:32;;;;;;;;16048:5;;16097;;;;;:15;;:32;;;;;;;;;;;;;;;:5;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;16097:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16097:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16097:32:0;16166:5;;16190:6;;16166:32;;;-1:-1:-1;;;16166:32:0;;-1:-1:-1;;;;;16190:6:0;;;16166:32;;;;;;16097;;-1:-1:-1;16140:23:0;;16166:5;;;;;:15;;:32;;;;;16097;;16166;;;;;;;:5;:32;;;5:2:-1;;;;30:1;27;20:12;5:2;16166:32:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16166:32:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;16166:32:0;16248:9;;16166:32;;-1:-1:-1;16209:16:0;;16228:40;;16263:4;;16228:30;;:15;;:30;:19;:30;:::i;:::-;:34;:40;:34;:40;:::i;:::-;16209:59;;16279:14;16296:73;16326:8;16336:15;16353;16296:29;:73::i;:::-;16382:5;;16401:6;;16382:37;;;-1:-1:-1;;;16382:37:0;;-1:-1:-1;;;;;16401:6:0;;;16382:37;;;;;;;;;;;;16279:90;;-1:-1:-1;16382:5:0;;;:10;;:37;;;;;:5;;:37;;;;;;;;:5;;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;16382:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;16458:5:0;;;16441;-1:-1:-1;;;;;16458:5:0;;;16441;;16433:31;16430:160;;-1:-1:-1;16430:160:0;;-1:-1:-1;16430:160:0;16479:6;;:41;;;-1:-1:-1;;;16479:41:0;;:6;:41;;;;;;;;;;;;16510:4;16479:41;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16479:6:0;;;;:11;;:41;;;;;:6;;:41;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;16479:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16479:41:0;;;;16430:160;;;16549:6;;:41;;;-1:-1:-1;;;16549:41:0;;;;;;;;:6;:41;;;;;;16580:4;16549:41;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;16549:6:0;;;;:11;;:41;;;;;:6;;:41;;;;;;:6;;:41;;;5:2:-1;;;;30:1;27;20:12;5:2;16549:41:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16549:41:0;;;;16430:160;16601:5;;16624:6;;16601:39;;;-1:-1:-1;;;16601:39:0;;-1:-1:-1;;;;;16624:6:0;;;16601:39;;;;;;;;;;;;:5;;;;;:14;;:39;;;;;;;;;;;;;;:5;;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;16601:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16601:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;16651:5:0;;16670:6;;16651:37;;;-1:-1:-1;;;16651:37:0;;-1:-1:-1;;;;;16670:6:0;;;16651:37;;;;;;;;;;;;:5;;;;;:10;;:37;;;;;:5;;:37;;;;;;;:5;;:37;;;5:2:-1;;;;30:1;27;20:12;5:2;16651:37:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;16699:6:0;;:26;;;-1:-1:-1;;;16699:26:0;;16719:4;16699:26;;;;;;-1:-1:-1;;;;;16699:6:0;;;;-1:-1:-1;16699:11:0;;-1:-1:-1;16699:26:0;;;;;;;;;;;;;;;:6;;:26;;;5:2:-1;;;;30:1;27;20:12;5:2;16699:26:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;16699:26:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;15971:762:0:o;14604:110::-;-1:-1:-1;;;;;14688:18:0;;14661:7;14688:18;;;:9;:18;;;;;;14604:110;;;;:::o;951:20::-;;;-1:-1:-1;;;;;951:20:0;;:::o;13393:28::-;;;-1:-1:-1;;;;;13393:28:0;;:::o;14838:450::-;14889:13;14934:1;14918:13;:11;:13::i;:::-;:17;14915:130;;;14959:43;14989:12;:10;:12::i;:::-;14959:25;14977:6;14959:13;:11;:13::i;:::-;:17;:25;:17;:25;:::i;:43::-;14951:51;;14915:130;;;-1:-1:-1;15039:6:0;14915:130;15090:10;15080:21;;;;:9;:21;;;;;;:32;;15106:5;15080:32;:25;:32;:::i;:::-;15066:10;15056:21;;;;:9;:21;;;;;;;;:56;;;;15123:16;:28;;;15154:3;15123:34;;15183:12;;:23;;15200:5;15183:23;:16;:23;:::i;:::-;15168:12;:38;15225:6;;:54;;;-1:-1:-1;;;15225:54:0;;15245:10;15225:54;;;;15265:4;15225:54;;;;;;;;;;;;-1:-1:-1;;;;;15225:6:0;;;;:19;;:54;;;;;;;;;;;;;;;:6;;:54;;;5:2:-1;;;;30:1;27;20:12;5:2;15225:54:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15225:54:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15225:54:0;15217:63;;;;;13477:20;;;;:::o;13569:23::-;;;;:::o;14722:108::-;14791:6;;:31;;;-1:-1:-1;;;14791:31:0;;14816:4;14791:31;;;;;;14764:7;;-1:-1:-1;;;;;14791:6:0;;:16;;:31;;;;;;;;;;;;;;:6;:31;;;5:2:-1;;;;30:1;27;20:12;5:2;14791:31:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;14791:31:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;14791:31:0;;-1:-1:-1;14722:108:0;:::o;13690:51::-;;;;;;;;;;;;;:::o;1247:211::-;1192:5;;-1:-1:-1;;;;;1192:5:0;1178:10;:19;1170:49;;;;;-1:-1:-1;;;1170:49:0;;;;;;;;;;;;-1:-1:-1;;;1170:49:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;1328:22:0;;1320:50;;;;;-1:-1:-1;;;1320:50:0;;;;;;;;;;;;-1:-1:-1;;;1320:50:0;;;;;;;;;;;;;;;1407:5;;;1386:37;;-1:-1:-1;;;;;1386:37:0;;;;1407:5;;;1386:37;;;1434:5;:16;;-1:-1:-1;;;;;;1434:16:0;-1:-1:-1;;;;;1434:16:0;;;;;;;;;;1247:211::o;15296:483::-;15427:8;;15411:10;15359:14;15394:28;;;:16;:28;;;;;;15359:14;;15440:3;;15394:42;;;:32;:42;:::i;:::-;:49;;15386:68;;;;;-1:-1:-1;;;15386:68:0;;;;;;;;;;;;-1:-1:-1;;;15386:68:0;;;;;;;;;;;;;;;15474:42;15502:13;:11;:13::i;:::-;15474:23;15484:12;:10;:12::i;:::-;15474:5;;:23;:9;:23;:::i;:42::-;15465:51;;15538:12;;15530:5;:20;15527:81;;;15574:34;15603:4;15574:24;15585:12;;15574:6;:10;;:24;;;;:::i;:34::-;15565:43;;15527:81;15653:10;15643:21;;;;:9;:21;;;;;;:32;;15669:5;15643:32;:25;:32;:::i;:::-;15629:10;15619:21;;;;:9;:21;;;;;:56;15701:12;;:23;;15718:5;15701:23;:16;:23;:::i;:::-;15686:12;:38;15743:6;;:27;;;-1:-1:-1;;;15743:27:0;;-1:-1:-1;;;;;15743:27:0;;;;;;;;;;;;;;;:6;;;;;:15;;:27;;;;;;;;;;;;;;:6;;:27;;;5:2:-1;;;;30:1;27;20:12;5:2;15743:27:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;15743:27:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;15743:27:0;15735:36;;;;;;15296:483;;;;:::o;13354:18::-;;;-1:-1:-1;;;;;13354:18:0;;:::o;13444:::-;;;-1:-1:-1;;;;;13444:18:0;;:::o;124:197::-;182:7;206:6;202:34;;-1:-1:-1;235:1:0;228:8;;202:34;259:5;;;263:1;259;:5;:1;283:5;;;;;:10;275:19;;;;;;312:1;124:197;-1:-1:-1;;;124:197:0:o;329:147::-;387:7;419:1;415;:5;407:14;;;;;;432:9;448:1;444;:5;;;;;;;329:147;-1:-1:-1;;;;329:147:0:o;10962:517::-;11055:14;11101:1;11090:8;:12;11082:68;;;;-1:-1:-1;;;11082:68:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11181:1;11169:9;:13;:31;;;;;11199:1;11186:10;:14;11169:31;11161:84;;;;-1:-1:-1;;;11161:84:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11256:20;11279:17;:8;11292:3;11279:17;:12;:17;:::i;:::-;11256:40;-1:-1:-1;11307:14:0;11324:31;11256:40;11344:10;11324:31;:19;:31;:::i;:::-;11307:48;-1:-1:-1;11366:16:0;11385:40;11409:15;11385:19;:9;11399:4;11385:19;:13;:19;:::i;:::-;:23;:40;:23;:40;:::i;:::-;11366:59;;11460:11;11448:9;:23;;;;;;;10962:517;-1:-1:-1;;;;;;;10962:517:0:o;640:148::-;698:7;730:5;;;754:6;;;;746:15;;;;;484:148;542:7;575:1;570;:6;;562:15;;;;;;-1:-1:-1;600:5:0;;;484:148::o

Swarm Source

bzzr://13129e7f3fe6682c3825543e5f461880aa06addf5e8f7e8bb57f19cbd686eba1

Block Transaction Difficulty 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
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.