Feature Tip: Add private address tag to any address under My Name Tag !
Source Code
More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Loading...
Loading
Cross-Chain Transactions
Loading...
Loading
Contract Name:
DAOVaultMediumDAI
Compiler Version
v0.7.6+commit.7338295f
Optimization Enabled:
Yes with 1000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
import "@openzeppelin/contracts/token/ERC20/SafeERC20.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
/**
* New strategy contract must utilize ERC20 and with functions below:
*
* In constructor, _setupDecimals(decimals) follow token decimals
*
* function deposit(uint256[] memory _amounts)
* -> Receive list as argument
* -> require msg.sender == Vault
*
* function withdraw(uint256[] memory _shares)
* -> Receive list as argument
* -> require msg.sender == Vault
*
* function refund(uint256 _shares)
* -> Receive amount of shares (same amount with daoToken) as argument
* -> require msg.sender == Vault
*
* function approveMigrate()
* -> Approve Vault to migrate all funds to new strategy
*/
import "../../interfaces/IStrategy.sol";
/// @title Contract to interact between user and strategy, and distribute daoToken to user
contract DAOVaultMediumDAI is ERC20, Ownable {
using SafeERC20 for IERC20;
using Address for address;
using SafeMath for uint256;
IERC20 public token;
IStrategy public strategy;
address public pendingStrategy;
bool public canSetPendingStrategy = true;
uint256 public unlockTime;
uint256 public constant LOCKTIME = 2 days;
event MigrateFunds(address indexed fromStrategy, address indexed toStrategy, uint256 amount);
constructor(address _token, address _strategy) ERC20("DAO Vault Medium DAI", "dvmDAI") {
_setupDecimals(18);
token = IERC20(_token);
strategy = IStrategy(_strategy);
}
/**
* @notice Deposit into strategy
* @param _amounts A list that contains amounts to deposit
* Requirements:
* - Only EOA account can call this function
*/
function deposit(uint256[] memory _amounts) external {
require(!address(msg.sender).isContract(), "Only EOA");
uint256 _before = strategy.balanceOf(address(this));
strategy.deposit(_amounts);
uint256 _after = strategy.balanceOf(address(this));
_mint(msg.sender, _after.sub(_before));
}
/**
* @notice Withdraw from strategy
* @param _shares A list that contains shares to withdraw
* @dev amount _shares = amount daoToken
* Requirements:
* - Only EOA account can call this function
*/
function withdraw(uint256[] memory _shares) external {
require(!address(msg.sender).isContract(), "Only EOA");
uint256 _before = strategy.balanceOf(address(this));
strategy.withdraw(_shares);
uint256 _after = strategy.balanceOf(address(this));
_burn(msg.sender, _before.sub(_after));
}
/**
* @notice Refund from strategy
* @notice This function usually only available when strategy in vesting state
* Requirements:
* - Only EOA account can call this function
* - Amount dvmToken of user must greater than 0
*/
function refund() external {
require(!address(msg.sender).isContract(), "Only EOA");
uint256 _shares = balanceOf(msg.sender);
require(_shares > 0, "No balance to refund");
uint256 _before = strategy.balanceOf(address(this));
strategy.refund(_shares);
uint256 _after = strategy.balanceOf(address(this));
_burn(msg.sender, _before.sub(_after));
}
/**
* @notice Set pending strategy
* @param _pendingStrategy Address of pending strategy
* Requirements:
* - Only owner of this contract call this function
* - Pending strategy must be a contract
*/
function setPendingStrategy(address _pendingStrategy) external onlyOwner {
require(canSetPendingStrategy, "Cannot set pending strategy now");
require(_pendingStrategy.isContract(), "New strategy is not contract");
pendingStrategy = _pendingStrategy;
}
/**
* @notice Unlock function migrateFunds()
* Requirements:
* - Only owner of this contract call this function
*/
function unlockMigrateFunds() external onlyOwner {
unlockTime = block.timestamp + LOCKTIME;
canSetPendingStrategy = false;
}
/**
* @notice Migrate all funds from old strategy to new strategy
* Requirements:
* - Only owner of this contract call this function
* - Calling this function within unlock time
* - Pending strategy is set
*/
function migrateFunds() external onlyOwner {
require(unlockTime <= block.timestamp && unlockTime + 1 days >= block.timestamp, "Function locked");
require(pendingStrategy != address(0), "No pendingStrategy");
uint256 _amount = token.balanceOf(address(strategy));
require(_amount > 0, "No balance to migrate");
token.safeTransferFrom(address(strategy), pendingStrategy, _amount);
// Remove balance of old strategy token
IERC20 oldStrategyToken = IERC20(address(strategy));
oldStrategyToken.safeTransfer(address(strategy), oldStrategyToken.balanceOf(address(this)));
address oldStrategy = address(strategy);
strategy = IStrategy(pendingStrategy);
pendingStrategy = address(0);
canSetPendingStrategy = true;
unlockTime = 0; // Lock back this function
emit MigrateFunds(oldStrategy, address(strategy), _amount);
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.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");
}
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.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);
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.0;
import "../../utils/Context.sol";
import "./IERC20.sol";
import "../../math/SafeMath.sol";
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20PresetMinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
constructor (string memory name_, string memory symbol_) public {
_name = name_;
_symbol = symbol_;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view virtual returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view virtual returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view virtual returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view virtual override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20}.
*
* Requirements:
*
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements:
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements:
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
*
* This internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal virtual {
_decimals = decimals_;
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.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 () internal {
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;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.0 <0.8.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;
}
}// SPDX-License-Identifier: MIT
pragma solidity >=0.6.2 <0.8.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);
}
}
}
}// SPDX-License-Identifier: MIT
pragma solidity 0.7.6;
interface IStrategy {
function deposit(uint256[] memory _amounts) external;
function withdraw(uint256[] memory _shares) external;
function refund(uint256 _shares) external;
function balanceOf(address _address) external view returns (uint256);
}// 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;
}
}{
"optimizer": {
"enabled": true,
"runs": 1000
},
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"abi"
]
}
},
"metadata": {
"useLiteralContent": true
},
"libraries": {}
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_strategy","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"fromStrategy","type":"address"},{"indexed":true,"internalType":"address","name":"toStrategy","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MigrateFunds","type":"event"},{"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":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"LOCKTIME","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"canSetPendingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_amounts","type":"uint256[]"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"migrateFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pendingStrategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refund","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_pendingStrategy","type":"address"}],"name":"setPendingStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"contract IStrategy","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockMigrateFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unlockTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_shares","type":"uint256[]"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
60806040526008805460ff60a01b1916600160a01b1790553480156200002457600080fd5b506040516200235238038062002352833981810160405260408110156200004a57600080fd5b508051602091820151604080518082018252601481527f44414f205661756c74204d656469756d204441490000000000000000000000008186019081528251808401909352600683526564766d44414960d01b958301959095528051939492939092620000bb91600391906200019b565b508051620000d19060049060208401906200019b565b50506005805460ff19166012179055506000620000ed62000181565b60058054610100600160a81b0319166101006001600160a01b03841690810291909117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200014f601262000185565b600680546001600160a01b039384166001600160a01b0319918216179091556007805492909316911617905562000247565b3390565b6005805460ff191660ff92909216919091179055565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282620001d357600085556200021e565b82601f10620001ee57805160ff19168380011785556200021e565b828001600101855582156200021e579182015b828111156200021e57825182559160200191906001019062000201565b506200022c92915062000230565b5090565b5b808211156200022c576000815560010162000231565b6120fb80620002576000396000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c8063715018a6116100ee578063a457c2d711610097578063dd62ed3e11610071578063dd62ed3e14610562578063f2fde38b14610590578063f99bab24146105b6578063fc0c546a146105be576101ae565b8063a457c2d714610502578063a8c62e761461052e578063a9059cbb14610536576101ae565b80639580c4bc116100c85780639580c4bc1461044f57806395d89b4114610457578063983d95ce1461045f576101ae565b8063715018a614610437578063854ab6df1461043f5780638da5cb5b14610447576101ae565b8063251c1aa31161015b578063465fc5d211610135578063465fc5d214610342578063590e1ae314610366578063598b8e711461036e57806370a0823114610411576101ae565b8063251c1aa3146102f0578063313ce567146102f85780633950935114610316576101ae565b80631a8f0c0a1161018c5780631a8f0c0a1461028a57806323b872dd146102b2578063242c8e69146102e8576101ae565b806306fdde03146101b3578063095ea7b31461023057806318160ddd14610270575b600080fd5b6101bb6105c6565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f55781810151838201526020016101dd565b50505050905090810190601f1680156102225780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61025c6004803603604081101561024657600080fd5b506001600160a01b03813516906020013561065c565b604080519115158252519081900360200190f35b610278610679565b60408051918252519081900360200190f35b6102b0600480360360208110156102a057600080fd5b50356001600160a01b031661067f565b005b61025c600480360360608110156102c857600080fd5b506001600160a01b038135811691602081013590911690604001356107e3565b61027861086b565b610278610872565b610300610878565b6040805160ff9092168252519081900360200190f35b61025c6004803603604081101561032c57600080fd5b506001600160a01b038135169060200135610881565b61034a6108cf565b604080516001600160a01b039092168252519081900360200190f35b6102b06108de565b6102b06004803603602081101561038457600080fd5b81019060208101813564010000000081111561039f57600080fd5b8201836020820111156103b157600080fd5b803590602001918460208302840111640100000000831117156103d357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610b11945050505050565b6102786004803603602081101561042757600080fd5b50356001600160a01b0316610d18565b6102b0610d33565b61025c610e04565b61034a610e14565b6102b0610e28565b6101bb611192565b6102b06004803603602081101561047557600080fd5b81019060208101813564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460208302840111640100000000831117156104c457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506111f3945050505050565b61025c6004803603604081101561051857600080fd5b506001600160a01b038135169060200135611354565b61034a6113bc565b61025c6004803603604081101561054c57600080fd5b506001600160a01b0381351690602001356113cb565b6102786004803603604081101561057857600080fd5b506001600160a01b03813581169160200135166113df565b6102b0600480360360208110156105a657600080fd5b50356001600160a01b031661140a565b6102b0611537565b61034a6115de565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106525780601f1061062757610100808354040283529160200191610652565b820191906000526020600020905b81548152906001019060200180831161063557829003601f168201915b5050505050905090565b60006106706106696115ed565b84846115f1565b50600192915050565b60025490565b6106876115ed565b6001600160a01b0316610698610e14565b6001600160a01b0316146106f3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600854600160a01b900460ff16610751576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207365742070656e64696e67207374726174656779206e6f7700604482015290519081900360640190fd5b610763816001600160a01b03166116dd565b6107b4576040805162461bcd60e51b815260206004820152601c60248201527f4e6577207374726174656779206973206e6f7420636f6e747261637400000000604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006107f08484846116e3565b610860846107fc6115ed565b61085b85604051806060016040528060288152602001611fe5602891396001600160a01b038a1660009081526001602052604081209061083a6115ed565b6001600160a01b03168152602081019190915260400160002054919061183e565b6115f1565b5060015b9392505050565b6202a30081565b60095481565b60055460ff1690565b600061067061088e6115ed565b8461085b856001600061089f6115ed565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906118d5565b6008546001600160a01b031681565b6108e7336116dd565b15610924576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600061092f33610d18565b905060008111610986576040805162461bcd60e51b815260206004820152601460248201527f4e6f2062616c616e636520746f20726566756e64000000000000000000000000604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156109d157600080fd5b505afa1580156109e5573d6000803e3d6000fd5b505050506040513d60208110156109fb57600080fd5b5051600754604080517f278ecde10000000000000000000000000000000000000000000000000000000081526004810186905290519293506001600160a01b039091169163278ecde19160248082019260009290919082900301818387803b158015610a6657600080fd5b505af1158015610a7a573d6000803e3d6000fd5b5050600754604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b50519050610b0c33610b07848461192f565b61198c565b505050565b610b1a336116dd565b15610b57576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ba257600080fd5b505afa158015610bb6573d6000803e3d6000fd5b505050506040513d6020811015610bcc57600080fd5b50516007546040517f598b8e710000000000000000000000000000000000000000000000000000000081526020600482018181528651602484015286519495506001600160a01b039093169363598b8e7193879390928392604490920191858201910280838360005b83811015610c4d578181015183820152602001610c35565b5050505090500192505050600060405180830381600087803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b5050600754604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610cd757600080fd5b505afa158015610ceb573d6000803e3d6000fd5b505050506040513d6020811015610d0157600080fd5b50519050610b0c33610d13838561192f565b611a88565b6001600160a01b031660009081526020819052604090205490565b610d3b6115ed565b6001600160a01b0316610d4c610e14565b6001600160a01b031614610da7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b600854600160a01b900460ff1681565b60055461010090046001600160a01b031690565b610e306115ed565b6001600160a01b0316610e41610e14565b6001600160a01b031614610e9c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b4260095411158015610eb5575042600954620151800110155b610f06576040805162461bcd60e51b815260206004820152600f60248201527f46756e6374696f6e206c6f636b65640000000000000000000000000000000000604482015290519081900360640190fd5b6008546001600160a01b0316610f63576040805162461bcd60e51b815260206004820152601260248201527f4e6f2070656e64696e6753747261746567790000000000000000000000000000604482015290519081900360640190fd5b600654600754604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b158015610fb757600080fd5b505afa158015610fcb573d6000803e3d6000fd5b505050506040513d6020811015610fe157600080fd5b5051905080611037576040805162461bcd60e51b815260206004820152601560248201527f4e6f2062616c616e636520746f206d6967726174650000000000000000000000604482015290519081900360640190fd5b60075460085460065461105b926001600160a01b0391821692908216911684611b78565b600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916110ea91839182916370a08231916024808301926020929190829003018186803b1580156110ad57600080fd5b505afa1580156110c1573d6000803e3d6000fd5b505050506040513d60208110156110d757600080fd5b50516001600160a01b0384169190611c06565b600780546008805473ffffffffffffffffffffffffffffffffffffffff1983166001600160a01b0382811691909117948590557fffffffffffffffffffffff000000000000000000000000000000000000000000909116600160a01b179091556000600955604080518681529051928216939091169183917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a3505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106525780601f1061062757610100808354040283529160200191610652565b6111fc336116dd565b15611239576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561128457600080fd5b505afa158015611298573d6000803e3d6000fd5b505050506040513d60208110156112ae57600080fd5b50516007546040517f983d95ce0000000000000000000000000000000000000000000000000000000081526020600482018181528651602484015286519495506001600160a01b039093169363983d95ce93879390928392604490920191858201910280838360005b8381101561132f578181015183820152602001611317565b5050505090500192505050600060405180830381600087803b158015610a6657600080fd5b60006106706113616115ed565b8461085b856040518060600160405280602581526020016120a1602591396001600061138b6115ed565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061183e565b6007546001600160a01b031681565b60006106706113d86115ed565b84846116e3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6114126115ed565b6001600160a01b0316611423610e14565b6001600160a01b03161461147e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166114c35760405162461bcd60e51b8152600401808060200182810382526026815260200180611f516026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b61153f6115ed565b6001600160a01b0316611550610e14565b6001600160a01b0316146115ab576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b426202a30001600955600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b6006546001600160a01b031681565b3390565b6001600160a01b0383166116365760405162461bcd60e51b81526004018080602001828103825260248152602001806120536024913960400191505060405180910390fd5b6001600160a01b03821661167b5760405162461bcd60e51b8152600401808060200182810382526022815260200180611f776022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b3b151590565b6001600160a01b0383166117285760405162461bcd60e51b815260040180806020018281038252602581526020018061202e6025913960400191505060405180910390fd5b6001600160a01b03821661176d5760405162461bcd60e51b8152600401808060200182810382526023815260200180611f0c6023913960400191505060405180910390fd5b611778838383610b0c565b6117b581604051806060016040528060268152602001611f99602691396001600160a01b038616600090815260208190526040902054919061183e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546117e490826118d5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156118cd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561189257818101518382015260200161187a565b50505050905090810190601f1680156118bf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610864576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115611986576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b0382166119d15760405162461bcd60e51b815260040180806020018281038252602181526020018061200d6021913960400191505060405180910390fd5b6119dd82600083610b0c565b611a1a81604051806060016040528060228152602001611f2f602291396001600160a01b038516600090815260208190526040902054919061183e565b6001600160a01b038316600090815260208190526040902055600254611a40908261192f565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038216611ae3576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611aef60008383610b0c565b600254611afc90826118d5565b6002556001600160a01b038216600090815260208190526040902054611b2290826118d5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611c00908590611c82565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b0c9084905b6000611cd7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d339092919063ffffffff16565b805190915015610b0c57808060200190516020811015611cf657600080fd5b5051610b0c5760405162461bcd60e51b815260040180806020018281038252602a815260200180612077602a913960400191505060405180910390fd5b6060611d428484600085611d4a565b949350505050565b606082471015611d8b5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fbf6026913960400191505060405180910390fd5b611d94856116dd565b611de5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611e235780518252601f199092019160209182019101611e04565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611e85576040519150601f19603f3d011682016040523d82523d6000602084013e611e8a565b606091505b5091509150611e9a828286611ea5565b979650505050505050565b60608315611eb4575081610864565b825115611ec45782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561189257818101518382015260200161187a56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207d31bb04d24f85457479c11a91df21956984712cf0ef0c1a7a13a49ccd191f7664736f6c634300070600330000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000003685fb7ca1c555cb5bd5a246422ee1f2c53ddb71
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101ae5760003560e01c8063715018a6116100ee578063a457c2d711610097578063dd62ed3e11610071578063dd62ed3e14610562578063f2fde38b14610590578063f99bab24146105b6578063fc0c546a146105be576101ae565b8063a457c2d714610502578063a8c62e761461052e578063a9059cbb14610536576101ae565b80639580c4bc116100c85780639580c4bc1461044f57806395d89b4114610457578063983d95ce1461045f576101ae565b8063715018a614610437578063854ab6df1461043f5780638da5cb5b14610447576101ae565b8063251c1aa31161015b578063465fc5d211610135578063465fc5d214610342578063590e1ae314610366578063598b8e711461036e57806370a0823114610411576101ae565b8063251c1aa3146102f0578063313ce567146102f85780633950935114610316576101ae565b80631a8f0c0a1161018c5780631a8f0c0a1461028a57806323b872dd146102b2578063242c8e69146102e8576101ae565b806306fdde03146101b3578063095ea7b31461023057806318160ddd14610270575b600080fd5b6101bb6105c6565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101f55781810151838201526020016101dd565b50505050905090810190601f1680156102225780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61025c6004803603604081101561024657600080fd5b506001600160a01b03813516906020013561065c565b604080519115158252519081900360200190f35b610278610679565b60408051918252519081900360200190f35b6102b0600480360360208110156102a057600080fd5b50356001600160a01b031661067f565b005b61025c600480360360608110156102c857600080fd5b506001600160a01b038135811691602081013590911690604001356107e3565b61027861086b565b610278610872565b610300610878565b6040805160ff9092168252519081900360200190f35b61025c6004803603604081101561032c57600080fd5b506001600160a01b038135169060200135610881565b61034a6108cf565b604080516001600160a01b039092168252519081900360200190f35b6102b06108de565b6102b06004803603602081101561038457600080fd5b81019060208101813564010000000081111561039f57600080fd5b8201836020820111156103b157600080fd5b803590602001918460208302840111640100000000831117156103d357600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610b11945050505050565b6102786004803603602081101561042757600080fd5b50356001600160a01b0316610d18565b6102b0610d33565b61025c610e04565b61034a610e14565b6102b0610e28565b6101bb611192565b6102b06004803603602081101561047557600080fd5b81019060208101813564010000000081111561049057600080fd5b8201836020820111156104a257600080fd5b803590602001918460208302840111640100000000831117156104c457600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295506111f3945050505050565b61025c6004803603604081101561051857600080fd5b506001600160a01b038135169060200135611354565b61034a6113bc565b61025c6004803603604081101561054c57600080fd5b506001600160a01b0381351690602001356113cb565b6102786004803603604081101561057857600080fd5b506001600160a01b03813581169160200135166113df565b6102b0600480360360208110156105a657600080fd5b50356001600160a01b031661140a565b6102b0611537565b61034a6115de565b60038054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106525780601f1061062757610100808354040283529160200191610652565b820191906000526020600020905b81548152906001019060200180831161063557829003601f168201915b5050505050905090565b60006106706106696115ed565b84846115f1565b50600192915050565b60025490565b6106876115ed565b6001600160a01b0316610698610e14565b6001600160a01b0316146106f3576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b600854600160a01b900460ff16610751576040805162461bcd60e51b815260206004820152601f60248201527f43616e6e6f74207365742070656e64696e67207374726174656779206e6f7700604482015290519081900360640190fd5b610763816001600160a01b03166116dd565b6107b4576040805162461bcd60e51b815260206004820152601c60248201527f4e6577207374726174656779206973206e6f7420636f6e747261637400000000604482015290519081900360640190fd5b6008805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b60006107f08484846116e3565b610860846107fc6115ed565b61085b85604051806060016040528060288152602001611fe5602891396001600160a01b038a1660009081526001602052604081209061083a6115ed565b6001600160a01b03168152602081019190915260400160002054919061183e565b6115f1565b5060015b9392505050565b6202a30081565b60095481565b60055460ff1690565b600061067061088e6115ed565b8461085b856001600061089f6115ed565b6001600160a01b03908116825260208083019390935260409182016000908120918c1681529252902054906118d5565b6008546001600160a01b031681565b6108e7336116dd565b15610924576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600061092f33610d18565b905060008111610986576040805162461bcd60e51b815260206004820152601460248201527f4e6f2062616c616e636520746f20726566756e64000000000000000000000000604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b1580156109d157600080fd5b505afa1580156109e5573d6000803e3d6000fd5b505050506040513d60208110156109fb57600080fd5b5051600754604080517f278ecde10000000000000000000000000000000000000000000000000000000081526004810186905290519293506001600160a01b039091169163278ecde19160248082019260009290919082900301818387803b158015610a6657600080fd5b505af1158015610a7a573d6000803e3d6000fd5b5050600754604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610acb57600080fd5b505afa158015610adf573d6000803e3d6000fd5b505050506040513d6020811015610af557600080fd5b50519050610b0c33610b07848461192f565b61198c565b505050565b610b1a336116dd565b15610b57576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b158015610ba257600080fd5b505afa158015610bb6573d6000803e3d6000fd5b505050506040513d6020811015610bcc57600080fd5b50516007546040517f598b8e710000000000000000000000000000000000000000000000000000000081526020600482018181528651602484015286519495506001600160a01b039093169363598b8e7193879390928392604490920191858201910280838360005b83811015610c4d578181015183820152602001610c35565b5050505090500192505050600060405180830381600087803b158015610c7257600080fd5b505af1158015610c86573d6000803e3d6000fd5b5050600754604080516370a0823160e01b81523060048201529051600094506001600160a01b0390921692506370a08231916024808301926020929190829003018186803b158015610cd757600080fd5b505afa158015610ceb573d6000803e3d6000fd5b505050506040513d6020811015610d0157600080fd5b50519050610b0c33610d13838561192f565b611a88565b6001600160a01b031660009081526020819052604090205490565b610d3b6115ed565b6001600160a01b0316610d4c610e14565b6001600160a01b031614610da7576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b60055460405160009161010090046001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36005805474ffffffffffffffffffffffffffffffffffffffff0019169055565b600854600160a01b900460ff1681565b60055461010090046001600160a01b031690565b610e306115ed565b6001600160a01b0316610e41610e14565b6001600160a01b031614610e9c576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b4260095411158015610eb5575042600954620151800110155b610f06576040805162461bcd60e51b815260206004820152600f60248201527f46756e6374696f6e206c6f636b65640000000000000000000000000000000000604482015290519081900360640190fd5b6008546001600160a01b0316610f63576040805162461bcd60e51b815260206004820152601260248201527f4e6f2070656e64696e6753747261746567790000000000000000000000000000604482015290519081900360640190fd5b600654600754604080516370a0823160e01b81526001600160a01b039283166004820152905160009392909216916370a0823191602480820192602092909190829003018186803b158015610fb757600080fd5b505afa158015610fcb573d6000803e3d6000fd5b505050506040513d6020811015610fe157600080fd5b5051905080611037576040805162461bcd60e51b815260206004820152601560248201527f4e6f2062616c616e636520746f206d6967726174650000000000000000000000604482015290519081900360640190fd5b60075460085460065461105b926001600160a01b0391821692908216911684611b78565b600754604080516370a0823160e01b815230600482015290516001600160a01b03909216916110ea91839182916370a08231916024808301926020929190829003018186803b1580156110ad57600080fd5b505afa1580156110c1573d6000803e3d6000fd5b505050506040513d60208110156110d757600080fd5b50516001600160a01b0384169190611c06565b600780546008805473ffffffffffffffffffffffffffffffffffffffff1983166001600160a01b0382811691909117948590557fffffffffffffffffffffff000000000000000000000000000000000000000000909116600160a01b179091556000600955604080518681529051928216939091169183917f77e495c0e82622b2e795fb14f2a956e1dd14664ea8dbc629c12f4859b416aaea919081900360200190a3505050565b60048054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156106525780601f1061062757610100808354040283529160200191610652565b6111fc336116dd565b15611239576040805162461bcd60e51b81526020600482015260086024820152674f6e6c7920454f4160c01b604482015290519081900360640190fd5b600754604080516370a0823160e01b815230600482015290516000926001600160a01b0316916370a08231916024808301926020929190829003018186803b15801561128457600080fd5b505afa158015611298573d6000803e3d6000fd5b505050506040513d60208110156112ae57600080fd5b50516007546040517f983d95ce0000000000000000000000000000000000000000000000000000000081526020600482018181528651602484015286519495506001600160a01b039093169363983d95ce93879390928392604490920191858201910280838360005b8381101561132f578181015183820152602001611317565b5050505090500192505050600060405180830381600087803b158015610a6657600080fd5b60006106706113616115ed565b8461085b856040518060600160405280602581526020016120a1602591396001600061138b6115ed565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919061183e565b6007546001600160a01b031681565b60006106706113d86115ed565b84846116e3565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6114126115ed565b6001600160a01b0316611423610e14565b6001600160a01b03161461147e576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b6001600160a01b0381166114c35760405162461bcd60e51b8152600401808060200182810382526026815260200180611f516026913960400191505060405180910390fd5b6005546040516001600160a01b0380841692610100900416907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b039092166101000274ffffffffffffffffffffffffffffffffffffffff0019909216919091179055565b61153f6115ed565b6001600160a01b0316611550610e14565b6001600160a01b0316146115ab576040805162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015290519081900360640190fd5b426202a30001600955600880547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b6006546001600160a01b031681565b3390565b6001600160a01b0383166116365760405162461bcd60e51b81526004018080602001828103825260248152602001806120536024913960400191505060405180910390fd5b6001600160a01b03821661167b5760405162461bcd60e51b8152600401808060200182810382526022815260200180611f776022913960400191505060405180910390fd5b6001600160a01b03808416600081815260016020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b3b151590565b6001600160a01b0383166117285760405162461bcd60e51b815260040180806020018281038252602581526020018061202e6025913960400191505060405180910390fd5b6001600160a01b03821661176d5760405162461bcd60e51b8152600401808060200182810382526023815260200180611f0c6023913960400191505060405180910390fd5b611778838383610b0c565b6117b581604051806060016040528060268152602001611f99602691396001600160a01b038616600090815260208190526040902054919061183e565b6001600160a01b0380851660009081526020819052604080822093909355908416815220546117e490826118d5565b6001600160a01b038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b600081848411156118cd5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b8381101561189257818101518382015260200161187a565b50505050905090810190601f1680156118bf5780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b600082820183811015610864576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b600082821115611986576040805162461bcd60e51b815260206004820152601e60248201527f536166654d6174683a207375627472616374696f6e206f766572666c6f770000604482015290519081900360640190fd5b50900390565b6001600160a01b0382166119d15760405162461bcd60e51b815260040180806020018281038252602181526020018061200d6021913960400191505060405180910390fd5b6119dd82600083610b0c565b611a1a81604051806060016040528060228152602001611f2f602291396001600160a01b038516600090815260208190526040902054919061183e565b6001600160a01b038316600090815260208190526040902055600254611a40908261192f565b6002556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b6001600160a01b038216611ae3576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b611aef60008383610b0c565b600254611afc90826118d5565b6002556001600160a01b038216600090815260208190526040902054611b2290826118d5565b6001600160a01b0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b604080516001600160a01b0380861660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052611c00908590611c82565b50505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fa9059cbb00000000000000000000000000000000000000000000000000000000179052610b0c9084905b6000611cd7826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611d339092919063ffffffff16565b805190915015610b0c57808060200190516020811015611cf657600080fd5b5051610b0c5760405162461bcd60e51b815260040180806020018281038252602a815260200180612077602a913960400191505060405180910390fd5b6060611d428484600085611d4a565b949350505050565b606082471015611d8b5760405162461bcd60e51b8152600401808060200182810382526026815260200180611fbf6026913960400191505060405180910390fd5b611d94856116dd565b611de5576040805162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015290519081900360640190fd5b600080866001600160a01b031685876040518082805190602001908083835b60208310611e235780518252601f199092019160209182019101611e04565b6001836020036101000a03801982511681845116808217855250505050505090500191505060006040518083038185875af1925050503d8060008114611e85576040519150601f19603f3d011682016040523d82523d6000602084013e611e8a565b606091505b5091509150611e9a828286611ea5565b979650505050505050565b60608315611eb4575081610864565b825115611ec45782518084602001fd5b60405162461bcd60e51b815260206004820181815284516024840152845185939192839260440191908501908083836000831561189257818101518382015260200161187a56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e6365416464726573733a20696e73756666696369656e742062616c616e636520666f722063616c6c45524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f20616464726573735361666545524332303a204552433230206f7065726174696f6e20646964206e6f74207375636365656445524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212207d31bb04d24f85457479c11a91df21956984712cf0ef0c1a7a13a49ccd191f7664736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000003685fb7ca1c555cb5bd5a246422ee1f2c53ddb71
-----Decoded View---------------
Arg [0] : _token (address): 0x6B175474E89094C44Da98b954EedeAC495271d0F
Arg [1] : _strategy (address): 0x3685fB7CA1C555Cb5BD5A246422ee1f2c53DdB71
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f
Arg [1] : 0000000000000000000000003685fb7ca1c555cb5bd5a246422ee1f2c53ddb71
Loading...
Loading
Loading...
Loading
Net Worth in USD
$0.00
Net Worth in ETH
0
Multichain Portfolio | 33 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
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.