Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
Controller
Compiler Version
v0.8.3+commit.8d00100c
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-08-29 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.3; // Part: MembersInterface interface MembersInterface { function setCustodian(address _custodian) external returns (bool); function addBroker(address broker) external returns (bool); function removeBroker(address broker) external returns (bool); function isCustodian(address addr) external view returns (bool); function isBroker(address addr) external view returns (bool); } // Part: OpenZeppelin/[email protected]/Context /* * @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; } } // Part: OpenZeppelin/[email protected]/IERC20 /** * @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); } // Part: OpenZeppelin/[email protected]/IERC20Metadata /** * @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); } // Part: OpenZeppelin/[email protected]/Ownable /** * @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; } } // Part: OpenZeppelin/[email protected]/Pausable /** * @dev Contract module which allows children to implement an emergency stop * mechanism that can be triggered by an authorized account. * * This module is used through inheritance. It will make available the * modifiers `whenNotPaused` and `whenPaused`, which can be applied to * the functions of your contract. Note that they will not be pausable by * simply including this module, only once the modifiers are put in place. */ abstract contract Pausable is Context { /** * @dev Emitted when the pause is triggered by `account`. */ event Paused(address account); /** * @dev Emitted when the pause is lifted by `account`. */ event Unpaused(address account); bool private _paused; /** * @dev Initializes the contract in unpaused state. */ constructor () { _paused = false; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { require(!paused(), "Pausable: paused"); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { require(paused(), "Pausable: not paused"); _; } /** * @dev Triggers stopped state. * * Requirements: * * - The contract must not be paused. */ function _pause() internal virtual whenNotPaused { _paused = true; emit Paused(_msgSender()); } /** * @dev Returns to normal state. * * Requirements: * * - The contract must be paused. */ function _unpause() internal virtual whenPaused { _paused = false; emit Unpaused(_msgSender()); } } // Part: OpenZeppelin/[email protected]/ERC20 /** * @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 { } } // Part: ControllerInterface interface ControllerInterface { function mint(address to, uint amount) external returns (bool); function burn(uint value) external returns (bool); function isCustodian(address addr) external view returns (bool); function isBroker(address addr) external view returns (bool); function getToken() external view returns (ERC20); } // Part: OpenZeppelin/[email protected]/ERC20Burnable /** * @dev Extension of {ERC20} that allows token holders to destroy both their own * tokens and those that they have an allowance for, in a way that can be * recognized off-chain (via event analysis). */ abstract contract ERC20Burnable is Context, ERC20 { /** * @dev Destroys `amount` tokens from the caller. * * See {ERC20-_burn}. */ function burn(uint256 amount) public virtual { _burn(_msgSender(), amount); } /** * @dev Destroys `amount` tokens from `account`, deducting from the caller's * allowance. * * See {ERC20-_burn} and {ERC20-allowance}. * * Requirements: * * - the caller must have allowance for ``accounts``'s tokens of at least * `amount`. */ function burnFrom(address account, uint256 amount) public virtual { uint256 currentAllowance = allowance(account, _msgSender()); require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance"); _approve(account, _msgSender(), currentAllowance - amount); _burn(account, amount); } } // Part: OpenZeppelin/[email protected]/ERC20Pausable /** * @dev ERC20 token with pausable token transfers, minting and burning. * * Useful for scenarios such as preventing trades until the end of an evaluation * period, or having an emergency switch for freezing all token transfers in the * event of a large bug. */ abstract contract ERC20Pausable is ERC20, Pausable { /** * @dev See {ERC20-_beforeTokenTransfer}. * * Requirements: * * - the contract must not be paused. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual override { super._beforeTokenTransfer(from, to, amount); require(!paused(), "ERC20Pausable: token transfer while paused"); } } // Part: WrappedToken contract WrappedToken is Ownable, ERC20Burnable, ERC20Pausable { constructor(string memory name, string memory symbol) ERC20(name, symbol) { } function burn(uint value) public override onlyOwner { super.burn(value); } function mint(address to, uint256 amount) public onlyOwner { _mint(to, amount); } function pause() public virtual onlyOwner { _pause(); } function unpause() public virtual onlyOwner { _unpause(); } function _beforeTokenTransfer( address from, address to, uint256 amount ) internal virtual override(ERC20, ERC20Pausable) { super._beforeTokenTransfer(from, to, amount); } } // File: Controller.sol contract Controller is ControllerInterface, Ownable { WrappedToken public token; MembersInterface public members; address public bridge; constructor(WrappedToken _token) { require(_token != WrappedToken(address(0)), "invalid _token address"); token = _token; } modifier onlyBridge() { require(msg.sender == bridge, "sender not authorized for minting or burning."); _; } // setters event MembersSet(MembersInterface indexed members); function setMembers(MembersInterface _members) external onlyOwner returns (bool) { require(_members != MembersInterface(address(0)), "invalid _members address"); members = _members; emit MembersSet(members); return true; } event BridgeSet(address indexed bridge); function setBridge(address _bridge) external onlyOwner returns (bool) { require(_bridge != address(0), "invalid _bridge address"); bridge = _bridge; emit BridgeSet(bridge); return true; } // only owner actions on token event Paused(); function pause() external onlyOwner returns (bool) { token.pause(); emit Paused(); return true; } event Unpaused(); function unpause() external onlyOwner returns (bool) { token.unpause(); emit Unpaused(); return true; } // only bridge actions on token function mint(address to, uint amount) external override onlyBridge returns (bool) { require(to != address(0), "invalid to address"); require(!token.paused(), "token is paused."); token.mint(to, amount); return true; } function burn(uint value) external override onlyBridge returns (bool) { require(!token.paused(), "token is paused."); token.burn(value); return true; } // all accessible function isCustodian(address addr) external override view returns (bool) { return members.isCustodian(addr); } function isBroker(address addr) external override view returns (bool) { return members.isBroker(addr); } function getToken() external override view returns (ERC20) { return token; } // overriding function renounceOwnership() public override onlyOwner { revert("renouncing ownership is blocked."); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract WrappedToken","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"bridge","type":"address"}],"name":"BridgeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract MembersInterface","name":"members","type":"address"}],"name":"MembersSet","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":[],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[],"name":"Unpaused","type":"event"},{"inputs":[],"name":"bridge","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"burn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isBroker","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"}],"name":"isCustodian","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"members","outputs":[{"internalType":"contract MembersInterface","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_bridge","type":"address"}],"name":"setBridge","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract MembersInterface","name":"_members","type":"address"}],"name":"setMembers","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract WrappedToken","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610ce6380380610ce683398101604081905261002f916100ef565b600080546001600160a01b031916339081178255604051909182917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506001600160a01b0381166100ca5760405162461bcd60e51b815260206004820152601660248201527f696e76616c6964205f746f6b656e206164647265737300000000000000000000604482015260640160405180910390fd5b600180546001600160a01b0319166001600160a01b039290921691909117905561011d565b600060208284031215610100578081fd5b81516001600160a01b0381168114610116578182fd5b9392505050565b610bba8061012c6000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80638456cb5911610097578063e78cea9211610066578063e78cea92146101d1578063f2fde38b146101e4578063f3796bdc146101f7578063fc0c546a1461020a576100f5565b80638456cb59146101925780638da5cb5b1461019a5780638dd14802146101ab578063bdd4d18d146101be576100f5565b80633f4ba83a116100d35780633f4ba83a1461015a57806340c10f191461016257806342966c6814610175578063715018a614610188576100f5565b806321df0da7146100fa57806322b31d9f1461012457806335c80c8c14610147575b600080fd5b6001546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b610137610132366004610a64565b61021d565b604051901515815260200161011b565b610137610155366004610a64565b6102a2565b6101376102d5565b610137610170366004610a87565b6103a0565b610137610183366004610ad2565b61054d565b6101906106a6565b005b610137610718565b6000546001600160a01b0316610107565b6101376101b9366004610a64565b6107da565b600254610107906001600160a01b031681565b600354610107906001600160a01b031681565b6101906101f2366004610a64565b6108aa565b610137610205366004610a64565b610994565b600154610107906001600160a01b031681565b6002546040516322b31d9f60e01b81526001600160a01b03838116600483015260009216906322b31d9f906024015b60206040518083038186803b15801561026457600080fd5b505afa158015610278573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029c9190610ab2565b92915050565b600254604051630d72032360e21b81526001600160a01b03838116600483015260009216906335c80c8c9060240161024c565b600080546001600160a01b031633146103095760405162461bcd60e51b815260040161030090610b37565b60405180910390fd5b600160009054906101000a90046001600160a01b03166001600160a01b0316633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561035957600080fd5b505af115801561036d573d6000803e3d6000fd5b50506040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933925060009150a150600190565b6003546000906001600160a01b031633146103cd5760405162461bcd60e51b815260040161030090610aea565b6001600160a01b0383166104185760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420746f206164647265737360701b6044820152606401610300565b600160009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046657600080fd5b505afa15801561047a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049e9190610ab2565b156104de5760405162461bcd60e51b815260206004820152601060248201526f3a37b5b2b71034b9903830bab9b2b21760811b6044820152606401610300565b6001546040516340c10f1960e01b81526001600160a01b03858116600483015260248201859052909116906340c10f1990604401600060405180830381600087803b15801561052c57600080fd5b505af1158015610540573d6000803e3d6000fd5b5060019695505050505050565b6003546000906001600160a01b0316331461057a5760405162461bcd60e51b815260040161030090610aea565b600160009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105c857600080fd5b505afa1580156105dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106009190610ab2565b156106405760405162461bcd60e51b815260206004820152601060248201526f3a37b5b2b71034b9903830bab9b2b21760811b6044820152606401610300565b600154604051630852cd8d60e31b8152600481018490526001600160a01b03909116906342966c6890602401600060405180830381600087803b15801561068657600080fd5b505af115801561069a573d6000803e3d6000fd5b50600195945050505050565b6000546001600160a01b031633146106d05760405162461bcd60e51b815260040161030090610b37565b60405162461bcd60e51b815260206004820181905260248201527f72656e6f756e63696e67206f776e65727368697020697320626c6f636b65642e6044820152606401610300565b600080546001600160a01b031633146107435760405162461bcd60e51b815260040161030090610b37565b600160009054906101000a90046001600160a01b03166001600160a01b0316638456cb596040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561079357600080fd5b505af11580156107a7573d6000803e3d6000fd5b50506040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752925060009150a150600190565b600080546001600160a01b031633146108055760405162461bcd60e51b815260040161030090610b37565b6001600160a01b03821661085b5760405162461bcd60e51b815260206004820152601760248201527f696e76616c6964205f62726964676520616464726573730000000000000000006044820152606401610300565b600380546001600160a01b0319166001600160a01b0384169081179091556040517fa49730bff544fd0b716395c592e39c6fd2d2481a19b9229b5b240483db95a49590600090a2506001919050565b6000546001600160a01b031633146108d45760405162461bcd60e51b815260040161030090610b37565b6001600160a01b0381166109395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610300565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b031633146109bf5760405162461bcd60e51b815260040161030090610b37565b6001600160a01b038216610a155760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964205f6d656d62657273206164647265737300000000000000006044820152606401610300565b600280546001600160a01b0319166001600160a01b0384169081179091556040517fc1ab8227dcc82b3165b89762b5698f88dd96b65581d137b10770a84b27df6a9090600090a2506001919050565b600060208284031215610a75578081fd5b8135610a8081610b6c565b9392505050565b60008060408385031215610a99578081fd5b8235610aa481610b6c565b946020939093013593505050565b600060208284031215610ac3578081fd5b81518015158114610a80578182fd5b600060208284031215610ae3578081fd5b5035919050565b6020808252602d908201527f73656e646572206e6f7420617574686f72697a656420666f72206d696e74696e60408201526c339037b910313ab93734b7339760991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b0381168114610b8157600080fd5b5056fea2646970667358221220b456d4dcb3ff87eabf01516e8e4369db8cd1dba7b0f2e621a2f4a2f78d8254f564736f6c634300080300330000000000000000000000002847c48b4fd2e7dcacc00cb04f555fe8dd10d504
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80638456cb5911610097578063e78cea9211610066578063e78cea92146101d1578063f2fde38b146101e4578063f3796bdc146101f7578063fc0c546a1461020a576100f5565b80638456cb59146101925780638da5cb5b1461019a5780638dd14802146101ab578063bdd4d18d146101be576100f5565b80633f4ba83a116100d35780633f4ba83a1461015a57806340c10f191461016257806342966c6814610175578063715018a614610188576100f5565b806321df0da7146100fa57806322b31d9f1461012457806335c80c8c14610147575b600080fd5b6001546001600160a01b03165b6040516001600160a01b0390911681526020015b60405180910390f35b610137610132366004610a64565b61021d565b604051901515815260200161011b565b610137610155366004610a64565b6102a2565b6101376102d5565b610137610170366004610a87565b6103a0565b610137610183366004610ad2565b61054d565b6101906106a6565b005b610137610718565b6000546001600160a01b0316610107565b6101376101b9366004610a64565b6107da565b600254610107906001600160a01b031681565b600354610107906001600160a01b031681565b6101906101f2366004610a64565b6108aa565b610137610205366004610a64565b610994565b600154610107906001600160a01b031681565b6002546040516322b31d9f60e01b81526001600160a01b03838116600483015260009216906322b31d9f906024015b60206040518083038186803b15801561026457600080fd5b505afa158015610278573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061029c9190610ab2565b92915050565b600254604051630d72032360e21b81526001600160a01b03838116600483015260009216906335c80c8c9060240161024c565b600080546001600160a01b031633146103095760405162461bcd60e51b815260040161030090610b37565b60405180910390fd5b600160009054906101000a90046001600160a01b03166001600160a01b0316633f4ba83a6040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561035957600080fd5b505af115801561036d573d6000803e3d6000fd5b50506040517fa45f47fdea8a1efdd9029a5691c7f759c32b7c698632b563573e155625d16933925060009150a150600190565b6003546000906001600160a01b031633146103cd5760405162461bcd60e51b815260040161030090610aea565b6001600160a01b0383166104185760405162461bcd60e51b8152602060048201526012602482015271696e76616c696420746f206164647265737360701b6044820152606401610300565b600160009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b15801561046657600080fd5b505afa15801561047a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061049e9190610ab2565b156104de5760405162461bcd60e51b815260206004820152601060248201526f3a37b5b2b71034b9903830bab9b2b21760811b6044820152606401610300565b6001546040516340c10f1960e01b81526001600160a01b03858116600483015260248201859052909116906340c10f1990604401600060405180830381600087803b15801561052c57600080fd5b505af1158015610540573d6000803e3d6000fd5b5060019695505050505050565b6003546000906001600160a01b0316331461057a5760405162461bcd60e51b815260040161030090610aea565b600160009054906101000a90046001600160a01b03166001600160a01b0316635c975abb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156105c857600080fd5b505afa1580156105dc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106009190610ab2565b156106405760405162461bcd60e51b815260206004820152601060248201526f3a37b5b2b71034b9903830bab9b2b21760811b6044820152606401610300565b600154604051630852cd8d60e31b8152600481018490526001600160a01b03909116906342966c6890602401600060405180830381600087803b15801561068657600080fd5b505af115801561069a573d6000803e3d6000fd5b50600195945050505050565b6000546001600160a01b031633146106d05760405162461bcd60e51b815260040161030090610b37565b60405162461bcd60e51b815260206004820181905260248201527f72656e6f756e63696e67206f776e65727368697020697320626c6f636b65642e6044820152606401610300565b600080546001600160a01b031633146107435760405162461bcd60e51b815260040161030090610b37565b600160009054906101000a90046001600160a01b03166001600160a01b0316638456cb596040518163ffffffff1660e01b8152600401600060405180830381600087803b15801561079357600080fd5b505af11580156107a7573d6000803e3d6000fd5b50506040517f9e87fac88ff661f02d44f95383c817fece4bce600a3dab7a54406878b965e752925060009150a150600190565b600080546001600160a01b031633146108055760405162461bcd60e51b815260040161030090610b37565b6001600160a01b03821661085b5760405162461bcd60e51b815260206004820152601760248201527f696e76616c6964205f62726964676520616464726573730000000000000000006044820152606401610300565b600380546001600160a01b0319166001600160a01b0384169081179091556040517fa49730bff544fd0b716395c592e39c6fd2d2481a19b9229b5b240483db95a49590600090a2506001919050565b6000546001600160a01b031633146108d45760405162461bcd60e51b815260040161030090610b37565b6001600160a01b0381166109395760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610300565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b031633146109bf5760405162461bcd60e51b815260040161030090610b37565b6001600160a01b038216610a155760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964205f6d656d62657273206164647265737300000000000000006044820152606401610300565b600280546001600160a01b0319166001600160a01b0384169081179091556040517fc1ab8227dcc82b3165b89762b5698f88dd96b65581d137b10770a84b27df6a9090600090a2506001919050565b600060208284031215610a75578081fd5b8135610a8081610b6c565b9392505050565b60008060408385031215610a99578081fd5b8235610aa481610b6c565b946020939093013593505050565b600060208284031215610ac3578081fd5b81518015158114610a80578182fd5b600060208284031215610ae3578081fd5b5035919050565b6020808252602d908201527f73656e646572206e6f7420617574686f72697a656420666f72206d696e74696e60408201526c339037b910313ab93734b7339760991b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b0381168114610b8157600080fd5b5056fea2646970667358221220b456d4dcb3ff87eabf01516e8e4369db8cd1dba7b0f2e621a2f4a2f78d8254f564736f6c63430008030033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000002847c48b4fd2e7dcacc00cb04f555fe8dd10d504
-----Decoded View---------------
Arg [0] : _token (address): 0x2847c48b4FD2e7dCAcC00Cb04f555fE8dD10D504
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000002847c48b4fd2e7dcacc00cb04f555fe8dd10d504
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.