ETH Price: $2,471.78 (-3.90%)

Contract

0x86890220b3AAD958ABF24Ac7D67f9414AE4565a7
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw All116017582021-01-06 15:09:371395 days ago1609945777IN
0x86890220...4AE4565a7
0 ETH0.0120414122
Get Di Dai115766612021-01-02 18:32:581399 days ago1609612378IN
0x86890220...4AE4565a7
0 ETH0.0144998480
Get Di Dai115513482020-12-29 21:35:371403 days ago1609277737IN
0x86890220...4AE4565a7
0 ETH0.0064510742
Get Di Dai115497412020-12-29 15:28:121403 days ago1609255692IN
0x86890220...4AE4565a7
0 ETH0.01704926111
Get Di Dai115494542020-12-29 14:23:241403 days ago1609251804IN
0x86890220...4AE4565a7
0 ETH0.00886144114
Get Di Dai115490972020-12-29 13:02:521404 days ago1609246972IN
0x86890220...4AE4565a7
0 ETH0.0070736191
Get Di Dai115481982020-12-29 9:48:141404 days ago1609235294IN
0x86890220...4AE4565a7
0 ETH0.015206199
Get Di Dai115423872020-12-28 12:16:431405 days ago1609157803IN
0x86890220...4AE4565a7
0 ETH0.01087912140
Get Di Dai115422562020-12-28 11:50:111405 days ago1609156211IN
0x86890220...4AE4565a7
0 ETH0.01227786158
Get Di Dai115422112020-12-28 11:41:001405 days ago1609155660IN
0x86890220...4AE4565a7
0 ETH0.01812608140
0x60806040115418522020-12-28 10:22:001405 days ago1609150920IN
 Create: DfDepositMarket
0 ETH0.0468615374.00000145

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DfDepositMarket

Compiler Version
v0.5.17+commit.d19bba13

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// File: contracts\interfaces\IERC20.sol

pragma solidity ^0.5.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP. Does not include
 * the optional functions; to access them see {ERC20Detailed}.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

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

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

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

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

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

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

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

// File: contracts\interfaces\IToken.sol

pragma solidity ^0.5.16;

interface IToken {
    function decimals() external view returns (uint);
    function allowance(address owner, address spender) external view returns (uint);
    function balanceOf(address account) external view returns (uint);
    function approve(address spender, uint value) external;
    function transfer(address to, uint value) external returns (bool);
    function transferFrom(address from, address to, uint value) external returns (bool);
    function deposit() external payable;
    function withdraw(uint amount) external;
}

// File: contracts\compound\interfaces\IComptroller.sol

pragma solidity ^0.5.16;


contract IComptroller {
    mapping(address => uint) public compAccrued;

    function claimComp(address holder, address[] memory cTokens) public;

    function enterMarkets(address[] calldata cTokens) external returns (uint256[] memory);

    function exitMarket(address cToken) external returns (uint256);

    function getAssetsIn(address account) external view returns (address[] memory);

    function getAccountLiquidity(address account) external view returns (uint256, uint256, uint256);

    function markets(address cTokenAddress) external view returns (bool, uint);

    struct CompMarketState {
        /// @notice The market's last updated compBorrowIndex or compSupplyIndex
        uint224 index;

        /// @notice The block number the index was last updated at
        uint32 block;
    }

    function compSupplyState(address) view public returns(uint224, uint32);

    function compBorrowState(address) view public returns(uint224, uint32);

//    mapping(address => CompMarketState) public compBorrowState;

    mapping(address => mapping(address => uint)) public compSupplierIndex;

    mapping(address => mapping(address => uint)) public compBorrowerIndex;
}

// File: contracts\utils\SafeMath.sol

pragma solidity ^0.5.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     * - Subtraction cannot overflow.
     *
     * _Available since v2.4.0._
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

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

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts 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.
     *
     * _Available since v2.4.0._
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        // Solidity only automatically asserts when dividing by 0
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts 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 mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message 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.
     *
     * _Available since v2.4.0._
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

// File: contracts\utils\Address.sol

pragma solidity ^0.5.5;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * This test is non-exhaustive, and there may be false-negatives: during the
     * execution of a contract's constructor, its address will be reported as
     * not containing a contract.
     *
     * IMPORTANT: It is unsafe to assume that an address for which this
     * function returns false is an externally-owned account (EOA) and not a
     * contract.
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != 0x0 && codehash != accountHash);
    }

    /**
     * @dev Converts an `address` into `address payable`. Note that this is
     * simply a type cast: the actual underlying value is not changed.
     *
     * _Available since v2.4.0._
     */
    function toPayable(address account) internal pure returns (address payable) {
        return address(uint160(account));
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     *
     * _Available since v2.4.0._
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-call-value
        (bool success, ) = recipient.call.value(amount)("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }
}

// File: contracts\utils\SafeERC20.sol

pragma solidity ^0.5.16;

// import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";

// import "@openzeppelin/contracts-ethereum-package/contracts/utils/Address.sol";



/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for ERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {

    using SafeMath for uint256;
    using Address for address;

    function safeTransfer(IToken token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(IToken token, address from, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    function safeApprove(IToken token, address spender, uint256 value) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        // solhint-disable-next-line max-line-length
        require((value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(IToken token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).add(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(IToken token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value);
        callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function callOptionalReturn(IToken token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves.

        // A Solidity high level call has three parts:
        //  1. The target address is checked to verify it contains contract code
        //  2. The call itself is made, and success asserted
        //  3. The return value is decoded, which in turn checks the size of the returned data.
        // solhint-disable-next-line max-line-length
        require(address(token).isContract(), "SafeERC20: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = address(token).call(data);
        require(success, "SafeERC20: low-level call failed");

        if (returndata.length > 0) { // Return data is optional
            // solhint-disable-next-line max-line-length
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: contracts\utils\UniversalERC20.sol

pragma solidity ^0.5.16;

// import "@openzeppelin/contracts-ethereum-package/contracts/math/SafeMath.sol";
// import "./SafeMath.sol";



library UniversalERC20 {

    using SafeMath for uint256;
    using SafeERC20 for IToken;

    IToken private constant ZERO_ADDRESS = IToken(0x0000000000000000000000000000000000000000);
    IToken private constant ETH_ADDRESS = IToken(0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE);

    function universalTransfer(IToken token, address to, uint256 amount) internal {
        universalTransfer(token, to, amount, false);
    }

    function universalTransfer(IToken token, address to, uint256 amount, bool mayFail) internal returns(bool) {
        if (amount == 0) {
            return true;
        }

        if (token == ZERO_ADDRESS || token == ETH_ADDRESS) {
            if (mayFail) {
                return address(uint160(to)).send(amount);
            } else {
                address(uint160(to)).transfer(amount);
                return true;
            }
        } else {
            token.safeTransfer(to, amount);
            return true;
        }
    }

    function universalApprove(IToken token, address to, uint256 amount) internal {
        if (token != ZERO_ADDRESS && token != ETH_ADDRESS) {
            token.safeApprove(to, amount);
        }
    }

    function universalTransferFrom(IToken token, address from, address to, uint256 amount) internal {
        if (amount == 0) {
            return;
        }

        if (token == ZERO_ADDRESS || token == ETH_ADDRESS) {
            require(from == msg.sender && msg.value >= amount, "msg.value is zero");
            if (to != address(this)) {
                address(uint160(to)).transfer(amount);
            }
            if (msg.value > amount) {
                msg.sender.transfer(uint256(msg.value).sub(amount));
            }
        } else {
            token.safeTransferFrom(from, to, amount);
        }
    }

    function universalBalanceOf(IToken token, address who) internal view returns (uint256) {
        if (token == ZERO_ADDRESS || token == ETH_ADDRESS) {
            return who.balance;
        } else {
            return token.balanceOf(who);
        }
    }
}


// File: contracts\nonupgradable\Ownable.sol

pragma solidity ^0.5.16;

contract Ownable {
    address payable public owner;
    address payable internal newOwnerCandidate;

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

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

    function changeOwner(address payable newOwner) public onlyOwner {
        newOwnerCandidate = newOwner;
    }

    function acceptOwner() public {
        require(msg.sender == newOwnerCandidate, "Permission denied");
        owner = newOwnerCandidate;
    }
}

// File: contracts\nonupgradable\FundsMgr.sol

pragma solidity ^0.5.16;



contract FundsMgr is Ownable {
    using UniversalERC20 for IToken;

    function withdraw(address token, uint256 amount) public onlyOwner {
        if (token == address(0x0)) {
            owner.transfer(amount);
        } else {
            IToken(token).universalTransfer(owner, amount);
        }
    }

    function withdrawAll(address[] memory tokens) public onlyOwner {
        for(uint256 i = 0; i < tokens.length;i++) {
            withdraw(tokens[i], IToken(tokens[i]).universalBalanceOf(address(this)));
        }
    }
}

// File: contracts\utils\DSMath.sol

pragma solidity ^0.5.0;

contract DSMath {
    function add(uint x, uint y) internal pure returns (uint z) {
        require((z = x + y) >= x);
    }
    function sub(uint x, uint y) internal pure returns (uint z) {
        require((z = x - y) <= x);
    }
    function mul(uint x, uint y) internal pure returns (uint z) {
        require(y == 0 || (z = x * y) / y == x);
    }

    function min(uint x, uint y) internal pure returns (uint z) {
        return x <= y ? x : y;
    }
    function max(uint x, uint y) internal pure returns (uint z) {
        return x >= y ? x : y;
    }
    function imin(int x, int y) internal pure returns (int z) {
        return x <= y ? x : y;
    }
    function imax(int x, int y) internal pure returns (int z) {
        return x >= y ? x : y;
    }

    uint constant WAD = 10 ** 18;
    uint constant RAY = 10 ** 27;

    function wmul(uint x, uint y, uint base) internal pure returns (uint z) {
        z = add(mul(x, y), base / 2) / base;
    }

    function wmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), WAD / 2) / WAD;
    }
    function rmul(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, y), RAY / 2) / RAY;
    }
    function wdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, WAD), y / 2) / y;
    }
    function rdiv(uint x, uint y) internal pure returns (uint z) {
        z = add(mul(x, RAY), y / 2) / y;
    }
}

// File: contracts\deposits\DfDepositMarket.sol

pragma solidity ^0.5.16;

contract DfDepositMarket is FundsMgr, DSMath {
    
    address public constant DAI_ADDRESS = 0x6B175474E89094C44Da98b954EedeAC495271d0F;

    address public constant dDAI_ADDRESS = 0xfACd9A6fD887855d9432F7a080911b26d9DCAE01;
    
    constructor() public {
        owner = msg.sender;
    }

    // 1 DAI == 1 dDAI token
    function getDiDai(uint256 amount) public {
        require(msg.sender == tx.origin);
        require(amount > 0);
        IToken(DAI_ADDRESS).transferFrom(msg.sender, owner, amount);
        IToken(dDAI_ADDRESS).transfer(msg.sender, amount);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"constant":true,"inputs":[],"name":"DAI_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"acceptOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address payable","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"dDAI_ADDRESS","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getDiDai","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address[]","name":"tokens","type":"address[]"}],"name":"withdrawAll","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b50600080546001600160a01b031990811633908117909116179055610a1c8061003a6000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b1461017b578063a6f9dae114610183578063ebbc4965146101a9578063f3fef3a3146101b157610088565b806324fd91b11461008d5780632a4c0a1a146100ac5780636568a279146100d05780636f4ec6e714610173575b600080fd5b6100aa600480360360208110156100a357600080fd5b50356101dd565b005b6100b461031a565b604080516001600160a01b039092168252519081900360200190f35b6100aa600480360360208110156100e657600080fd5b81019060208101813564010000000081111561010157600080fd5b82018360208201111561011357600080fd5b8035906020019184602083028401116401000000008311171561013557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610332945050505050565b6100b46103e8565b6100b4610400565b6100aa6004803603602081101561019957600080fd5b50356001600160a01b031661040f565b6100aa610484565b6100aa600480360360408110156101c757600080fd5b506001600160a01b0381351690602001356104fb565b3332146101e957600080fd5b600081116101f657600080fd5b60008054604080516323b872dd60e01b81523360048201526001600160a01b0390921660248301526044820184905251736b175474e89094c44da98b954eedeac495271d0f926323b872dd92606480820193602093909283900390910190829087803b15801561026557600080fd5b505af1158015610279573d6000803e3d6000fd5b505050506040513d602081101561028f57600080fd5b50506040805163a9059cbb60e01b815233600482015260248101839052905173facd9a6fd887855d9432f7a080911b26d9dcae019163a9059cbb9160448083019260209291908290030181600087803b1580156102eb57600080fd5b505af11580156102ff573d6000803e3d6000fd5b505050506040513d602081101561031557600080fd5b505050565b736b175474e89094c44da98b954eedeac495271d0f81565b6000546001600160a01b03163314610385576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b60005b81518110156103e4576103dc8282815181106103a057fe5b60200260200101516103d7308585815181106103b857fe5b60200260200101516001600160a01b03166105bb90919063ffffffff16565b6104fb565b600101610388565b5050565b73facd9a6fd887855d9432f7a080911b26d9dcae0181565b6000546001600160a01b031681565b6000546001600160a01b03163314610462576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146104d7576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461054e576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b6001600160a01b03821661059b57600080546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610595573d6000803e3d6000fd5b506103e4565b6000546103e4906001600160a01b0384811691168363ffffffff61069016565b60006001600160a01b03831615806105ef57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b1561060557506001600160a01b0381163161068a565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561065b57600080fd5b505afa15801561066f573d6000803e3d6000fd5b505050506040513d602081101561068557600080fd5b505190505b92915050565b61069d83838360006106a3565b50505050565b6000826106b257506001610779565b6001600160a01b03851615806106e457506001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b1561075b57811561071b576040516001600160a01b0385169084156108fc029085906000818181858888f193505050509050610779565b6040516001600160a01b0385169084156108fc029085906000818181858888f19350505050158015610751573d6000803e3d6000fd5b5060019050610779565b6107756001600160a01b038616858563ffffffff61078116565b5060015b949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103159084906107e0826001600160a01b0316610986565b610831576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061086f5780518252601f199092019160209182019101610850565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108d1576040519150601f19603f3d011682016040523d82523d6000602084013e6108d6565b606091505b50915091508161092d576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561069d5780806020019051602081101561094957600080fd5b505161069d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806109be602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590610779575014159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820a9cf3999988d1e7414f1f6e244146bd40b996402b7fac6fc49a9d1b46531e91c64736f6c63430005110032

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100885760003560e01c80638da5cb5b1161005b5780638da5cb5b1461017b578063a6f9dae114610183578063ebbc4965146101a9578063f3fef3a3146101b157610088565b806324fd91b11461008d5780632a4c0a1a146100ac5780636568a279146100d05780636f4ec6e714610173575b600080fd5b6100aa600480360360208110156100a357600080fd5b50356101dd565b005b6100b461031a565b604080516001600160a01b039092168252519081900360200190f35b6100aa600480360360208110156100e657600080fd5b81019060208101813564010000000081111561010157600080fd5b82018360208201111561011357600080fd5b8035906020019184602083028401116401000000008311171561013557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610332945050505050565b6100b46103e8565b6100b4610400565b6100aa6004803603602081101561019957600080fd5b50356001600160a01b031661040f565b6100aa610484565b6100aa600480360360408110156101c757600080fd5b506001600160a01b0381351690602001356104fb565b3332146101e957600080fd5b600081116101f657600080fd5b60008054604080516323b872dd60e01b81523360048201526001600160a01b0390921660248301526044820184905251736b175474e89094c44da98b954eedeac495271d0f926323b872dd92606480820193602093909283900390910190829087803b15801561026557600080fd5b505af1158015610279573d6000803e3d6000fd5b505050506040513d602081101561028f57600080fd5b50506040805163a9059cbb60e01b815233600482015260248101839052905173facd9a6fd887855d9432f7a080911b26d9dcae019163a9059cbb9160448083019260209291908290030181600087803b1580156102eb57600080fd5b505af11580156102ff573d6000803e3d6000fd5b505050506040513d602081101561031557600080fd5b505050565b736b175474e89094c44da98b954eedeac495271d0f81565b6000546001600160a01b03163314610385576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b60005b81518110156103e4576103dc8282815181106103a057fe5b60200260200101516103d7308585815181106103b857fe5b60200260200101516001600160a01b03166105bb90919063ffffffff16565b6104fb565b600101610388565b5050565b73facd9a6fd887855d9432f7a080911b26d9dcae0181565b6000546001600160a01b031681565b6000546001600160a01b03163314610462576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6001546001600160a01b031633146104d7576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b600154600080546001600160a01b0319166001600160a01b03909216919091179055565b6000546001600160a01b0316331461054e576040805162461bcd60e51b815260206004820152601160248201527014195c9b5a5cdcda5bdb8819195b9a5959607a1b604482015290519081900360640190fd5b6001600160a01b03821661059b57600080546040516001600160a01b039091169183156108fc02918491818181858888f19350505050158015610595573d6000803e3d6000fd5b506103e4565b6000546103e4906001600160a01b0384811691168363ffffffff61069016565b60006001600160a01b03831615806105ef57506001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b1561060557506001600160a01b0381163161068a565b826001600160a01b03166370a08231836040518263ffffffff1660e01b815260040180826001600160a01b03166001600160a01b0316815260200191505060206040518083038186803b15801561065b57600080fd5b505afa15801561066f573d6000803e3d6000fd5b505050506040513d602081101561068557600080fd5b505190505b92915050565b61069d83838360006106a3565b50505050565b6000826106b257506001610779565b6001600160a01b03851615806106e457506001600160a01b03851673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee145b1561075b57811561071b576040516001600160a01b0385169084156108fc029085906000818181858888f193505050509050610779565b6040516001600160a01b0385169084156108fc029085906000818181858888f19350505050158015610751573d6000803e3d6000fd5b5060019050610779565b6107756001600160a01b038616858563ffffffff61078116565b5060015b949350505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526103159084906107e0826001600160a01b0316610986565b610831576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061086f5780518252601f199092019160209182019101610850565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146108d1576040519150601f19603f3d011682016040523d82523d6000602084013e6108d6565b606091505b50915091508161092d576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b80511561069d5780806020019051602081101561094957600080fd5b505161069d5760405162461bcd60e51b815260040180806020018281038252602a8152602001806109be602a913960400191505060405180910390fd5b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a4708115801590610779575014159291505056fe5361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564a265627a7a72315820a9cf3999988d1e7414f1f6e244146bd40b996402b7fac6fc49a9d1b46531e91c64736f6c63430005110032

Deployed Bytecode Sourcemap

22524:592:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;22524:592:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22861:252;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22861:252:0;;:::i;:::-;;22582:80;;;:::i;:::-;;;;-1:-1:-1;;;;;22582:80:0;;;;;;;;;;;;;;20680:222;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;20680:222:0;;;;;;;;21:11:-1;5:28;;2:2;;;46:1;43;36:12;2:2;20680:222:0;;35:9:-1;28:4;12:14;8:25;5:40;2:2;;;58:1;55;48:12;2:2;20680:222:0;;;;;;101:9:-1;95:2;81:12;77:21;67:8;63:36;60:51;39:11;25:12;22:29;11:108;8:2;;;132:1;129;122:12;8:2;20680:222:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16;;74:27;;;;-1:-1;20680:222:0;;-1:-1:-1;20680:222:0;;-1:-1:-1;;;;;20680:222:0:i;22671:81::-;;;:::i;19745:28::-;;;:::i;20004:111::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;20004:111:0;-1:-1:-1;;;;;20004:111:0;;:::i;20123:146::-;;;:::i;20433:239::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;;;;20433:239:0;;;;;;;;:::i;22861:252::-;22921:10;22935:9;22921:23;22913:32;;;;;;22973:1;22964:6;:10;22956:19;;;;;;23031:5;;;22986:59;;;-1:-1:-1;;;22986:59:0;;23019:10;22986:59;;;;-1:-1:-1;;;;;23031:5:0;;;22986:59;;;;;;;;;;;22620:42;;22986:32;;:59;;;;;;;;;;;;;;;;;;22620:42;22986:59;;;5:2:-1;;;;30:1;27;20:12;5:2;22986:59:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;22986:59:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;23056:49:0;;;-1:-1:-1;;;23056:49:0;;23086:10;23056:49;;;;;;;;;;;;22710:42;;23056:29;;:49;;;;;22986:59;;23056:49;;;;;;;-1:-1:-1;22710:42:0;23056:49;;;5:2:-1;;;;30:1;27;20:12;5:2;23056:49:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;23056:49:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;;;22861:252:0:o;22582:80::-;22620:42;22582:80;:::o;20680:222::-;19949:5;;-1:-1:-1;;;;;19949:5:0;19935:10;:19;19927:49;;;;;-1:-1:-1;;;19927:49:0;;;;;;;;;;;;-1:-1:-1;;;19927:49:0;;;;;;;;;;;;;;;20758:9;20754:141;20777:6;:13;20773:1;:17;20754:141;;;20811:72;20820:6;20827:1;20820:9;;;;;;;;;;;;;;20831:51;20876:4;20838:6;20845:1;20838:9;;;;;;;;;;;;;;-1:-1:-1;;;;;20831:36:0;;;:51;;;;:::i;:::-;20811:8;:72::i;:::-;20791:3;;20754:141;;;;20680:222;:::o;22671:81::-;22710:42;22671:81;:::o;19745:28::-;;;-1:-1:-1;;;;;19745:28:0;;:::o;20004:111::-;19949:5;;-1:-1:-1;;;;;19949:5:0;19935:10;:19;19927:49;;;;;-1:-1:-1;;;19927:49:0;;;;;;;;;;;;-1:-1:-1;;;19927:49:0;;;;;;;;;;;;;;;20079:17;:28;;-1:-1:-1;;;;;;20079:28:0;-1:-1:-1;;;;;20079:28:0;;;;;;;;;;20004:111::o;20123:146::-;20186:17;;-1:-1:-1;;;;;20186:17:0;20172:10;:31;20164:61;;;;;-1:-1:-1;;;20164:61:0;;;;;;;;;;;;-1:-1:-1;;;20164:61:0;;;;;;;;;;;;;;;20244:17;;;20236:25;;-1:-1:-1;;;;;;20236:25:0;-1:-1:-1;;;;;20244:17:0;;;20236:25;;;;;;20123:146::o;20433:239::-;19949:5;;-1:-1:-1;;;;;19949:5:0;19935:10;:19;19927:49;;;;;-1:-1:-1;;;19927:49:0;;;;;;;;;;;;-1:-1:-1;;;19927:49:0;;;;;;;;;;;;;;;-1:-1:-1;;;;;20514:21:0;;20510:155;;20552:5;;;:22;;-1:-1:-1;;;;;20552:5:0;;;;:22;;;;;20567:6;;20552:22;:5;:22;20567:6;20552:5;:22;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;20552:22:0;20510:155;;;20639:5;;20607:46;;-1:-1:-1;;;;;20607:31:0;;;;20639:5;20646:6;20607:46;:31;:46;:::i;19375:261::-;19453:7;-1:-1:-1;;;;;19477:21:0;;;;:45;;-1:-1:-1;;;;;;19502:20:0;;17763:42;19502:20;19477:45;19473:156;;;-1:-1:-1;;;;;;19546:11:0;;;19539:18;;19473:156;19597:5;-1:-1:-1;;;;;19597:15:0;;19613:3;19597:20;;;;;;;;;;;;;-1:-1:-1;;;;;19597:20:0;-1:-1:-1;;;;;19597:20:0;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;19597:20:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19597:20:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19597:20:0;;-1:-1:-1;19473:156:0;19375:261;;;;:::o;17815:140::-;17904:43;17922:5;17929:2;17933:6;17941:5;17904:17;:43::i;:::-;;17815:140;;;:::o;17963:553::-;18063:4;18084:11;18080:55;;-1:-1:-1;18119:4:0;18112:11;;18080:55;-1:-1:-1;;;;;18151:21:0;;;;:45;;-1:-1:-1;;;;;;18176:20:0;;17763:42;18176:20;18151:45;18147:362;;;18217:7;18213:196;;;18252:33;;-1:-1:-1;;;;;18252:25:0;;;:33;;;;;18278:6;;18252:33;;;;18278:6;18252:25;:33;;;;;;;18245:40;;;;18213:196;18326:37;;-1:-1:-1;;;;;18326:29:0;;;:37;;;;;18356:6;;18326:37;;;;18356:6;18326:29;:37;;;;;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;18326:37:0;18389:4;18382:11;;;;18147:362;18441:30;-1:-1:-1;;;;;18441:18:0;;18460:2;18464:6;18441:30;:18;:30;:::i;:::-;-1:-1:-1;18493:4:0;18147:362;17963:553;;;;;;:::o;14214:176::-;14323:58;;;-1:-1:-1;;;;;14323:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;14323:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;14297:85:0;;14316:5;;16812:27;16820:5;-1:-1:-1;;;;;16812:25:0;;:27::i;:::-;16804:71;;;;;-1:-1:-1;;;16804:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;16949:12;16963:23;16998:5;-1:-1:-1;;;;;16990:19:0;17010:4;16990:25;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;274:1;267:3;263:2;259:12;254:3;250:22;246:30;315:4;311:9;305:3;299:10;295:26;356:4;350:3;344:10;340:21;389:7;380;377:20;372:3;365:33;3:399;;;16990:25:0;;;;;;;;;;;;;;;;;;;;;;;;14:1:-1;21;16:31;;;;75:4;69:11;64:16;;144:4;140:9;133:4;115:16;111:27;107:43;104:1;100:51;94:4;87:65;169:16;166:1;159:27;225:16;222:1;215:4;212:1;208:12;193:49;7:242;;16:31;36:4;31:9;;7:242;;16948:67:0;;;;17034:7;17026:52;;;;;-1:-1:-1;;;17026:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17095:17;;:21;17091:224;;17237:10;17226:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;17226:30:0;17218:85;;;;-1:-1:-1;;;17218:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;10901:810;10961:4;11620:20;;11463:66;11660:15;;;;;:42;;-1:-1:-1;11679:23:0;;;11652:51;-1:-1:-1;;10901:810:0:o

Swarm Source

bzzr://a9cf3999988d1e7414f1f6e244146bd40b996402b7fac6fc49a9d1b46531e91c

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.