More Info
Private Name Tags
ContractCreator
TokenTracker
Multichain Info
No addresses found
Latest 25 from a total of 1,310 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Approve | 17488852 | 18 days ago | IN | 0 ETH | 0.00000001 | ||||
Approve | 17488756 | 18 days ago | IN | 0 ETH | 0.00000001 | ||||
Approve | 17476002 | 19 days ago | IN | 0 ETH | 0.00000015 | ||||
Transfer | 17475929 | 19 days ago | IN | 0 ETH | 0.00000021 | ||||
Approve | 17238082 | 24 days ago | IN | 0 ETH | 0.00000014 | ||||
Approve | 17143530 | 26 days ago | IN | 0 ETH | 0.00000006 | ||||
Approve | 17124452 | 27 days ago | IN | 0 ETH | 0.00000007 | ||||
Approve | 17109005 | 27 days ago | IN | 0 ETH | 0.00000011 | ||||
Transfer | 17104203 | 27 days ago | IN | 0 ETH | 0.00000014 | ||||
Approve | 17102515 | 27 days ago | IN | 0 ETH | 0.00000016 | ||||
Approve | 17089804 | 28 days ago | IN | 0 ETH | 0.00000013 | ||||
Approve | 16991489 | 30 days ago | IN | 0 ETH | 0.00000025 | ||||
Approve | 16972377 | 30 days ago | IN | 0 ETH | 0.00000015 | ||||
Approve | 16957885 | 31 days ago | IN | 0 ETH | 0.00000004 | ||||
Approve | 16785308 | 35 days ago | IN | 0 ETH | 0 | ||||
Approve | 16702725 | 37 days ago | IN | 0 ETH | 0.00000012 | ||||
Approve | 16637259 | 38 days ago | IN | 0 ETH | 0.00000001 | ||||
Approve | 16637236 | 38 days ago | IN | 0 ETH | 0.00000001 | ||||
Approve | 16637221 | 38 days ago | IN | 0 ETH | 0.00000001 | ||||
Approve | 16381639 | 44 days ago | IN | 0 ETH | 0.00000017 | ||||
Approve | 15980627 | 53 days ago | IN | 0 ETH | 0.00000119 | ||||
Approve | 15964339 | 54 days ago | IN | 0 ETH | 0.00000025 | ||||
Approve | 15964154 | 54 days ago | IN | 0 ETH | 0.00000025 | ||||
Approve | 15947217 | 54 days ago | IN | 0 ETH | 0.00000166 | ||||
Approve | 15806065 | 57 days ago | IN | 0 ETH | 0.00000002 |
Latest 1 internal transaction
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
239001 | 418 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
Usb
Compiler Version
v0.8.18+commit.87f61d96
Optimization Enabled:
Yes with 100 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "../interfaces/IBlast.sol"; import "../interfaces/IProtocolSettings.sol"; import "../interfaces/IUsb.sol"; import "../interfaces/IWandProtocol.sol"; import "../settings/ProtocolOwner.sol"; contract Usb is IUsb, ProtocolOwner, ReentrancyGuard { using SafeMath for uint256; uint256 constant internal INFINITE_ALLOWANCE = type(uint256).max; IProtocolSettings public immutable settings; uint256 private _totalSupply; uint256 private _totalShares; mapping(address => uint256) private _shares; mapping (address => mapping (address => uint256)) private _allowances; constructor(address _wandProtocol, address _settings) ProtocolOwner(_wandProtocol) { require(_wandProtocol != address(0) && _settings != address(0), "Zero address detected"); settings = IProtocolSettings(_settings); } /* ================= IERC20Metadata ================ */ function name() public pure returns (string memory) { return 'Wand USB'; } function symbol() public pure returns (string memory) { return 'USB'; } function decimals() public pure returns (uint8) { return 18; } /* ================= IERC20 Views ================ */ function totalSupply() public view returns (uint256) { return _totalSupply; } function balanceOf(address account) public view returns (uint256) { return getBalanceByShares(_shares[account]); } function allowance(address owner, address spender) public view returns (uint256) { return _allowances[owner][spender]; } /* ================= Views ================ */ function totalShares() public view returns (uint256) { return _totalShares; } function sharesOf(address account) public view returns (uint256) { return _shares[account]; } function getSharesByBalance(uint256 balance) public view returns (uint256) { // Initial mint if (_totalSupply == 0 || _totalShares == 0) return balance; return balance .mul(_totalShares) .div(_totalSupply); } function getBalanceByShares(uint256 sharesAmount) public view override returns (uint256) { if (_totalShares == 0) return 0; return sharesAmount .mul(_totalSupply) .div(_totalShares); } /* ================= IERC20 Functions ================ */ function transfer(address to, uint256 amount) external nonReentrant onUserAction returns (bool) { _transfer(_msgSender(), to, amount); return true; } function transferFrom(address from, address to, uint256 amount) external nonReentrant onUserAction returns (bool) { _spendAllowance(from, _msgSender(), amount); _transfer(from, to, amount); return true; } function approve(address spender, uint256 amount) external nonReentrant onUserAction returns (bool) { _approve(_msgSender(), spender, amount); return true; } function increaseAllowance(address spender, uint256 addedValue) external nonReentrant onUserAction returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) external nonReentrant onUserAction returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "Allowance below zero"); _approve(_msgSender(), spender, currentAllowance.sub(subtractedValue)); return true; } /* ================= IUsb Functions ================ */ function configureBlastYieldsAndGas() external nonReentrant onlyProtocol { address blastAddress = wandProtocol.blastAddress(); if (blastAddress != address(0)) { IBlast blast = IBlast(wandProtocol.blastAddress()); blast.configureClaimableGas(); } } function mint(address to, uint256 amount) external nonReentrant onlyVault returns (uint256) { require(to != address(0), "Zero address detected"); require(amount > 0, 'Amount too small'); uint256 sharesAmount = getSharesByBalance(amount); _mintShares(to, sharesAmount); _totalSupply = _totalSupply.add(amount); _emitTransferEvents(address(0), to, amount, sharesAmount); return sharesAmount; } function rebase(uint256 addedSupply) external nonReentrant onlyVault{ require(addedSupply > 0, 'Amount too small'); _totalSupply = _totalSupply.add(addedSupply); emit Rebased(addedSupply); } function burn(address account, uint256 amount) external nonReentrant onlyVault returns (uint256) { require(account != address(0), "Zero address detected"); require(amount > 0, 'Amount too small'); uint256 sharesAmount = getSharesByBalance(amount); _burnShares(account, sharesAmount); _totalSupply = _totalSupply.sub(amount); _emitTransferEvents(account, address(0), amount, sharesAmount); return sharesAmount; } function transferShares(address to, uint256 sharesAmount) external nonReentrant onUserAction returns (uint256) { _transferShares(_msgSender(), to, sharesAmount); uint256 tokensAmount = getBalanceByShares(sharesAmount); _emitTransferEvents(_msgSender(), to, tokensAmount, sharesAmount); return tokensAmount; } function transferSharesFrom(address sender, address to, uint256 sharesAmount) external nonReentrant onUserAction returns (uint256) { uint256 tokensAmount = getBalanceByShares(sharesAmount); _spendAllowance(sender, _msgSender(), tokensAmount); _transferShares(sender, to, sharesAmount); _emitTransferEvents(sender, to, tokensAmount, sharesAmount); return tokensAmount; } /* ================= INTERNAL Functions ================ */ function _transfer(address sender, address to, uint256 amount) internal { uint256 _sharesToTransfer = getSharesByBalance(amount); _transferShares(sender, to, _sharesToTransfer); _emitTransferEvents(sender, to, amount, _sharesToTransfer); } function _approve(address owner, address spender, uint256 amount) internal { require(owner != address(0), "Approve from zero address"); require(spender != address(0), "Approve to zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } function _spendAllowance(address owner, address spender, uint256 amount) internal { uint256 currentAllowance = _allowances[owner][spender]; if (currentAllowance != INFINITE_ALLOWANCE) { require(currentAllowance >= amount, "Allowance exceeded"); _approve(owner, spender, currentAllowance - amount); } } function _transferShares(address from, address to, uint256 sharesAmount) internal { require(from != address(0), "Transfer from zero address"); require(to != address(0), "Transfer to zero address"); require(to != address(this), "Transfer to this contract"); uint256 currentSenderShares = _shares[from]; require(sharesAmount <= currentSenderShares, "Balance exceeded"); _shares[from] = currentSenderShares.sub(sharesAmount); _shares[to] = _shares[to].add(sharesAmount); } function _mintShares(address to, uint256 sharesAmount) internal returns (uint256 newTotalShares) { require(to != address(0), "Mint to zero address"); _totalShares = _totalShares.add(sharesAmount); _shares[to] = _shares[to].add(sharesAmount); return _totalShares; } function _burnShares(address account, uint256 sharesAmount) internal returns (uint256 newTotalShares) { require(account != address(0), "Burn from zero address"); require(sharesAmount <= _shares[account], "Balance exceeded"); _totalShares = _totalShares.sub(sharesAmount); _shares[account] = _shares[account].sub(sharesAmount); return _totalShares; } function _emitTransferEvents(address from, address to, uint256 tokenAmount, uint256 sharesAmount) internal { emit Transfer(from, to, tokenAmount); emit TransferShares(from, to, sharesAmount); } modifier onlyVault() virtual { require (IWandProtocol(wandProtocol).isVault(_msgSender()), "Caller is not a Vault contract"); _; } modifier onUserAction() { _; address blastAddress = wandProtocol.blastAddress(); if (blastAddress != address(0)) { IBlast blast = IBlast(blastAddress); (uint256 etherSeconds, uint256 etherBalance, ,) = blast.readGasParams(address(this)); if (etherSeconds > 0 && etherBalance > 0) { blast.claimAllGas(address(this), settings.treasury()); } } } /* ================= Events ================ */ event TransferShares(address indexed from, address indexed to, uint256 sharesValue); event Rebased(uint256 addedSupply); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^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() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(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"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { _nonReentrantBefore(); _; _nonReentrantAfter(); } function _nonReentrantBefore() private { // On the first call to nonReentrant, _status will be _NOT_ENTERED require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; } function _nonReentrantAfter() private { // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } /** * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a * `nonReentrant` function in the call stack. */ function _reentrancyGuardEntered() internal view returns (bool) { return _status == _ENTERED; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @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); /** * @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 `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, 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 `from` to `to` 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 from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) 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) { return msg.data; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ 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) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { 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) { unchecked { // 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) { unchecked { 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) { unchecked { 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) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return 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) { return a * b; } /** * @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. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { 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) { 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) { unchecked { 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. * * 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) { unchecked { 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) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; enum YieldMode { AUTOMATIC, VOID, CLAIMABLE } enum GasMode { VOID, CLAIMABLE } interface IBlast{ // configure function configureContract(address contractAddress, YieldMode _yield, GasMode gasMode, address governor) external; function configure(YieldMode _yield, GasMode gasMode, address governor) external; // base configuration options function configureClaimableYield() external; function configureClaimableYieldOnBehalf(address contractAddress) external; function configureAutomaticYield() external; function configureAutomaticYieldOnBehalf(address contractAddress) external; function configureVoidYield() external; function configureVoidYieldOnBehalf(address contractAddress) external; function configureClaimableGas() external; function configureClaimableGasOnBehalf(address contractAddress) external; function configureVoidGas() external; function configureVoidGasOnBehalf(address contractAddress) external; function configureGovernor(address _governor) external; function configureGovernorOnBehalf(address _newGovernor, address contractAddress) external; // claim yield function claimYield(address contractAddress, address recipientOfYield, uint256 amount) external returns (uint256); function claimAllYield(address contractAddress, address recipientOfYield) external returns (uint256); // claim gas function claimAllGas(address contractAddress, address recipientOfGas) external returns (uint256); function claimGasAtMinClaimRate(address contractAddress, address recipientOfGas, uint256 minClaimRateBips) external returns (uint256); function claimMaxGas(address contractAddress, address recipientOfGas) external returns (uint256); function claimGas(address contractAddress, address recipientOfGas, uint256 gasToClaim, uint256 gasSecondsToConsume) external returns (uint256); // read functions function readClaimableYield(address contractAddress) external view returns (uint256); function readYieldConfiguration(address contractAddress) external view returns (uint8); function readGasParams(address contractAddress) external view returns (uint256 etherSeconds, uint256 etherBalance, uint256 lastUpdated, GasMode); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; interface IProtocolSettings { function treasury() external view returns (address); function decimals() external view returns (uint256); function isValidParam(bytes32 param, uint256 value) external view returns (bool); function paramDefaultValue(bytes32 param) external view returns (uint256); function vaultParamValue(address vault, bytes32 param) external view returns (uint256); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; interface IUsb is IERC20 { function decimals() external view returns (uint8); function getBalanceByShares(uint256 sharesAmount) external view returns (uint256); function getSharesByBalance(uint256 balance) external view returns (uint256); function configureBlastYieldsAndGas() external; function mint(address to, uint256 amount) external returns (uint256); function burn(address account, uint256 amount) external returns (uint256); function transferShares(address to, uint256 sharesAmount) external returns (uint256); function rebase(uint256 addedSupply) external; }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; interface IWandProtocol { function protocolOwner() external view returns (address); function usbToken() external view returns (address); function blastAddress() external view returns (address); function blastPointsAddress() external view returns (address); function blastPointsOperator() external view returns (address); function isVault(address vaultAddress) external view returns (bool); function isVaultAsset(address assetToken) external view returns (bool); }
// SPDX-License-Identifier: Apache-2.0 pragma solidity ^0.8.18; import "@openzeppelin/contracts/utils/Context.sol"; import "../interfaces/IWandProtocol.sol"; abstract contract ProtocolOwner is Context { IWandProtocol public immutable wandProtocol; constructor(address _wandProtocol_) { require(_wandProtocol_ != address(0), "Zero address detected"); wandProtocol = IWandProtocol(_wandProtocol_); } modifier onlyProtocol() { require(_msgSender() == address(wandProtocol), "Ownable: caller is not the protocol"); _; } modifier onlyOwner() { require(_msgSender() == IWandProtocol(wandProtocol).protocolOwner(), "Ownable: caller is not the owner"); _; } function owner() public view returns(address) { return IWandProtocol(wandProtocol).protocolOwner(); } }
{ "metadata": { "bytecodeHash": "ipfs" }, "optimizer": { "enabled": true, "runs": 100, "details": { "yulDetails": { "optimizerSteps": "u" } } }, "viaIR": true, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"inputs":[{"internalType":"address","name":"_wandProtocol","type":"address"},{"internalType":"address","name":"_settings","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":"addedSupply","type":"uint256"}],"name":"Rebased","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":"sharesValue","type":"uint256"}],"name":"TransferShares","type":"event"},{"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":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"configureBlastYieldsAndGas","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","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":"sharesAmount","type":"uint256"}],"name":"getBalanceByShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"getSharesByBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"addedSupply","type":"uint256"}],"name":"rebase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"settings","outputs":[{"internalType":"contract IProtocolSettings","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"sharesOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"totalShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"sharesAmount","type":"uint256"}],"name":"transferShares","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"sharesAmount","type":"uint256"}],"name":"transferSharesFrom","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"wandProtocol","outputs":[{"internalType":"contract IWandProtocol","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60c0604052346200007b576200001f620000186200012f565b90620001ea565b604051611b17620002d98239608051818181610406015281816106ea01528181610abc01528181610faf01528181610fe7015281816111c7015281816113860152611460015260a0518181816106370152610bb90152611b1790f35b600080fd5b634e487b7160e01b600052604160045260246000fd5b90601f01601f191681019081106001600160401b03821117620000b857604052565b62000080565b90620000d5620000cd60405190565b928362000096565b565b6001600160a01b031690565b90565b6001600160a01b038116036200007b57565b90505190620000d582620000e6565b91906040838203126200007b57620000e390620001258185620000f8565b93602001620000f8565b6200015262001df0803803806200014681620000be565b92833981019062000107565b9091565b620000d7620000e3620000e39290565b620000e39062000156565b156200017957565b60405162461bcd60e51b815260206004820152601560248201527f5a65726f206164647265737320646574656374656400000000000000000000006044820152606490fd5b620000e390620000d7906001600160a01b031682565b620000e390620001be565b620000e390620001d4565b906200022a6200023092620001ff8162000287565b6200020b600062000166565b906001600160a01b0380831691161415908162000235575b5062000171565b620001df565b60a052565b6001600160a01b031690506001600160a01b03831614153862000223565b620000e3620000e3620000e39290565b620000e3600162000253565b90620000e3620000e3620002839262000253565b9055565b6200029290620002a8565b620000d5620002a062000263565b60006200026f565b620002d3906200022a620002c1620000d7600062000166565b6001600160a01b038316141562000171565b60805256fe6080604052600436101561001257600080fd5b60003560e01c806306fdde0314610192578063095ea7b31461018d57806318160ddd1461018857806323b872dd14610183578063313ce5671461017e57806339509351146101795780633a98ef39146101745780633fef6dc11461016f57806340c10f191461016a5780634e29a333146101655780636d7804591461016057806370a082311461015b5780638da57af6146101565780638da5cb5b146101515780638fcb4e5b1461014c57806395d89b41146101475780639dc29fac14610142578063a457c2d71461013d578063a9059cbb14610138578063bc4f2d6d14610133578063db977f951461012e578063dd62ed3e14610129578063e06174e4146101245763f5eb42dc036101a25761065b565b610622565b610606565b6105c8565b6105b0565b610594565b610578565b61055c565b610541565b610525565b6104fe565b6104ca565b61049b565b61046b565b61044e565b610432565b6103f1565b610397565b61037b565b61034c565b610330565b6102d4565b6102a6565b610216565b60009103126101a257565b600080fd5b60005b8381106101ba5750506000910152565b81810151838201526020016101aa565b6101eb6101f46020936101fe936101df815190565b80835293849260200190565b958691016101a7565b601f01601f191690565b0190565b6020808252610213929101906101ca565b90565b346101a257610226366004610197565b61023d6102316107dc565b60405191829182610202565b0390f35b6001600160a01b031690565b61025681610241565b036101a257565b9050359061026a8261024d565b565b80610256565b9050359061026a8261026c565b91906040838203126101a25761021390610299818561025d565b93602001610272565b9052565b346101a25761023d6102c26102bc36600461027f565b90610e1a565b60405191829182901515815260200190565b346101a2576102e4366004610197565b61023d6102ef61083b565b6040515b9182918290815260200190565b90916060828403126101a257610213610319848461025d565b93610327816020860161025d565b93604001610272565b346101a25761023d6102c2610346366004610300565b91610df0565b346101a25761035c366004610197565b61023d610367610820565b6040519182918260ff909116815260200190565b346101a25761023d6102c261039136600461027f565b90610e5f565b346101a2576103a7366004610197565b61023d6102ef61089c565b61021390610241906001600160a01b031682565b610213906103b2565b610213906103c6565b6102a2906103cf565b60208101929161026a91906103d8565b346101a257610401366004610197565b61023d7f00000000000000000000000000000000000000000000000000000000000000005b604051918291826103e1565b346101a25761023d6102ef61044836600461027f565b90611363565b346101a25761045e366004610197565b61046661112a565b604051005b346101a25761023d6102ef610481366004610300565b9161157f565b906020828203126101a2576102139161025d565b346101a25761023d6102ef6104b1366004610487565b61085d565b906020828203126101a25761021391610272565b346101a25761023d6102ef6104e03660046104b6565b6108c2565b6102a290610241565b60208101929161026a91906104e5565b346101a25761050e366004610197565b61023d6105196106e0565b604051918291826104ee565b346101a25761023d6102ef61053b36600461027f565b9061153a565b346101a257610551366004610197565b61023d610231610805565b346101a25761023d6102ef61057236600461027f565b906114fa565b346101a25761023d6102c261058e36600461027f565b90610f0d565b346101a25761023d6102c26105aa36600461027f565b90610d17565b346101a2576104666105c33660046104b6565b61143c565b346101a25761023d6102ef6105de3660046104b6565b61099a565b91906040838203126101a257610213906105fd818561025d565b9360200161025d565b346101a25761023d6102ef61061c3660046105e3565b9061087c565b346101a257610632366004610197565b61023d7f0000000000000000000000000000000000000000000000000000000000000000610426565b346101a25761023d6102ef610671366004610487565b6108a6565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176106ae57604052565b610676565b9050519061026a8261024d565b906020828203126101a257610213916106b3565b6040513d6000823e3d90fd5b610726602061070e7f00000000000000000000000000000000000000000000000000000000000000006103cf565b63c1d6ba699061071d60405190565b93849260e01b90565b825260049082905afa90811561076957600091610741575090565b610213915060203d8111610762575b61075a818361068c565b8101906106c0565b503d610750565b6106d4565b9061026a61077b60405190565b928361068c565b67ffffffffffffffff81116106ae57602090601f01601f19160190565b906107b16107ac83610782565b61076e565b918252565b6107c0600861079f565b672bb0b732102aa9a160c11b602082015290565b6102136107b6565b6102136107d4565b6107ee600361079f565b622aa9a160e91b602082015290565b6102136107e4565b6102136107fd565b61081a6102136102139290565b60ff1690565b610213601261080d565b6102139081565b610213905461082a565b6102136001610831565b9061084f906103cf565b600052602052604060002090565b6105de6108776102139261086f600090565b506003610845565b610831565b610213916108976108779261088f600090565b506004610845565b610845565b6102136002610831565b6108776102139161086f600090565b6102136102136102139290565b6108cc6001610831565b6000906108df6108db836108b5565b9190565b14908115610914575b5061021357610904610213916108fe6002610831565b90610961565b61090e6001610831565b90610990565b905061092c6108db6109266002610831565b926108b5565b14386108e8565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561095c57565b610933565b6102139190610949565b634e487b7160e01b600052601260045260246000fd5b811561098b570490565b61096b565b6102139190610981565b6109a46002610831565b6000906109b36108db836108b5565b146109d457506109ca610213916108fe6001610831565b61090e6002610831565b61021391506108b5565b906109f192916109ec610d8d565b610aa6565b9061026a610dbf565b6102416102136102139290565b610213906109fa565b9050519061026a8261026c565b600211156101a257565b9050519061026a82610a1d565b6080818303126101a257610a488282610a10565b92610213610a598460208501610a10565b93610a678160408601610a10565b93606001610a27565b906020828203126101a25761021391610a10565b91602061026a929493610a9f604082019660008301906104e5565b01906104e5565b90610ab19291610d01565b90610aef6020610ae07f00000000000000000000000000000000000000000000000000000000000000006103cf565b6349d3d5e19061071d60405190565b825260049082905afa90811561076957600091610ce3575b50600090610b1c610b1783610a07565b610241565b610b2582610241565b03610b2e575050565b610b3a610b3f916103cf565b6103cf565b63dde798a4610b4d306103cf565b90610b61610b5a60405190565b9160e01b90565b815260808180610b7485600483016104ee565b0381865afa8015610769576000918291610cb0575b50610b966108db866108b5565b119081610c9b575b50610ba857505050565b610bf59163954fa5ee936020610bdd7f00000000000000000000000000000000000000000000000000000000000000006103cf565b6361d027b390610bec60405190565b96879260e01b90565b825260049082905afa93841561076957600094610c75575b50610c2f9060209495610c3a610c2260405190565b9788968795869460e01b90565b845260048401610a84565b03925af1801561076957610c4b5750565b610c6b9060203d8111610c6e575b610c63818361068c565b810190610a70565b50565b503d610c59565b6020945090610c93610c2f92863d81116107625761075a818361068c565b945090610c0d565b9050610ca96108db856108b5565b1138610b9e565b9050610cd3915060803d8111610cdc575b610ccb818361068c565b810190610a34565b50919091610b89565b503d610cc1565b610cfb915060203d81116107625761075a818361068c565b38610b07565b50610d1291903361158c565b61158c565b600190565b610213919060006109de565b61021360026108b5565b15610d3457565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b90610213610213610d89926108b5565b9055565b61026a610d9a6000610831565b610dae610da5610d23565b91821415610d2d565b6000610d79565b61021360016108b5565b61026a610dae610db5565b906109f1939291610dd9610d8d565b50610ab192610d12929091610d0d83335b8361170f565b6102139291906000610dca565b906109f19291610e0b610d8d565b50610ab191610d129133611635565b61021391906000610dfd565b906109f19291610e34610d8d565b50610ab191610d1291610e593392610e5461087784610897876004610845565b610e78565b91611635565b61021391906000610e26565b9190820180921161095c57565b6102139190610e6b565b906109f19291610e90610d8d565b90610ab19291610ede565b15610ea257565b60405162461bcd60e51b8152602060048201526014602482015273416c6c6f77616e63652062656c6f77207a65726f60601b6044820152606490fd5b50610d1291339190610e5990610efc61087784610897876004610845565b610f0882821015610e9b565b610f26565b61021391906000610e82565b9190820391821161095c57565b6102139190610f19565b610f38610d8d565b610f40610fa0565b61026a610dbf565b15610f4f57565b60405162461bcd60e51b815260206004820152602360248201527f4f776e61626c653a2063616c6c6572206973206e6f74207468652070726f746f60448201526218dbdb60ea1b6064820152608490fd5b610fdf33610fd9610fd3610b177f00000000000000000000000000000000000000000000000000000000000000006103cf565b91610241565b14610f48565b61026a61100b7f00000000000000000000000000000000000000000000000000000000000000006103cf565b6349d3d5e161101960405190565b916110248260e01b90565b8352602083600481845afa9283156107695760009361110a575b50600092611051610fd3610b1786610a07565b0361105b57505050565b61106b9160209161071d60405190565b825260049082905afa9081156107695761109191610b3a916000916110ec575b506103cf565b634e606c4790803b156101a2576110ad91839161071d60405190565b8252600490829084905af18015610769576110c6575050565b8161026a92903d106110e5575b6110dd818361068c565b810190610197565b503d6110d3565b611104915060203d81116107625761075a818361068c565b3861108b565b61112391935060203d81116107625761075a818361068c565b913861103e565b61026a610f30565b906109f19291611140610d8d565b6111ba565b801515610256565b9050519061026a82611145565b906020828203126101a2576102139161114d565b1561117557565b60405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f742061205661756c7420636f6e747261637400006044820152606490fd5b90611217929160206111eb7f00000000000000000000000000000000000000000000000000000000000000006103cf565b63652b9b419061120c33926111ff60405190565b9889948593849360e01b90565b8352600483016104ee565b03915afa93841561076957610213946112389160009161123d575b5061116e565b6112ee565b61125e915060203d8111611264575b611256818361068c565b81019061115a565b38611232565b503d61124c565b1561127257565b60405162461bcd60e51b815260206004820152601560248201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b6044820152606490fd5b156112b657565b60405162461bcd60e51b815260206004820152601060248201526f105b5bdd5b9d081d1bdbc81cdb585b1b60821b6044820152606490fd5b50906102139060009061132f61132861130684610a07565b9361132361131386610241565b61131c89610241565b141561126b565b6108b5565b82116112af565b611338816108c2565b9384926113458483611959565b5061135e61135784610e546001610831565b6001610d79565b611a68565b61021391906000611132565b610f409061137b610d8d565b6113cb9060206113aa7f00000000000000000000000000000000000000000000000000000000000000006103cf565b63652b9b419061120c33926113be60405190565b9687948593849360e01b90565b03915afa9182156107695761026a926113eb9160009161123d575061116e565b6113f861132860006108b5565b61140961135782610e546001610831565b6114377fa3e5fc7a6648da6157201f1e26fcbbfeee8088fb7914fb85edf2056040c234c5916102f360405190565b0390a1565b61026a9061136f565b906109f19291611453610d8d565b90611484929160206111eb7f00000000000000000000000000000000000000000000000000000000000000006103cf565b03915afa93841561076957610213946114a49160009161123d575061116e565b9061021391506000926114d26113286114bc86610a07565b956113236114c988610241565b61131c87610241565b6114db816108c2565b93826114e88680956119fa565b5061135e61135784610f086001610831565b61021391906000611445565b906109f19291611514610d8d565b50610ab191610213903361152982858361186e565b6115328261099a565b938491611a68565b61021391906000611506565b906109f1939291611555610d8d565b50610ab192610213916115678261099a565b9384916115748333610dea565b61135e84838361186e565b6102139291906000611546565b909161026a9261159b826108c2565b9261135e84838361186e565b156115ae57565b60405162461bcd60e51b8152602060048201526019602482015278417070726f76652066726f6d207a65726f206164647265737360381b6044820152606490fd5b156115f657565b60405162461bcd60e51b8152602060048201526017602482015276417070726f766520746f207a65726f206164647265737360481b6044820152606490fd5b6116716116616116456000610a07565b610b1761165182610241565b61165a86610241565b14156115a7565b61166a84610241565b14156115ef565b6116898361168484610897856004610845565b610d79565b6116c96116bf6116b97f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925936103cf565b936103cf565b936102f360405190565b0390a3565b156116d557565b60405162461bcd60e51b8152602060048201526012602482015271105b1b1bddd85b98d948195e18d95959195960721b6044820152606490fd5b9061172261087782610897856004610845565b6000198103611732575b50505050565b61174b93610e5991611746828210156116ce565b610f19565b3880808061172c565b1561175b57565b60405162461bcd60e51b815260206004820152601a60248201527f5472616e736665722066726f6d207a65726f20616464726573730000000000006044820152606490fd5b156117a757565b60405162461bcd60e51b81526020600482015260186024820152775472616e7366657220746f207a65726f206164647265737360401b6044820152606490fd5b156117ee57565b60405162461bcd60e51b8152602060048201526019602482015278151c985b9cd9995c881d1bc81d1a1a5cc818dbdb9d1c9858dd603a1b6044820152606490fd5b1561183657565b60405162461bcd60e51b815260206004820152601060248201526f10985b185b98d948195e18d95959195960821b6044820152606490fd5b906116849061191061026a946118b66118a661188a6000610a07565b610b1761189682610241565b61189f8a610241565b1415611754565b6118af85610241565b14156117a0565b6118d56118c5610b17306103cf565b6118ce85610241565b14156117e7565b6119036003956116846118fc846118ef610877858c610845565b610f0881835b111561182f565b9188610845565b610e546108778487610845565b92610845565b1561191d57565b60405162461bcd60e51b81526020600482015260146024820152734d696e7420746f207a65726f206164647265737360601b6044820152606490fd5b9061168461089c92611969600090565b5061198a61197a610b176000610a07565b61198383610241565b1415611916565b6119a261199b84610e546002610831565b6002610d79565b611910600393610e546108778487610845565b156119bc57565b60405162461bcd60e51b81526020600482015260166024820152754275726e2066726f6d207a65726f206164647265737360501b6044820152606490fd5b9061168461089c92611a0a600090565b50611a2b611a1b610b176000610a07565b611a2483610241565b14156119b5565b611910600393611a4a611a446102136108778689610845565b826118f5565b611a5b61199b82610f086002610831565b610f086108778487610845565b91611ab09391611aa493611a9c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916103cf565b9485926103cf565b9586936102f360405190565b0390a36116c97f9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb916102f36040519056fea2646970667358221220977cc50162ec8d2b742598c1f28dacddadc19bc46909f0229b16583d1854c3fe64736f6c6343000812003300000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933
Deployed Bytecode
0x6080604052600436101561001257600080fd5b60003560e01c806306fdde0314610192578063095ea7b31461018d57806318160ddd1461018857806323b872dd14610183578063313ce5671461017e57806339509351146101795780633a98ef39146101745780633fef6dc11461016f57806340c10f191461016a5780634e29a333146101655780636d7804591461016057806370a082311461015b5780638da57af6146101565780638da5cb5b146101515780638fcb4e5b1461014c57806395d89b41146101475780639dc29fac14610142578063a457c2d71461013d578063a9059cbb14610138578063bc4f2d6d14610133578063db977f951461012e578063dd62ed3e14610129578063e06174e4146101245763f5eb42dc036101a25761065b565b610622565b610606565b6105c8565b6105b0565b610594565b610578565b61055c565b610541565b610525565b6104fe565b6104ca565b61049b565b61046b565b61044e565b610432565b6103f1565b610397565b61037b565b61034c565b610330565b6102d4565b6102a6565b610216565b60009103126101a257565b600080fd5b60005b8381106101ba5750506000910152565b81810151838201526020016101aa565b6101eb6101f46020936101fe936101df815190565b80835293849260200190565b958691016101a7565b601f01601f191690565b0190565b6020808252610213929101906101ca565b90565b346101a257610226366004610197565b61023d6102316107dc565b60405191829182610202565b0390f35b6001600160a01b031690565b61025681610241565b036101a257565b9050359061026a8261024d565b565b80610256565b9050359061026a8261026c565b91906040838203126101a25761021390610299818561025d565b93602001610272565b9052565b346101a25761023d6102c26102bc36600461027f565b90610e1a565b60405191829182901515815260200190565b346101a2576102e4366004610197565b61023d6102ef61083b565b6040515b9182918290815260200190565b90916060828403126101a257610213610319848461025d565b93610327816020860161025d565b93604001610272565b346101a25761023d6102c2610346366004610300565b91610df0565b346101a25761035c366004610197565b61023d610367610820565b6040519182918260ff909116815260200190565b346101a25761023d6102c261039136600461027f565b90610e5f565b346101a2576103a7366004610197565b61023d6102ef61089c565b61021390610241906001600160a01b031682565b610213906103b2565b610213906103c6565b6102a2906103cf565b60208101929161026a91906103d8565b346101a257610401366004610197565b61023d7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b5b604051918291826103e1565b346101a25761023d6102ef61044836600461027f565b90611363565b346101a25761045e366004610197565b61046661112a565b604051005b346101a25761023d6102ef610481366004610300565b9161157f565b906020828203126101a2576102139161025d565b346101a25761023d6102ef6104b1366004610487565b61085d565b906020828203126101a25761021391610272565b346101a25761023d6102ef6104e03660046104b6565b6108c2565b6102a290610241565b60208101929161026a91906104e5565b346101a25761050e366004610197565b61023d6105196106e0565b604051918291826104ee565b346101a25761023d6102ef61053b36600461027f565b9061153a565b346101a257610551366004610197565b61023d610231610805565b346101a25761023d6102ef61057236600461027f565b906114fa565b346101a25761023d6102c261058e36600461027f565b90610f0d565b346101a25761023d6102c26105aa36600461027f565b90610d17565b346101a2576104666105c33660046104b6565b61143c565b346101a25761023d6102ef6105de3660046104b6565b61099a565b91906040838203126101a257610213906105fd818561025d565b9360200161025d565b346101a25761023d6102ef61061c3660046105e3565b9061087c565b346101a257610632366004610197565b61023d7f0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933610426565b346101a25761023d6102ef610671366004610487565b6108a6565b634e487b7160e01b600052604160045260246000fd5b90601f01601f1916810190811067ffffffffffffffff8211176106ae57604052565b610676565b9050519061026a8261024d565b906020828203126101a257610213916106b3565b6040513d6000823e3d90fd5b610726602061070e7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b63c1d6ba699061071d60405190565b93849260e01b90565b825260049082905afa90811561076957600091610741575090565b610213915060203d8111610762575b61075a818361068c565b8101906106c0565b503d610750565b6106d4565b9061026a61077b60405190565b928361068c565b67ffffffffffffffff81116106ae57602090601f01601f19160190565b906107b16107ac83610782565b61076e565b918252565b6107c0600861079f565b672bb0b732102aa9a160c11b602082015290565b6102136107b6565b6102136107d4565b6107ee600361079f565b622aa9a160e91b602082015290565b6102136107e4565b6102136107fd565b61081a6102136102139290565b60ff1690565b610213601261080d565b6102139081565b610213905461082a565b6102136001610831565b9061084f906103cf565b600052602052604060002090565b6105de6108776102139261086f600090565b506003610845565b610831565b610213916108976108779261088f600090565b506004610845565b610845565b6102136002610831565b6108776102139161086f600090565b6102136102136102139290565b6108cc6001610831565b6000906108df6108db836108b5565b9190565b14908115610914575b5061021357610904610213916108fe6002610831565b90610961565b61090e6001610831565b90610990565b905061092c6108db6109266002610831565b926108b5565b14386108e8565b634e487b7160e01b600052601160045260246000fd5b8181029291811591840414171561095c57565b610933565b6102139190610949565b634e487b7160e01b600052601260045260246000fd5b811561098b570490565b61096b565b6102139190610981565b6109a46002610831565b6000906109b36108db836108b5565b146109d457506109ca610213916108fe6001610831565b61090e6002610831565b61021391506108b5565b906109f192916109ec610d8d565b610aa6565b9061026a610dbf565b6102416102136102139290565b610213906109fa565b9050519061026a8261026c565b600211156101a257565b9050519061026a82610a1d565b6080818303126101a257610a488282610a10565b92610213610a598460208501610a10565b93610a678160408601610a10565b93606001610a27565b906020828203126101a25761021391610a10565b91602061026a929493610a9f604082019660008301906104e5565b01906104e5565b90610ab19291610d01565b90610aef6020610ae07f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b6349d3d5e19061071d60405190565b825260049082905afa90811561076957600091610ce3575b50600090610b1c610b1783610a07565b610241565b610b2582610241565b03610b2e575050565b610b3a610b3f916103cf565b6103cf565b63dde798a4610b4d306103cf565b90610b61610b5a60405190565b9160e01b90565b815260808180610b7485600483016104ee565b0381865afa8015610769576000918291610cb0575b50610b966108db866108b5565b119081610c9b575b50610ba857505050565b610bf59163954fa5ee936020610bdd7f0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f879336103cf565b6361d027b390610bec60405190565b96879260e01b90565b825260049082905afa93841561076957600094610c75575b50610c2f9060209495610c3a610c2260405190565b9788968795869460e01b90565b845260048401610a84565b03925af1801561076957610c4b5750565b610c6b9060203d8111610c6e575b610c63818361068c565b810190610a70565b50565b503d610c59565b6020945090610c93610c2f92863d81116107625761075a818361068c565b945090610c0d565b9050610ca96108db856108b5565b1138610b9e565b9050610cd3915060803d8111610cdc575b610ccb818361068c565b810190610a34565b50919091610b89565b503d610cc1565b610cfb915060203d81116107625761075a818361068c565b38610b07565b50610d1291903361158c565b61158c565b600190565b610213919060006109de565b61021360026108b5565b15610d3457565b60405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606490fd5b90610213610213610d89926108b5565b9055565b61026a610d9a6000610831565b610dae610da5610d23565b91821415610d2d565b6000610d79565b61021360016108b5565b61026a610dae610db5565b906109f1939291610dd9610d8d565b50610ab192610d12929091610d0d83335b8361170f565b6102139291906000610dca565b906109f19291610e0b610d8d565b50610ab191610d129133611635565b61021391906000610dfd565b906109f19291610e34610d8d565b50610ab191610d1291610e593392610e5461087784610897876004610845565b610e78565b91611635565b61021391906000610e26565b9190820180921161095c57565b6102139190610e6b565b906109f19291610e90610d8d565b90610ab19291610ede565b15610ea257565b60405162461bcd60e51b8152602060048201526014602482015273416c6c6f77616e63652062656c6f77207a65726f60601b6044820152606490fd5b50610d1291339190610e5990610efc61087784610897876004610845565b610f0882821015610e9b565b610f26565b61021391906000610e82565b9190820391821161095c57565b6102139190610f19565b610f38610d8d565b610f40610fa0565b61026a610dbf565b15610f4f57565b60405162461bcd60e51b815260206004820152602360248201527f4f776e61626c653a2063616c6c6572206973206e6f74207468652070726f746f60448201526218dbdb60ea1b6064820152608490fd5b610fdf33610fd9610fd3610b177f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b91610241565b14610f48565b61026a61100b7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b6349d3d5e161101960405190565b916110248260e01b90565b8352602083600481845afa9283156107695760009361110a575b50600092611051610fd3610b1786610a07565b0361105b57505050565b61106b9160209161071d60405190565b825260049082905afa9081156107695761109191610b3a916000916110ec575b506103cf565b634e606c4790803b156101a2576110ad91839161071d60405190565b8252600490829084905af18015610769576110c6575050565b8161026a92903d106110e5575b6110dd818361068c565b810190610197565b503d6110d3565b611104915060203d81116107625761075a818361068c565b3861108b565b61112391935060203d81116107625761075a818361068c565b913861103e565b61026a610f30565b906109f19291611140610d8d565b6111ba565b801515610256565b9050519061026a82611145565b906020828203126101a2576102139161114d565b1561117557565b60405162461bcd60e51b815260206004820152601e60248201527f43616c6c6572206973206e6f742061205661756c7420636f6e747261637400006044820152606490fd5b90611217929160206111eb7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b63652b9b419061120c33926111ff60405190565b9889948593849360e01b90565b8352600483016104ee565b03915afa93841561076957610213946112389160009161123d575b5061116e565b6112ee565b61125e915060203d8111611264575b611256818361068c565b81019061115a565b38611232565b503d61124c565b1561127257565b60405162461bcd60e51b815260206004820152601560248201527416995c9bc81859191c995cdcc819195d1958dd1959605a1b6044820152606490fd5b156112b657565b60405162461bcd60e51b815260206004820152601060248201526f105b5bdd5b9d081d1bdbc81cdb585b1b60821b6044820152606490fd5b50906102139060009061132f61132861130684610a07565b9361132361131386610241565b61131c89610241565b141561126b565b6108b5565b82116112af565b611338816108c2565b9384926113458483611959565b5061135e61135784610e546001610831565b6001610d79565b611a68565b61021391906000611132565b610f409061137b610d8d565b6113cb9060206113aa7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b63652b9b419061120c33926113be60405190565b9687948593849360e01b90565b03915afa9182156107695761026a926113eb9160009161123d575061116e565b6113f861132860006108b5565b61140961135782610e546001610831565b6114377fa3e5fc7a6648da6157201f1e26fcbbfeee8088fb7914fb85edf2056040c234c5916102f360405190565b0390a1565b61026a9061136f565b906109f19291611453610d8d565b90611484929160206111eb7f00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b6103cf565b03915afa93841561076957610213946114a49160009161123d575061116e565b9061021391506000926114d26113286114bc86610a07565b956113236114c988610241565b61131c87610241565b6114db816108c2565b93826114e88680956119fa565b5061135e61135784610f086001610831565b61021391906000611445565b906109f19291611514610d8d565b50610ab191610213903361152982858361186e565b6115328261099a565b938491611a68565b61021391906000611506565b906109f1939291611555610d8d565b50610ab192610213916115678261099a565b9384916115748333610dea565b61135e84838361186e565b6102139291906000611546565b909161026a9261159b826108c2565b9261135e84838361186e565b156115ae57565b60405162461bcd60e51b8152602060048201526019602482015278417070726f76652066726f6d207a65726f206164647265737360381b6044820152606490fd5b156115f657565b60405162461bcd60e51b8152602060048201526017602482015276417070726f766520746f207a65726f206164647265737360481b6044820152606490fd5b6116716116616116456000610a07565b610b1761165182610241565b61165a86610241565b14156115a7565b61166a84610241565b14156115ef565b6116898361168484610897856004610845565b610d79565b6116c96116bf6116b97f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925936103cf565b936103cf565b936102f360405190565b0390a3565b156116d557565b60405162461bcd60e51b8152602060048201526012602482015271105b1b1bddd85b98d948195e18d95959195960721b6044820152606490fd5b9061172261087782610897856004610845565b6000198103611732575b50505050565b61174b93610e5991611746828210156116ce565b610f19565b3880808061172c565b1561175b57565b60405162461bcd60e51b815260206004820152601a60248201527f5472616e736665722066726f6d207a65726f20616464726573730000000000006044820152606490fd5b156117a757565b60405162461bcd60e51b81526020600482015260186024820152775472616e7366657220746f207a65726f206164647265737360401b6044820152606490fd5b156117ee57565b60405162461bcd60e51b8152602060048201526019602482015278151c985b9cd9995c881d1bc81d1a1a5cc818dbdb9d1c9858dd603a1b6044820152606490fd5b1561183657565b60405162461bcd60e51b815260206004820152601060248201526f10985b185b98d948195e18d95959195960821b6044820152606490fd5b906116849061191061026a946118b66118a661188a6000610a07565b610b1761189682610241565b61189f8a610241565b1415611754565b6118af85610241565b14156117a0565b6118d56118c5610b17306103cf565b6118ce85610241565b14156117e7565b6119036003956116846118fc846118ef610877858c610845565b610f0881835b111561182f565b9188610845565b610e546108778487610845565b92610845565b1561191d57565b60405162461bcd60e51b81526020600482015260146024820152734d696e7420746f207a65726f206164647265737360601b6044820152606490fd5b9061168461089c92611969600090565b5061198a61197a610b176000610a07565b61198383610241565b1415611916565b6119a261199b84610e546002610831565b6002610d79565b611910600393610e546108778487610845565b156119bc57565b60405162461bcd60e51b81526020600482015260166024820152754275726e2066726f6d207a65726f206164647265737360501b6044820152606490fd5b9061168461089c92611a0a600090565b50611a2b611a1b610b176000610a07565b611a2483610241565b14156119b5565b611910600393611a4a611a446102136108778689610845565b826118f5565b611a5b61199b82610f086002610831565b610f086108778487610845565b91611ab09391611aa493611a9c7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef916103cf565b9485926103cf565b9586936102f360405190565b0390a36116c97f9d9c909296d9c674451c0c24f02cb64981eb3b727f99865939192f880a755dcb916102f36040519056fea2646970667358221220977cc50162ec8d2b742598c1f28dacddadc19bc46909f0229b16583d1854c3fe64736f6c63430008120033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933
-----Decoded View---------------
Arg [0] : _wandProtocol (address): 0x31e9026bf3A20FA3250a94caD5E6BFbE203B001B
Arg [1] : _settings (address): 0x7449dc43a03e70050c4AcD3F8A6acab9A7F87933
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000031e9026bf3a20fa3250a94cad5e6bfbe203b001b
Arg [1] : 0000000000000000000000007449dc43a03e70050c4acd3f8a6acab9a7f87933
Loading...
Loading
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.