ETH Price: $2,629.76 (+0.03%)

Contract

0xE5C7278309C637D652C3b1a113c83dE5E7dFF7d6
 

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Get Reward112321622020-11-10 21:21:081420 days ago1605043268IN
0xE5C72783...5E7dFF7d6
0 ETH0.0115259439
Exit112161322020-11-08 10:10:271423 days ago1604830227IN
0xE5C72783...5E7dFF7d6
0 ETH0.0076042324.00000145
Withdraw112127492020-11-07 21:37:011423 days ago1604785021IN
0xE5C72783...5E7dFF7d6
0 ETH0.001748520
Exit112115482020-11-07 17:03:321423 days ago1604768612IN
0xE5C72783...5E7dFF7d6
0 ETH0.006338721
Exit112080732020-11-07 4:16:231424 days ago1604722583IN
0xE5C72783...5E7dFF7d6
0 ETH0.0141866247
Get Reward112070912020-11-07 0:41:411424 days ago1604709701IN
0xE5C72783...5E7dFF7d6
0 ETH0.0102570844.10000145
Withdraw112068792020-11-06 23:55:201424 days ago1604706920IN
0xE5C72783...5E7dFF7d6
0 ETH0.0024338638
Get Reward112068642020-11-06 23:52:021424 days ago1604706722IN
0xE5C72783...5E7dFF7d6
0 ETH0.0088188435
Withdraw112033882020-11-06 10:53:041425 days ago1604659984IN
0xE5C72783...5E7dFF7d6
0 ETH0.0048525450.6
Stake112024352020-11-06 7:34:101425 days ago1604648050IN
0xE5C72783...5E7dFF7d6
0 ETH0.007182572
Exit112024262020-11-06 7:31:361425 days ago1604647896IN
0xE5C72783...5E7dFF7d6
0 ETH0.0174192759
Get Reward112022502020-11-06 6:50:371425 days ago1604645437IN
0xE5C72783...5E7dFF7d6
0 ETH0.0138553255
Get Reward112002842020-11-05 23:42:131425 days ago1604619733IN
0xE5C72783...5E7dFF7d6
0 ETH0.0062978725
Exit112000122020-11-05 22:43:541425 days ago1604616234IN
0xE5C72783...5E7dFF7d6
0 ETH0.0068200923.1
Stake111967182020-11-05 10:39:291426 days ago1604572769IN
0xE5C72783...5E7dFF7d6
0 ETH0.0030924631
Stake111966062020-11-05 10:14:501426 days ago1604571290IN
0xE5C72783...5E7dFF7d6
0 ETH0.0029836826.00000145
Get Reward111964042020-11-05 9:32:391426 days ago1604568759IN
0xE5C72783...5E7dFF7d6
0 ETH0.0082743631.00000123
Get Reward111955892020-11-05 6:32:181426 days ago1604557938IN
0xE5C72783...5E7dFF7d6
0 ETH0.0088170235
Exit111950812020-11-05 4:36:031426 days ago1604550963IN
0xE5C72783...5E7dFF7d6
0 ETH0.0097429833
Get Reward111934242020-11-04 22:23:281426 days ago1604528608IN
0xE5C72783...5E7dFF7d6
0 ETH0.0042825517
Get Reward111924182020-11-04 18:52:231426 days ago1604515943IN
0xE5C72783...5E7dFF7d6
0 ETH0.0138553255
Get Reward111911302020-11-04 14:15:091426 days ago1604499309IN
0xE5C72783...5E7dFF7d6
0 ETH0.0110842644
Withdraw111910132020-11-04 13:49:341426 days ago1604497774IN
0xE5C72783...5E7dFF7d6
0 ETH0.003659333
Get Reward111908692020-11-04 13:14:591426 days ago1604495699IN
0xE5C72783...5E7dFF7d6
0 ETH0.0083131933
Get Reward111905192020-11-04 11:57:311426 days ago1604491051IN
0xE5C72783...5E7dFF7d6
0 ETH0.0082743631
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 0xc1E44eae...efD81153f
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
AuricRewards

Compiler Version
v0.5.16+commit.9c3226ce

Optimization Enabled:
Yes with 150 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// File: contracts/distribution/SnxPool.sol

///
/// Cloned from https://etherscan.io/address/0xDCB6A51eA3CA5d3Fd898Fd6564757c7aAeC3ca92#code
///
/// Changes: 
///   - CurveRewards were renamed to AuricRewards
///   - Added constructor the AuricRewards instead of a hardcoded token
///   - Added constructor the LPTokenWrapper instead of a hardcoded token
///   - rewardDistribution address was made public
///

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

/*
   ____            __   __        __   _
  / __/__ __ ___  / /_ / /  ___  / /_ (_)__ __
 _\ \ / // // _ \/ __// _ \/ -_)/ __// / \ \ /
/___/ \_, //_//_/\__//_//_/\__/ \__//_/ /_\_\
     /___/

* Synthetix: CurveRewards.sol
*
* Docs: https://docs.synthetix.io/
*
*
* MIT License
* ===========
*
* Copyright (c) 2020 Synthetix
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
*/

// File: @openzeppelin/contracts/math/Math.sol

pragma solidity ^0.5.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a >= b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow, so we distribute
        return (a / 2) + (b / 2) + ((a % 2 + b % 2) / 2);
    }
}

// File: @openzeppelin/contracts/math/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: @openzeppelin/contracts/GSN/Context.sol

pragma solidity ^0.5.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with GSN meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
contract Context {
    // Empty internal constructor, to prevent people from mistakenly deploying
    // an instance of this contract, which should be used via inheritance.
    constructor () internal { }
    // solhint-disable-previous-line no-empty-blocks

    function _msgSender() internal view returns (address payable) {
        return msg.sender;
    }

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

// File: @openzeppelin/contracts/ownership/Ownable.sol

pragma solidity ^0.5.0;

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

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

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

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

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

    /**
     * @dev Returns true if the caller is the current owner.
     */
    function isOwner() public view returns (bool) {
        return _msgSender() == _owner;
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public onlyOwner {
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     */
    function _transferOwnership(address newOwner) internal {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @openzeppelin/contracts/token/ERC20/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: @openzeppelin/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: @openzeppelin/contracts/token/ERC20/SafeERC20.sol

pragma solidity ^0.5.0;




/**
 * @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(IERC20 token, address to, uint256 value) internal {
        callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

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

    function safeApprove(IERC20 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(IERC20 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(IERC20 token, address spender, uint256 value) internal {
        uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero");
        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(IERC20 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/IRewardDistributionRecipient.sol

pragma solidity ^0.5.0;



contract IRewardDistributionRecipient is Ownable {
    address public rewardDistribution;

    function notifyRewardAmount(uint256 reward) external;

    modifier onlyRewardDistribution() {
        require(_msgSender() == rewardDistribution, "Caller is not reward distribution");
        _;
    }

    function setRewardDistribution(address _rewardDistribution)
        external
        onlyOwner
    {
        rewardDistribution = _rewardDistribution;
    }
}

// File: contracts/CurveRewards.sol

pragma solidity ^0.5.0;






contract LPTokenWrapper {
    using SafeMath for uint256;
    using SafeERC20 for IERC20;

    IERC20 public uni;

    constructor (address _uni) public {
        uni = IERC20(_uni);
    }

    uint256 private _totalSupply;
    mapping(address => uint256) private _balances;

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

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

    function stake(uint256 amount) public {
        _totalSupply = _totalSupply.add(amount);
        _balances[msg.sender] = _balances[msg.sender].add(amount);
        uni.safeTransferFrom(msg.sender, address(this), amount);
    }

    function withdraw(uint256 amount) public {
        _totalSupply = _totalSupply.sub(amount);
        _balances[msg.sender] = _balances[msg.sender].sub(amount);
        uni.safeTransfer(msg.sender, amount);
    }
}

interface IERC20Burnable {
    function burn(uint256 amount) external;
}

interface IERC20Mintable {
    function mint(address to, uint256 amount) external;
}

contract PoolEscrow {

    using SafeERC20 for IERC20;
    using SafeMath for uint256;

    modifier onlyGov() {
        require(msg.sender == governance, "only governance");
        _;
    }

    address public shareToken;
    address public pool;
    address public ausc;
    address public secondary;
    address public development;
    address public governancePool;
    address public dao;
    address public governance;
    uint256 public lastMint;

    constructor(address _shareToken,
        address _pool,
        address _ausc,
        address _secondary,
        address _development,
        address _governancePool,
        address _dao) public {
        shareToken = _shareToken;
        pool = _pool;
        ausc = _ausc;
        secondary = _secondary;
        development = _development;
        governancePool = _governancePool;
        dao = _dao;
        governance = msg.sender;
        lastMint = block.timestamp + 3 hours;
    }

    function setSecondary(address account) external onlyGov {
        secondary = account;
    }

    function setDevelopment(address account) external onlyGov {
        development = account;
    }

    function setGovernancePool(address account) external onlyGov {
        governancePool = account;
    }

    function setDao(address account) external onlyGov {
        dao = account;
    }

    function setGovernance(address account) external onlyGov {
        governance = account;
    }

    function release(address recipient, uint256 shareAmount) external {
        require(msg.sender == pool, "only pool can release tokens");
        IERC20(shareToken).safeTransferFrom(msg.sender, address(this), shareAmount);
        uint256 endowment = getTokenNumber(shareAmount).mul(5).div(100);
        uint256 reward = getTokenNumber(shareAmount);
        if (secondary != address(0)) {
            IERC20(ausc).safeApprove(secondary, 0);
            IERC20(ausc).safeApprove(secondary, endowment);
            PoolEscrow(secondary).notifySecondaryTokens(endowment);
            reward = reward.sub(endowment);
        }
        if (development != address(0)) {
            IERC20(ausc).safeTransfer(development, endowment);
            reward = reward.sub(endowment);
        }
        if (governancePool != address(0)) {
            IERC20(ausc).safeTransfer(governancePool, endowment);
            reward = reward.sub(endowment);
        }
        if (dao != address(0)) {
            IERC20(ausc).safeTransfer(dao, endowment);
            reward = reward.sub(endowment);
        }
        IERC20(ausc).safeTransfer(recipient, reward);
        IERC20Burnable(shareToken).burn(shareAmount);
    }

    function getTokenNumber(uint256 shareAmount) public view returns(uint256) {
        return IERC20(ausc).balanceOf(address(this))
            .mul(shareAmount)
            .div(IERC20(shareToken).totalSupply());
    }

    /**
    * Functionality for secondary pool escrow. Transfers AUSC tokens from msg.sender to this
    * escrow. At most per day, mints a fixed number of escrow tokens to the pool, and notifies
    * the pool. The period 1 day should match the secondary pool.
    */
    function notifySecondaryTokens(uint256 number) external {
        IERC20(ausc).safeTransferFrom(msg.sender, address(this), number);
        if (lastMint.add(14 days) < block.timestamp) {
            uint256 dailyMint = 1000000 * 1e18;
            IERC20Mintable(shareToken).mint(pool, dailyMint);
            AuricRewards(pool).notifyRewardAmount(dailyMint);
            lastMint = block.timestamp;
        }
    }
}

contract AuricRewards is LPTokenWrapper, IRewardDistributionRecipient {
    IERC20 public snx;
    uint256 public constant DURATION = 14 days;

    address public escrow;
    uint256 public periodFinish = 0;
    uint256 public rewardRate = 0;
    uint256 public lastUpdateTime;
    uint256 public rewardPerTokenStored;
    mapping(address => uint256) public userRewardPerTokenPaid;
    mapping(address => uint256) public rewards;

    event RewardAdded(uint256 reward);
    event Staked(address indexed user, uint256 amount);
    event Withdrawn(address indexed user, uint256 amount);
    event RewardPaid(address indexed user, uint256 reward);

    modifier updateReward(address account) {
        rewardPerTokenStored = rewardPerToken();
        lastUpdateTime = lastTimeRewardApplicable();
        if (account != address(0)) {
            rewards[account] = earned(account);
            userRewardPerTokenPaid[account] = rewardPerTokenStored;
        }
        _;
    }

    constructor (address _token, address _lp) LPTokenWrapper(_lp) public {
      snx = IERC20(_token);
    }

    function lastTimeRewardApplicable() public view returns (uint256) {
        return Math.min(block.timestamp, periodFinish);
    }

    function rewardPerToken() public view returns (uint256) {
        if (totalSupply() == 0) {
            return rewardPerTokenStored;
        }
        return
            rewardPerTokenStored.add(
                lastTimeRewardApplicable()
                    .sub(lastUpdateTime)
                    .mul(rewardRate)
                    .mul(1e18)
                    .div(totalSupply())
            );
    }

    function earned(address account) public view returns (uint256) {
        return
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account]);
    }

    // returns the earned amount as it will be paid out by the escrow (accounting for rebases)
    function earnedAusc(address account) public view returns (uint256) {
        return PoolEscrow(escrow).getTokenNumber(
            balanceOf(account)
                .mul(rewardPerToken().sub(userRewardPerTokenPaid[account]))
                .div(1e18)
                .add(rewards[account])
        );
    }

    // stake visibility is public as overriding LPTokenWrapper's stake() function
    function stake(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot stake 0");
        super.stake(amount);
        emit Staked(msg.sender, amount);
    }

    function withdraw(uint256 amount) public updateReward(msg.sender) {
        require(amount > 0, "Cannot withdraw 0");
        super.withdraw(amount);
        emit Withdrawn(msg.sender, amount);
    }

    function exit() external {
        withdraw(balanceOf(msg.sender));
        getReward();
    }

    function getReward() public updateReward(msg.sender) {
        uint256 reward = earned(msg.sender);
        if (reward > 0) {
            rewards[msg.sender] = 0;
            // the pool is distributing placeholder tokens with fixed supply
            snx.safeApprove(escrow, 0);
            snx.safeApprove(escrow, reward);
            PoolEscrow(escrow).release(msg.sender, reward);
            emit RewardPaid(msg.sender, reward);
        }
    }

    function notifyRewardAmount(uint256 reward)
        external
        onlyRewardDistribution
        updateReward(address(0))
    {
        // overflow fix https://sips.synthetix.io/sips/sip-77
        require(reward < uint256(-1) / 1e18, "amount too high");

        if (block.timestamp >= periodFinish) {
            rewardRate = reward.div(DURATION);
        } else {
            uint256 remaining = periodFinish.sub(block.timestamp);
            uint256 leftover = remaining.mul(rewardRate);
            rewardRate = reward.add(leftover).div(DURATION);
        }
        lastUpdateTime = block.timestamp;
        periodFinish = block.timestamp.add(DURATION);
        emit RewardAdded(reward);
    }

    function setEscrow(address newEscrow) external onlyOwner {
        require(escrow == address(0), "escrow already set");
        escrow = newEscrow;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_lp","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardPaid","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Withdrawn","type":"event"},{"constant":true,"inputs":[],"name":"DURATION","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"earnedAusc","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"escrow","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"exit","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"getReward","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"isOwner","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastTimeRewardApplicable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"lastUpdateTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"notifyRewardAmount","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"periodFinish","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[],"name":"renounceOwnership","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"rewardDistribution","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardPerTokenStored","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"rewardRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"newEscrow","type":"address"}],"name":"setEscrow","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"address","name":"_rewardDistribution","type":"address"}],"name":"setRewardDistribution","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"snx","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"stake","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","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":true,"inputs":[],"name":"uni","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"userRewardPerTokenPaid","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"}]

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101835760003560e01c80638b876347116100d9578063df136d6511610087578063df136d6514610385578063e2fdcc171461038d578063e7d2799814610395578063e9fad8ee1461039d578063ebe2b12b146103a5578063edc9af95146103ad578063f2fde38b146103b557610183565b80638b876347146102e85780638da5cb5b1461030e5780638f32d59b14610316578063a694fc3a14610332578063c10c35461461034f578063c8f33c9114610375578063cd3daf9d1461037d57610183565b80633c6b16ab116101365780633c6b16ab1461025f5780633d18b9121461027c57806370a0823114610284578063715018a6146102aa5780637b0a47ee146102b257806380faa57d146102ba5780638999076b146102c257610183565b80628cc262146101885780630700037d146101c05780630d68b761146101e6578063101114cf1461020e57806318160ddd146102325780631be052891461023a5780632e1a7d4d14610242575b600080fd5b6101ae6004803603602081101561019e57600080fd5b50356001600160a01b03166103db565b60408051918252519081900360200190f35b6101ae600480360360208110156101d657600080fd5b50356001600160a01b0316610461565b61020c600480360360208110156101fc57600080fd5b50356001600160a01b0316610473565b005b6102166104dc565b604080516001600160a01b039092168252519081900360200190f35b6101ae6104eb565b6101ae6104f2565b61020c6004803603602081101561025857600080fd5b50356104f9565b61020c6004803603602081101561027557600080fd5b50356105e0565b61020c6107b9565b6101ae6004803603602081101561029a57600080fd5b50356001600160a01b0316610927565b61020c610942565b6101ae6109d3565b6101ae6109d9565b6101ae600480360360208110156102d857600080fd5b50356001600160a01b03166109ec565b6101ae600480360360208110156102fe57600080fd5b50356001600160a01b0316610ab3565b610216610ac5565b61031e610ad4565b604080519115158252519081900360200190f35b61020c6004803603602081101561034857600080fd5b5035610afa565b61020c6004803603602081101561036557600080fd5b50356001600160a01b0316610bde565b6101ae610c9a565b6101ae610ca0565b6101ae610cf4565b610216610cfa565b610216610d09565b61020c610d18565b6101ae610d33565b610216610d39565b61020c600480360360208110156103cb57600080fd5b50356001600160a01b0316610d48565b6001600160a01b0381166000908152600c6020908152604080832054600b90925282205461045b919061044f90670de0b6b3a7640000906104439061042e90610422610ca0565b9063ffffffff610d9b16565b61043788610927565b9063ffffffff610de416565b9063ffffffff610e3d16565b9063ffffffff610e7f16565b92915050565b600c6020526000908152604090205481565b61047b610ad4565b6104ba576040805162461bcd60e51b81526020600482018190526024820152600080516020611555833981519152604482015290519081900360640190fd5b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6004546001600160a01b031681565b6001545b90565b6212750081565b33610502610ca0565b600a5561050d6109d9565b6009556001600160a01b0381161561055457610528816103db565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b6000821161059d576040805162461bcd60e51b8152602060048201526011602482015270043616e6e6f74207769746864726177203607c1b604482015290519081900360640190fd5b6105a682610ed9565b60408051838152905133917f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5919081900360200190a25050565b6004546001600160a01b03166105f4610f3a565b6001600160a01b0316146106395760405162461bcd60e51b81526004018080602001828103825260218152602001806115756021913960400191505060405180910390fd5b6000610643610ca0565b600a5561064e6109d9565b6009556001600160a01b0381161561069557610669816103db565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b7812725dd1d243aba0e75fe645cc4873f9e65afe688c928e1f2182106106f4576040805162461bcd60e51b815260206004820152600f60248201526e0c2dadeeadce840e8dede40d0d2ced608b1b604482015290519081900360640190fd5b600754421061071857610710826212750063ffffffff610e3d16565b600855610766565b60075460009061072e904263ffffffff610d9b16565b9050600061074760085483610de490919063ffffffff16565b905061076062127500610443868463ffffffff610e7f16565b60085550505b42600981905561077f906212750063ffffffff610e7f16565b6007556040805183815290517fde88a922e0d3b88b24e9623efeb464919c6bf9f66857a65e2bfcf2ce87a9433d9181900360200190a15050565b336107c2610ca0565b600a556107cd6109d9565b6009556001600160a01b03811615610814576107e8816103db565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b600061081f336103db565b9050801561092357336000908152600c6020526040812081905560065460055461085e926001600160a01b03918216929091169063ffffffff610f3e16565b600654600554610881916001600160a01b0391821691168363ffffffff610f3e16565b60065460408051630357371d60e01b81523360048201526024810184905290516001600160a01b0390921691630357371d9160448082019260009290919082900301818387803b1580156108d457600080fd5b505af11580156108e8573d6000803e3d6000fd5b50506040805184815290513393507fe2403640ba68fed3a2f88b7557551d1993f84b99bb10ff833f0cf8db0c5e048692509081900360200190a25b5050565b6001600160a01b031660009081526002602052604090205490565b61094a610ad4565b610989576040805162461bcd60e51b81526020600482018190526024820152600080516020611555833981519152604482015290519081900360640190fd5b6003546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600380546001600160a01b0319169055565b60085481565b60006109e742600754611056565b905090565b6006546001600160a01b038281166000908152600c6020908152604080832054600b9092528220549193929092169163e8952fad91610a4d919061044f90670de0b6b3a76400009061044390610a4490610422610ca0565b6104378a610927565b6040518263ffffffff1660e01b81526004018082815260200191505060206040518083038186803b158015610a8157600080fd5b505afa158015610a95573d6000803e3d6000fd5b505050506040513d6020811015610aab57600080fd5b505192915050565b600b6020526000908152604090205481565b6003546001600160a01b031690565b6003546000906001600160a01b0316610aeb610f3a565b6001600160a01b031614905090565b33610b03610ca0565b600a55610b0e6109d9565b6009556001600160a01b03811615610b5557610b29816103db565b6001600160a01b0382166000908152600c6020908152604080832093909355600a54600b909152919020555b60008211610b9b576040805162461bcd60e51b815260206004820152600e60248201526d043616e6e6f74207374616b6520360941b604482015290519081900360640190fd5b610ba48261106c565b60408051838152905133917f9e71bc8eea02a63969f509818f2dafb9254532904319f9dbda79b67bd34a5f3d919081900360200190a25050565b610be6610ad4565b610c25576040805162461bcd60e51b81526020600482018190526024820152600080516020611555833981519152604482015290519081900360640190fd5b6006546001600160a01b031615610c78576040805162461bcd60e51b8152602060048201526012602482015271195cd8dc9bddc8185b1c9958591e481cd95d60721b604482015290519081900360640190fd5b600680546001600160a01b0319166001600160a01b0392909216919091179055565b60095481565b6000610caa6104eb565b610cb75750600a546104ef565b6109e7610ce5610cc56104eb565b610443670de0b6b3a76400006104376008546104376009546104226109d9565b600a549063ffffffff610e7f16565b600a5481565b6006546001600160a01b031681565b6005546001600160a01b031681565b610d29610d2433610927565b6104f9565b610d316107b9565b565b60075481565b6000546001600160a01b031681565b610d50610ad4565b610d8f576040805162461bcd60e51b81526020600482018190526024820152600080516020611555833981519152604482015290519081900360640190fd5b610d98816110ce565b50565b6000610ddd83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525061116f565b9392505050565b600082610df35750600061045b565b82820282848281610e0057fe5b0414610ddd5760405162461bcd60e51b81526004018080602001828103825260218152602001806115346021913960400191505060405180910390fd5b6000610ddd83836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f000000000000815250611206565b600082820183811015610ddd576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600154610eec908263ffffffff610d9b16565b60015533600090815260026020526040902054610f0f908263ffffffff610d9b16565b336000818152600260205260408120929092559054610d98916001600160a01b03909116908361126b565b3390565b801580610fc4575060408051636eb1769f60e11b81523060048201526001600160a01b03848116602483015291519185169163dd62ed3e91604480820192602092909190829003018186803b158015610f9657600080fd5b505afa158015610faa573d6000803e3d6000fd5b505050506040513d6020811015610fc057600080fd5b5051155b610fff5760405162461bcd60e51b81526004018080602001828103825260368152602001806115c06036913960400191505060405180910390fd5b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663095ea7b360e01b1790526110519084906112b9565b505050565b60008183106110655781610ddd565b5090919050565b60015461107f908263ffffffff610e7f16565b600155336000908152600260205260409020546110a2908263ffffffff610e7f16565b336000818152600260205260408120929092559054610d98916001600160a01b03909116903084611477565b6001600160a01b0381166111135760405162461bcd60e51b815260040180806020018281038252602681526020018061150e6026913960400191505060405180910390fd5b6003546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600380546001600160a01b0319166001600160a01b0392909216919091179055565b600081848411156111fe5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156111c35781810151838201526020016111ab565b50505050905090810190601f1680156111f05780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600081836112555760405162461bcd60e51b81526020600482018181528351602484015283519092839260449091019190850190808383600083156111c35781810151838201526020016111ab565b50600083858161126157fe5b0495945050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110519084905b6112cb826001600160a01b03166114d1565b61131c576040805162461bcd60e51b815260206004820152601f60248201527f5361666545524332303a2063616c6c20746f206e6f6e2d636f6e747261637400604482015290519081900360640190fd5b60006060836001600160a01b0316836040518082805190602001908083835b6020831061135a5780518252601f19909201916020918201910161133b565b6001836020036101000a0380198251168184511680821785525050505050509050019150506000604051808303816000865af19150503d80600081146113bc576040519150601f19603f3d011682016040523d82523d6000602084013e6113c1565b606091505b509150915081611418576040805162461bcd60e51b815260206004820181905260248201527f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564604482015290519081900360640190fd5b8051156114715780806020019051602081101561143457600080fd5b50516114715760405162461bcd60e51b815260040180806020018281038252602a815260200180611596602a913960400191505060405180910390fd5b50505050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180516001600160e01b03166323b872dd60e01b1790526114719085906112b9565b6000813f7fc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a47081158015906115055750808214155b94935050505056fe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f774f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657243616c6c6572206973206e6f742072657761726420646973747269627574696f6e5361666545524332303a204552433230206f7065726174696f6e20646964206e6f7420737563636565645361666545524332303a20617070726f76652066726f6d206e6f6e2d7a65726f20746f206e6f6e2d7a65726f20616c6c6f77616e6365a265627a7a723158203d41437a05dd59f1624da86e70c2a033075438162f1bee82491132d4bb7a6c8e64736f6c63430005100032

Deployed Bytecode Sourcemap

27215:4329:0:-;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;27215:4329:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28901:265;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;28901:265:0;-1:-1:-1;;;;;28901:265:0;;:::i;:::-;;;;;;;;;;;;;;;;27611:42;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27611:42:0;-1:-1:-1;;;;;27611:42:0;;:::i;22160:161::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22160:161:0;-1:-1:-1;;;;;22160:161:0;;:::i;:::-;;21904:33;;;:::i;:::-;;;;-1:-1:-1;;;;;21904:33:0;;;;;;;;;;;;;;22697:91;;;:::i;27316:42::-;;;:::i;29875:203::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29875:203:0;;:::i;30658:719::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;30658:719:0;;:::i;30191:459::-;;;:::i;22796:110::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;22796:110:0;-1:-1:-1;;;;;22796:110:0;;:::i;11186:140::-;;;:::i;27433:29::-;;;:::i;28334:131::-;;;:::i;29270:315::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29270:315:0;-1:-1:-1;;;;;29270:315:0;;:::i;27547:57::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;27547:57:0;-1:-1:-1;;;;;27547:57:0;;:::i;10375:79::-;;;:::i;10741:94::-;;;:::i;:::-;;;;;;;;;;;;;;;;;;29676:191;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29676:191:0;;:::i;31385:156::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;31385:156:0;-1:-1:-1;;;;;31385:156:0;;:::i;27469:29::-;;;:::i;28473:420::-;;;:::i;27505:35::-;;;:::i;27367:21::-;;;:::i;27292:17::-;;;:::i;30086:97::-;;;:::i;27395:31::-;;;:::i;22503:17::-;;;:::i;11481:109::-;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;11481:109:0;-1:-1:-1;;;;;11481:109:0;;:::i;28901:265::-;-1:-1:-1;;;;;29141:16:0;;28955:7;29141:16;;;:7;:16;;;;;;;;;29057:22;:31;;;;;;28995:163;;29141:16;28995:123;;29113:4;;28995:95;;29036:53;;:16;:14;:16::i;:::-;:20;:53;:20;:53;:::i;:::-;28995:18;29005:7;28995:9;:18::i;:::-;:40;:95;:40;:95;:::i;:::-;:117;:123;:117;:123;:::i;:::-;:145;:163;:145;:163;:::i;:::-;28975:183;28901:265;-1:-1:-1;;28901:265:0:o;27611:42::-;;;;;;;;;;;;;:::o;22160:161::-;10587:9;:7;:9::i;:::-;10579:54;;;;;-1:-1:-1;;;10579:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10579:54:0;;;;;;;;;;;;;;;22273:18;:40;;-1:-1:-1;;;;;;22273:40:0;-1:-1:-1;;;;;22273:40:0;;;;;;;;;;22160:161::o;21904:33::-;;;-1:-1:-1;;;;;21904:33:0;;:::o;22697:91::-;22768:12;;22697:91;;:::o;27316:42::-;27351:7;27316:42;:::o;29875:203::-;29929:10;27955:16;:14;:16::i;:::-;27932:20;:39;27999:26;:24;:26::i;:::-;27982:14;:43;-1:-1:-1;;;;;28040:21:0;;;28036:157;;28097:15;28104:7;28097:6;:15::i;:::-;-1:-1:-1;;;;;28078:16:0;;;;;;:7;:16;;;;;;;;:34;;;;28161:20;;28127:22;:31;;;;;;:54;28036:157;29969:1;29960:6;:10;29952:40;;;;;-1:-1:-1;;;29952:40:0;;;;;;;;;;;;-1:-1:-1;;;29952:40:0;;;;;;;;;;;;;;;30003:22;30018:6;30003:14;:22::i;:::-;30041:29;;;;;;;;30051:10;;30041:29;;;;;;;;;;29875:203;;:::o;30658:719::-;22076:18;;-1:-1:-1;;;;;22076:18:0;22060:12;:10;:12::i;:::-;-1:-1:-1;;;;;22060:34:0;;22052:80;;;;-1:-1:-1;;;22052:80:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30782:1;27955:16;:14;:16::i;:::-;27932:20;:39;27999:26;:24;:26::i;:::-;27982:14;:43;-1:-1:-1;;;;;28040:21:0;;;28036:157;;28097:15;28104:7;28097:6;:15::i;:::-;-1:-1:-1;;;;;28078:16:0;;;;;;:7;:16;;;;;;;;:34;;;;28161:20;;28127:22;:31;;;;;;:54;28036:157;30882:18;30873:27;;30865:55;;;;;-1:-1:-1;;;30865:55:0;;;;;;;;;;;;-1:-1:-1;;;30865:55:0;;;;;;;;;;;;;;;30956:12;;30937:15;:31;30933:304;;30998:20;:6;27351:7;30998:20;:10;:20;:::i;:::-;30985:10;:33;30933:304;;;31071:12;;31051:17;;31071:33;;31088:15;31071:33;:16;:33;:::i;:::-;31051:53;;31119:16;31138:25;31152:10;;31138:9;:13;;:25;;;;:::i;:::-;31119:44;-1:-1:-1;31191:34:0;27351:7;31191:20;:6;31119:44;31191:20;:10;:20;:::i;:34::-;31178:10;:47;-1:-1:-1;;30933:304:0;31264:15;31247:14;:32;;;31305:29;;27351:7;31305:29;:19;:29;:::i;:::-;31290:12;:44;31350:19;;;;;;;;;;;;;;;;;22143:1;30658:719;:::o;30191:459::-;30232:10;27955:16;:14;:16::i;:::-;27932:20;:39;27999:26;:24;:26::i;:::-;27982:14;:43;-1:-1:-1;;;;;28040:21:0;;;28036:157;;28097:15;28104:7;28097:6;:15::i;:::-;-1:-1:-1;;;;;28078:16:0;;;;;;:7;:16;;;;;;;;:34;;;;28161:20;;28127:22;:31;;;;;;:54;28036:157;30255:14;30272:18;30279:10;30272:6;:18::i;:::-;30255:35;-1:-1:-1;30305:10:0;;30301:342;;30340:10;30354:1;30332:19;;;:7;:19;;;;;:23;;;30464:6;;30448:3;;:26;;-1:-1:-1;;;;;30448:3:0;;;;30464:6;;;;30448:26;:15;:26;:::i;:::-;30505:6;;30489:3;;:31;;-1:-1:-1;;;;;30489:3:0;;;;30505:6;30513;30489:31;:15;:31;:::i;:::-;30546:6;;30535:46;;;-1:-1:-1;;;30535:46:0;;30562:10;30535:46;;;;;;;;;;;;-1:-1:-1;;;;;30546:6:0;;;;30535:26;;:46;;;;;30546:6;;30535:46;;;;;;;;30546:6;;30535:46;;;5:2:-1;;;;30:1;27;20:12;5:2;30535:46:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;-1:-1;;30601:30:0;;;;;;;;30612:10;;-1:-1:-1;30601:30:0;;-1:-1:-1;30601:30:0;;;;;;;;30301:342;28203:1;30191:459;:::o;22796:110::-;-1:-1:-1;;;;;22880:18:0;22853:7;22880:18;;;:9;:18;;;;;;;22796:110::o;11186:140::-;10587:9;:7;:9::i;:::-;10579:54;;;;;-1:-1:-1;;;10579:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10579:54:0;;;;;;;;;;;;;;;11269:6;;11248:40;;11285:1;;-1:-1:-1;;;;;11269:6:0;;11248:40;;11285:1;;11248:40;11299:6;:19;;-1:-1:-1;;;;;;11299:19:0;;;11186:140::o;27433:29::-;;;;:::o;28334:131::-;28391:7;28418:39;28427:15;28444:12;;28418:8;:39::i;:::-;28411:46;;28334:131;:::o;29270:315::-;29366:6;;-1:-1:-1;;;;;29549:16:0;;;29328:7;29549:16;;;:7;:16;;;;;;;;;29465:22;:31;;;;;;29328:7;;29366:6;;;;;29355:33;;29403:163;;29549:16;29403:123;;29521:4;;29403:95;;29444:53;;:16;:14;:16::i;:53::-;29403:18;29413:7;29403:9;:18::i;:163::-;29355:222;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8:9:-1;5:2;;;30:1;27;20:12;5:2;29355:222:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29355:222:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;29355:222:0;;29270:315;-1:-1:-1;;29270:315:0:o;27547:57::-;;;;;;;;;;;;;:::o;10375:79::-;10440:6;;-1:-1:-1;;;;;10440:6:0;10375:79;:::o;10741:94::-;10821:6;;10781:4;;-1:-1:-1;;;;;10821:6:0;10805:12;:10;:12::i;:::-;-1:-1:-1;;;;;10805:22:0;;10798:29;;10741:94;:::o;29676:191::-;29727:10;27955:16;:14;:16::i;:::-;27932:20;:39;27999:26;:24;:26::i;:::-;27982:14;:43;-1:-1:-1;;;;;28040:21:0;;;28036:157;;28097:15;28104:7;28097:6;:15::i;:::-;-1:-1:-1;;;;;28078:16:0;;;;;;:7;:16;;;;;;;;:34;;;;28161:20;;28127:22;:31;;;;;;:54;28036:157;29767:1;29758:6;:10;29750:37;;;;;-1:-1:-1;;;29750:37:0;;;;;;;;;;;;-1:-1:-1;;;29750:37:0;;;;;;;;;;;;;;;29798:19;29810:6;29798:11;:19::i;:::-;29833:26;;;;;;;;29840:10;;29833:26;;;;;;;;;;29676:191;;:::o;31385:156::-;10587:9;:7;:9::i;:::-;10579:54;;;;;-1:-1:-1;;;10579:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10579:54:0;;;;;;;;;;;;;;;31461:6;;-1:-1:-1;;;;;31461:6:0;:20;31453:51;;;;;-1:-1:-1;;;31453:51:0;;;;;;;;;;;;-1:-1:-1;;;31453:51:0;;;;;;;;;;;;;;;31515:6;:18;;-1:-1:-1;;;;;;31515:18:0;-1:-1:-1;;;;;31515:18:0;;;;;;;;;;31385:156::o;27469:29::-;;;;:::o;28473:420::-;28520:7;28544:13;:11;:13::i;:::-;28540:78;;-1:-1:-1;28586:20:0;;28579:27;;28540:78;28648:237;28691:179;28856:13;:11;:13::i;:::-;28691:138;28824:4;28691:106;28786:10;;28691:68;28744:14;;28691:26;:24;:26::i;:179::-;28648:20;;;:237;:24;:237;:::i;27505:35::-;;;;:::o;27367:21::-;;;-1:-1:-1;;;;;27367:21:0;;:::o;27292:17::-;;;-1:-1:-1;;;;;27292:17:0;;:::o;30086:97::-;30122:31;30131:21;30141:10;30131:9;:21::i;:::-;30122:8;:31::i;:::-;30164:11;:9;:11::i;:::-;30086:97::o;27395:31::-;;;;:::o;22503:17::-;;;-1:-1:-1;;;;;22503:17:0;;:::o;11481:109::-;10587:9;:7;:9::i;:::-;10579:54;;;;;-1:-1:-1;;;10579:54:0;;;;;;;;;;;;;-1:-1:-1;;;;;;;;;;;10579:54:0;;;;;;;;;;;;;;;11554:28;11573:8;11554:18;:28::i;:::-;11481:109;:::o;4125:136::-;4183:7;4210:43;4214:1;4217;4210:43;;;;;;;;;;;;;;;;;:3;:43::i;:::-;4203:50;4125:136;-1:-1:-1;;;4125:136:0:o;5041:471::-;5099:7;5344:6;5340:47;;-1:-1:-1;5374:1:0;5367:8;;5340:47;5411:5;;;5415:1;5411;:5;:1;5435:5;;;;;:10;5427:56;;;;-1:-1:-1;;;5427:56:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5980:132;6038:7;6065:39;6069:1;6072;6065:39;;;;;;;;;;;;;;;;;:3;:39::i;3669:181::-;3727:7;3759:5;;;3783:6;;;;3775:46;;;;;-1:-1:-1;;;3775:46:0;;;;;;;;;;;;;;;;;;;;;;;;;;;23152:214;23219:12;;:24;;23236:6;23219:24;:16;:24;:::i;:::-;23204:12;:39;23288:10;23278:21;;;;:9;:21;;;;;;:33;;23304:6;23278:33;:25;:33;:::i;:::-;23264:10;23254:21;;;;:9;:21;;;;;:57;;;;23322:3;;:36;;-1:-1:-1;;;;;23322:3:0;;;;23351:6;23322:16;:36::i;9124:98::-;9204:10;9124:98;:::o;18998:621::-;19368:10;;;19367:62;;-1:-1:-1;19384:39:0;;;-1:-1:-1;;;19384:39:0;;19408:4;19384:39;;;;-1:-1:-1;;;;;19384:39:0;;;;;;;;;:15;;;;;;:39;;;;;;;;;;;;;;;:15;:39;;;5:2:-1;;;;30:1;27;20:12;5:2;19384:39:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;19384:39:0;;;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;19384:39:0;:44;19367:62;19359:152;;;;-1:-1:-1;;;19359:152:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19548:62;;;-1:-1:-1;;;;;19548:62:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;19548:62:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;19522:89:0;;19541:5;;19522:18;:89::i;:::-;18998:621;;;:::o;2331:106::-;2389:7;2420:1;2416;:5;:13;;2428:1;2416:13;;;-1:-1:-1;2424:1:0;;2331:106;-1:-1:-1;2331:106:0:o;22914:230::-;22978:12;;:24;;22995:6;22978:24;:16;:24;:::i;:::-;22963:12;:39;23047:10;23037:21;;;;:9;:21;;;;;;:33;;23063:6;23037:33;:25;:33;:::i;:::-;23023:10;23013:21;;;;:9;:21;;;;;:57;;;;23081:3;;:55;;-1:-1:-1;;;;;23081:3:0;;;;23122:4;23129:6;23081:20;:55::i;11696:229::-;-1:-1:-1;;;;;11770:22:0;;11762:73;;;;-1:-1:-1;;;11762:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11872:6;;11851:38;;-1:-1:-1;;;;;11851:38:0;;;;11872:6;;11851:38;;11872:6;;11851:38;11900:6;:17;;-1:-1:-1;;;;;;11900:17:0;-1:-1:-1;;;;;11900:17:0;;;;;;;;;;11696:229::o;4598:192::-;4684:7;4720:12;4712:6;;;;4704:29;;;;-1:-1:-1;;;4704:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;4704:29:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;4756:5:0;;;4598:192::o;6642:345::-;6728:7;6830:12;6823:5;6815:28;;;;-1:-1:-1;;;6815:28:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27:10:-1;;8:100;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;6815:28:0;;6854:9;6870:1;6866;:5;;;;;;;6642:345;-1:-1:-1;;;;;6642:345:0:o;18602:176::-;18711:58;;;-1:-1:-1;;;;;18711:58:0;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18711:58:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18685:85:0;;18704:5;;20641:1114;21245:27;21253:5;-1:-1:-1;;;;;21245:25:0;;:27::i;:::-;21237:71;;;;;-1:-1:-1;;;21237:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;21382:12;21396:23;21431:5;-1:-1:-1;;;;;21423:19:0;21443:4;21423: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;;;21423: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;;21381:67:0;;;;21467:7;21459:52;;;;;-1:-1:-1;;;21459:52:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;21528:17;;:21;21524:224;;21670:10;21659:30;;;;;13:2:-1;8:3;5:11;2:2;;;29:1;26;19:12;2:2;-1:-1;21659:30:0;21651:85;;;;-1:-1:-1;;;21651:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;20641:1114;;;;:::o;18786:204::-;18913:68;;;-1:-1:-1;;;;;18913:68:0;;;;;;;;;;;;;;;;;;;;;;26:21:-1;;;22:32;;;6:49;;18913:68:0;;;;;;;;25:18:-1;;61:17;;-1:-1;;;;;182:15;-1:-1;;;179:29;160:49;;18887:95:0;;18906:5;;18887:18;:95::i;15440:810::-;15500:4;16159:20;;16002:66;16199:15;;;;;:42;;;16230:11;16218:8;:23;;16199:42;16191:51;15440:810;-1:-1:-1;;;;15440:810:0:o

Swarm Source

bzzr://3d41437a05dd59f1624da86e70c2a033075438162f1bee82491132d4bb7a6c8e

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.