ETH Price: $3,293.27 (-1.68%)

Contract

0xFA82A58605AFf1F44d32b41904E7A43710f69d44
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
0x6060604052777372018-03-18 14:19:182441 days ago1521382758IN
 Create: FishbankUtils
0 ETH0.00719053

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
FishbankUtils

Compiler Version
v0.4.21+commit.dfe3193c

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
/**
 *Submitted for verification at Etherscan.io on 2018-03-18
*/

pragma solidity ^0.4.18;


/**
 * @title Ownable
 * @dev The Ownable contract has an owner address, and provides basic authorization control
 * functions, this simplifies the implementation of "user permissions".
 */
contract Ownable {
    address public owner;


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


    /**
     * @dev The Ownable constructor sets the original `owner` of the contract to the sender
     * account.
     */
    function Ownable() public {
        owner = msg.sender;
    }


    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(msg.sender == owner);
        _;
    }


    /**
     * @dev Allows the current owner to transfer control of the contract to a newOwner.
     * @param newOwner The address to transfer ownership to.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        require(newOwner != address(0));
        OwnershipTransferred(owner, newOwner);
        owner = newOwner;
    }

}




contract FishbankUtils is Ownable {

    uint32[100] cooldowns = [
        720 minutes, 720 minutes, 720 minutes, 720 minutes, 720 minutes, //1-5
        660 minutes, 660 minutes, 660 minutes, 660 minutes, 660 minutes, //6-10
        600 minutes, 600 minutes, 600 minutes, 600 minutes, 600 minutes, //11-15
        540 minutes, 540 minutes, 540 minutes, 540 minutes, 540 minutes, //16-20
        480 minutes, 480 minutes, 480 minutes, 480 minutes, 480 minutes, //21-25
        420 minutes, 420 minutes, 420 minutes, 420 minutes, 420 minutes, //26-30
        360 minutes, 360 minutes, 360 minutes, 360 minutes, 360 minutes, //31-35
        300 minutes, 300 minutes, 300 minutes, 300 minutes, 300 minutes, //36-40
        240 minutes, 240 minutes, 240 minutes, 240 minutes, 240 minutes, //41-45
        180 minutes, 180 minutes, 180 minutes, 180 minutes, 180 minutes, //46-50
        120 minutes, 120 minutes, 120 minutes, 120 minutes, 120 minutes, //51-55
        90 minutes,  90 minutes,  90 minutes,  90 minutes,  90 minutes,  //56-60
        75 minutes,  75 minutes,  75 minutes,  75 minutes,  75 minutes,  //61-65
        60 minutes,  60 minutes,  60 minutes,  60 minutes,  60 minutes,  //66-70
        50 minutes,  50 minutes,  50 minutes,  50 minutes,  50 minutes,  //71-75
        40 minutes,  40 minutes,  40 minutes,  40 minutes,  40 minutes,  //76-80
        30 minutes,  30 minutes,  30 minutes,  30 minutes,  30 minutes,  //81-85
        20 minutes,  20 minutes,  20 minutes,  20 minutes,  20 minutes,  //86-90
        10 minutes,  10 minutes,  10 minutes,  10 minutes,  10 minutes,  //91-95
        5 minutes,   5 minutes,   5 minutes,   5 minutes,   5 minutes    //96-100
    ];


    function setCooldowns(uint32[100] _cooldowns) onlyOwner public {
        cooldowns = _cooldowns;
    }

    function getFishParams(uint256 hashSeed1, uint256 hashSeed2, uint256 fishesLength, address coinbase) external pure returns (uint32[4]) {

        bytes32[5] memory hashSeeds;
        hashSeeds[0] = keccak256(hashSeed1 ^ hashSeed2); //xor both seed from owner and user so no one can cheat
        hashSeeds[1] = keccak256(hashSeeds[0], fishesLength);
        hashSeeds[2] = keccak256(hashSeeds[1], coinbase);
        hashSeeds[3] = keccak256(hashSeeds[2], coinbase, fishesLength);
        hashSeeds[4] = keccak256(hashSeeds[1], hashSeeds[2], hashSeeds[0]);

        uint24[6] memory seeds = [
            uint24(uint(hashSeeds[3]) % 10e6 + 1), //whale chance
            uint24(uint(hashSeeds[0]) % 420 + 1), //power
            uint24(uint(hashSeeds[1]) % 420 + 1), //agility
            uint24(uint(hashSeeds[2]) % 150 + 1), //speed
            uint24(uint(hashSeeds[4]) % 16 + 1), //whale type
            uint24(uint(hashSeeds[4]) % 5000 + 1) //rarity
        ];

        uint32[4] memory fishParams;

        if (seeds[0] == 1000000) {//This is a whale 1:1 000 000 chance

            if (seeds[4] == 1) {//Orca
                fishParams = [140 + uint8(seeds[1] / 42), 140 + uint8(seeds[2] / 42), 75 + uint8(seeds[3] / 6), uint32(500000)];
                if(fishParams[0] == 140) {
                    fishParams[0]++;
                }
                if(fishParams[1] == 140) {
                    fishParams[1]++;
                }
                if(fishParams[2] == 75) {
                    fishParams[2]++;
                }
            } else if (seeds[4] < 4) {//Blue whale
                fishParams = [130 + uint8(seeds[1] / 42), 130 + uint8(seeds[2] / 42), 75 + uint8(seeds[3] / 6), uint32(500000)];
                if(fishParams[0] == 130) {
                    fishParams[0]++;
                }
                if(fishParams[1] == 130) {
                    fishParams[1]++;
                }
                if(fishParams[2] == 75) {
                    fishParams[2]++;
                }
            } else {//Cachalot
                fishParams = [115 + uint8(seeds[1] / 28), 115 + uint8(seeds[2] / 28), 75 + uint8(seeds[3] / 6), uint32(500000)];
                if(fishParams[0] == 115) {
                    fishParams[0]++;
                }
                if(fishParams[1] == 115) {
                    fishParams[1]++;
                }
                if(fishParams[2] == 75) {
                    fishParams[2]++;
                }
            }
        } else {
            if (seeds[5] == 5000) {//Legendary
                fishParams = [85 + uint8(seeds[1] / 14), 85 + uint8(seeds[2] / 14), uint8(50 + seeds[3] / 3), uint32(1000)];
                if(fishParams[0] == 85) {
                    fishParams[0]++;
                }
                if(fishParams[1] == 85) {
                    fishParams[1]++;
                }
            } else if (seeds[5] > 4899) {//Epic
                fishParams = [50 + uint8(seeds[1] / 12), 50 + uint8(seeds[2] / 12), uint8(25 + seeds[3] / 2), uint32(300)];
                if(fishParams[0] == 50) {
                    fishParams[0]++;
                }
                if(fishParams[1] == 50) {
                    fishParams[1]++;
                }

            } else if (seeds[5] > 4000) {//Rare
                fishParams = [20 + uint8(seeds[1] / 14), 20 + uint8(seeds[2] / 14), uint8(25 + seeds[3] / 3), uint32(100)];
                if(fishParams[0] == 20) {
                    fishParams[0]++;
                }
                if(fishParams[1] == 20) {
                    fishParams[1]++;
                }
            } else {//Common
                fishParams = [uint8(seeds[1] / 21), uint8(seeds[2] / 21), uint8(seeds[3] / 3), uint32(36)];
                if (fishParams[0] == 0) {
                    fishParams[0] = 1;
                }
                if (fishParams[1] == 0) {
                    fishParams[1] = 1;
                }
                if (fishParams[2] == 0) {
                    fishParams[2] = 1;
                }
            }
        }

        return fishParams;
    }

    function getCooldown(uint16 speed) external view returns (uint64){
        return uint64(now + cooldowns[speed - 1]);
    }

    //Ceiling function for fish generator
    function ceil(uint base, uint divider) internal pure returns (uint) {
        return base / divider + ((base % divider > 0) ? 1 : 0);
    }
}

Contract Security Audit

Contract ABI

[{"constant":false,"inputs":[{"name":"_cooldowns","type":"uint32[100]"}],"name":"setCooldowns","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"hashSeed1","type":"uint256"},{"name":"hashSeed2","type":"uint256"},{"name":"fishesLength","type":"uint256"},{"name":"coinbase","type":"address"}],"name":"getFishParams","outputs":[{"name":"","type":"uint32[4]"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":false,"inputs":[{"name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"speed","type":"uint16"}],"name":"getCooldown","outputs":[{"name":"","type":"uint64"}],"payable":false,"stateMutability":"view","type":"function"},{"anonymous":false,"inputs":[{"indexed":true,"name":"previousOwner","type":"address"},{"indexed":true,"name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"}]

6060604052610c806040519081016040528061a8c061ffff16815260200161a8c061ffff16815260200161a8c061ffff16815260200161a8c061ffff16815260200161a8c061ffff168152602001619ab061ffff168152602001619ab061ffff168152602001619ab061ffff168152602001619ab061ffff168152602001619ab061ffff168152602001618ca061ffff168152602001618ca061ffff168152602001618ca061ffff168152602001618ca061ffff168152602001618ca061ffff168152602001617e9061ffff168152602001617e9061ffff168152602001617e9061ffff168152602001617e9061ffff168152602001617e9061ffff16815260200161708061ffff16815260200161708061ffff16815260200161708061ffff16815260200161708061ffff16815260200161708061ffff16815260200161627061ffff16815260200161627061ffff16815260200161627061ffff16815260200161627061ffff16815260200161627061ffff16815260200161546061ffff16815260200161546061ffff16815260200161546061ffff16815260200161546061ffff16815260200161546061ffff16815260200161465061ffff16815260200161465061ffff16815260200161465061ffff16815260200161465061ffff16815260200161465061ffff16815260200161384061ffff16815260200161384061ffff16815260200161384061ffff16815260200161384061ffff16815260200161384061ffff168152602001612a3061ffff168152602001612a3061ffff168152602001612a3061ffff168152602001612a3061ffff168152602001612a3061ffff168152602001611c2061ffff168152602001611c2061ffff168152602001611c2061ffff168152602001611c2061ffff168152602001611c2061ffff16815260200161151861ffff16815260200161151861ffff16815260200161151861ffff16815260200161151861ffff16815260200161151861ffff16815260200161119461ffff16815260200161119461ffff16815260200161119461ffff16815260200161119461ffff16815260200161119461ffff168152602001610e1061ffff168152602001610e1061ffff168152602001610e1061ffff168152602001610e1061ffff168152602001610e1061ffff168152602001610bb861ffff168152602001610bb861ffff168152602001610bb861ffff168152602001610bb861ffff168152602001610bb861ffff16815260200161096061ffff16815260200161096061ffff16815260200161096061ffff16815260200161096061ffff16815260200161096061ffff16815260200161070861ffff16815260200161070861ffff16815260200161070861ffff16815260200161070861ffff16815260200161070861ffff1681526020016104b061ffff1681526020016104b061ffff1681526020016104b061ffff1681526020016104b061ffff1681526020016104b061ffff16815260200161025861ffff16815260200161025861ffff16815260200161025861ffff16815260200161025861ffff16815260200161025861ffff16815260200161012c61ffff16815260200161012c61ffff16815260200161012c61ffff16815260200161012c61ffff16815260200161012c61ffff168152506001906064620004d192919062000518565b50336000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550620005f6565b826064600701600890048101928215620005ad5791602002820160005b838211156200057957835183826101000a81548163ffffffff021916908361ffff160217905550926020019260040160208160030104928301926001030262000535565b8015620005ab5782816101000a81549063ffffffff021916905560040160208160030104928301926001030262000579565b505b509050620005bc9190620005c0565b5090565b620005f391905b80821115620005ef57600081816101000a81549063ffffffff021916905550600101620005c7565b5090565b90565b61156780620006066000396000f30060606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806314986f5b146100725780638da5cb5b146100b9578063bdd7908b1461010e578063f2fde38b1461019e578063ff429fc8146101d7575b600080fd5b341561007d57600080fd5b6100b760048080610c8001906064806020026040519081016040528092919082606460200280828437820191505050505091905050610226565b005b34156100c457600080fd5b6100cc610296565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561011957600080fd5b610160600480803590602001909190803590602001909190803590602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506102bb565b6040518082600460200280838360005b8381101561018b578082015181840152602081019050610170565b5050505090500191505060405180910390f35b34156101a957600080fd5b6101d5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611248565b005b34156101e257600080fd5b6101fc600480803561ffff1690602001909190505061139d565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561028157600080fd5b8060019060646102929291906113df565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102c3611482565b6102cb6114b0565b6102d36114db565b6102db611482565b86881860405180828152602001915050604051809103902083600060058110151561030257fe5b6020020190600019169081600019168152505082600060058110151561032457fe5b60200201518660405180836000191660001916815260200182815260200192505050604051809103902083600160058110151561035d57fe5b6020020190600019169081600019168152505082600160058110151561037f57fe5b6020020151856040518083600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014019250505060405180910390208360026005811015156103f357fe5b6020020190600019169081600019168152505082600260058110151561041557fe5b602002015185876040518084600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018281526020019350505050604051809103902083600360058110151561049157fe5b602002019060001916908160001916815250508260016005811015156104b357fe5b60200201518360026005811015156104c757fe5b60200201518460006005811015156104db57fe5b6020020151604051808460001916600019168152602001836000191660001916815260200182600019166000191681526020019350505050604051809103902083600460058110151561052a57fe5b6020020190600019169081600019168152505060c06040519081016040528060016298968086600360058110151561055e57fe5b60200201516001900481151561057057fe5b060162ffffff1662ffffff16815260200160016101a486600060058110151561059557fe5b6020020151600190048115156105a757fe5b060162ffffff1662ffffff16815260200160016101a48660016005811015156105cc57fe5b6020020151600190048115156105de57fe5b060162ffffff1662ffffff1681526020016001609686600260058110151561060257fe5b60200201516001900481151561061457fe5b060162ffffff1662ffffff1681526020016001601086600460058110151561063857fe5b60200201516001900481151561064a57fe5b060162ffffff1662ffffff168152602001600161138886600460058110151561066f57fe5b60200201516001900481151561068157fe5b060162ffffff1662ffffff168152509150620f42408260006006811015156106a557fe5b602002015162ffffff161415610c0f5760018260046006811015156106c657fe5b602002015162ffffff16141561088857608060405190810160405280602a8460016006811015156106f357fe5b602002015162ffffff1681151561070657fe5b04608c0160ff1663ffffffff168152602001602a84600260068110151561072957fe5b602002015162ffffff1681151561073c57fe5b04608c0160ff1663ffffffff168152602001600684600360068110151561075f57fe5b602002015162ffffff1681151561077257fe5b04604b0160ff1663ffffffff1681526020016207a12063ffffffff1663ffffffff168152509050608c8160006004811015156107aa57fe5b602002015163ffffffff1614156107e7578060006004811015156107ca57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b608c8160016004811015156107f857fe5b602002015163ffffffff1614156108355780600160048110151561081857fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b604b81600260048110151561084657fe5b602002015163ffffffff1614156108835780600260048110151561086657fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b610c0a565b600482600460068110151561089957fe5b602002015162ffffff161015610a5b57608060405190810160405280602a8460016006811015156108c657fe5b602002015162ffffff168115156108d957fe5b0460820160ff1663ffffffff168152602001602a8460026006811015156108fc57fe5b602002015162ffffff1681151561090f57fe5b0460820160ff1663ffffffff168152602001600684600360068110151561093257fe5b602002015162ffffff1681151561094557fe5b04604b0160ff1663ffffffff1681526020016207a12063ffffffff1663ffffffff168152509050608281600060048110151561097d57fe5b602002015163ffffffff1614156109ba5780600060048110151561099d57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b60828160016004811015156109cb57fe5b602002015163ffffffff161415610a08578060016004811015156109eb57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b604b816002600481101515610a1957fe5b602002015163ffffffff161415610a5657806002600481101515610a3957fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b610c09565b608060405190810160405280601c846001600681101515610a7857fe5b602002015162ffffff16811515610a8b57fe5b0460730160ff1663ffffffff168152602001601c846002600681101515610aae57fe5b602002015162ffffff16811515610ac157fe5b0460730160ff1663ffffffff1681526020016006846003600681101515610ae457fe5b602002015162ffffff16811515610af757fe5b04604b0160ff1663ffffffff1681526020016207a12063ffffffff1663ffffffff1681525090506073816000600481101515610b2f57fe5b602002015163ffffffff161415610b6c57806000600481101515610b4f57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b6073816001600481101515610b7d57fe5b602002015163ffffffff161415610bba57806001600481101515610b9d57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b604b816002600481101515610bcb57fe5b602002015163ffffffff161415610c0857806002600481101515610beb57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b5b5b61123a565b611388826005600681101515610c2157fe5b602002015162ffffff161415610d9457608060405190810160405280600e846001600681101515610c4e57fe5b602002015162ffffff16811515610c6157fe5b0460550160ff1663ffffffff168152602001600e846002600681101515610c8457fe5b602002015162ffffff16811515610c9757fe5b0460550160ff1663ffffffff1681526020016003846003600681101515610cba57fe5b602002015162ffffff16811515610ccd57fe5b0460320160ff1663ffffffff1681526020016103e863ffffffff1663ffffffff1681525090506055816000600481101515610d0457fe5b602002015163ffffffff161415610d4157806000600481101515610d2457fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b6055816001600481101515610d5257fe5b602002015163ffffffff161415610d8f57806001600481101515610d7257fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b611239565b611323826005600681101515610da657fe5b602002015162ffffff161115610f1957608060405190810160405280600c846001600681101515610dd357fe5b602002015162ffffff16811515610de657fe5b0460320160ff1663ffffffff168152602001600c846002600681101515610e0957fe5b602002015162ffffff16811515610e1c57fe5b0460320160ff1663ffffffff1681526020016002846003600681101515610e3f57fe5b602002015162ffffff16811515610e5257fe5b0460190160ff1663ffffffff16815260200161012c63ffffffff1663ffffffff1681525090506032816000600481101515610e8957fe5b602002015163ffffffff161415610ec657806000600481101515610ea957fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b6032816001600481101515610ed757fe5b602002015163ffffffff161415610f1457806001600481101515610ef757fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b611238565b610fa0826005600681101515610f2b57fe5b602002015162ffffff16111561109d57608060405190810160405280600e846001600681101515610f5857fe5b602002015162ffffff16811515610f6b57fe5b0460140160ff1663ffffffff168152602001600e846002600681101515610f8e57fe5b602002015162ffffff16811515610fa157fe5b0460140160ff1663ffffffff1681526020016003846003600681101515610fc457fe5b602002015162ffffff16811515610fd757fe5b0460190160ff1663ffffffff168152602001606463ffffffff1663ffffffff168152509050601481600060048110151561100d57fe5b602002015163ffffffff16141561104a5780600060048110151561102d57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b601481600160048110151561105b57fe5b602002015163ffffffff1614156110985780600160048110151561107b57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b611237565b60806040519081016040528060158460016006811015156110ba57fe5b602002015162ffffff168115156110cd57fe5b0460ff1663ffffffff16815260200160158460026006811015156110ed57fe5b602002015162ffffff1681151561110057fe5b0460ff1663ffffffff168152602001600384600360068110151561112057fe5b602002015162ffffff1681151561113357fe5b0460ff1663ffffffff168152602001602463ffffffff1663ffffffff168152509050600081600060048110151561116657fe5b602002015163ffffffff1614156111a057600181600060048110151561118857fe5b602002019063ffffffff16908163ffffffff16815250505b60008160016004811015156111b157fe5b602002015163ffffffff1614156111eb5760018160016004811015156111d357fe5b602002019063ffffffff16908163ffffffff16815250505b60008160026004811015156111fc57fe5b602002015163ffffffff16141561123657600181600260048110151561121e57fe5b602002019063ffffffff16908163ffffffff16815250505b5b5b5b5b809350505050949350505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112a357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156112df57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600180830361ffff166064811015156113b457fe5b600891828204019190066004029054906101000a900463ffffffff1663ffffffff1642019050919050565b8260646007016008900481019282156114715791602002820160005b8382111561143f57835183826101000a81548163ffffffff021916908363ffffffff16021790555092602001926004016020816003010492830192600103026113fb565b801561146f5782816101000a81549063ffffffff021916905560040160208160030104928301926001030261143f565b505b50905061147e9190611508565b5090565b6080604051908101604052806004905b600063ffffffff168152602001906001900390816114925790505090565b60a0604051908101604052806005905b60008019168152602001906001900390816114c05790505090565b60c0604051908101604052806006905b600062ffffff168152602001906001900390816114eb5790505090565b61153891905b8082111561153457600081816101000a81549063ffffffff02191690555060010161150e565b5090565b905600a165627a7a72305820934072e844938457d626b47cbf63ccff69b620c084baca7bf992d6e7c7ffa0fd0029

Deployed Bytecode

0x60606040526004361061006d576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff16806314986f5b146100725780638da5cb5b146100b9578063bdd7908b1461010e578063f2fde38b1461019e578063ff429fc8146101d7575b600080fd5b341561007d57600080fd5b6100b760048080610c8001906064806020026040519081016040528092919082606460200280828437820191505050505091905050610226565b005b34156100c457600080fd5b6100cc610296565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b341561011957600080fd5b610160600480803590602001909190803590602001909190803590602001909190803573ffffffffffffffffffffffffffffffffffffffff169060200190919050506102bb565b6040518082600460200280838360005b8381101561018b578082015181840152602081019050610170565b5050505090500191505060405180910390f35b34156101a957600080fd5b6101d5600480803573ffffffffffffffffffffffffffffffffffffffff16906020019091905050611248565b005b34156101e257600080fd5b6101fc600480803561ffff1690602001909190505061139d565b604051808267ffffffffffffffff1667ffffffffffffffff16815260200191505060405180910390f35b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614151561028157600080fd5b8060019060646102929291906113df565b5050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6102c3611482565b6102cb6114b0565b6102d36114db565b6102db611482565b86881860405180828152602001915050604051809103902083600060058110151561030257fe5b6020020190600019169081600019168152505082600060058110151561032457fe5b60200201518660405180836000191660001916815260200182815260200192505050604051809103902083600160058110151561035d57fe5b6020020190600019169081600019168152505082600160058110151561037f57fe5b6020020151856040518083600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014019250505060405180910390208360026005811015156103f357fe5b6020020190600019169081600019168152505082600260058110151561041557fe5b602002015185876040518084600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018281526020019350505050604051809103902083600360058110151561049157fe5b602002019060001916908160001916815250508260016005811015156104b357fe5b60200201518360026005811015156104c757fe5b60200201518460006005811015156104db57fe5b6020020151604051808460001916600019168152602001836000191660001916815260200182600019166000191681526020019350505050604051809103902083600460058110151561052a57fe5b6020020190600019169081600019168152505060c06040519081016040528060016298968086600360058110151561055e57fe5b60200201516001900481151561057057fe5b060162ffffff1662ffffff16815260200160016101a486600060058110151561059557fe5b6020020151600190048115156105a757fe5b060162ffffff1662ffffff16815260200160016101a48660016005811015156105cc57fe5b6020020151600190048115156105de57fe5b060162ffffff1662ffffff1681526020016001609686600260058110151561060257fe5b60200201516001900481151561061457fe5b060162ffffff1662ffffff1681526020016001601086600460058110151561063857fe5b60200201516001900481151561064a57fe5b060162ffffff1662ffffff168152602001600161138886600460058110151561066f57fe5b60200201516001900481151561068157fe5b060162ffffff1662ffffff168152509150620f42408260006006811015156106a557fe5b602002015162ffffff161415610c0f5760018260046006811015156106c657fe5b602002015162ffffff16141561088857608060405190810160405280602a8460016006811015156106f357fe5b602002015162ffffff1681151561070657fe5b04608c0160ff1663ffffffff168152602001602a84600260068110151561072957fe5b602002015162ffffff1681151561073c57fe5b04608c0160ff1663ffffffff168152602001600684600360068110151561075f57fe5b602002015162ffffff1681151561077257fe5b04604b0160ff1663ffffffff1681526020016207a12063ffffffff1663ffffffff168152509050608c8160006004811015156107aa57fe5b602002015163ffffffff1614156107e7578060006004811015156107ca57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b608c8160016004811015156107f857fe5b602002015163ffffffff1614156108355780600160048110151561081857fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b604b81600260048110151561084657fe5b602002015163ffffffff1614156108835780600260048110151561086657fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b610c0a565b600482600460068110151561089957fe5b602002015162ffffff161015610a5b57608060405190810160405280602a8460016006811015156108c657fe5b602002015162ffffff168115156108d957fe5b0460820160ff1663ffffffff168152602001602a8460026006811015156108fc57fe5b602002015162ffffff1681151561090f57fe5b0460820160ff1663ffffffff168152602001600684600360068110151561093257fe5b602002015162ffffff1681151561094557fe5b04604b0160ff1663ffffffff1681526020016207a12063ffffffff1663ffffffff168152509050608281600060048110151561097d57fe5b602002015163ffffffff1614156109ba5780600060048110151561099d57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b60828160016004811015156109cb57fe5b602002015163ffffffff161415610a08578060016004811015156109eb57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b604b816002600481101515610a1957fe5b602002015163ffffffff161415610a5657806002600481101515610a3957fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b610c09565b608060405190810160405280601c846001600681101515610a7857fe5b602002015162ffffff16811515610a8b57fe5b0460730160ff1663ffffffff168152602001601c846002600681101515610aae57fe5b602002015162ffffff16811515610ac157fe5b0460730160ff1663ffffffff1681526020016006846003600681101515610ae457fe5b602002015162ffffff16811515610af757fe5b04604b0160ff1663ffffffff1681526020016207a12063ffffffff1663ffffffff1681525090506073816000600481101515610b2f57fe5b602002015163ffffffff161415610b6c57806000600481101515610b4f57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b6073816001600481101515610b7d57fe5b602002015163ffffffff161415610bba57806001600481101515610b9d57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b604b816002600481101515610bcb57fe5b602002015163ffffffff161415610c0857806002600481101515610beb57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b5b5b61123a565b611388826005600681101515610c2157fe5b602002015162ffffff161415610d9457608060405190810160405280600e846001600681101515610c4e57fe5b602002015162ffffff16811515610c6157fe5b0460550160ff1663ffffffff168152602001600e846002600681101515610c8457fe5b602002015162ffffff16811515610c9757fe5b0460550160ff1663ffffffff1681526020016003846003600681101515610cba57fe5b602002015162ffffff16811515610ccd57fe5b0460320160ff1663ffffffff1681526020016103e863ffffffff1663ffffffff1681525090506055816000600481101515610d0457fe5b602002015163ffffffff161415610d4157806000600481101515610d2457fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b6055816001600481101515610d5257fe5b602002015163ffffffff161415610d8f57806001600481101515610d7257fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b611239565b611323826005600681101515610da657fe5b602002015162ffffff161115610f1957608060405190810160405280600c846001600681101515610dd357fe5b602002015162ffffff16811515610de657fe5b0460320160ff1663ffffffff168152602001600c846002600681101515610e0957fe5b602002015162ffffff16811515610e1c57fe5b0460320160ff1663ffffffff1681526020016002846003600681101515610e3f57fe5b602002015162ffffff16811515610e5257fe5b0460190160ff1663ffffffff16815260200161012c63ffffffff1663ffffffff1681525090506032816000600481101515610e8957fe5b602002015163ffffffff161415610ec657806000600481101515610ea957fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b6032816001600481101515610ed757fe5b602002015163ffffffff161415610f1457806001600481101515610ef757fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b611238565b610fa0826005600681101515610f2b57fe5b602002015162ffffff16111561109d57608060405190810160405280600e846001600681101515610f5857fe5b602002015162ffffff16811515610f6b57fe5b0460140160ff1663ffffffff168152602001600e846002600681101515610f8e57fe5b602002015162ffffff16811515610fa157fe5b0460140160ff1663ffffffff1681526020016003846003600681101515610fc457fe5b602002015162ffffff16811515610fd757fe5b0460190160ff1663ffffffff168152602001606463ffffffff1663ffffffff168152509050601481600060048110151561100d57fe5b602002015163ffffffff16141561104a5780600060048110151561102d57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b601481600160048110151561105b57fe5b602002015163ffffffff1614156110985780600160048110151561107b57fe5b60200201805180919060010163ffffffff1663ffffffff16815250505b611237565b60806040519081016040528060158460016006811015156110ba57fe5b602002015162ffffff168115156110cd57fe5b0460ff1663ffffffff16815260200160158460026006811015156110ed57fe5b602002015162ffffff1681151561110057fe5b0460ff1663ffffffff168152602001600384600360068110151561112057fe5b602002015162ffffff1681151561113357fe5b0460ff1663ffffffff168152602001602463ffffffff1663ffffffff168152509050600081600060048110151561116657fe5b602002015163ffffffff1614156111a057600181600060048110151561118857fe5b602002019063ffffffff16908163ffffffff16815250505b60008160016004811015156111b157fe5b602002015163ffffffff1614156111eb5760018160016004811015156111d357fe5b602002019063ffffffff16908163ffffffff16815250505b60008160026004811015156111fc57fe5b602002015163ffffffff16141561123657600181600260048110151561121e57fe5b602002019063ffffffff16908163ffffffff16815250505b5b5b5b5b809350505050949350505050565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161415156112a357600080fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515156112df57600080fd5b8073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a3806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000600180830361ffff166064811015156113b457fe5b600891828204019190066004029054906101000a900463ffffffff1663ffffffff1642019050919050565b8260646007016008900481019282156114715791602002820160005b8382111561143f57835183826101000a81548163ffffffff021916908363ffffffff16021790555092602001926004016020816003010492830192600103026113fb565b801561146f5782816101000a81549063ffffffff021916905560040160208160030104928301926001030261143f565b505b50905061147e9190611508565b5090565b6080604051908101604052806004905b600063ffffffff168152602001906001900390816114925790505090565b60a0604051908101604052806005905b60008019168152602001906001900390816114c05790505090565b60c0604051908101604052806006905b600062ffffff168152602001906001900390816114eb5790505090565b61153891905b8082111561153457600081816101000a81549063ffffffff02191690555060010161150e565b5090565b905600a165627a7a72305820934072e844938457d626b47cbf63ccff69b620c084baca7bf992d6e7c7ffa0fd0029

Swarm Source

bzzr://934072e844938457d626b47cbf63ccff69b620c084baca7bf992d6e7c7ffa0fd

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.