ETH Price: $3,663.12 (+0.73%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Withdraw139766342022-01-10 8:17:031091 days ago1641802623IN
0x5409be76...964b70C5A
0 ETH0.003518293.35833279
Get Tokens Eth139728952022-01-09 18:11:361092 days ago1641751896IN
0x5409be76...964b70C5A
0.04 ETH0.00393237167.51329686
Get Tokens Eth139726962022-01-09 17:24:271092 days ago1641749067IN
0x5409be76...964b70C5A
0.5 ETH0.01498013143.40550434
Get Tokens139726922022-01-09 17:23:521092 days ago1641749032IN
0x5409be76...964b70C5A
0 ETH0.01895226150.51634623
Get Tokens139726292022-01-09 17:10:591092 days ago1641748259IN
0x5409be76...964b70C5A
0 ETH0.02486355197.50066749
Get Tokens139724472022-01-09 16:36:171092 days ago1641746177IN
0x5409be76...964b70C5A
0 ETH0.0128813997.19530685
Get Tokens Eth139722062022-01-09 15:42:261092 days ago1641742946IN
0x5409be76...964b70C5A
0.8 ETH0.0170987163.68667401
Get Tokens Eth139715422022-01-09 13:12:591092 days ago1641733979IN
0x5409be76...964b70C5A
0.224 ETH0.01474809121.32356053
Get Tokens Eth139712702022-01-09 12:06:301092 days ago1641729990IN
0x5409be76...964b70C5A
0.32 ETH0.01278926105.20948309
Get Tokens Eth139694402022-01-09 5:26:281092 days ago1641705988IN
0x5409be76...964b70C5A
0.063687 ETH0.0110552890.94509197
Get Tokens139686362022-01-09 2:31:441093 days ago1641695504IN
0x5409be76...964b70C5A
0 ETH0.01408323106.26372963
Get Tokens139679522022-01-09 0:06:241093 days ago1641686784IN
0x5409be76...964b70C5A
0 ETH0.02041524154.04131602
Get Tokens Eth139675762022-01-08 22:42:411093 days ago1641681761IN
0x5409be76...964b70C5A
0.075 ETH0.00890788101.96752064
Get Tokens Eth139668082022-01-08 19:58:311093 days ago1641671911IN
0x5409be76...964b70C5A
0.02 ETH0.01652152135.91252502
Get Tokens Eth139662092022-01-08 17:47:481093 days ago1641664068IN
0x5409be76...964b70C5A
0.075 ETH0.01912115157.29806181
Get Tokens Eth139654892022-01-08 15:11:191093 days ago1641654679IN
0x5409be76...964b70C5A
0.13 ETH0.0073240583.83758896
Get Tokens139650932022-01-08 13:46:091093 days ago1641649569IN
0x5409be76...964b70C5A
0 ETH0.0113574990.21689839
Get Tokens Eth139623342022-01-08 3:27:581094 days ago1641612478IN
0x5409be76...964b70C5A
0.8 ETH0.01070974122.59324613
Get Tokens Eth139619142022-01-08 1:47:081094 days ago1641606428IN
0x5409be76...964b70C5A
0.03117 ETH0.01349974111.05415835
Get Tokens Eth139617832022-01-08 1:19:061094 days ago1641604746IN
0x5409be76...964b70C5A
0.16 ETH0.01533983126.19144262
Get Tokens Eth139615382022-01-08 0:27:451094 days ago1641601665IN
0x5409be76...964b70C5A
0.13 ETH0.01159384110.98834568
Get Tokens Eth139612822022-01-07 23:35:141094 days ago1641598514IN
0x5409be76...964b70C5A
0.16 ETH0.01660985136.639152
Get Tokens Eth139598682022-01-07 18:21:541094 days ago1641579714IN
0x5409be76...964b70C5A
0.078 ETH0.01542398126.88374621
Get Tokens Eth139583792022-01-07 12:36:541094 days ago1641559014IN
0x5409be76...964b70C5A
0.3 ETH0.0120999999.53925851
Get Tokens Eth139566482022-01-07 6:18:301094 days ago1641536310IN
0x5409be76...964b70C5A
0.032 ETH0.01321972108.75062099
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
139726962022-01-09 17:24:271092 days ago1641749067
0x5409be76...964b70C5A
0.5 ETH
139722062022-01-09 15:42:261092 days ago1641742946
0x5409be76...964b70C5A
0.8 ETH
139715422022-01-09 13:12:591092 days ago1641733979
0x5409be76...964b70C5A
0.224 ETH
139712702022-01-09 12:06:301092 days ago1641729990
0x5409be76...964b70C5A
0.32 ETH
139694402022-01-09 5:26:281092 days ago1641705988
0x5409be76...964b70C5A
0.063687 ETH
139675762022-01-08 22:42:411093 days ago1641681761
0x5409be76...964b70C5A
0.075 ETH
139668082022-01-08 19:58:311093 days ago1641671911
0x5409be76...964b70C5A
0.02 ETH
139662092022-01-08 17:47:481093 days ago1641664068
0x5409be76...964b70C5A
0.075 ETH
139654892022-01-08 15:11:191093 days ago1641654679
0x5409be76...964b70C5A
0.13 ETH
139623342022-01-08 3:27:581094 days ago1641612478
0x5409be76...964b70C5A
0.8 ETH
139619142022-01-08 1:47:081094 days ago1641606428
0x5409be76...964b70C5A
0.03117 ETH
139617832022-01-08 1:19:061094 days ago1641604746
0x5409be76...964b70C5A
0.16 ETH
139615382022-01-08 0:27:451094 days ago1641601665
0x5409be76...964b70C5A
0.13 ETH
139612822022-01-07 23:35:141094 days ago1641598514
0x5409be76...964b70C5A
0.16 ETH
139598682022-01-07 18:21:541094 days ago1641579714
0x5409be76...964b70C5A
0.078 ETH
139583792022-01-07 12:36:541094 days ago1641559014
0x5409be76...964b70C5A
0.3 ETH
139566482022-01-07 6:18:301094 days ago1641536310
0x5409be76...964b70C5A
0.032 ETH
139538432022-01-06 19:43:141095 days ago1641498194
0x5409be76...964b70C5A
0.3 ETH
139531152022-01-06 17:05:561095 days ago1641488756
0x5409be76...964b70C5A
0.39 ETH
139530542022-01-06 16:51:181095 days ago1641487878
0x5409be76...964b70C5A
0.035 ETH
139516652022-01-06 11:48:081095 days ago1641469688
0x5409be76...964b70C5A
0.03 ETH
139515652022-01-06 11:24:361095 days ago1641468276
0x5409be76...964b70C5A
0.1 ETH
139509622022-01-06 9:11:161095 days ago1641460276
0x5409be76...964b70C5A
1.03 ETH
139503112022-01-06 6:38:051095 days ago1641451085
0x5409be76...964b70C5A
0.635857 ETH
139496882022-01-06 4:17:011095 days ago1641442621
0x5409be76...964b70C5A
0.05 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
aKeeperPresale

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 8 : aKeeperPresale.sol
// SPDX-License-Identifier: AGPL-3.0-or-later
pragma solidity 0.7.5;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "../interfaces/AggregateV3Interface.sol";


contract aKeeperPresale is Ownable {
    using SafeMath for uint;
    using SafeERC20 for IERC20;

    IERC20 public aKEEPER;
    address public USDC;
    address public USDT;
    address public DAI;
    address public wBTC;
    address public gnosisSafe;
    mapping( address => uint ) public amountInfo;
    uint deadline;
    
    AggregatorV3Interface internal ethPriceFeed;
    AggregatorV3Interface internal btcPriceFeed;

    event aKeeperRedeemed(address tokenOwner, uint amount);

    constructor(address _aKEEPER, address _USDC, address _USDT, address _DAI, address _wBTC, address _ethFeed, address _btcFeed, address _gnosisSafe, uint _deadline) {
        require( _aKEEPER != address(0) );
        require( _USDC != address(0) );
        require( _USDT != address(0) );
        require( _DAI != address(0) );
        require( _wBTC != address(0) );
        require( _ethFeed != address(0) );
        require( _btcFeed != address(0) );
        aKEEPER = IERC20(_aKEEPER);
        USDC = _USDC;
        USDT = _USDT;
        DAI = _DAI;
        wBTC = _wBTC;
        gnosisSafe = _gnosisSafe;
        deadline = _deadline;
        ethPriceFeed = AggregatorV3Interface( _ethFeed );
        btcPriceFeed = AggregatorV3Interface( _btcFeed );
    }

    function setDeadline(uint _deadline) external onlyOwner() {
        deadline = _deadline;
    }

    function ethAssetPrice() public view returns (int) {
        ( , int price, , , ) = ethPriceFeed.latestRoundData();
        return price;
    }

    function btcAssetPrice() public view returns (int) {
        ( , int price, , , ) = btcPriceFeed.latestRoundData();
        return price;
    }

    function maxAmount() internal pure returns (uint) {
        return 100000000000;
    }

    function getTokens(address principle, uint amount) external {
        require(block.timestamp < deadline, "Deadline has passed.");
        require(principle == USDC || principle == USDT || principle == DAI || principle == wBTC, "Token is not acceptable.");
        require(IERC20(principle).balanceOf(msg.sender) >= amount, "Not enough token amount.");
        // Get aKeeper amount. aKeeper is 9 decimals and 1 aKeeper = $100
        uint aKeeperAmount;
        if (principle == DAI) {
            aKeeperAmount = amount.div(1e11);
        }
        else if (principle == wBTC) {
            aKeeperAmount = amount.mul(uint(btcAssetPrice())).div(1e9);
        }
        else {
            aKeeperAmount = amount.mul(1e1);
        }

        require(maxAmount().sub(amountInfo[msg.sender]) >= aKeeperAmount, "You can only get a maximum of $10000 worth of tokens.");

        IERC20(principle).safeTransferFrom(msg.sender, gnosisSafe, amount);
        aKEEPER.transfer(msg.sender, aKeeperAmount);
        amountInfo[msg.sender] = amountInfo[msg.sender].add(aKeeperAmount);
        emit aKeeperRedeemed(msg.sender, aKeeperAmount);
    }

    function getTokensEth() external payable {
        require(block.timestamp < deadline, "Deadline has passed.");
        uint amount = msg.value;
        // Get aKeeper amount. aKeeper is 9 decimals and 1 aKeeper = $100
        uint aKeeperAmount = amount.mul(uint(ethAssetPrice())).div(1e19);
        require(maxAmount().sub(amountInfo[msg.sender]) >= aKeeperAmount, "You can only get a maximum of $10000 worth of tokens.");

        safeTransferETH(gnosisSafe, amount);
        aKEEPER.transfer(msg.sender, aKeeperAmount);
        amountInfo[msg.sender] = amountInfo[msg.sender].add(aKeeperAmount);
        emit aKeeperRedeemed(msg.sender, aKeeperAmount);
    }

    function safeTransferETH(address to, uint256 value) internal {
        (bool success, ) = to.call{value: value}(new bytes(0));
        require(success, 'STE');
    }

    function withdraw() external onlyOwner() {
        uint256 amount = aKEEPER.balanceOf(address(this));
        aKEEPER.transfer(msg.sender, amount);
    }

    function withdrawEth() external onlyOwner() {
        safeTransferETH(gnosisSafe, address(this).balance);
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "../utils/Context.sol";
/**
 * @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.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * 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.
 */
abstract 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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the 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 virtual 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 virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 8 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
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 4 of 8 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.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, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b > a) return (false, 0);
        return (true, a - b);
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) return (true, 0);
        uint256 c = a * b;
        if (c / a != b) return (false, 0);
        return (true, c);
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a / b);
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        if (b == 0) return (false, 0);
        return (true, a % b);
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        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) {
        require(b <= a, "SafeMath: subtraction overflow");
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        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, reverting 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) {
        require(b > 0, "SafeMath: division by zero");
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        require(b > 0, "SafeMath: modulo by zero");
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        return a - b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryDiv}.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        return a % b;
    }
}

File 5 of 8 : SafeERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

import "./IERC20.sol";
import "../../math/SafeMath.sol";
import "../../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 IERC20;` 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));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    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. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "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 6 of 8 : AggregateV3Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.7.5;

interface AggregatorV3Interface {
  function decimals() external view returns (uint8);

  function description() external view returns (string memory);

  function version() external view returns (uint256);

  // getRoundData and latestRoundData should both raise "No data present"
  // if they do not have data to report, instead of returning unset values
  // which could be misinterpreted as actual reported values.
  function getRoundData(uint80 _roundId)
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );

  function latestRoundData()
    external
    view
    returns (
      uint80 roundId,
      int256 answer,
      uint256 startedAt,
      uint256 updatedAt,
      uint80 answeredInRound
    );
}

File 7 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.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.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address payable) {
        return msg.sender;
    }

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

File 8 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.7.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is 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.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @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].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

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

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_aKEEPER","type":"address"},{"internalType":"address","name":"_USDC","type":"address"},{"internalType":"address","name":"_USDT","type":"address"},{"internalType":"address","name":"_DAI","type":"address"},{"internalType":"address","name":"_wBTC","type":"address"},{"internalType":"address","name":"_ethFeed","type":"address"},{"internalType":"address","name":"_btcFeed","type":"address"},{"internalType":"address","name":"_gnosisSafe","type":"address"},{"internalType":"uint256","name":"_deadline","type":"uint256"}],"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":"address","name":"tokenOwner","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"aKeeperRedeemed","type":"event"},{"inputs":[],"name":"DAI","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"USDT","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aKEEPER","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"btcAssetPrice","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ethAssetPrice","outputs":[{"internalType":"int256","name":"","type":"int256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"principle","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTokensEth","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"gnosisSafe","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_deadline","type":"uint256"}],"name":"setDeadline","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wBTC","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604051620017523803806200175283398181016040526101208110156200003857600080fd5b508051602082015160408301516060840151608085015160a086015160c087015160e088015161010090980151969795969495939492939192909190600062000080620001ef565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b038916620000de57600080fd5b6001600160a01b038816620000f257600080fd5b6001600160a01b0387166200010657600080fd5b6001600160a01b0386166200011a57600080fd5b6001600160a01b0385166200012e57600080fd5b6001600160a01b0384166200014257600080fd5b6001600160a01b0383166200015657600080fd5b600180546001600160a01b03199081166001600160a01b039b8c1617909155600280548216998b1699909917909855600380548916978a1697909717909655600480548816958916959095179094556005805487169388169390931790925560068054861693871693909317909255600892909255600980548416918516919091179055600a80549092169216919091179055620001f3565b3390565b61154f80620002036000396000f3fe60806040526004361061010e5760003560e01c806389a30271116100a5578063a84173ae11610074578063cda4d0d911610059578063cda4d0d9146102b3578063e0bab4c4146102c8578063f2fde38b146102dd5761010e565b8063a84173ae14610289578063c54e44eb1461029e5761010e565b806389a30271146102195780638da5cb5b1461024a5780639b4529311461025f578063a0ef91df146102745761010e565b80632c512d6e116100e15780632c512d6e146101835780633ccfd60b146101bc57806365ec21e1146101d1578063715018a6146102045761010e565b80630e892455146101135780630fe1691f1461013a57806310f9c28f1461014f578063195199f614610159575b600080fd5b34801561011f57600080fd5b50610128610310565b60408051918252519081900360200190f35b34801561014657600080fd5b50610128610396565b6101576103e7565b005b34801561016557600080fd5b506101576004803603602081101561017c57600080fd5b50356105cb565b34801561018f57600080fd5b50610157600480360360408110156101a657600080fd5b506001600160a01b038135169060200135610644565b3480156101c857600080fd5b506101576109dc565b3480156101dd57600080fd5b50610128600480360360208110156101f457600080fd5b50356001600160a01b0316610b66565b34801561021057600080fd5b50610157610b78565b34801561022557600080fd5b5061022e610c43565b604080516001600160a01b039092168252519081900360200190f35b34801561025657600080fd5b5061022e610c52565b34801561026b57600080fd5b5061022e610c61565b34801561028057600080fd5b50610157610c70565b34801561029557600080fd5b5061022e610cfc565b3480156102aa57600080fd5b5061022e610d0b565b3480156102bf57600080fd5b5061022e610d1a565b3480156102d457600080fd5b5061022e610d29565b3480156102e957600080fd5b506101576004803603602081101561030057600080fd5b50356001600160a01b0316610d38565b600080600a60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561036157600080fd5b505afa158015610375573d6000803e3d6000fd5b505050506040513d60a081101561038b57600080fd5b506020015191505090565b600080600960009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561036157600080fd5b600854421061043d576040805162461bcd60e51b815260206004820152601460248201527f446561646c696e6520686173207061737365642e000000000000000000000000604482015290519081900360640190fd5b346000610464678ac7230489e8000061045e610457610396565b8590610e59565b90610ebb565b33600090815260076020526040902054909150819061048b90610485610f22565b90610f2b565b10156104c85760405162461bcd60e51b81526004018080602001828103825260358152602001806114e56035913960400191505060405180910390fd5b6006546104de906001600160a01b031683610f88565b6001546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b505050506040513d602081101561055c57600080fd5b5050336000908152600760205260409020546105789082611091565b3360008181526007602090815260409182902093909355805191825291810183905281517f6c3b4862bb2328b5b38225951c4cab0e73f238fd6d0a1f65b320df20abfa321a929181900390910190a15050565b6105d36110eb565b6001600160a01b03166105e4610c52565b6001600160a01b03161461063f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600855565b600854421061069a576040805162461bcd60e51b815260206004820152601460248201527f446561646c696e6520686173207061737365642e000000000000000000000000604482015290519081900360640190fd5b6002546001600160a01b03838116911614806106c357506003546001600160a01b038381169116145b806106db57506004546001600160a01b038381169116145b806106f357506005546001600160a01b038381169116145b610744576040805162461bcd60e51b815260206004820152601860248201527f546f6b656e206973206e6f742061636365707461626c652e0000000000000000604482015290519081900360640190fd5b80826001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561079257600080fd5b505afa1580156107a6573d6000803e3d6000fd5b505050506040513d60208110156107bc57600080fd5b50511015610811576040805162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820746f6b656e20616d6f756e742e0000000000000000604482015290519081900360640190fd5b6004546000906001600160a01b0384811691161415610840576108398264174876e800610ebb565b9050610877565b6005546001600160a01b038481169116141561086957610839633b9aca0061045e610457610310565b61087482600a610e59565b90505b33600090815260076020526040902054819061089590610485610f22565b10156108d25760405162461bcd60e51b81526004018080602001828103825260358152602001806114e56035913960400191505060405180910390fd5b6006546108ee906001600160a01b0385811691339116856110ef565b6001546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561094257600080fd5b505af1158015610956573d6000803e3d6000fd5b505050506040513d602081101561096c57600080fd5b5050336000908152600760205260409020546109889082611091565b3360008181526007602090815260409182902093909355805191825291810183905281517f6c3b4862bb2328b5b38225951c4cab0e73f238fd6d0a1f65b320df20abfa321a929181900390910190a1505050565b6109e46110eb565b6001600160a01b03166109f5610c52565b6001600160a01b031614610a50576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ab457600080fd5b505afa158015610ac8573d6000803e3d6000fd5b505050506040513d6020811015610ade57600080fd5b50516001546040805163a9059cbb60e01b81523360048201526024810184905290519293506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b158015610b3757600080fd5b505af1158015610b4b573d6000803e3d6000fd5b505050506040513d6020811015610b6157600080fd5b505050565b60076020526000908152604090205481565b610b806110eb565b6001600160a01b0316610b91610c52565b6001600160a01b031614610bec576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6002546001600160a01b031681565b6000546001600160a01b031690565b6005546001600160a01b031681565b610c786110eb565b6001600160a01b0316610c89610c52565b6001600160a01b031614610ce4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600654610cfa906001600160a01b031647610f88565b565b6006546001600160a01b031681565b6003546001600160a01b031681565b6001546001600160a01b031681565b6004546001600160a01b031681565b610d406110eb565b6001600160a01b0316610d51610c52565b6001600160a01b031614610dac576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610df15760405162461bcd60e51b815260040180806020018281038252602681526020018061144e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600082610e6857506000610eb5565b82820282848281610e7557fe5b0414610eb25760405162461bcd60e51b815260040180806020018281038252602181526020018061149a6021913960400191505060405180910390fd5b90505b92915050565b6000808211610f11576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610f1a57fe5b049392505050565b64174876e80090565b600082821115610f82576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310610fd45780518252601f199092019160209182019101610fb5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611036576040519150601f19603f3d011682016040523d82523d6000602084013e61103b565b606091505b5050905080610b61576040805162461bcd60e51b815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600082820183811015610eb2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261117790859061117d565b50505050565b60606111d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661122e9092919063ffffffff16565b805190915015610b61578080602001905160208110156111f157600080fd5b5051610b615760405162461bcd60e51b815260040180806020018281038252602a8152602001806114bb602a913960400191505060405180910390fd5b606061123d8484600085611247565b90505b9392505050565b6060824710156112885760405162461bcd60e51b81526004018080602001828103825260268152602001806114746026913960400191505060405180910390fd5b611291856113a3565b6112e2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113215780518252601f199092019160209182019101611302565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611383576040519150601f19603f3d011682016040523d82523d6000602084013e611388565b606091505b50915091506113988282866113a9565b979650505050505050565b3b151590565b606083156113b8575081611240565b8251156113c85782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114125781810151838201526020016113fa565b50505050905090810190601f16801561143f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564596f752063616e206f6e6c79206765742061206d6178696d756d206f662024313030303020776f727468206f6620746f6b656e732ea2646970667358221220a5463f9ffc53c6554e13ed9365dc64f9301fbec238e51fda482121b512c76cfb64736f6c634300070500330000000000000000000000000828be3e0c5ff6c619af533e002aa61f2f85c294000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000f4030086522a5beea4988f8ca5b36dbc97bee88c000000000000000000000000791f5ef220de3324ff16e9ed56ab13a0be2ac1570000000000000000000000000000000000000000000000000000000061b78a20

Deployed Bytecode

0x60806040526004361061010e5760003560e01c806389a30271116100a5578063a84173ae11610074578063cda4d0d911610059578063cda4d0d9146102b3578063e0bab4c4146102c8578063f2fde38b146102dd5761010e565b8063a84173ae14610289578063c54e44eb1461029e5761010e565b806389a30271146102195780638da5cb5b1461024a5780639b4529311461025f578063a0ef91df146102745761010e565b80632c512d6e116100e15780632c512d6e146101835780633ccfd60b146101bc57806365ec21e1146101d1578063715018a6146102045761010e565b80630e892455146101135780630fe1691f1461013a57806310f9c28f1461014f578063195199f614610159575b600080fd5b34801561011f57600080fd5b50610128610310565b60408051918252519081900360200190f35b34801561014657600080fd5b50610128610396565b6101576103e7565b005b34801561016557600080fd5b506101576004803603602081101561017c57600080fd5b50356105cb565b34801561018f57600080fd5b50610157600480360360408110156101a657600080fd5b506001600160a01b038135169060200135610644565b3480156101c857600080fd5b506101576109dc565b3480156101dd57600080fd5b50610128600480360360208110156101f457600080fd5b50356001600160a01b0316610b66565b34801561021057600080fd5b50610157610b78565b34801561022557600080fd5b5061022e610c43565b604080516001600160a01b039092168252519081900360200190f35b34801561025657600080fd5b5061022e610c52565b34801561026b57600080fd5b5061022e610c61565b34801561028057600080fd5b50610157610c70565b34801561029557600080fd5b5061022e610cfc565b3480156102aa57600080fd5b5061022e610d0b565b3480156102bf57600080fd5b5061022e610d1a565b3480156102d457600080fd5b5061022e610d29565b3480156102e957600080fd5b506101576004803603602081101561030057600080fd5b50356001600160a01b0316610d38565b600080600a60009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561036157600080fd5b505afa158015610375573d6000803e3d6000fd5b505050506040513d60a081101561038b57600080fd5b506020015191505090565b600080600960009054906101000a90046001600160a01b03166001600160a01b031663feaf968c6040518163ffffffff1660e01b815260040160a06040518083038186803b15801561036157600080fd5b600854421061043d576040805162461bcd60e51b815260206004820152601460248201527f446561646c696e6520686173207061737365642e000000000000000000000000604482015290519081900360640190fd5b346000610464678ac7230489e8000061045e610457610396565b8590610e59565b90610ebb565b33600090815260076020526040902054909150819061048b90610485610f22565b90610f2b565b10156104c85760405162461bcd60e51b81526004018080602001828103825260358152602001806114e56035913960400191505060405180910390fd5b6006546104de906001600160a01b031683610f88565b6001546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561053257600080fd5b505af1158015610546573d6000803e3d6000fd5b505050506040513d602081101561055c57600080fd5b5050336000908152600760205260409020546105789082611091565b3360008181526007602090815260409182902093909355805191825291810183905281517f6c3b4862bb2328b5b38225951c4cab0e73f238fd6d0a1f65b320df20abfa321a929181900390910190a15050565b6105d36110eb565b6001600160a01b03166105e4610c52565b6001600160a01b03161461063f576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600855565b600854421061069a576040805162461bcd60e51b815260206004820152601460248201527f446561646c696e6520686173207061737365642e000000000000000000000000604482015290519081900360640190fd5b6002546001600160a01b03838116911614806106c357506003546001600160a01b038381169116145b806106db57506004546001600160a01b038381169116145b806106f357506005546001600160a01b038381169116145b610744576040805162461bcd60e51b815260206004820152601860248201527f546f6b656e206973206e6f742061636365707461626c652e0000000000000000604482015290519081900360640190fd5b80826001600160a01b03166370a08231336040518263ffffffff1660e01b815260040180826001600160a01b0316815260200191505060206040518083038186803b15801561079257600080fd5b505afa1580156107a6573d6000803e3d6000fd5b505050506040513d60208110156107bc57600080fd5b50511015610811576040805162461bcd60e51b815260206004820152601860248201527f4e6f7420656e6f75676820746f6b656e20616d6f756e742e0000000000000000604482015290519081900360640190fd5b6004546000906001600160a01b0384811691161415610840576108398264174876e800610ebb565b9050610877565b6005546001600160a01b038481169116141561086957610839633b9aca0061045e610457610310565b61087482600a610e59565b90505b33600090815260076020526040902054819061089590610485610f22565b10156108d25760405162461bcd60e51b81526004018080602001828103825260358152602001806114e56035913960400191505060405180910390fd5b6006546108ee906001600160a01b0385811691339116856110ef565b6001546040805163a9059cbb60e01b81523360048201526024810184905290516001600160a01b039092169163a9059cbb916044808201926020929091908290030181600087803b15801561094257600080fd5b505af1158015610956573d6000803e3d6000fd5b505050506040513d602081101561096c57600080fd5b5050336000908152600760205260409020546109889082611091565b3360008181526007602090815260409182902093909355805191825291810183905281517f6c3b4862bb2328b5b38225951c4cab0e73f238fd6d0a1f65b320df20abfa321a929181900390910190a1505050565b6109e46110eb565b6001600160a01b03166109f5610c52565b6001600160a01b031614610a50576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600154604080517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ab457600080fd5b505afa158015610ac8573d6000803e3d6000fd5b505050506040513d6020811015610ade57600080fd5b50516001546040805163a9059cbb60e01b81523360048201526024810184905290519293506001600160a01b039091169163a9059cbb916044808201926020929091908290030181600087803b158015610b3757600080fd5b505af1158015610b4b573d6000803e3d6000fd5b505050506040513d6020811015610b6157600080fd5b505050565b60076020526000908152604090205481565b610b806110eb565b6001600160a01b0316610b91610c52565b6001600160a01b031614610bec576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36000805473ffffffffffffffffffffffffffffffffffffffff19169055565b6002546001600160a01b031681565b6000546001600160a01b031690565b6005546001600160a01b031681565b610c786110eb565b6001600160a01b0316610c89610c52565b6001600160a01b031614610ce4576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600654610cfa906001600160a01b031647610f88565b565b6006546001600160a01b031681565b6003546001600160a01b031681565b6001546001600160a01b031681565b6004546001600160a01b031681565b610d406110eb565b6001600160a01b0316610d51610c52565b6001600160a01b031614610dac576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b038116610df15760405162461bcd60e51b815260040180806020018281038252602681526020018061144e6026913960400191505060405180910390fd5b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a36000805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b600082610e6857506000610eb5565b82820282848281610e7557fe5b0414610eb25760405162461bcd60e51b815260040180806020018281038252602181526020018061149a6021913960400191505060405180910390fd5b90505b92915050565b6000808211610f11576040805162461bcd60e51b815260206004820152601a60248201527f536166654d6174683a206469766973696f6e206279207a65726f000000000000604482015290519081900360640190fd5b818381610f1a57fe5b049392505050565b64174876e80090565b600082821115610f82576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b604080516000808252602082019092526001600160a01b0384169083906040518082805190602001908083835b60208310610fd45780518252601f199092019160209182019101610fb5565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611036576040519150601f19603f3d011682016040523d82523d6000602084013e61103b565b606091505b5050905080610b61576040805162461bcd60e51b815260206004820152600360248201527f5354450000000000000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600082820183811015610eb2576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd0000000000000000000000000000000000000000000000000000000017905261117790859061117d565b50505050565b60606111d2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031661122e9092919063ffffffff16565b805190915015610b61578080602001905160208110156111f157600080fd5b5051610b615760405162461bcd60e51b815260040180806020018281038252602a8152602001806114bb602a913960400191505060405180910390fd5b606061123d8484600085611247565b90505b9392505050565b6060824710156112885760405162461bcd60e51b81526004018080602001828103825260268152602001806114746026913960400191505060405180910390fd5b611291856113a3565b6112e2576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b60006060866001600160a01b031685876040518082805190602001908083835b602083106113215780518252601f199092019160209182019101611302565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611383576040519150601f19603f3d011682016040523d82523d6000602084013e611388565b606091505b50915091506113988282866113a9565b979650505050505050565b3b151590565b606083156113b8575081611240565b8251156113c85782518084602001fd5b8160405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114125781810151838201526020016113fa565b50505050905090810190601f16801561143f5780820380516001836020036101000a031916815260200191505b509250505060405180910390fdfe4f776e61626c653a206e6577206f776e657220697320746865207a65726f2061646472657373416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f775361666545524332303a204552433230206f7065726174696f6e20646964206e6f742073756363656564596f752063616e206f6e6c79206765742061206d6178696d756d206f662024313030303020776f727468206f6620746f6b656e732ea2646970667358221220a5463f9ffc53c6554e13ed9365dc64f9301fbec238e51fda482121b512c76cfb64736f6c63430007050033

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

0000000000000000000000000828be3e0c5ff6c619af533e002aa61f2f85c294000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec70000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c5990000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419000000000000000000000000f4030086522a5beea4988f8ca5b36dbc97bee88c000000000000000000000000791f5ef220de3324ff16e9ed56ab13a0be2ac1570000000000000000000000000000000000000000000000000000000061b78a20

-----Decoded View---------------
Arg [0] : _aKEEPER (address): 0x0828be3E0C5Ff6C619AF533E002AA61f2f85C294
Arg [1] : _USDC (address): 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
Arg [2] : _USDT (address): 0xdAC17F958D2ee523a2206206994597C13D831ec7
Arg [3] : _DAI (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [4] : _wBTC (address): 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599
Arg [5] : _ethFeed (address): 0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
Arg [6] : _btcFeed (address): 0xF4030086522a5bEEa4988F8cA5B36dbC97BeE88c
Arg [7] : _gnosisSafe (address): 0x791f5eF220DE3324Ff16E9ED56Ab13a0BE2ac157
Arg [8] : _deadline (uint256): 1639418400

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000828be3e0c5ff6c619af533e002aa61f2f85c294
Arg [1] : 000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Arg [2] : 000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec7
Arg [3] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [4] : 0000000000000000000000002260fac5e5542a773aa44fbcfedf7c193bc2c599
Arg [5] : 0000000000000000000000005f4ec3df9cbd43714fe2740f5e3616155c5b8419
Arg [6] : 000000000000000000000000f4030086522a5beea4988f8ca5b36dbc97bee88c
Arg [7] : 000000000000000000000000791f5ef220de3324ff16e9ed56ab13a0be2ac157
Arg [8] : 0000000000000000000000000000000000000000000000000000000061b78a20


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  ]
[ 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.