Feature Tip: Add private address tag to any address under My Name Tag !
More Info
Private Name Tags
Latest 9 from a total of 9 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw Erc20 | 16300778 | 615 days ago | IN | 0 ETH | 0.0011537 | ||||
Withdraw Eth | 16300775 | 615 days ago | IN | 0 ETH | 0.00109635 | ||||
Set Beneficiarie... | 16188845 | 631 days ago | IN | 0 ETH | 0.00065144 | ||||
Withdraw Erc20 | 15392301 | 745 days ago | IN | 0 ETH | 0.00270948 | ||||
Withdraw Eth | 15392262 | 745 days ago | IN | 0 ETH | 0.00214232 | ||||
Transfer | 15016275 | 805 days ago | IN | 0.4358025 ETH | 0.00097827 | ||||
Transfer | 14963319 | 814 days ago | IN | 1.0560825 ETH | 0.00082374 | ||||
Transfer Ownersh... | 14920460 | 822 days ago | IN | 0 ETH | 0.00085379 | ||||
0x60e06040 | 14920441 | 822 days ago | IN | 0 ETH | 0.04328462 |
Latest 25 internal transactions (View All)
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
20465990 | 31 days ago | 0.0000345 ETH | ||||
19155323 | 215 days ago | 0.000045 ETH | ||||
19097788 | 223 days ago | 0.00005 ETH | ||||
19077582 | 225 days ago | 0.000045 ETH | ||||
19067534 | 227 days ago | 0.00005 ETH | ||||
19057826 | 228 days ago | 0.000045 ETH | ||||
19057693 | 228 days ago | 0.000075 ETH | ||||
19047458 | 230 days ago | 0.000045 ETH | ||||
19046827 | 230 days ago | 0.0007425 ETH | ||||
19046790 | 230 days ago | 0.00921 ETH | ||||
19046390 | 230 days ago | 0.0002475 ETH | ||||
18872471 | 254 days ago | 0.0004575 ETH | ||||
18636721 | 287 days ago | 0.00025 ETH | ||||
18451433 | 313 days ago | 0.000095 ETH | ||||
18039781 | 371 days ago | 0.000825 ETH | ||||
18017080 | 374 days ago | 0.000825 ETH | ||||
18005448 | 376 days ago | 0.00025 ETH | ||||
17996678 | 377 days ago | 0.000825 ETH | ||||
17875371 | 394 days ago | 0.0000495 ETH | ||||
17551870 | 439 days ago | 0.000181 ETH | ||||
17494026 | 447 days ago | 0.00013 ETH | ||||
17391672 | 462 days ago | 0.0027675 ETH | ||||
17375478 | 464 days ago | 0.00375 ETH | ||||
17302479 | 474 days ago | 0.0000745 ETH | ||||
17301815 | 474 days ago | 0.01525 ETH |
Loading...
Loading
Contract Name:
ValkyriesRoyaltyReceiver
Compiler Version
v0.8.4+commit.c7e474f2
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.4; import "@massless.io/smart-contract-library/contracts/utils/WithdrawalSplittable.sol"; contract ValkyriesRoyaltyReceiver is WithdrawalSplittable { address[] private beneficiary_wallets = [ address(0x6ab71C2025442B694C8585aCe2fc06D877469D30), address(0x901FC05c4a4bC027a8979089D716b6793052Cc16), address(0xd196e0aFacA3679C27FC05ba8C9D3ABBCD353b5D) ]; uint256[] private beneficiary_splits = [7000, 2000, 1000]; constructor() { setBeneficiaries(beneficiary_wallets, beneficiary_splits); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.4; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/security/ReentrancyGuard.sol"; abstract contract WithdrawalSplittable is Ownable, ReentrancyGuard { struct Beneficiary { address wallet; uint256 basisPoints; // decimal: 2, e.g. 1000 = 10.00% } Beneficiary[] public beneficiaries; error WithdrawalFailedBeneficiary(uint256 index, address beneficiary); error ZeroBeneficiaryAddress(); error ArrayLengthMismatch(); error ZeroArrayLength(); error ZeroBalance(); error ZeroWithdrawalAddress(); error ZeroWithdrawalBasisPoints(); receive() external payable {} modifier checkWithdrawalBasisPoints(address[] memory _wallets, uint256[] memory _basisPoints) { if (_wallets.length != _basisPoints.length) revert ArrayLengthMismatch(); if (_wallets.length == 0) revert ZeroArrayLength(); for (uint256 i; i < _wallets.length; i++) { if(_wallets[i] == address(0)) revert ZeroWithdrawalAddress(); if(_basisPoints[i] == 0) revert ZeroWithdrawalBasisPoints(); } _; } function setBeneficiaries(address[] memory _wallets, uint256[] memory _basisPoints) public onlyOwner checkWithdrawalBasisPoints(_wallets, _basisPoints) { delete beneficiaries; for (uint256 i; i < _wallets.length; i++) { if (_wallets[i] == address(0)) revert ZeroBeneficiaryAddress(); beneficiaries.push(Beneficiary(_wallets[i], _basisPoints[i])); } } function calculateSplit(uint256 balance) public view returns (uint256[] memory) { uint256[] memory amounts = new uint256[](beneficiaries.length); for (uint256 i; i < beneficiaries.length; i++) { uint256 amount = (balance * beneficiaries[i].basisPoints) / 10000; amounts[i] = amount; } return amounts; } function withdrawErc20(IERC20 token) public nonReentrant { uint256 totalBalance = token.balanceOf(address(this)); if (totalBalance == 0) revert ZeroBalance(); uint256[] memory amounts = calculateSplit(totalBalance); for (uint256 i; i < beneficiaries.length; i++) { if (!token.transfer(beneficiaries[i].wallet, amounts[i])) revert WithdrawalFailedBeneficiary(i, beneficiaries[i].wallet); } } function withdrawEth() public nonReentrant { uint256 totalBalance = address(this).balance; if (totalBalance == 0) revert ZeroBalance(); uint256[] memory amounts = calculateSplit(totalBalance); for (uint256 i; i < beneficiaries.length; i++) { if (!payable(beneficiaries[i].wallet).send(amounts[i])) revert WithdrawalFailedBeneficiary(i, beneficiaries[i].wallet); } } }
// 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 (last updated v4.5.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); /** * @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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) pragma solidity ^0.8.0; /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // 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 // 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
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ArrayLengthMismatch","type":"error"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"address","name":"beneficiary","type":"address"}],"name":"WithdrawalFailedBeneficiary","type":"error"},{"inputs":[],"name":"ZeroArrayLength","type":"error"},{"inputs":[],"name":"ZeroBalance","type":"error"},{"inputs":[],"name":"ZeroBeneficiaryAddress","type":"error"},{"inputs":[],"name":"ZeroWithdrawalAddress","type":"error"},{"inputs":[],"name":"ZeroWithdrawalBasisPoints","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"beneficiaries","outputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"basisPoints","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"balance","type":"uint256"}],"name":"calculateSplit","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"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":"_wallets","type":"address[]"},{"internalType":"uint256[]","name":"_basisPoints","type":"uint256[]"}],"name":"setBeneficiaries","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"token","type":"address"}],"name":"withdrawErc20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawEth","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e0604052736ab71c2025442b694c8585ace2fc06d877469d30608090815273901fc05c4a4bc027a8979089d716b6793052cc1660a05273d196e0afaca3679c27fc05ba8c9d3abbcd353b5d60c0526200005d906003908162000471565b5060408051606081018252611b5881526107d060208201526103e8918101919091526200008f906004906003620004db565b503480156200009d57600080fd5b50620000a9336200016d565b6001805560038054604080516020808402820181019092528281526200016793909290918301828280156200010857602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311620000e9575b505050505060048054806020026020016040519081016040528092919081815260200182805480156200015b57602002820191906000526020600020905b81548152602001906001019080831162000146575b5050620001bd92505050565b620005ac565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000546001600160a01b031633146200021c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b81818051825114620002415760405163512509d360e11b815260040160405180910390fd5b8151620002615760405163a763b50160e01b815260040160405180910390fd5b60005b82518110156200032b5760006001600160a01b03168382815181106200029a57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415620002cb57604051631e2add6160e21b815260040160405180910390fd5b818181518110620002ec57634e487b7160e01b600052603260045260246000fd5b602002602001015160001415620003165760405163572d773160e11b815260040160405180910390fd5b80620003228162000584565b91505062000264565b506200033a600260006200051f565b60005b84518110156200046a5760006001600160a01b03168582815181106200037357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03161415620003a45760405163f8cc3de360e01b815260040160405180910390fd5b60026040518060400160405280878481518110620003d257634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031681526020018684815181106200040957634e487b7160e01b600052603260045260246000fd5b602090810291909101810151909152825460018082018555600094855293829020835160029092020180546001600160a01b0319166001600160a01b0390921691909117815591015191015580620004618162000584565b9150506200033d565b5050505050565b828054828255906000526020600020908101928215620004c9579160200282015b82811115620004c957825182546001600160a01b0319166001600160a01b0390911617825560209092019160019091019062000492565b50620004d792915062000545565b5090565b828054828255906000526020600020908101928215620004c9579160200282015b82811115620004c9578251829061ffff16905591602001919060010190620004fc565b50805460008255600202906000526020600020908101906200054291906200055c565b50565b5b80821115620004d7576000815560010162000546565b5b80821115620004d75780546001600160a01b0319168155600060018201556002016200055d565b6000600019821415620005a557634e487b7160e01b81526011600452602481fd5b5060010190565b610de480620005bc6000396000f3fe60806040526004361061007f5760003560e01c8063a0ef91df1161004e578063a0ef91df14610120578063c7e42b1b14610135578063efeb5e5814610155578063f2fde38b1461019457600080fd5b8063065dc4c11461008b578063715018a6146100ad5780638d623781146100c25780638da5cb5b146100f857600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b32565b6101b4565b005b3480156100b957600080fd5b506100ab610428565b3480156100ce57600080fd5b506100e26100dd366004610c15565b61045e565b6040516100ef9190610c45565b60405180910390f35b34801561010457600080fd5b506000546040516001600160a01b0390911681526020016100ef565b34801561012c57600080fd5b506100ab61055b565b34801561014157600080fd5b506100ab610150366004610b0f565b6106ef565b34801561016157600080fd5b50610175610170366004610c15565b610937565b604080516001600160a01b0390931683526020830191909152016100ef565b3480156101a057600080fd5b506100ab6101af366004610b0f565b61096f565b6000546001600160a01b031633146101e75760405162461bcd60e51b81526004016101de90610c89565b60405180910390fd5b8181805182511461020b5760405163512509d360e11b815260040160405180910390fd5b815161022a5760405163a763b50160e01b815260040160405180910390fd5b60005b82518110156102ec5760006001600160a01b031683828151811061026157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561029157604051631e2add6160e21b815260040160405180910390fd5b8181815181106102b157634e487b7160e01b600052603260045260246000fd5b6020026020010151600014156102da5760405163572d773160e11b815260040160405180910390fd5b806102e481610d52565b91505061022d565b506102f960026000610a5a565b60005b84518110156104215760006001600160a01b031685828151811061033057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156103605760405163f8cc3de360e01b815260040160405180910390fd5b6002604051806040016040528087848151811061038d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031681526020018684815181106103c357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151909152825460018082018555600094855293829020835160029092020180546001600160a01b0319166001600160a01b039092169190911781559101519101558061041981610d52565b9150506102fc565b5050505050565b6000546001600160a01b031633146104525760405162461bcd60e51b81526004016101de90610c89565b61045c6000610a0a565b565b60025460609060009067ffffffffffffffff81111561048d57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156104b6578160200160208202803683370190505b50905060005b600254811015610554576000612710600283815481106104ec57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010154866105099190610d33565b6105139190610d13565b90508083838151811061053657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152508061054c81610d52565b9150506104bc565b5092915050565b600260015414156105ae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101de565b600260015547806105d25760405163334ab3f560e11b815260040160405180910390fd5b60006105dd8261045e565b905060005b6002548110156106e6576002818154811061060d57634e487b7160e01b600052603260045260246000fd5b600091825260209091206002909102015482516001600160a01b03909116906108fc9084908490811061065057634e487b7160e01b600052603260045260246000fd5b60200260200101519081150290604051600060405180830381858888f193505050506106d457806002828154811061069857634e487b7160e01b600052603260045260246000fd5b6000918252602090912060029091020154604051634dc511bf60e11b815260048101929092526001600160a01b031660248201526044016101de565b806106de81610d52565b9150506105e2565b50506001805550565b600260015414156107425760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101de565b60026001556040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561078957600080fd5b505afa15801561079d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c19190610c2d565b9050806107e15760405163334ab3f560e11b815260040160405180910390fd5b60006107ec8261045e565b905060005b60025481101561092d57836001600160a01b031663a9059cbb6002838154811061082b57634e487b7160e01b600052603260045260246000fd5b600091825260209091206002909102015484516001600160a01b039091169085908590811061086a57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b81526004016108a39291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f59190610bf5565b61091b57806002828154811061069857634e487b7160e01b600052603260045260246000fd5b8061092581610d52565b9150506107f1565b5050600180555050565b6002818154811061094757600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000546001600160a01b031633146109995760405162461bcd60e51b81526004016101de90610c89565b6001600160a01b0381166109fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101de565b610a0781610a0a565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5080546000825560020290600052602060002090810190610a0791905b80821115610a9c5780546001600160a01b031916815560006001820155600201610a77565b5090565b600082601f830112610ab0578081fd5b81356020610ac5610ac083610cef565b610cbe565b80838252828201915082860187848660051b8901011115610ae4578586fd5b855b85811015610b0257813584529284019290840190600101610ae6565b5090979650505050505050565b600060208284031215610b20578081fd5b8135610b2b81610d99565b9392505050565b60008060408385031215610b44578081fd5b823567ffffffffffffffff80821115610b5b578283fd5b818501915085601f830112610b6e578283fd5b81356020610b7e610ac083610cef565b8083825282820191508286018a848660051b8901011115610b9d578788fd5b8796505b84871015610bc8578035610bb481610d99565b835260019690960195918301918301610ba1565b5096505086013592505080821115610bde578283fd5b50610beb85828601610aa0565b9150509250929050565b600060208284031215610c06578081fd5b81518015158114610b2b578182fd5b600060208284031215610c26578081fd5b5035919050565b600060208284031215610c3e578081fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b81811015610c7d57835183529284019291840191600101610c61565b50909695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715610ce757610ce7610d83565b604052919050565b600067ffffffffffffffff821115610d0957610d09610d83565b5060051b60200190565b600082610d2e57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610d4d57610d4d610d6d565b500290565b6000600019821415610d6657610d66610d6d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a0757600080fdfea26469706673582212208bd8254d861bde0bc92fca6df1dbe2a9ef4ee3a6b931719f46851f7c9851590864736f6c63430008040033
Deployed Bytecode
0x60806040526004361061007f5760003560e01c8063a0ef91df1161004e578063a0ef91df14610120578063c7e42b1b14610135578063efeb5e5814610155578063f2fde38b1461019457600080fd5b8063065dc4c11461008b578063715018a6146100ad5780638d623781146100c25780638da5cb5b146100f857600080fd5b3661008657005b600080fd5b34801561009757600080fd5b506100ab6100a6366004610b32565b6101b4565b005b3480156100b957600080fd5b506100ab610428565b3480156100ce57600080fd5b506100e26100dd366004610c15565b61045e565b6040516100ef9190610c45565b60405180910390f35b34801561010457600080fd5b506000546040516001600160a01b0390911681526020016100ef565b34801561012c57600080fd5b506100ab61055b565b34801561014157600080fd5b506100ab610150366004610b0f565b6106ef565b34801561016157600080fd5b50610175610170366004610c15565b610937565b604080516001600160a01b0390931683526020830191909152016100ef565b3480156101a057600080fd5b506100ab6101af366004610b0f565b61096f565b6000546001600160a01b031633146101e75760405162461bcd60e51b81526004016101de90610c89565b60405180910390fd5b8181805182511461020b5760405163512509d360e11b815260040160405180910390fd5b815161022a5760405163a763b50160e01b815260040160405180910390fd5b60005b82518110156102ec5760006001600160a01b031683828151811061026157634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b0316141561029157604051631e2add6160e21b815260040160405180910390fd5b8181815181106102b157634e487b7160e01b600052603260045260246000fd5b6020026020010151600014156102da5760405163572d773160e11b815260040160405180910390fd5b806102e481610d52565b91505061022d565b506102f960026000610a5a565b60005b84518110156104215760006001600160a01b031685828151811061033057634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031614156103605760405163f8cc3de360e01b815260040160405180910390fd5b6002604051806040016040528087848151811061038d57634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b031681526020018684815181106103c357634e487b7160e01b600052603260045260246000fd5b602090810291909101810151909152825460018082018555600094855293829020835160029092020180546001600160a01b0319166001600160a01b039092169190911781559101519101558061041981610d52565b9150506102fc565b5050505050565b6000546001600160a01b031633146104525760405162461bcd60e51b81526004016101de90610c89565b61045c6000610a0a565b565b60025460609060009067ffffffffffffffff81111561048d57634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156104b6578160200160208202803683370190505b50905060005b600254811015610554576000612710600283815481106104ec57634e487b7160e01b600052603260045260246000fd5b906000526020600020906002020160010154866105099190610d33565b6105139190610d13565b90508083838151811061053657634e487b7160e01b600052603260045260246000fd5b6020908102919091010152508061054c81610d52565b9150506104bc565b5092915050565b600260015414156105ae5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101de565b600260015547806105d25760405163334ab3f560e11b815260040160405180910390fd5b60006105dd8261045e565b905060005b6002548110156106e6576002818154811061060d57634e487b7160e01b600052603260045260246000fd5b600091825260209091206002909102015482516001600160a01b03909116906108fc9084908490811061065057634e487b7160e01b600052603260045260246000fd5b60200260200101519081150290604051600060405180830381858888f193505050506106d457806002828154811061069857634e487b7160e01b600052603260045260246000fd5b6000918252602090912060029091020154604051634dc511bf60e11b815260048101929092526001600160a01b031660248201526044016101de565b806106de81610d52565b9150506105e2565b50506001805550565b600260015414156107425760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016101de565b60026001556040516370a0823160e01b81523060048201526000906001600160a01b038316906370a082319060240160206040518083038186803b15801561078957600080fd5b505afa15801561079d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107c19190610c2d565b9050806107e15760405163334ab3f560e11b815260040160405180910390fd5b60006107ec8261045e565b905060005b60025481101561092d57836001600160a01b031663a9059cbb6002838154811061082b57634e487b7160e01b600052603260045260246000fd5b600091825260209091206002909102015484516001600160a01b039091169085908590811061086a57634e487b7160e01b600052603260045260246000fd5b60200260200101516040518363ffffffff1660e01b81526004016108a39291906001600160a01b03929092168252602082015260400190565b602060405180830381600087803b1580156108bd57600080fd5b505af11580156108d1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108f59190610bf5565b61091b57806002828154811061069857634e487b7160e01b600052603260045260246000fd5b8061092581610d52565b9150506107f1565b5050600180555050565b6002818154811061094757600080fd5b6000918252602090912060029091020180546001909101546001600160a01b03909116915082565b6000546001600160a01b031633146109995760405162461bcd60e51b81526004016101de90610c89565b6001600160a01b0381166109fe5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016101de565b610a0781610a0a565b50565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5080546000825560020290600052602060002090810190610a0791905b80821115610a9c5780546001600160a01b031916815560006001820155600201610a77565b5090565b600082601f830112610ab0578081fd5b81356020610ac5610ac083610cef565b610cbe565b80838252828201915082860187848660051b8901011115610ae4578586fd5b855b85811015610b0257813584529284019290840190600101610ae6565b5090979650505050505050565b600060208284031215610b20578081fd5b8135610b2b81610d99565b9392505050565b60008060408385031215610b44578081fd5b823567ffffffffffffffff80821115610b5b578283fd5b818501915085601f830112610b6e578283fd5b81356020610b7e610ac083610cef565b8083825282820191508286018a848660051b8901011115610b9d578788fd5b8796505b84871015610bc8578035610bb481610d99565b835260019690960195918301918301610ba1565b5096505086013592505080821115610bde578283fd5b50610beb85828601610aa0565b9150509250929050565b600060208284031215610c06578081fd5b81518015158114610b2b578182fd5b600060208284031215610c26578081fd5b5035919050565b600060208284031215610c3e578081fd5b5051919050565b6020808252825182820181905260009190848201906040850190845b81811015610c7d57835183529284019291840191600101610c61565b50909695505050505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b604051601f8201601f1916810167ffffffffffffffff81118282101715610ce757610ce7610d83565b604052919050565b600067ffffffffffffffff821115610d0957610d09610d83565b5060051b60200190565b600082610d2e57634e487b7160e01b81526012600452602481fd5b500490565b6000816000190483118215151615610d4d57610d4d610d6d565b500290565b6000600019821415610d6657610d66610d6d565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610a0757600080fdfea26469706673582212208bd8254d861bde0bc92fca6df1dbe2a9ef4ee3a6b931719f46851f7c9851590864736f6c63430008040033
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.