Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 6 from a total of 6 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer Ownersh... | 14587787 | 984 days ago | IN | 0 ETH | 0.00068032 | ||||
Withdraw Tax | 14587757 | 984 days ago | IN | 0 ETH | 0.00131786 | ||||
Set Tax Rate | 14552388 | 990 days ago | IN | 0 ETH | 0.00087208 | ||||
Set Tax Rate | 14540208 | 992 days ago | IN | 0 ETH | 0.00270583 | ||||
Set Tax Rate | 14536876 | 992 days ago | IN | 0 ETH | 0.00116942 | ||||
Set Tax Rate | 14536499 | 992 days ago | IN | 0 ETH | 0.0021923 |
Latest 10 internal transactions
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
16335117 | 720 days ago | 0.18 ETH | ||||
16335117 | 720 days ago | 0.18 ETH | ||||
14841419 | 944 days ago | 0.09 ETH | ||||
14841419 | 944 days ago | 0.09 ETH | ||||
14750027 | 959 days ago | 0.495 ETH | ||||
14750027 | 959 days ago | 0.495 ETH | ||||
14587757 | 984 days ago | 4.92 ETH | ||||
14587725 | 984 days ago | 4.92 ETH | ||||
14578657 | 986 days ago | 6.645 ETH | ||||
14578657 | 986 days ago | 6.645 ETH |
Loading...
Loading
Contract Name:
WithdrawalProxy
Compiler Version
v0.8.13+commit.abaa5c0e
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.0; import "@openzeppelin/contracts/access/Ownable.sol"; contract WithdrawalProxy is Ownable { mapping(address => uint256) public taxRate; function withdraw(address withdrawAddress, uint256 withdrawAmount) external payable { require(withdrawAmount == msg.value); // transfer the post tax amount to the withdraw address uint256 postTaxAmount = withdrawAmount - ((withdrawAmount * taxRate[msg.sender]) / 1e5); (bool sent, ) = payable(withdrawAddress).call{ value: postTaxAmount }(""); require(sent, "Failed to send Ether"); } function setTaxRate(address projectAddress, uint256 _taxRate) external onlyOwner { taxRate[projectAddress] = _taxRate; // set the tax rate for the project, x 10000 } function withdrawTax(address withdrawAddress) external onlyOwner { (bool sent, ) = payable(withdrawAddress).call{ value: address(this).balance }(""); require(sent, "Failed to send Ether"); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev 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 { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"projectAddress","type":"address"},{"internalType":"uint256","name":"_taxRate","type":"uint256"}],"name":"setTaxRate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"taxRate","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address"},{"internalType":"uint256","name":"withdrawAmount","type":"uint256"}],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"withdrawAddress","type":"address"}],"name":"withdrawTax","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b5061001a3361001f565b61006f565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6105c18061007e6000396000f3fe6080604052600436106100705760003560e01c8063cc5f80df1161004e578063cc5f80df146100d9578063e8904759146100f9578063f2fde38b14610134578063f3fef3a31461015457600080fd5b80634c75b70714610075578063715018a6146100975780638da5cb5b146100ac575b600080fd5b34801561008157600080fd5b5061009561009036600461049c565b610167565b005b3480156100a357600080fd5b50610095610238565b3480156100b857600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100e557600080fd5b506100956100f43660046104be565b61026e565b34801561010557600080fd5b5061012661011436600461049c565b60016020526000908152604090205481565b6040519081526020016100d0565b34801561014057600080fd5b5061009561014f36600461049c565b6102b4565b6100956101623660046104be565b61034f565b6000546001600160a01b0316331461019a5760405162461bcd60e51b8152600401610191906104e8565b60405180910390fd5b6000816001600160a01b03164760405160006040518083038185875af1925050503d80600081146101e7576040519150601f19603f3d011682016040523d82523d6000602084013e6101ec565b606091505b50509050806102345760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610191565b5050565b6000546001600160a01b031633146102625760405162461bcd60e51b8152600401610191906104e8565b61026c6000610430565b565b6000546001600160a01b031633146102985760405162461bcd60e51b8152600401610191906104e8565b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031633146102de5760405162461bcd60e51b8152600401610191906104e8565b6001600160a01b0381166103435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610191565b61034c81610430565b50565b34811461035b57600080fd5b33600090815260016020526040812054620186a09061037a9084610533565b6103849190610552565b61038e9083610574565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d80600081146103dd576040519150601f19603f3d011682016040523d82523d6000602084013e6103e2565b606091505b505090508061042a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610191565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461049757600080fd5b919050565b6000602082840312156104ae57600080fd5b6104b782610480565b9392505050565b600080604083850312156104d157600080fd5b6104da83610480565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561054d5761054d61051d565b500290565b60008261056f57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156105865761058661051d565b50039056fea2646970667358221220473a7c21bff46df051c8c07c45864e1855787d58838b921c2d074a59be9fd61064736f6c634300080d0033
Deployed Bytecode
0x6080604052600436106100705760003560e01c8063cc5f80df1161004e578063cc5f80df146100d9578063e8904759146100f9578063f2fde38b14610134578063f3fef3a31461015457600080fd5b80634c75b70714610075578063715018a6146100975780638da5cb5b146100ac575b600080fd5b34801561008157600080fd5b5061009561009036600461049c565b610167565b005b3480156100a357600080fd5b50610095610238565b3480156100b857600080fd5b506000546040516001600160a01b0390911681526020015b60405180910390f35b3480156100e557600080fd5b506100956100f43660046104be565b61026e565b34801561010557600080fd5b5061012661011436600461049c565b60016020526000908152604090205481565b6040519081526020016100d0565b34801561014057600080fd5b5061009561014f36600461049c565b6102b4565b6100956101623660046104be565b61034f565b6000546001600160a01b0316331461019a5760405162461bcd60e51b8152600401610191906104e8565b60405180910390fd5b6000816001600160a01b03164760405160006040518083038185875af1925050503d80600081146101e7576040519150601f19603f3d011682016040523d82523d6000602084013e6101ec565b606091505b50509050806102345760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610191565b5050565b6000546001600160a01b031633146102625760405162461bcd60e51b8152600401610191906104e8565b61026c6000610430565b565b6000546001600160a01b031633146102985760405162461bcd60e51b8152600401610191906104e8565b6001600160a01b03909116600090815260016020526040902055565b6000546001600160a01b031633146102de5760405162461bcd60e51b8152600401610191906104e8565b6001600160a01b0381166103435760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610191565b61034c81610430565b50565b34811461035b57600080fd5b33600090815260016020526040812054620186a09061037a9084610533565b6103849190610552565b61038e9083610574565b90506000836001600160a01b03168260405160006040518083038185875af1925050503d80600081146103dd576040519150601f19603f3d011682016040523d82523d6000602084013e6103e2565b606091505b505090508061042a5760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610191565b50505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b80356001600160a01b038116811461049757600080fd5b919050565b6000602082840312156104ae57600080fd5b6104b782610480565b9392505050565b600080604083850312156104d157600080fd5b6104da83610480565b946020939093013593505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600081600019048311821515161561054d5761054d61051d565b500290565b60008261056f57634e487b7160e01b600052601260045260246000fd5b500490565b6000828210156105865761058661051d565b50039056fea2646970667358221220473a7c21bff46df051c8c07c45864e1855787d58838b921c2d074a59be9fd61064736f6c634300080d0033
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.