Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Overview
Max Total Supply
3,784.1438968609371938 uauraBAL
Holders
86
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
11.081594987064522083 uauraBALValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
AuraBalVault
Compiler Version
v0.8.9+commit.e5eed63a
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "GenericVault.sol"; interface AuraBalStrategy { function harvest( address _caller, uint256 _minAmountOut, bool _lock ) external returns (uint256 harvested); } contract AuraBalVault is GenericUnionVault { bool public isHarvestPermissioned = false; mapping(address => bool) public authorizedHarvesters; constructor(address _token) GenericUnionVault(_token) {} /// @notice Sets whether only whitelisted addresses can harvest /// @param _status Whether or not harvests are permissioned function setHarvestPermissions(bool _status) external onlyOwner { isHarvestPermissioned = _status; } /// @notice Adds or remove an address from the harvesters' whitelist /// @param _harvester address of the authorized harvester /// @param _authorized Whether to add or remove harvester function updateAuthorizedHarvesters(address _harvester, bool _authorized) external onlyOwner { authorizedHarvesters[_harvester] = _authorized; } /// @notice Claim rewards and swaps them to auraBAL for restaking /// @param _minAmountOut - min amount of auraBAL to receive for harvest /// @param _lock - whether to lock or swap lp tokens for auraBAL /// @dev Can be called by whitelisted account or anyone against an auraBal incentive /// @dev Harvest logic in the strategy contract /// @dev Harvest can be called even if permissioned when last staker is /// withdrawing from the vault. function harvest(uint256 _minAmountOut, bool _lock) public { require( !isHarvestPermissioned || authorizedHarvesters[msg.sender] || totalSupply() == 0, "permissioned harvest" ); uint256 _harvested = AuraBalStrategy(strategy).harvest( msg.sender, _minAmountOut, _lock ); emit Harvest(msg.sender, _harvested); } /// @notice Claim rewards and swaps them to auraBAL for restaking /// @param _minAmountOut - min amount of BPT to receive for harvest /// @dev locking for auraBAL by default function harvest(uint256 _minAmountOut) public { harvest(_minAmountOut, true); } /// @notice Claim rewards and swaps them to auraBAL for restaking /// @dev No slippage protection, swapping for auraBAL function harvest() public override { harvest(0); } }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; import "Ownable.sol"; import "SafeERC20.sol"; import "ERC20.sol"; import "IStrategy.sol"; contract GenericUnionVault is ERC20, Ownable { using SafeERC20 for IERC20; uint256 public withdrawalPenalty = 100; uint256 public constant MAX_WITHDRAWAL_PENALTY = 150; uint256 public platformFee = 500; uint256 public constant MAX_PLATFORM_FEE = 2000; uint256 public callIncentive = 500; uint256 public constant MAX_CALL_INCENTIVE = 500; uint256 public constant FEE_DENOMINATOR = 10000; address public immutable underlying; address public strategy; address public platform; event Harvest(address indexed _caller, uint256 _value); event Deposit(address indexed _from, address indexed _to, uint256 _value); event Withdraw(address indexed _from, address indexed _to, uint256 _value); event WithdrawalPenaltyUpdated(uint256 _penalty); event CallerIncentiveUpdated(uint256 _incentive); event PlatformFeeUpdated(uint256 _fee); event PlatformUpdated(address indexed _platform); event StrategySet(address indexed _strategy); constructor(address _token) ERC20( string(abi.encodePacked("Unionized ", ERC20(_token).name())), string(abi.encodePacked("u", ERC20(_token).symbol())) ) { underlying = _token; } /// @notice Updates the withdrawal penalty /// @param _penalty - the amount of the new penalty (in BIPS) function setWithdrawalPenalty(uint256 _penalty) external onlyOwner { require(_penalty <= MAX_WITHDRAWAL_PENALTY); withdrawalPenalty = _penalty; emit WithdrawalPenaltyUpdated(_penalty); } /// @notice Updates the caller incentive for harvests /// @param _incentive - the amount of the new incentive (in BIPS) function setCallIncentive(uint256 _incentive) external onlyOwner { require(_incentive <= MAX_CALL_INCENTIVE); callIncentive = _incentive; emit CallerIncentiveUpdated(_incentive); } /// @notice Updates the part of yield redirected to the platform /// @param _fee - the amount of the new platform fee (in BIPS) function setPlatformFee(uint256 _fee) external onlyOwner { require(_fee <= MAX_PLATFORM_FEE); platformFee = _fee; emit PlatformFeeUpdated(_fee); } /// @notice Updates the address to which platform fees are paid out /// @param _platform - the new platform wallet address function setPlatform(address _platform) external onlyOwner notToZeroAddress(_platform) { platform = _platform; emit PlatformUpdated(_platform); } /// @notice Set the address of the strategy contract /// @dev Can only be set once /// @param _strategy - address of the strategy contract function setStrategy(address _strategy) external onlyOwner notToZeroAddress(_strategy) { require(strategy == address(0), "Strategy already set"); strategy = _strategy; emit StrategySet(_strategy); } /// @notice Query the amount currently staked /// @return total - the total amount of tokens staked function totalUnderlying() public view returns (uint256 total) { return IStrategy(strategy).totalUnderlying(); } /// @notice Returns the amount of underlying a user can claim /// @param user - address whose claimable amount to query /// @return amount - claimable amount /// @dev Does not account for penalties and fees function balanceOfUnderlying(address user) external view returns (uint256 amount) { require(totalSupply() > 0, "No users"); return ((balanceOf(user) * totalUnderlying()) / totalSupply()); } /// @notice Deposit user funds in the autocompounder and mints tokens /// representing user's share of the pool in exchange /// @param _to - the address that will receive the shares /// @param _amount - the amount of underlying to deposit /// @return _shares - the amount of shares issued function deposit(address _to, uint256 _amount) public notToZeroAddress(_to) returns (uint256 _shares) { require(_amount > 0, "Deposit too small"); uint256 _before = totalUnderlying(); IERC20(underlying).safeTransferFrom(msg.sender, strategy, _amount); IStrategy(strategy).stake(_amount); // Issues shares in proportion of deposit to pool amount uint256 shares = 0; if (totalSupply() == 0) { shares = _amount; } else { shares = (_amount * totalSupply()) / _before; } _mint(_to, shares); emit Deposit(msg.sender, _to, _amount); return shares; } /// @notice Deposit all of user's underlying balance /// @param _to - the address that will receive the shares /// @return _shares - the amount of shares issued function depositAll(address _to) external returns (uint256 _shares) { return deposit(_to, IERC20(underlying).balanceOf(msg.sender)); } /// @notice Unstake underlying in proportion to the amount of shares sent /// @param _shares - the number of shares sent /// @return _withdrawable - the withdrawable underlying amount function _withdraw(uint256 _shares) internal returns (uint256 _withdrawable) { require(totalSupply() > 0); // Computes the amount withdrawable based on the number of shares sent uint256 amount = (_shares * totalUnderlying()) / totalSupply(); // Burn the shares before retrieving tokens _burn(msg.sender, _shares); // If user is last to withdraw, harvest before exit if (totalSupply() == 0) { harvest(); IStrategy(strategy).withdraw(totalUnderlying()); _withdrawable = IERC20(underlying).balanceOf(address(this)); } // Otherwise compute share and unstake else { _withdrawable = amount; // Substract a small withdrawal fee to prevent users "timing" // the harvests. The fee stays staked and is therefore // redistributed to all remaining participants. uint256 _penalty = (_withdrawable * withdrawalPenalty) / FEE_DENOMINATOR; _withdrawable = _withdrawable - _penalty; IStrategy(strategy).withdraw(_withdrawable); } return _withdrawable; } /// @notice Unstake underlying token in proportion to the amount of shares sent /// @param _to - address to send underlying to /// @param _shares - the number of shares sent /// @return withdrawn - the amount of underlying returned to the user function withdraw(address _to, uint256 _shares) public notToZeroAddress(_to) returns (uint256 withdrawn) { // Withdraw requested amount of underlying uint256 _withdrawable = _withdraw(_shares); // And sends back underlying to user IERC20(underlying).safeTransfer(_to, _withdrawable); emit Withdraw(msg.sender, _to, _withdrawable); return _withdrawable; } /// @notice Withdraw all of a users' position as underlying /// @param _to - address to send underlying to /// @return withdrawn - the amount of underlying returned to the user function withdrawAll(address _to) external notToZeroAddress(_to) returns (uint256 withdrawn) { return withdraw(_to, balanceOf(msg.sender)); } /// @notice Claim rewards and swaps them to FXS for restaking /// @dev Can be called by anyone against an incentive in FXS /// @dev Harvest logic in the strategy contract function harvest() public virtual { uint256 _harvested = IStrategy(strategy).harvest(msg.sender); emit Harvest(msg.sender, _harvested); } modifier notToZeroAddress(address _to) { require(_to != address(0), "Invalid address!"); _; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "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; } }
// SPDX-License-Identifier: MIT pragma solidity ^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 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) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691 return msg.data; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "IERC20.sol"; import "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 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) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(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.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.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.8.0; import "IERC20.sol"; import "IERC20Metadata.sol"; import "Context.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, IERC20Metadata { mapping (address => uint256) private _balances; mapping (address => mapping (address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * The defaut value of {decimals} is 18. To select a different value for * {decimals} you should overload it. * * All two of these values are immutable: they can only be set once during * construction. */ constructor (string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override 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 this function is * overridden; * * 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 override returns (uint8) { return 18; } /** * @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); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - amount); 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] + 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) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); 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); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += 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 += amount; _balances[account] += 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); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); _balances[account] = accountBalance - amount; _totalSupply -= 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 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.8.0; import "IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT pragma solidity 0.8.9; interface IStrategy { function harvest(address _caller) external returns (uint256 harvested); function harvest(address _caller, uint256 _minAmountOut) external returns (uint256 harvested); function totalUnderlying() external view returns (uint256 total); function stake(uint256 _amount) external; function withdraw(uint256 _amount) external; function setApprovals() external; }
{ "evmVersion": "istanbul", "optimizer": { "enabled": true, "runs": 200 }, "libraries": { "AuraBalVault.sol": {} }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","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":false,"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"CallerIncentiveUpdated","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":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"_value","type":"uint256"}],"name":"Harvest","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":false,"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"PlatformFeeUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_platform","type":"address"}],"name":"PlatformUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_strategy","type":"address"}],"name":"StrategySet","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"},{"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":"Withdraw","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"WithdrawalPenaltyUpdated","type":"event"},{"inputs":[],"name":"FEE_DENOMINATOR","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_CALL_INCENTIVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PLATFORM_FEE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WITHDRAWAL_PENALTY","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":"","type":"address"}],"name":"authorizedHarvesters","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"balanceOfUnderlying","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"callIncentive","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"deposit","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"depositAll","outputs":[{"internalType":"uint256","name":"_shares","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"},{"internalType":"bool","name":"_lock","type":"bool"}],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"harvest","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minAmountOut","type":"uint256"}],"name":"harvest","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":"isHarvestPermissioned","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":"platform","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"platformFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_incentive","type":"uint256"}],"name":"setCallIncentive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setHarvestPermissions","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_platform","type":"address"}],"name":"setPlatform","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setPlatformFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_strategy","type":"address"}],"name":"setStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_penalty","type":"uint256"}],"name":"setWithdrawalPenalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalUnderlying","outputs":[{"internalType":"uint256","name":"total","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":"underlying","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_harvester","type":"address"},{"internalType":"bool","name":"_authorized","type":"bool"}],"name":"updateAuthorizedHarvesters","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_shares","type":"uint256"}],"name":"withdraw","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"withdrawAll","outputs":[{"internalType":"uint256","name":"withdrawn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalPenalty","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a060405260646006556101f46007819055600855600a805460ff60a01b191690553480156200002e57600080fd5b50604051620024b4380380620024b48339810160408190526200005191620002d2565b80806001600160a01b03166306fdde036040518163ffffffff1660e01b815260040160006040518083038186803b1580156200008c57600080fd5b505afa158015620000a1573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620000cb91908101906200034d565b604051602001620000dd919062000405565b604051602081830303815290604052816001600160a01b03166395d89b416040518163ffffffff1660e01b815260040160006040518083038186803b1580156200012657600080fd5b505afa1580156200013b573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200016591908101906200034d565b60405160200162000177919062000439565b60408051601f1981840301815291905281516200019c9060039060208501906200022c565b508051620001b29060049060208401906200022c565b5050506000620001c76200022860201b60201c565b600580546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b031660805250620004a1565b3390565b8280546200023a9062000464565b90600052602060002090601f0160209004810192826200025e5760008555620002a9565b82601f106200027957805160ff1916838001178555620002a9565b82800160010185558215620002a9579182015b82811115620002a95782518255916020019190600101906200028c565b50620002b7929150620002bb565b5090565b5b80821115620002b75760008155600101620002bc565b600060208284031215620002e557600080fd5b81516001600160a01b0381168114620002fd57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620003375781810151838201526020016200031d565b8381111562000347576000848401525b50505050565b6000602082840312156200036057600080fd5b81516001600160401b03808211156200037857600080fd5b818401915084601f8301126200038d57600080fd5b815181811115620003a257620003a262000304565b604051601f8201601f19908116603f01168101908382118183101715620003cd57620003cd62000304565b81604052828152876020848701011115620003e757600080fd5b620003fa8360208301602088016200031a565b979650505050505050565b6902ab734b7b734bd32b2160b51b8152600082516200042c81600a8501602087016200031a565b91909101600a0192915050565b607560f81b815260008251620004578160018501602087016200031a565b9190910160010192915050565b600181811c908216806200047957607f821691505b602082108114156200049b57634e487b7160e01b600052602260045260246000fd5b50919050565b608051611fdb620004d9600039600081816103d801528181610b4701528181610e54015281816111a2015261177f0152611fdb6000f3fe608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063c70920bc116100c3578063ddc6326211610087578063ddc6326214610525578063e7c1b77114610538578063f2fde38b14610541578063f3fef3a314610554578063f7ff67a014610567578063fa09e6301461058a57600080fd5b8063c70920bc146104bf578063cb22356b146104c7578063cc7554eb146104d0578063d73792a9146104e3578063dd62ed3e146104ec57600080fd5b80639f0d5f271161010a5780639f0d5f271461046a578063a2468c191461047d578063a457c2d714610486578063a8c62e7614610499578063a9059cbb146104ac57600080fd5b8063715018a6146104235780637faaa6c11461042b578063809c95cc1461043e5780638da5cb5b1461045157806395d89b411461046257600080fd5b806333a100ca116101df5780634641257d116101a35780634641257d1461037a57806347e7ef24146103825780634bde38c8146103955780636945c5ea146103c05780636f307dc3146103d357806370a08231146103fa57600080fd5b806333a100ca1461032557806339509351146103385780633998a6811461034b5780633af9e669146103545780633dc31d191461036757600080fd5b80632060176b116102265780632060176b146102de57806323b872dd146102e6578063252c37fa146102f957806326232a2e1461030d578063313ce5671461031657600080fd5b806306fdde0314610263578063095ea7b31461028157806312e8e2c3146102a4578063178d300e146102b957806318160ddd146102cc575b600080fd5b61026b61059d565b6040516102789190611c96565b60405180910390f35b61029461028f366004611ce5565b61062f565b6040519015158152602001610278565b6102b76102b2366004611d0f565b610645565b005b6102b76102c7366004611d36565b6106c3565b6002545b604051908152602001610278565b6102d0609681565b6102946102f4366004611d66565b610803565b600a5461029490600160a01b900460ff1681565b6102d060075481565b60405160128152602001610278565b6102b7610333366004611da2565b6108b6565b610294610346366004611ce5565b6109a2565b6102d06107d081565b6102d0610362366004611da2565b6109d9565b6102b7610375366004611dbd565b610a5b565b6102b7610ab0565b6102d0610390366004611ce5565b610abc565b600a546103a8906001600160a01b031681565b6040516001600160a01b039091168152602001610278565b6102b76103ce366004611da2565b610c5a565b6103a87f000000000000000000000000000000000000000000000000000000000000000081565b6102d0610408366004611da2565b6001600160a01b031660009081526020819052604090205490565b6102b7610cf6565b6102b7610439366004611d0f565b610d6a565b6102b761044c366004611de9565b610dd7565b6005546001600160a01b03166103a8565b61026b610e1f565b6102d0610478366004611da2565b610e2e565b6102d060065481565b610294610494366004611ce5565b610ece565b6009546103a8906001600160a01b031681565b6102946104ba366004611ce5565b610f69565b6102d0610f76565b6102d060085481565b6102b76104de366004611d0f565b610ff8565b6102d061271081565b6102d06104fa366004611e06565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102b7610533366004611d0f565b611066565b6102d06101f481565b6102b761054f366004611da2565b611074565b6102d0610562366004611ce5565b61115f565b610294610575366004611da2565b600b6020526000908152604090205460ff1681565b6102d0610598366004611da2565b611211565b6060600380546105ac90611e39565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890611e39565b80156106255780601f106105fa57610100808354040283529160200191610625565b820191906000526020600020905b81548152906001019060200180831161060857829003601f168201915b5050505050905090565b600061063c33848461125e565b50600192915050565b6005546001600160a01b031633146106785760405162461bcd60e51b815260040161066f90611e6e565b60405180910390fd5b6107d081111561068757600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b600a54600160a01b900460ff1615806106eb5750336000908152600b602052604090205460ff165b806106f65750600254155b6107395760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5cdcda5bdb9959081a185c9d995cdd60621b604482015260640161066f565b60095460405163bab7028f60e01b81523360048201526024810184905282151560448201526000916001600160a01b03169063bab7028f90606401602060405180830381600087803b15801561078e57600080fd5b505af11580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c69190611ea3565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2505050565b6000610810848484611383565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108955760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161066f565b6108a985336108a48685611ed2565b61125e565b60019150505b9392505050565b6005546001600160a01b031633146108e05760405162461bcd60e51b815260040161066f90611e6e565b806001600160a01b0381166109075760405162461bcd60e51b815260040161066f90611ee9565b6009546001600160a01b0316156109575760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b604482015260640161066f565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161063c9185906108a4908690611f13565b6000806109e560025490565b11610a1d5760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b604482015260640161066f565b600254610a28610f76565b6001600160a01b038416600090815260208190526040902054610a4b9190611f2b565b610a559190611f4a565b92915050565b6005546001600160a01b03163314610a855760405162461bcd60e51b815260040161066f90611e6e565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b610aba6000611066565b565b6000826001600160a01b038116610ae55760405162461bcd60e51b815260040161066f90611ee9565b60008311610b295760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b604482015260640161066f565b6000610b33610f76565b600954909150610b72906001600160a01b037f00000000000000000000000000000000000000000000000000000000000000008116913391168761155b565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610bb857600080fd5b505af1158015610bcc573d6000803e3d6000fd5b505050506000610bdb60025490565b610be6575083610c07565b81610bf060025490565b610bfa9087611f2b565b610c049190611f4a565b90505b610c1186826115cc565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610c845760405162461bcd60e51b815260040161066f90611e6e565b806001600160a01b038116610cab5760405162461bcd60e51b815260040161066f90611ee9565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b6005546001600160a01b03163314610d205760405162461bcd60e51b815260040161066f90611e6e565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610d945760405162461bcd60e51b815260040161066f90611e6e565b6096811115610da257600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016106b8565b6005546001600160a01b03163314610e015760405162461bcd60e51b815260040161066f90611e6e565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b6060600480546105ac90611e39565b6040516370a0823160e01b8152336004820152600090610a559083906001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016906370a082319060240160206040518083038186803b158015610e9657600080fd5b505afa158015610eaa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103909190611ea3565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f505760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161066f565b610f5f33856108a48685611ed2565b5060019392505050565b600061063c338484611383565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b158015610fbb57600080fd5b505afa158015610fcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff39190611ea3565b905090565b6005546001600160a01b031633146110225760405162461bcd60e51b815260040161066f90611e6e565b6101f481111561103157600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a42906020016106b8565b6110718160016106c3565b50565b6005546001600160a01b0316331461109e5760405162461bcd60e51b815260040161066f90611e6e565b6001600160a01b0381166111035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066f565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0381166111885760405162461bcd60e51b815260040161066f90611ee9565b6000611193846116ab565b90506111c96001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016868361189c565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b03811661123a5760405162461bcd60e51b815260040161066f90611ee9565b3360009081526020819052604090205461125590849061115f565b91505b50919050565b6001600160a01b0383166112c05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161066f565b6001600160a01b0382166113215760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161066f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166113e75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161066f565b6001600160a01b0382166114495760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161066f565b6001600160a01b038316600090815260208190526040902054818110156114c15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161066f565b6114cb8282611ed2565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290611501908490611f13565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161154d91815260200190565b60405180910390a350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526115c69085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526118d1565b50505050565b6001600160a01b0382166116225760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161066f565b80600260008282546116349190611f13565b90915550506001600160a01b03821660009081526020819052604081208054839290611661908490611f13565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000806116b760025490565b116116c157600080fd5b60006116cc60025490565b6116d4610f76565b6116de9085611f2b565b6116e89190611f4a565b90506116f433846119a3565b60025461180a57611703610ab0565b6009546001600160a01b0316632e1a7d4d61171c610f76565b6040518263ffffffff1660e01b815260040161173a91815260200190565b600060405180830381600087803b15801561175457600080fd5b505af1158015611768573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031692506370a08231915060240160206040518083038186803b1580156117cb57600080fd5b505afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118039190611ea3565b9150611258565b8091506000612710600654846118209190611f2b565b61182a9190611f4a565b90506118368184611ed2565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561187d57600080fd5b505af1158015611891573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b0383166024820152604481018290526118cc90849063a9059cbb60e01b9060640161158f565b505050565b6000611926826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611af29092919063ffffffff16565b8051909150156118cc57808060200190518101906119449190611f6c565b6118cc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161066f565b6001600160a01b038216611a035760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161066f565b6001600160a01b03821660009081526020819052604090205481811015611a775760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161066f565b611a818282611ed2565b6001600160a01b03841660009081526020819052604081209190915560028054849290611aaf908490611ed2565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611376565b6060611b018484600085611b09565b949350505050565b606082471015611b6a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161066f565b843b611bb85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161066f565b600080866001600160a01b03168587604051611bd49190611f89565b60006040518083038185875af1925050503d8060008114611c11576040519150601f19603f3d011682016040523d82523d6000602084013e611c16565b606091505b5091509150611c26828286611c31565b979650505050505050565b60608315611c405750816108af565b825115611c505782518084602001fd5b8160405162461bcd60e51b815260040161066f9190611c96565b60005b83811015611c85578181015183820152602001611c6d565b838111156115c65750506000910152565b6020815260008251806020840152611cb5816040850160208701611c6a565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611ce057600080fd5b919050565b60008060408385031215611cf857600080fd5b611d0183611cc9565b946020939093013593505050565b600060208284031215611d2157600080fd5b5035919050565b801515811461107157600080fd5b60008060408385031215611d4957600080fd5b823591506020830135611d5b81611d28565b809150509250929050565b600080600060608486031215611d7b57600080fd5b611d8484611cc9565b9250611d9260208501611cc9565b9150604084013590509250925092565b600060208284031215611db457600080fd5b6108af82611cc9565b60008060408385031215611dd057600080fd5b611dd983611cc9565b91506020830135611d5b81611d28565b600060208284031215611dfb57600080fd5b81356108af81611d28565b60008060408385031215611e1957600080fd5b611e2283611cc9565b9150611e3060208401611cc9565b90509250929050565b600181811c90821680611e4d57607f821691505b6020821081141561125857634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611eb557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ee457611ee4611ebc565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60008219821115611f2657611f26611ebc565b500190565b6000816000190483118215151615611f4557611f45611ebc565b500290565b600082611f6757634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611f7e57600080fd5b81516108af81611d28565b60008251611f9b818460208701611c6a565b919091019291505056fea26469706673582212208c202350c67a81a15282114c4fdd3ea34230a3258b3b0ac3f2d67cae2dcb903c64736f6c63430008090033000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061025e5760003560e01c8063715018a611610146578063c70920bc116100c3578063ddc6326211610087578063ddc6326214610525578063e7c1b77114610538578063f2fde38b14610541578063f3fef3a314610554578063f7ff67a014610567578063fa09e6301461058a57600080fd5b8063c70920bc146104bf578063cb22356b146104c7578063cc7554eb146104d0578063d73792a9146104e3578063dd62ed3e146104ec57600080fd5b80639f0d5f271161010a5780639f0d5f271461046a578063a2468c191461047d578063a457c2d714610486578063a8c62e7614610499578063a9059cbb146104ac57600080fd5b8063715018a6146104235780637faaa6c11461042b578063809c95cc1461043e5780638da5cb5b1461045157806395d89b411461046257600080fd5b806333a100ca116101df5780634641257d116101a35780634641257d1461037a57806347e7ef24146103825780634bde38c8146103955780636945c5ea146103c05780636f307dc3146103d357806370a08231146103fa57600080fd5b806333a100ca1461032557806339509351146103385780633998a6811461034b5780633af9e669146103545780633dc31d191461036757600080fd5b80632060176b116102265780632060176b146102de57806323b872dd146102e6578063252c37fa146102f957806326232a2e1461030d578063313ce5671461031657600080fd5b806306fdde0314610263578063095ea7b31461028157806312e8e2c3146102a4578063178d300e146102b957806318160ddd146102cc575b600080fd5b61026b61059d565b6040516102789190611c96565b60405180910390f35b61029461028f366004611ce5565b61062f565b6040519015158152602001610278565b6102b76102b2366004611d0f565b610645565b005b6102b76102c7366004611d36565b6106c3565b6002545b604051908152602001610278565b6102d0609681565b6102946102f4366004611d66565b610803565b600a5461029490600160a01b900460ff1681565b6102d060075481565b60405160128152602001610278565b6102b7610333366004611da2565b6108b6565b610294610346366004611ce5565b6109a2565b6102d06107d081565b6102d0610362366004611da2565b6109d9565b6102b7610375366004611dbd565b610a5b565b6102b7610ab0565b6102d0610390366004611ce5565b610abc565b600a546103a8906001600160a01b031681565b6040516001600160a01b039091168152602001610278565b6102b76103ce366004611da2565b610c5a565b6103a87f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d81565b6102d0610408366004611da2565b6001600160a01b031660009081526020819052604090205490565b6102b7610cf6565b6102b7610439366004611d0f565b610d6a565b6102b761044c366004611de9565b610dd7565b6005546001600160a01b03166103a8565b61026b610e1f565b6102d0610478366004611da2565b610e2e565b6102d060065481565b610294610494366004611ce5565b610ece565b6009546103a8906001600160a01b031681565b6102946104ba366004611ce5565b610f69565b6102d0610f76565b6102d060085481565b6102b76104de366004611d0f565b610ff8565b6102d061271081565b6102d06104fa366004611e06565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6102b7610533366004611d0f565b611066565b6102d06101f481565b6102b761054f366004611da2565b611074565b6102d0610562366004611ce5565b61115f565b610294610575366004611da2565b600b6020526000908152604090205460ff1681565b6102d0610598366004611da2565b611211565b6060600380546105ac90611e39565b80601f01602080910402602001604051908101604052809291908181526020018280546105d890611e39565b80156106255780601f106105fa57610100808354040283529160200191610625565b820191906000526020600020905b81548152906001019060200180831161060857829003601f168201915b5050505050905090565b600061063c33848461125e565b50600192915050565b6005546001600160a01b031633146106785760405162461bcd60e51b815260040161066f90611e6e565b60405180910390fd5b6107d081111561068757600080fd5b60078190556040518181527f45610d581145924dd7090a5017e5f2b1d6f42213bb2e95707ff86846bbfcb1ca906020015b60405180910390a150565b600a54600160a01b900460ff1615806106eb5750336000908152600b602052604090205460ff165b806106f65750600254155b6107395760405162461bcd60e51b81526020600482015260146024820152731c195c9b5a5cdcda5bdb9959081a185c9d995cdd60621b604482015260640161066f565b60095460405163bab7028f60e01b81523360048201526024810184905282151560448201526000916001600160a01b03169063bab7028f90606401602060405180830381600087803b15801561078e57600080fd5b505af11580156107a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c69190611ea3565b60405181815290915033907fc9695243a805adb74c91f28311176c65b417e842d5699893cef56d18bfa48cba9060200160405180910390a2505050565b6000610810848484611383565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156108955760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b606482015260840161066f565b6108a985336108a48685611ed2565b61125e565b60019150505b9392505050565b6005546001600160a01b031633146108e05760405162461bcd60e51b815260040161066f90611e6e565b806001600160a01b0381166109075760405162461bcd60e51b815260040161066f90611ee9565b6009546001600160a01b0316156109575760405162461bcd60e51b815260206004820152601460248201527314dd1c985d1959de48185b1c9958591e481cd95d60621b604482015260640161066f565b600980546001600160a01b0319166001600160a01b0384169081179091556040517fe70d79dad95c835bdd87e9cf4665651c9e5abb3b756e4fd2bf45f29c95c3aa4090600090a25050565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909161063c9185906108a4908690611f13565b6000806109e560025490565b11610a1d5760405162461bcd60e51b81526020600482015260086024820152674e6f20757365727360c01b604482015260640161066f565b600254610a28610f76565b6001600160a01b038416600090815260208190526040902054610a4b9190611f2b565b610a559190611f4a565b92915050565b6005546001600160a01b03163314610a855760405162461bcd60e51b815260040161066f90611e6e565b6001600160a01b03919091166000908152600b60205260409020805460ff1916911515919091179055565b610aba6000611066565b565b6000826001600160a01b038116610ae55760405162461bcd60e51b815260040161066f90611ee9565b60008311610b295760405162461bcd60e51b815260206004820152601160248201527011195c1bdcda5d081d1bdbc81cdb585b1b607a1b604482015260640161066f565b6000610b33610f76565b600954909150610b72906001600160a01b037f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d8116913391168761155b565b60095460405163534a7e1d60e11b8152600481018690526001600160a01b039091169063a694fc3a90602401600060405180830381600087803b158015610bb857600080fd5b505af1158015610bcc573d6000803e3d6000fd5b505050506000610bdb60025490565b610be6575083610c07565b81610bf060025490565b610bfa9087611f2b565b610c049190611f4a565b90505b610c1186826115cc565b6040518581526001600160a01b0387169033907f5548c837ab068cf56a2c2479df0882a4922fd203edb7517321831d95078c5f629060200160405180910390a395945050505050565b6005546001600160a01b03163314610c845760405162461bcd60e51b815260040161066f90611e6e565b806001600160a01b038116610cab5760405162461bcd60e51b815260040161066f90611ee9565b600a80546001600160a01b0319166001600160a01b0384169081179091556040517f38703bc9e5fbfe6a4ab89353328531fd2a9b9b0a4953c587bd38e559da9c29cf90600090a25050565b6005546001600160a01b03163314610d205760405162461bcd60e51b815260040161066f90611e6e565b6005546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600580546001600160a01b0319169055565b6005546001600160a01b03163314610d945760405162461bcd60e51b815260040161066f90611e6e565b6096811115610da257600080fd5b60068190556040518181527f9d5ddc6fdb90a6647fe4981fdf08b45a5f9ef6d8ea960de27bef48fb48132592906020016106b8565b6005546001600160a01b03163314610e015760405162461bcd60e51b815260040161066f90611e6e565b600a8054911515600160a01b0260ff60a01b19909216919091179055565b6060600480546105ac90611e39565b6040516370a0823160e01b8152336004820152600090610a559083906001600160a01b037f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d16906370a082319060240160206040518083038186803b158015610e9657600080fd5b505afa158015610eaa573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103909190611ea3565b3360009081526001602090815260408083206001600160a01b038616845290915281205482811015610f505760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b606482015260840161066f565b610f5f33856108a48685611ed2565b5060019392505050565b600061063c338484611383565b600954604080516331c2482f60e21b815290516000926001600160a01b03169163c70920bc916004808301926020929190829003018186803b158015610fbb57600080fd5b505afa158015610fcf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ff39190611ea3565b905090565b6005546001600160a01b031633146110225760405162461bcd60e51b815260040161066f90611e6e565b6101f481111561103157600080fd5b60088190556040518181527fff2ad85db78b9bc0b02422fae65198371bd6bc7141d80682b7c048c83ee37a42906020016106b8565b6110718160016106c3565b50565b6005546001600160a01b0316331461109e5760405162461bcd60e51b815260040161066f90611e6e565b6001600160a01b0381166111035760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161066f565b6005546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600580546001600160a01b0319166001600160a01b0392909216919091179055565b6000826001600160a01b0381166111885760405162461bcd60e51b815260040161066f90611ee9565b6000611193846116ab565b90506111c96001600160a01b037f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d16868361189c565b6040518181526001600160a01b0386169033907f9b1bfa7fa9ee420a16e124f794c35ac9f90472acc99140eb2f6447c714cad8eb9060200160405180910390a3949350505050565b6000816001600160a01b03811661123a5760405162461bcd60e51b815260040161066f90611ee9565b3360009081526020819052604090205461125590849061115f565b91505b50919050565b6001600160a01b0383166112c05760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b606482015260840161066f565b6001600160a01b0382166113215760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b606482015260840161066f565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b0383166113e75760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b606482015260840161066f565b6001600160a01b0382166114495760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b606482015260840161066f565b6001600160a01b038316600090815260208190526040902054818110156114c15760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b606482015260840161066f565b6114cb8282611ed2565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290611501908490611f13565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8460405161154d91815260200190565b60405180910390a350505050565b6040516001600160a01b03808516602483015283166044820152606481018290526115c69085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526118d1565b50505050565b6001600160a01b0382166116225760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015260640161066f565b80600260008282546116349190611f13565b90915550506001600160a01b03821660009081526020819052604081208054839290611661908490611f13565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6000806116b760025490565b116116c157600080fd5b60006116cc60025490565b6116d4610f76565b6116de9085611f2b565b6116e89190611f4a565b90506116f433846119a3565b60025461180a57611703610ab0565b6009546001600160a01b0316632e1a7d4d61171c610f76565b6040518263ffffffff1660e01b815260040161173a91815260200190565b600060405180830381600087803b15801561175457600080fd5b505af1158015611768573d6000803e3d6000fd5b50506040516370a0823160e01b81523060048201527f000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d6001600160a01b031692506370a08231915060240160206040518083038186803b1580156117cb57600080fd5b505afa1580156117df573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118039190611ea3565b9150611258565b8091506000612710600654846118209190611f2b565b61182a9190611f4a565b90506118368184611ed2565b600954604051632e1a7d4d60e01b8152600481018390529194506001600160a01b031690632e1a7d4d90602401600060405180830381600087803b15801561187d57600080fd5b505af1158015611891573d6000803e3d6000fd5b505050505050919050565b6040516001600160a01b0383166024820152604481018290526118cc90849063a9059cbb60e01b9060640161158f565b505050565b6000611926826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316611af29092919063ffffffff16565b8051909150156118cc57808060200190518101906119449190611f6c565b6118cc5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161066f565b6001600160a01b038216611a035760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b606482015260840161066f565b6001600160a01b03821660009081526020819052604090205481811015611a775760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b606482015260840161066f565b611a818282611ed2565b6001600160a01b03841660009081526020819052604081209190915560028054849290611aaf908490611ed2565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001611376565b6060611b018484600085611b09565b949350505050565b606082471015611b6a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161066f565b843b611bb85760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161066f565b600080866001600160a01b03168587604051611bd49190611f89565b60006040518083038185875af1925050503d8060008114611c11576040519150601f19603f3d011682016040523d82523d6000602084013e611c16565b606091505b5091509150611c26828286611c31565b979650505050505050565b60608315611c405750816108af565b825115611c505782518084602001fd5b8160405162461bcd60e51b815260040161066f9190611c96565b60005b83811015611c85578181015183820152602001611c6d565b838111156115c65750506000910152565b6020815260008251806020840152611cb5816040850160208701611c6a565b601f01601f19169190910160400192915050565b80356001600160a01b0381168114611ce057600080fd5b919050565b60008060408385031215611cf857600080fd5b611d0183611cc9565b946020939093013593505050565b600060208284031215611d2157600080fd5b5035919050565b801515811461107157600080fd5b60008060408385031215611d4957600080fd5b823591506020830135611d5b81611d28565b809150509250929050565b600080600060608486031215611d7b57600080fd5b611d8484611cc9565b9250611d9260208501611cc9565b9150604084013590509250925092565b600060208284031215611db457600080fd5b6108af82611cc9565b60008060408385031215611dd057600080fd5b611dd983611cc9565b91506020830135611d5b81611d28565b600060208284031215611dfb57600080fd5b81356108af81611d28565b60008060408385031215611e1957600080fd5b611e2283611cc9565b9150611e3060208401611cc9565b90509250929050565b600181811c90821680611e4d57607f821691505b6020821081141561125857634e487b7160e01b600052602260045260246000fd5b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600060208284031215611eb557600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b600082821015611ee457611ee4611ebc565b500390565b60208082526010908201526f496e76616c696420616464726573732160801b604082015260600190565b60008219821115611f2657611f26611ebc565b500190565b6000816000190483118215151615611f4557611f45611ebc565b500290565b600082611f6757634e487b7160e01b600052601260045260246000fd5b500490565b600060208284031215611f7e57600080fd5b81516108af81611d28565b60008251611f9b818460208701611c6a565b919091019291505056fea26469706673582212208c202350c67a81a15282114c4fdd3ea34230a3258b3b0ac3f2d67cae2dcb903c64736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d
-----Decoded View---------------
Arg [0] : _token (address): 0x616e8BfA43F920657B3497DBf40D6b1A02D4608d
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000616e8bfa43f920657b3497dbf40d6b1a02d4608d
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.