Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 5,990 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 16532023 | 710 days ago | IN | 0.01 ETH | 0.0003061 | ||||
Transfer | 15027244 | 930 days ago | IN | 0.01728179 ETH | 0.00056185 | ||||
Payout | 14974837 | 939 days ago | IN | 0 ETH | 0.00093045 | ||||
Payout | 14935971 | 946 days ago | IN | 0 ETH | 0.00266539 | ||||
Payout | 14935971 | 946 days ago | IN | 0 ETH | 0.00136125 | ||||
Payout | 14935971 | 946 days ago | IN | 0 ETH | 0.00116432 | ||||
Payout | 14933785 | 946 days ago | IN | 0 ETH | 0.00220187 | ||||
Payout | 14933785 | 946 days ago | IN | 0 ETH | 0.00174579 | ||||
Payout | 14933785 | 946 days ago | IN | 0 ETH | 0.00174725 | ||||
Payout | 14933525 | 947 days ago | IN | 0 ETH | 0.00191841 | ||||
Payout | 14903040 | 952 days ago | IN | 0 ETH | 0.00103607 | ||||
Payout | 14903040 | 952 days ago | IN | 0 ETH | 0.00086772 | ||||
Payout | 14903040 | 952 days ago | IN | 0 ETH | 0.00090983 | ||||
Payout | 14903040 | 952 days ago | IN | 0 ETH | 0.00238047 | ||||
Payout | 14903040 | 952 days ago | IN | 0 ETH | 0.00081012 | ||||
Payout | 14903040 | 952 days ago | IN | 0 ETH | 0.00285513 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00101539 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00092189 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00144104 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00183642 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00091411 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00091621 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00064391 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00061574 | ||||
Payout | 14903038 | 952 days ago | IN | 0 ETH | 0.00078654 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
14870372 | 957 days ago | 708.53199994 ETH | ||||
14870344 | 957 days ago | 0.139 ETH | ||||
14870052 | 957 days ago | 0.665 ETH | ||||
14869997 | 957 days ago | 0.075 ETH | ||||
14869932 | 957 days ago | 0.47 ETH | ||||
14869920 | 957 days ago | 0.33 ETH | ||||
14869828 | 957 days ago | 0.099 ETH | ||||
14869685 | 957 days ago | 0.148 ETH | ||||
14869392 | 957 days ago | 0.029 ETH | ||||
14869321 | 957 days ago | 0.123 ETH | ||||
14869318 | 957 days ago | 0.129 ETH | ||||
14869312 | 957 days ago | 0.11 ETH | ||||
14869166 | 957 days ago | 0.139 ETH | ||||
14869071 | 957 days ago | 0.333 ETH | ||||
14869063 | 957 days ago | 0.139 ETH | ||||
14868827 | 957 days ago | 0.165 ETH | ||||
14868760 | 957 days ago | 0.089 ETH | ||||
14868759 | 957 days ago | 0.029 ETH | ||||
14868657 | 957 days ago | 0.029 ETH | ||||
14868496 | 957 days ago | 0.236 ETH | ||||
14868484 | 957 days ago | 0.06 ETH | ||||
14868355 | 957 days ago | 0.058 ETH | ||||
14868330 | 957 days ago | 0.032 ETH | ||||
14868302 | 957 days ago | 0.103 ETH | ||||
14868273 | 957 days ago | 0.087 ETH |
Loading...
Loading
Contract Name:
MBHPool
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.7; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; // @author: olive ///////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// // /// // /// // /// // $$\ $$\ $$$$$$$\ $$\ $$\ $$$$$$$\ $$\ /// // $$$\ $$$ |$$ __$$\ $$ | $$ | $$ __$$\ $$ | /// // $$$$\ $$$$ |$$ | $$ |$$ | $$ | $$ | $$ | $$$$$$\ $$$$$$\ $$ | /// // $$\$$\$$ $$ |$$$$$$$\ |$$$$$$$$ | $$$$$$$ |$$ __$$\ $$ __$$\ $$ | /// // $$ \$$$ $$ |$$ __$$\ $$ __$$ | $$ ____/ $$ / $$ |$$ / $$ |$$ | /// // $$ |\$ /$$ |$$ | $$ |$$ | $$ | $$ | $$ | $$ |$$ | $$ |$$ | /// // $$ | \_/ $$ |$$$$$$$ |$$ | $$ | $$ | \$$$$$$ |\$$$$$$ |$$ | /// // \__| \__|\_______/ \__| \__| \__| \______/ \______/ \__| /// // /// // /// // /// ///////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////// contract MBHPool is Ownable, ReentrancyGuard { address public signerAddress; mapping(address => bool) internal admins; mapping(address => uint256) lastCheckPoint; uint256 public delayBetweenPayout = 5 * 24 * 60 * 60; mapping(address => uint256) payoutLimit; uint256 public defaultLimit = 5 ether; bool public limitPaused = true; uint256 timeLimit = 90; event Deposited(uint256 amount); event Payout(address to, uint256 amount); constructor(address _signer) { signerAddress = _signer; } modifier onlyAdmin() { require(admins[_msgSender()], 'Caller is not the admin'); _; } function addAdminRole(address _address) external onlyOwner { admins[_address] = true; } function revokeAdminRole(address _address) external onlyOwner { admins[_address] = false; } function deposit() public payable onlyAdmin { require(msg.value > 0, "Not a valid amount"); emit Deposited(msg.value); } function withdrawAll() public onlyOwner { uint256 balance = address(this).balance; require(balance > 0); _widthdraw(owner(), address(this).balance); } function _widthdraw(address _address, uint256 _amount) private { (bool success, ) = _address.call{value: _amount}(""); require(success, "Transfer failed."); } function getLimit(address _claimer) public view returns (uint256) { uint256 limit = payoutLimit[_claimer]; if (limit == 0) { limit = defaultLimit; } return limit; } function payout(uint256 _amount, uint256 _timestamp, bytes memory _signature) external nonReentrant { uint256 balance = address(this).balance; require(_amount <= balance, "Not enough balance"); address wallet = _msgSender(); address signerOwner = signatureWallet(wallet, _amount, _timestamp, _signature); require(signerOwner == signerAddress, "Invalid data provided"); require(_timestamp >= block.timestamp - timeLimit, "Out of time"); require(_timestamp >= lastCheckPoint[wallet] + delayBetweenPayout, "Invalid timestamp"); require(limitPaused || _amount < getLimit(wallet), "Amount exceeds limit"); lastCheckPoint[wallet] = block.timestamp; _widthdraw(wallet, _amount); emit Payout(wallet, _amount); } function signatureWallet(address _wallet, uint256 _amount, uint256 _timestamp, bytes memory _signature) public pure returns (address){ return ECDSA.recover(keccak256(abi.encode(_wallet, _amount, _timestamp)), _signature); } function setCheckPoint(address _claimer, uint256 _point) public onlyOwner { require(_claimer != address(0), "Unknown address"); lastCheckPoint[_claimer] = _point; } function getCheckPoint(address _claimer) external view returns (uint256) { return lastCheckPoint[_claimer]; } function updateDelay(uint256 _delay) public onlyOwner { delayBetweenPayout = _delay; } function setLimit(address _claimer, uint256 _limit) public onlyOwner { payoutLimit[_claimer ] = _limit; } function updateDefaultLimit(uint256 _limit) public onlyOwner { defaultLimit = _limit; } function pauseLimit(bool _pause) public onlyOwner { limitPaused = _pause; } function updateSignerAddress(address _signer) public onlyOwner { signerAddress = _signer; } function updateTimeLimit(uint256 _timeLimit) public onlyOwner { timeLimit = _timeLimit; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// SPDX-License-Identifier: MIT 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 make it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } }
// SPDX-License-Identifier: MIT 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() { _setOwner(_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 { _setOwner(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"); _setOwner(newOwner); } function _setOwner(address newOwner) private { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","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":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Payout","type":"event"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"defaultLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"delayBetweenPayout","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"}],"name":"getCheckPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"}],"name":"getLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"limitPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"pauseLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"payout","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"revokeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_point","type":"uint256"}],"name":"setCheckPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_claimer","type":"address"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"signatureWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"signerAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"updateDefaultLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_delay","type":"uint256"}],"name":"updateDelay","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeLimit","type":"uint256"}],"name":"updateTimeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405262069780600555674563918244f400006007556008805460ff19166001179055605a60095534801561003557600080fd5b506040516113ab3803806113ab833981016040819052610054916100d6565b61005d33610086565b60018055600280546001600160a01b0319166001600160a01b0392909216919091179055610106565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156100e857600080fd5b81516001600160a01b03811681146100ff57600080fd5b9392505050565b611296806101156000396000f3fe6080604052600436106101355760003560e01c8063853828b6116100ab578063a312ac971161006f578063a312ac9714610365578063d0e30db014610385578063e26b013b1461038d578063ed62e644146103a3578063f2320568146103c3578063f2fde38b146103e357600080fd5b8063853828b6146102dc5780638da5cb5b146102f15780638fa2a9f01461030f578063947e52ba1461032f5780639a19c7b01461034557600080fd5b8063629dee60116100fd578063629dee60146102115780636422039d1461023157806364d62353146102515780636595171c14610271578063715018a6146102915780637f4b73d2146102a657600080fd5b806309e9be4b1461013a5780631ce28e721461015c57806336db43b51461018f5780634a106080146101af5780635b7633d0146101d9575b600080fd5b34801561014657600080fd5b5061015a61015536600461107c565b610403565b005b34801561016857600080fd5b5061017c6101773660046110e8565b61068e565b6040519081526020015b60405180910390f35b34801561019b57600080fd5b5061015a6101aa36600461110a565b6106b7565b3480156101bb57600080fd5b506008546101c99060ff1681565b6040519015158152602001610186565b3480156101e557600080fd5b506002546101f9906001600160a01b031681565b6040516001600160a01b039091168152602001610186565b34801561021d57600080fd5b5061015a61022c366004611134565b6106fd565b34801561023d57600080fd5b5061015a61024c36600461110a565b61072c565b34801561025d57600080fd5b5061015a61026c366004611134565b6107ba565b34801561027d57600080fd5b5061015a61028c3660046110e8565b6107e9565b34801561029d57600080fd5b5061015a610837565b3480156102b257600080fd5b5061017c6102c13660046110e8565b6001600160a01b031660009081526004602052604090205490565b3480156102e857600080fd5b5061015a61086d565b3480156102fd57600080fd5b506000546001600160a01b03166101f9565b34801561031b57600080fd5b5061015a61032a3660046110e8565b6108c0565b34801561033b57600080fd5b5061017c60055481565b34801561035157600080fd5b5061015a6103603660046110e8565b61090c565b34801561037157600080fd5b5061015a610380366004611134565b610957565b61015a610986565b34801561039957600080fd5b5061017c60075481565b3480156103af57600080fd5b5061015a6103be36600461114d565b610a5f565b3480156103cf57600080fd5b506101f96103de36600461116f565b610a9c565b3480156103ef57600080fd5b5061015a6103fe3660046110e8565b610aeb565b6002600154141561045b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015547808411156104a65760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610452565b3360006104b582878787610a9c565b6002549091506001600160a01b0380831691161461050d5760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b6044820152606401610452565b60095461051a90426111e6565b8510156105575760405162461bcd60e51b815260206004820152600b60248201526a4f7574206f662074696d6560a81b6044820152606401610452565b6005546001600160a01b03831660009081526004602052604090205461057d91906111fd565b8510156105c05760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b6044820152606401610452565b60085460ff16806105d857506105d58261068e565b86105b61061b5760405162461bcd60e51b8152602060048201526014602482015273105b5bdd5b9d08195e18d959591cc81b1a5b5a5d60621b6044820152606401610452565b6001600160a01b03821660009081526004602052604090204290556106408287610b83565b604080516001600160a01b0384168152602081018890527f5afeca38b2064c23a692c4cf353015d80ab3ecc417b4f893f372690c11fbd9a6910160405180910390a150506001805550505050565b6001600160a01b038116600090815260066020526040812054806106b157506007545b92915050565b6000546001600160a01b031633146106e15760405162461bcd60e51b815260040161045290611215565b6001600160a01b03909116600090815260066020526040902055565b6000546001600160a01b031633146107275760405162461bcd60e51b815260040161045290611215565b600755565b6000546001600160a01b031633146107565760405162461bcd60e51b815260040161045290611215565b6001600160a01b03821661079e5760405162461bcd60e51b815260206004820152600f60248201526e556e6b6e6f776e206164647265737360881b6044820152606401610452565b6001600160a01b03909116600090815260046020526040902055565b6000546001600160a01b031633146107e45760405162461bcd60e51b815260040161045290611215565b600555565b6000546001600160a01b031633146108135760405162461bcd60e51b815260040161045290611215565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b6000546001600160a01b031633146108615760405162461bcd60e51b815260040161045290611215565b61086b6000610c1e565b565b6000546001600160a01b031633146108975760405162461bcd60e51b815260040161045290611215565b47806108a257600080fd5b6108bd6108b76000546001600160a01b031690565b47610b83565b50565b6000546001600160a01b031633146108ea5760405162461bcd60e51b815260040161045290611215565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146109365760405162461bcd60e51b815260040161045290611215565b6001600160a01b03166000908152600360205260409020805460ff19169055565b6000546001600160a01b031633146109815760405162461bcd60e51b815260040161045290611215565b600955565b3360009081526003602052604090205460ff166109e55760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f74207468652061646d696e0000000000000000006044820152606401610452565b60003411610a2a5760405162461bcd60e51b8152602060048201526012602482015271139bdd0818481d985b1a5908185b5bdd5b9d60721b6044820152606401610452565b6040513481527f2a89b2e3d580398d6dc2db5e0f336b52602bbaa51afa9bb5cdf59239cf0d2bea9060200160405180910390a1565b6000546001600160a01b03163314610a895760405162461bcd60e51b815260040161045290611215565b6008805460ff1916911515919091179055565b604080516001600160a01b038616602082015290810184905260608101839052600090610ae2906080016040516020818303038152906040528051906020012083610c6e565b95945050505050565b6000546001600160a01b03163314610b155760405162461bcd60e51b815260040161045290611215565b6001600160a01b038116610b7a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610452565b6108bd81610c1e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610bd0576040519150601f19603f3d011682016040523d82523d6000602084013e610bd5565b606091505b5050905080610c195760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610452565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000610c7d8585610c92565b91509150610c8a81610d02565b509392505050565b600080825160411415610cc95760208301516040840151606085015160001a610cbd87828585610ebd565b94509450505050610cfb565b825160401415610cf35760208301516040840151610ce8868383610faa565b935093505050610cfb565b506000905060025b9250929050565b6000816004811115610d1657610d1661124a565b1415610d1f5750565b6001816004811115610d3357610d3361124a565b1415610d815760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610452565b6002816004811115610d9557610d9561124a565b1415610de35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610452565b6003816004811115610df757610df761124a565b1415610e505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610452565b6004816004811115610e6457610e6461124a565b14156108bd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610452565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ef45750600090506003610fa1565b8460ff16601b14158015610f0c57508460ff16601c14155b15610f1d5750600090506004610fa1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610f71573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f9a57600060019250925050610fa1565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01610fcb87828885610ebd565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261100057600080fd5b813567ffffffffffffffff8082111561101b5761101b610fd9565b604051601f8301601f19908116603f0116810190828211818310171561104357611043610fd9565b8160405283815286602085880101111561105c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561109157600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156110b657600080fd5b6110c286828701610fef565b9150509250925092565b80356001600160a01b03811681146110e357600080fd5b919050565b6000602082840312156110fa57600080fd5b611103826110cc565b9392505050565b6000806040838503121561111d57600080fd5b611126836110cc565b946020939093013593505050565b60006020828403121561114657600080fd5b5035919050565b60006020828403121561115f57600080fd5b8135801515811461110357600080fd5b6000806000806080858703121561118557600080fd5b61118e856110cc565b93506020850135925060408501359150606085013567ffffffffffffffff8111156111b857600080fd5b6111c487828801610fef565b91505092959194509250565b634e487b7160e01b600052601160045260246000fd5b6000828210156111f8576111f86111d0565b500390565b60008219821115611210576112106111d0565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052602160045260246000fdfea26469706673582212208cde13825f684b34a620027b400641576784191bcd7b4af948453145e9c22fe564736f6c634300080900330000000000000000000000004d5ac93cec77ea701f25d9fa49c1c567ca4355ca
Deployed Bytecode
0x6080604052600436106101355760003560e01c8063853828b6116100ab578063a312ac971161006f578063a312ac9714610365578063d0e30db014610385578063e26b013b1461038d578063ed62e644146103a3578063f2320568146103c3578063f2fde38b146103e357600080fd5b8063853828b6146102dc5780638da5cb5b146102f15780638fa2a9f01461030f578063947e52ba1461032f5780639a19c7b01461034557600080fd5b8063629dee60116100fd578063629dee60146102115780636422039d1461023157806364d62353146102515780636595171c14610271578063715018a6146102915780637f4b73d2146102a657600080fd5b806309e9be4b1461013a5780631ce28e721461015c57806336db43b51461018f5780634a106080146101af5780635b7633d0146101d9575b600080fd5b34801561014657600080fd5b5061015a61015536600461107c565b610403565b005b34801561016857600080fd5b5061017c6101773660046110e8565b61068e565b6040519081526020015b60405180910390f35b34801561019b57600080fd5b5061015a6101aa36600461110a565b6106b7565b3480156101bb57600080fd5b506008546101c99060ff1681565b6040519015158152602001610186565b3480156101e557600080fd5b506002546101f9906001600160a01b031681565b6040516001600160a01b039091168152602001610186565b34801561021d57600080fd5b5061015a61022c366004611134565b6106fd565b34801561023d57600080fd5b5061015a61024c36600461110a565b61072c565b34801561025d57600080fd5b5061015a61026c366004611134565b6107ba565b34801561027d57600080fd5b5061015a61028c3660046110e8565b6107e9565b34801561029d57600080fd5b5061015a610837565b3480156102b257600080fd5b5061017c6102c13660046110e8565b6001600160a01b031660009081526004602052604090205490565b3480156102e857600080fd5b5061015a61086d565b3480156102fd57600080fd5b506000546001600160a01b03166101f9565b34801561031b57600080fd5b5061015a61032a3660046110e8565b6108c0565b34801561033b57600080fd5b5061017c60055481565b34801561035157600080fd5b5061015a6103603660046110e8565b61090c565b34801561037157600080fd5b5061015a610380366004611134565b610957565b61015a610986565b34801561039957600080fd5b5061017c60075481565b3480156103af57600080fd5b5061015a6103be36600461114d565b610a5f565b3480156103cf57600080fd5b506101f96103de36600461116f565b610a9c565b3480156103ef57600080fd5b5061015a6103fe3660046110e8565b610aeb565b6002600154141561045b5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064015b60405180910390fd5b600260015547808411156104a65760405162461bcd60e51b81526020600482015260126024820152714e6f7420656e6f7567682062616c616e636560701b6044820152606401610452565b3360006104b582878787610a9c565b6002549091506001600160a01b0380831691161461050d5760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a590819185d18481c1c9bdd9a591959605a1b6044820152606401610452565b60095461051a90426111e6565b8510156105575760405162461bcd60e51b815260206004820152600b60248201526a4f7574206f662074696d6560a81b6044820152606401610452565b6005546001600160a01b03831660009081526004602052604090205461057d91906111fd565b8510156105c05760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b6044820152606401610452565b60085460ff16806105d857506105d58261068e565b86105b61061b5760405162461bcd60e51b8152602060048201526014602482015273105b5bdd5b9d08195e18d959591cc81b1a5b5a5d60621b6044820152606401610452565b6001600160a01b03821660009081526004602052604090204290556106408287610b83565b604080516001600160a01b0384168152602081018890527f5afeca38b2064c23a692c4cf353015d80ab3ecc417b4f893f372690c11fbd9a6910160405180910390a150506001805550505050565b6001600160a01b038116600090815260066020526040812054806106b157506007545b92915050565b6000546001600160a01b031633146106e15760405162461bcd60e51b815260040161045290611215565b6001600160a01b03909116600090815260066020526040902055565b6000546001600160a01b031633146107275760405162461bcd60e51b815260040161045290611215565b600755565b6000546001600160a01b031633146107565760405162461bcd60e51b815260040161045290611215565b6001600160a01b03821661079e5760405162461bcd60e51b815260206004820152600f60248201526e556e6b6e6f776e206164647265737360881b6044820152606401610452565b6001600160a01b03909116600090815260046020526040902055565b6000546001600160a01b031633146107e45760405162461bcd60e51b815260040161045290611215565b600555565b6000546001600160a01b031633146108135760405162461bcd60e51b815260040161045290611215565b6001600160a01b03166000908152600360205260409020805460ff19166001179055565b6000546001600160a01b031633146108615760405162461bcd60e51b815260040161045290611215565b61086b6000610c1e565b565b6000546001600160a01b031633146108975760405162461bcd60e51b815260040161045290611215565b47806108a257600080fd5b6108bd6108b76000546001600160a01b031690565b47610b83565b50565b6000546001600160a01b031633146108ea5760405162461bcd60e51b815260040161045290611215565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146109365760405162461bcd60e51b815260040161045290611215565b6001600160a01b03166000908152600360205260409020805460ff19169055565b6000546001600160a01b031633146109815760405162461bcd60e51b815260040161045290611215565b600955565b3360009081526003602052604090205460ff166109e55760405162461bcd60e51b815260206004820152601760248201527f43616c6c6572206973206e6f74207468652061646d696e0000000000000000006044820152606401610452565b60003411610a2a5760405162461bcd60e51b8152602060048201526012602482015271139bdd0818481d985b1a5908185b5bdd5b9d60721b6044820152606401610452565b6040513481527f2a89b2e3d580398d6dc2db5e0f336b52602bbaa51afa9bb5cdf59239cf0d2bea9060200160405180910390a1565b6000546001600160a01b03163314610a895760405162461bcd60e51b815260040161045290611215565b6008805460ff1916911515919091179055565b604080516001600160a01b038616602082015290810184905260608101839052600090610ae2906080016040516020818303038152906040528051906020012083610c6e565b95945050505050565b6000546001600160a01b03163314610b155760405162461bcd60e51b815260040161045290611215565b6001600160a01b038116610b7a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610452565b6108bd81610c1e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610bd0576040519150601f19603f3d011682016040523d82523d6000602084013e610bd5565b606091505b5050905080610c195760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610452565b505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000806000610c7d8585610c92565b91509150610c8a81610d02565b509392505050565b600080825160411415610cc95760208301516040840151606085015160001a610cbd87828585610ebd565b94509450505050610cfb565b825160401415610cf35760208301516040840151610ce8868383610faa565b935093505050610cfb565b506000905060025b9250929050565b6000816004811115610d1657610d1661124a565b1415610d1f5750565b6001816004811115610d3357610d3361124a565b1415610d815760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610452565b6002816004811115610d9557610d9561124a565b1415610de35760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610452565b6003816004811115610df757610df761124a565b1415610e505760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610452565b6004816004811115610e6457610e6461124a565b14156108bd5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610452565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115610ef45750600090506003610fa1565b8460ff16601b14158015610f0c57508460ff16601c14155b15610f1d5750600090506004610fa1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015610f71573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610f9a57600060019250925050610fa1565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b01610fcb87828885610ebd565b935093505050935093915050565b634e487b7160e01b600052604160045260246000fd5b600082601f83011261100057600080fd5b813567ffffffffffffffff8082111561101b5761101b610fd9565b604051601f8301601f19908116603f0116810190828211818310171561104357611043610fd9565b8160405283815286602085880101111561105c57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060006060848603121561109157600080fd5b8335925060208401359150604084013567ffffffffffffffff8111156110b657600080fd5b6110c286828701610fef565b9150509250925092565b80356001600160a01b03811681146110e357600080fd5b919050565b6000602082840312156110fa57600080fd5b611103826110cc565b9392505050565b6000806040838503121561111d57600080fd5b611126836110cc565b946020939093013593505050565b60006020828403121561114657600080fd5b5035919050565b60006020828403121561115f57600080fd5b8135801515811461110357600080fd5b6000806000806080858703121561118557600080fd5b61118e856110cc565b93506020850135925060408501359150606085013567ffffffffffffffff8111156111b857600080fd5b6111c487828801610fef565b91505092959194509250565b634e487b7160e01b600052601160045260246000fd5b6000828210156111f8576111f86111d0565b500390565b60008219821115611210576112106111d0565b500190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052602160045260246000fdfea26469706673582212208cde13825f684b34a620027b400641576784191bcd7b4af948453145e9c22fe564736f6c63430008090033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000004d5ac93cec77ea701f25d9fa49c1c567ca4355ca
-----Decoded View---------------
Arg [0] : _signer (address): 0x4d5aC93cEc77ea701f25d9FA49C1c567Ca4355Ca
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000004d5ac93cec77ea701f25d9fa49c1c567ca4355ca
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.