More Info
Private Name Tags
ContractCreator
Latest 8 from a total of 8 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw ERC20 | 21077889 | 81 days ago | IN | 0 ETH | 0.00037516 | ||||
Withdraw | 21077848 | 81 days ago | IN | 0 ETH | 0.00036658 | ||||
Buy BMC With ETH | 21073035 | 81 days ago | IN | 2.5 ETH | 0.00064134 | ||||
Buy BMC With Tok... | 19929350 | 241 days ago | IN | 0 ETH | 0.00054341 | ||||
Buy BMC With ETH | 19569193 | 291 days ago | IN | 0.001 ETH | 0.00248057 | ||||
Buy BMC With ETH | 19533049 | 296 days ago | IN | 0.007 ETH | 0.00162534 | ||||
Buy BMC With ETH | 19512692 | 299 days ago | IN | 0.00022 ETH | 0.00136048 | ||||
Buy BMC With ETH | 19511690 | 299 days ago | IN | 0.001102 ETH | 0.00118008 |
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
21077848 | 81 days ago | 2.5 ETH |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
BMCFaucetBridge
Compiler Version
v0.8.24+commit.e11b9ed9
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; import {Pausable} from "@openzeppelin/contracts/utils/Pausable.sol"; import {Ownable} from "@openzeppelin/contracts/access/Ownable.sol"; import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import {IBMCFaucetBridge} from "./interfaces/IBMCFaucetBridge.sol"; /// @title Ethereum faucet bridge to Boomchain (ETH, WBTC, USDT, USDC --> BMC) /// @author BoomDAO /// @notice Deposit ETH or listed tokens and retrieve BMC on Boomchain as of the current exchange rate on Boomswap /// @custom:security-contact [email protected] contract BMCFaucetBridge is IBMCFaucetBridge, Pausable, Ownable { // address private constant WBTC = 0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599; // address private constant USDC = 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48; // address private constant USDT = 0xdAC17F958D2ee523a2206206994597C13D831ec7; XXX: not supported yet --> require SafeERC20 uint256 private _nonce; address public signer; mapping(address => bool) public supportedTokens; event BuyBMC(uint256 indexed nonce, address indexed from, address indexed tokenIn, uint256 amount); error RevertTransfer(); error InvalidNonce(); error InvalidToken(); error InvalidAmount(); error InvalidSignature(); error InsufficientBalance(); error InsufficientAllowance(); /// @param _owner can pause the contract and withdraw funds /// @param _signer is the frontend address that will sign the buyBMCWithETH transaction constructor(address _owner, address _signer) Ownable(_owner) { signer = _signer; // BTC supportedTokens[0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599] = true; // USDC supportedTokens[0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48] = true; // USDT // supportedTokens[0xdAC17F958D2ee523a2206206994597C13D831ec7] = true; } /** * @dev See {IBMCFaucetBridge-buyBMCWithETH}. */ function buyBMCWithETH(uint256 nonce, uint256 amount, bytes calldata signature) external payable whenNotPaused { if (nonce != _nonce) revert InvalidNonce(); bytes32 message = _prefixed(keccak256(abi.encodePacked(nonce, msg.sender, amount))); if (_recoverSigner(message, signature) != signer) revert InvalidSignature(); if (msg.value != amount) revert InvalidAmount(); _nonce = nonce + 1; emit BuyBMC(nonce, msg.sender, address(0), amount); } /** * @dev See {IBMCFaucetBridge-buyBMCWithToken}. */ function buyBMCWithToken(uint256 nonce, address token, uint256 amount, bytes calldata signature) external whenNotPaused { if (nonce != _nonce) revert InvalidNonce(); bytes32 message = _prefixed(keccak256(abi.encodePacked(nonce, msg.sender, token, amount))); if (_recoverSigner(message, signature) != signer) revert InvalidSignature(); if (!supportedTokens[token]) revert InvalidToken(); if (IERC20(token).allowance(msg.sender, address(this)) < amount) revert InsufficientAllowance(); _nonce = nonce + 1; bool success = IERC20(token).transferFrom(msg.sender, address(this), amount); if (!success) revert RevertTransfer(); emit BuyBMC(nonce, msg.sender, token, amount); } // ******************* VIEW FUNCTIONS ******************* function getNextNonce() external view returns (uint256) { return _nonce; } function erc20Balance(address token) external view returns (uint256) { return _erc20Balance(token); } // ====================================================== // ADMIN FUNCTIONS // ====================================================== /** * @dev See {IBMCFaucetBridge-withdraw}. */ function withdraw(address to, uint256 amount) external onlyOwner { if (amount > address(this).balance) revert InsufficientBalance(); (bool success,) = payable(to).call{value: amount}(""); if (!success) revert RevertTransfer(); } /** * @dev See {IFaucetSwapper-withdrawERC20}. */ function withdrawERC20(address token, address to, uint256 amount) external onlyOwner { if (_erc20Balance(token) < amount) revert InsufficientBalance(); bool success = IERC20(token).transfer(to, amount); if (!success) revert RevertTransfer(); } /** * @dev See {IBMCFaucetBridge-newSigner}. */ function newSigner(address _signer) external onlyOwner { signer = _signer; } // ***************** PAUSABLE FUNCTIONS ***************** function pause() external onlyOwner { _pause(); } function unpause() external onlyOwner { _unpause(); } // ====================================================== // INTERNAL FUNCTIONS // ====================================================== function _erc20Balance(address token) private view returns (uint256) { return IERC20(token).balanceOf(address(this)); } // ====================================================== // SIGNATURE VERIFICATION // ====================================================== function _prefixed(bytes32 hash) private pure returns (bytes32) { return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } function _recoverSigner(bytes32 message, bytes memory sig) private pure returns (address) { uint8 v; bytes32 r; bytes32 s; (v, r, s) = _splitSignature(sig); return ecrecover(message, v, r, s); } function _splitSignature(bytes memory sig) private pure returns (uint8, bytes32, bytes32) { require(sig.length == 65); bytes32 r; bytes32 s; uint8 v; assembly { // first 32 bytes, after the length prefix r := mload(add(sig, 32)) // second 32 bytes s := mload(add(sig, 64)) // final byte (first byte of the next 32 bytes) v := byte(0, mload(add(sig, 96))) } return (v, r, s); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol) pragma solidity ^0.8.20; import {Context} from "../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. * * The initial owner is set to the address provided by the deployer. 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; /** * @dev The caller account is not authorized to perform an operation. */ error OwnableUnauthorizedAccount(address account); /** * @dev The owner is not a valid owner account. (eg. `address(0)`) */ error OwnableInvalidOwner(address owner); event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the address provided by the deployer as the initial owner. */ constructor(address initialOwner) { if (initialOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _transferOwnership(initialOwner); } /** * @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 { if (owner() != _msgSender()) { revert OwnableUnauthorizedAccount(_msgSender()); } } /** * @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 { if (newOwner == address(0)) { revert OwnableInvalidOwner(address(0)); } _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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Pausable.sol) pragma solidity ^0.8.20; import {Context} from "../utils/Context.sol"; /** * @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 { bool private _paused; /** * @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); /** * @dev The operation failed because the contract is paused. */ error EnforcedPause(); /** * @dev The operation failed because the contract is not paused. */ error ExpectedPause(); /** * @dev Initializes the contract in unpaused state. */ constructor() { _paused = false; } /** * @dev Modifier to make a function callable only when the contract is not paused. * * Requirements: * * - The contract must not be paused. */ modifier whenNotPaused() { _requireNotPaused(); _; } /** * @dev Modifier to make a function callable only when the contract is paused. * * Requirements: * * - The contract must be paused. */ modifier whenPaused() { _requirePaused(); _; } /** * @dev Returns true if the contract is paused, and false otherwise. */ function paused() public view virtual returns (bool) { return _paused; } /** * @dev Throws if the contract is paused. */ function _requireNotPaused() internal view virtual { if (paused()) { revert EnforcedPause(); } } /** * @dev Throws if the contract is not paused. */ function _requirePaused() internal view virtual { if (!paused()) { revert ExpectedPause(); } } /** * @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()); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.24; interface IBMCFaucetBridge { /** * @notice Bridge ETH to BMC * @dev Emit a {BuyBMC} event used for the bridge listener. * Requirements: * * - Contract must not be paused * - Transaction must be created through the frontend * * @param nonce transaction nonce * @param amount amount of ETH to swap for BMC * @param signature frontend transaction signature */ function buyBMCWithETH(uint256 nonce, uint256 amount, bytes calldata signature) external payable; /** * @notice Bridge WBTC, USDT, USDC to BMC * @dev Emit a {BuyBMC} event used for the bridge listener. * Requirements: * * - Contract must not be paused * - Token must be supported for bridge * - User must have approved the contract to spend Token * - Transaction must be created through the frontend * * @param nonce transaction nonce * @param token address of Token to swap for BMC * @param amount amount of Token to swap for BMC * @param signature frontend transaction signature */ function buyBMCWithToken(uint256 nonce, address token, uint256 amount, bytes calldata signature) external; /** * @notice Withdraw ETH funds from the contract * @dev Requirements: Caller must be owner * @param to address that will receive the funds * @param amount amount to withdraw */ function withdraw(address to, uint256 amount) external; /** * @notice Withdraw ERC20 funds from the contract * @dev Requirements: Caller must be owner * @param to address that will receive the funds * @param amount amount to withdraw */ function withdrawERC20(address token, address to, uint256 amount) external; /** * @notice Assign a new signer for the buyBMC transactions * @dev Requirements: Caller must be owner * @param _signer frontend address that will sign the buyBMC transactions */ function newSigner(address _signer) external; function getNextNonce() external view returns (uint256); function erc20Balance(address token) external view returns (uint256); }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"EnforcedPause","type":"error"},{"inputs":[],"name":"ExpectedPause","type":"error"},{"inputs":[],"name":"InsufficientAllowance","type":"error"},{"inputs":[],"name":"InsufficientBalance","type":"error"},{"inputs":[],"name":"InvalidAmount","type":"error"},{"inputs":[],"name":"InvalidNonce","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"RevertTransfer","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"nonce","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"tokenIn","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"BuyBMC","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"buyBMCWithETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"buyBMCWithToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"erc20Balance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNextNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"newSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signer","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"supportedTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"withdrawERC20","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50604051610fd4380380610fd483398101604081905261002f91610186565b6000805460ff19169055816001600160a01b03811661006857604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61007181610111565b50600280546001600160a01b0319166001600160a01b03929092169190911790555060036020527f292c1cbcd8fcde54e8ba0732ed4e92022ba7ccc86bf9c562e47c88a765f35ad1805460ff19908116600190811790925573a0b86991c6218b36c1d19d4a2e9eb0ce3606eb486000527f37c5eec85d84da1cf053e48828b531c27553684966639a8ba393ecfe725880fd805490911690911790556101b9565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b80516001600160a01b038116811461018157600080fd5b919050565b6000806040838503121561019957600080fd5b6101a28361016a565b91506101b06020840161016a565b90509250929050565b610e0c806101c86000396000f3fe6080604052600436106100e85760003560e01c8063758311201161008a578063b478fc0711610059578063b478fc0714610255578063bd7084b214610283578063f2fde38b14610298578063f3fef3a3146102b857600080fd5b806375831120146101ea5780637adece07146101fd5780638456cb591461021d5780638da5cb5b1461023257600080fd5b806344004cc1116100c657806344004cc1146101615780635c975abb1461018157806368c4ac26146101a5578063715018a6146101d557600080fd5b8063238ac933146100ed5780633dc2a8431461012a5780633f4ba83a1461014c575b600080fd5b3480156100f957600080fd5b5060025461010d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013657600080fd5b5061014a610145366004610bee565b6102d8565b005b34801561015857600080fd5b5061014a610302565b34801561016d57600080fd5b5061014a61017c366004610c10565b610314565b34801561018d57600080fd5b5060005460ff165b6040519015158152602001610121565b3480156101b157600080fd5b506101956101c0366004610bee565b60036020526000908152604090205460ff1681565b3480156101e157600080fd5b5061014a6103e2565b61014a6101f8366004610c95565b6103f4565b34801561020957600080fd5b5061014a610218366004610ce8565b61059d565b34801561022957600080fd5b5061014a610851565b34801561023e57600080fd5b5060005461010090046001600160a01b031661010d565b34801561026157600080fd5b50610275610270366004610bee565b610861565b604051908152602001610121565b34801561028f57600080fd5b50600154610275565b3480156102a457600080fd5b5061014a6102b3366004610bee565b610872565b3480156102c457600080fd5b5061014a6102d3366004610d50565b6108b5565b6102e0610957565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61030a610957565b61031261098a565b565b61031c610957565b80610326846109dc565b101561034557604051631e9acf1760e31b815260040160405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390526000919085169063a9059cbb906044016020604051808303816000875af1158015610398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc9190610d7a565b9050806103dc5760405163037a6c0960e01b815260040160405180910390fd5b50505050565b6103ea610957565b6103126000610a47565b6103fc610aa0565b600154841461041e57604051633ab3447f60e11b815260040160405180910390fd5b60408051602081018690526bffffffffffffffffffffffff193360601b1691810191909152605481018490526000906104b5906074015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b600254604080516020601f87018190048102820181019092528581529293506001600160a01b0390911691610507918491908790879081908401838280828437600092019190915250610ac492505050565b6001600160a01b03161461052e57604051638baa579f60e01b815260040160405180910390fd5b83341461054e5760405163162908e360e11b815260040160405180910390fd5b610559856001610d9c565b600155604051848152600090339087907f04670dac2801df8a02d9927e16c0cb686e44fa0e684a7e8a8ee83756edbb996a9060200160405180910390a45050505050565b6105a5610aa0565b60015485146105c757604051633ab3447f60e11b815260040160405180910390fd5b6000610611863387876040516020016104559493929190938452606092831b6bffffffffffffffffffffffff1990811660208601529190921b166034830152604882015260680190565b600254604080516020601f87018190048102820181019092528581529293506001600160a01b0390911691610663918491908790879081908401838280828437600092019190915250610ac492505050565b6001600160a01b03161461068a57604051638baa579f60e01b815260040160405180910390fd5b6001600160a01b03851660009081526003602052604090205460ff166106c35760405163c1ab6dc160e01b815260040160405180910390fd5b604051636eb1769f60e11b815233600482015230602482015284906001600160a01b0387169063dd62ed3e90604401602060405180830381865afa15801561070f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107339190610dbd565b1015610752576040516313be252b60e01b815260040160405180910390fd5b61075d866001610d9c565b6001556040516323b872dd60e01b8152336004820152306024820152604481018590526000906001600160a01b038716906323b872dd906064016020604051808303816000875af11580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da9190610d7a565b9050806107fa5760405163037a6c0960e01b815260040160405180910390fd5b856001600160a01b0316336001600160a01b0316887f04670dac2801df8a02d9927e16c0cb686e44fa0e684a7e8a8ee83756edbb996a8860405161084091815260200190565b60405180910390a450505050505050565b610859610957565b610312610b43565b600061086c826109dc565b92915050565b61087a610957565b6001600160a01b0381166108a957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6108b281610a47565b50565b6108bd610957565b478111156108de57604051631e9acf1760e31b815260040160405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461092b576040519150601f19603f3d011682016040523d82523d6000602084013e610930565b606091505b50509050806109525760405163037a6c0960e01b815260040160405180910390fd5b505050565b6000546001600160a01b036101009091041633146103125760405163118cdaa760e01b81523360048201526024016108a0565b610992610b80565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c9190610dbd565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff16156103125760405163d93c066560e01b815260040160405180910390fd5b600080600080610ad385610ba3565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610b2e573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b610b4b610aa0565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109bf3390565b60005460ff1661031257604051638dfc202b60e01b815260040160405180910390fd5b60008060008351604114610bb657600080fd5b5050506020810151604082015160609092015160001a92909190565b80356001600160a01b0381168114610be957600080fd5b919050565b600060208284031215610c0057600080fd5b610c0982610bd2565b9392505050565b600080600060608486031215610c2557600080fd5b610c2e84610bd2565b9250610c3c60208501610bd2565b9150604084013590509250925092565b60008083601f840112610c5e57600080fd5b50813567ffffffffffffffff811115610c7657600080fd5b602083019150836020828501011115610c8e57600080fd5b9250929050565b60008060008060608587031215610cab57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115610cd057600080fd5b610cdc87828801610c4c565b95989497509550505050565b600080600080600060808688031215610d0057600080fd5b85359450610d1060208701610bd2565b935060408601359250606086013567ffffffffffffffff811115610d3357600080fd5b610d3f88828901610c4c565b969995985093965092949392505050565b60008060408385031215610d6357600080fd5b610d6c83610bd2565b946020939093013593505050565b600060208284031215610d8c57600080fd5b81518015158114610c0957600080fd5b8082018082111561086c57634e487b7160e01b600052601160045260246000fd5b600060208284031215610dcf57600080fd5b505191905056fea2646970667358221220831fa390b7fe534bb841c8cfb84489b40095f935e791ac0e076547d1e110fe5764736f6c634300081800330000000000000000000000007cb6e698e2dd1765dd3ff77fd4fbcb2a0aae5e720000000000000000000000006554e3653d46a7cf7bb125a58d489f74aba05b6d
Deployed Bytecode
0x6080604052600436106100e85760003560e01c8063758311201161008a578063b478fc0711610059578063b478fc0714610255578063bd7084b214610283578063f2fde38b14610298578063f3fef3a3146102b857600080fd5b806375831120146101ea5780637adece07146101fd5780638456cb591461021d5780638da5cb5b1461023257600080fd5b806344004cc1116100c657806344004cc1146101615780635c975abb1461018157806368c4ac26146101a5578063715018a6146101d557600080fd5b8063238ac933146100ed5780633dc2a8431461012a5780633f4ba83a1461014c575b600080fd5b3480156100f957600080fd5b5060025461010d906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b34801561013657600080fd5b5061014a610145366004610bee565b6102d8565b005b34801561015857600080fd5b5061014a610302565b34801561016d57600080fd5b5061014a61017c366004610c10565b610314565b34801561018d57600080fd5b5060005460ff165b6040519015158152602001610121565b3480156101b157600080fd5b506101956101c0366004610bee565b60036020526000908152604090205460ff1681565b3480156101e157600080fd5b5061014a6103e2565b61014a6101f8366004610c95565b6103f4565b34801561020957600080fd5b5061014a610218366004610ce8565b61059d565b34801561022957600080fd5b5061014a610851565b34801561023e57600080fd5b5060005461010090046001600160a01b031661010d565b34801561026157600080fd5b50610275610270366004610bee565b610861565b604051908152602001610121565b34801561028f57600080fd5b50600154610275565b3480156102a457600080fd5b5061014a6102b3366004610bee565b610872565b3480156102c457600080fd5b5061014a6102d3366004610d50565b6108b5565b6102e0610957565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b61030a610957565b61031261098a565b565b61031c610957565b80610326846109dc565b101561034557604051631e9acf1760e31b815260040160405180910390fd5b60405163a9059cbb60e01b81526001600160a01b038381166004830152602482018390526000919085169063a9059cbb906044016020604051808303816000875af1158015610398573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103bc9190610d7a565b9050806103dc5760405163037a6c0960e01b815260040160405180910390fd5b50505050565b6103ea610957565b6103126000610a47565b6103fc610aa0565b600154841461041e57604051633ab3447f60e11b815260040160405180910390fd5b60408051602081018690526bffffffffffffffffffffffff193360601b1691810191909152605481018490526000906104b5906074015b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b600254604080516020601f87018190048102820181019092528581529293506001600160a01b0390911691610507918491908790879081908401838280828437600092019190915250610ac492505050565b6001600160a01b03161461052e57604051638baa579f60e01b815260040160405180910390fd5b83341461054e5760405163162908e360e11b815260040160405180910390fd5b610559856001610d9c565b600155604051848152600090339087907f04670dac2801df8a02d9927e16c0cb686e44fa0e684a7e8a8ee83756edbb996a9060200160405180910390a45050505050565b6105a5610aa0565b60015485146105c757604051633ab3447f60e11b815260040160405180910390fd5b6000610611863387876040516020016104559493929190938452606092831b6bffffffffffffffffffffffff1990811660208601529190921b166034830152604882015260680190565b600254604080516020601f87018190048102820181019092528581529293506001600160a01b0390911691610663918491908790879081908401838280828437600092019190915250610ac492505050565b6001600160a01b03161461068a57604051638baa579f60e01b815260040160405180910390fd5b6001600160a01b03851660009081526003602052604090205460ff166106c35760405163c1ab6dc160e01b815260040160405180910390fd5b604051636eb1769f60e11b815233600482015230602482015284906001600160a01b0387169063dd62ed3e90604401602060405180830381865afa15801561070f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107339190610dbd565b1015610752576040516313be252b60e01b815260040160405180910390fd5b61075d866001610d9c565b6001556040516323b872dd60e01b8152336004820152306024820152604481018590526000906001600160a01b038716906323b872dd906064016020604051808303816000875af11580156107b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107da9190610d7a565b9050806107fa5760405163037a6c0960e01b815260040160405180910390fd5b856001600160a01b0316336001600160a01b0316887f04670dac2801df8a02d9927e16c0cb686e44fa0e684a7e8a8ee83756edbb996a8860405161084091815260200190565b60405180910390a450505050505050565b610859610957565b610312610b43565b600061086c826109dc565b92915050565b61087a610957565b6001600160a01b0381166108a957604051631e4fbdf760e01b8152600060048201526024015b60405180910390fd5b6108b281610a47565b50565b6108bd610957565b478111156108de57604051631e9acf1760e31b815260040160405180910390fd5b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461092b576040519150601f19603f3d011682016040523d82523d6000602084013e610930565b606091505b50509050806109525760405163037a6c0960e01b815260040160405180910390fd5b505050565b6000546001600160a01b036101009091041633146103125760405163118cdaa760e01b81523360048201526024016108a0565b610992610b80565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610a23573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086c9190610dbd565b600080546001600160a01b03838116610100818102610100600160a81b0319851617855560405193049190911692909183917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a35050565b60005460ff16156103125760405163d93c066560e01b815260040160405180910390fd5b600080600080610ad385610ba3565b6040805160008152602081018083528b905260ff8516918101919091526060810183905260808101829052929550909350915060019060a0016020604051602081039080840390855afa158015610b2e573d6000803e3d6000fd5b5050604051601f190151979650505050505050565b610b4b610aa0565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586109bf3390565b60005460ff1661031257604051638dfc202b60e01b815260040160405180910390fd5b60008060008351604114610bb657600080fd5b5050506020810151604082015160609092015160001a92909190565b80356001600160a01b0381168114610be957600080fd5b919050565b600060208284031215610c0057600080fd5b610c0982610bd2565b9392505050565b600080600060608486031215610c2557600080fd5b610c2e84610bd2565b9250610c3c60208501610bd2565b9150604084013590509250925092565b60008083601f840112610c5e57600080fd5b50813567ffffffffffffffff811115610c7657600080fd5b602083019150836020828501011115610c8e57600080fd5b9250929050565b60008060008060608587031215610cab57600080fd5b8435935060208501359250604085013567ffffffffffffffff811115610cd057600080fd5b610cdc87828801610c4c565b95989497509550505050565b600080600080600060808688031215610d0057600080fd5b85359450610d1060208701610bd2565b935060408601359250606086013567ffffffffffffffff811115610d3357600080fd5b610d3f88828901610c4c565b969995985093965092949392505050565b60008060408385031215610d6357600080fd5b610d6c83610bd2565b946020939093013593505050565b600060208284031215610d8c57600080fd5b81518015158114610c0957600080fd5b8082018082111561086c57634e487b7160e01b600052601160045260246000fd5b600060208284031215610dcf57600080fd5b505191905056fea2646970667358221220831fa390b7fe534bb841c8cfb84489b40095f935e791ac0e076547d1e110fe5764736f6c63430008180033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000007cb6e698e2dd1765dd3ff77fd4fbcb2a0aae5e720000000000000000000000006554e3653d46a7cf7bb125a58d489f74aba05b6d
-----Decoded View---------------
Arg [0] : _owner (address): 0x7cb6E698E2dD1765DD3Ff77FD4fBcb2a0aaE5E72
Arg [1] : _signer (address): 0x6554e3653D46a7CF7bB125a58d489f74ABA05B6D
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000007cb6e698e2dd1765dd3ff77fd4fbcb2a0aae5e72
Arg [1] : 0000000000000000000000006554e3653d46a7cf7bb125a58d489f74aba05b6d
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.