Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 314 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit Tokens | 20834631 | 58 days ago | IN | 0 ETH | 0.00095127 | ||||
Deposit Tokens | 19598429 | 231 days ago | IN | 0 ETH | 0.00064668 | ||||
Deposit Tokens | 18924230 | 325 days ago | IN | 0 ETH | 0.00101443 | ||||
Deposit Tokens | 18919862 | 326 days ago | IN | 0 ETH | 0.00122505 | ||||
Deposit Tokens | 18907969 | 328 days ago | IN | 0 ETH | 0.00101051 | ||||
Deposit Tokens | 18690342 | 358 days ago | IN | 0 ETH | 0.00213777 | ||||
Deposit Tokens | 18647624 | 364 days ago | IN | 0 ETH | 0.00167119 | ||||
Deposit Tokens | 18624792 | 367 days ago | IN | 0 ETH | 0.0019505 | ||||
Deposit Tokens | 17872847 | 473 days ago | IN | 0 ETH | 0.00171625 | ||||
Deposit Tokens | 17872646 | 473 days ago | IN | 0 ETH | 0.00207143 | ||||
Deposit Tokens | 17872639 | 473 days ago | IN | 0 ETH | 0.00162704 | ||||
Deposit Tokens | 17867344 | 473 days ago | IN | 0 ETH | 0.00094214 | ||||
Deposit Tokens | 17766753 | 487 days ago | IN | 0 ETH | 0.00120886 | ||||
Deposit Tokens | 17766166 | 487 days ago | IN | 0 ETH | 0.00233524 | ||||
Deposit Tokens | 17766142 | 487 days ago | IN | 0 ETH | 0.00211007 | ||||
Deposit Tokens | 17765921 | 487 days ago | IN | 0 ETH | 0.00165269 | ||||
Deposit Tokens | 17765890 | 487 days ago | IN | 0 ETH | 0.00151907 | ||||
Deposit Tokens | 17525411 | 521 days ago | IN | 0 ETH | 0.00088496 | ||||
Deposit Tokens | 17424324 | 535 days ago | IN | 0 ETH | 0.00139875 | ||||
Deposit Tokens | 17284452 | 555 days ago | IN | 0 ETH | 0.0039832 | ||||
Deposit Tokens | 17160837 | 573 days ago | IN | 0 ETH | 0.00379671 | ||||
Deposit Tokens | 17157527 | 573 days ago | IN | 0 ETH | 0.00222384 | ||||
Deposit Tokens | 17156401 | 573 days ago | IN | 0 ETH | 0.00255494 | ||||
Deposit Tokens | 17143439 | 575 days ago | IN | 0 ETH | 0.00203157 | ||||
Deposit Tokens | 17143352 | 575 days ago | IN | 0 ETH | 0.00246802 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Name:
YakuzaDeposit
Compiler Version
v0.8.17+commit.8df45f5f
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.9; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract YakuzaDeposit is Ownable { // Default: Tempura Address address public tokenAddress = 0xe2cBC2cF840F9889Eb51b8BB06d4090b8F8e42Be; // Default: Dead Address address public depositDestination = 0x000000000000000000000000000000000000dEaD; // User Total Tokens Deposited mapping(address => uint) public userTokensDeposited; bool public depositsEnabled = false; function depositTokens(uint _depositAmount) external { IERC20 token = IERC20(tokenAddress); require(depositsEnabled, "Deposits are not currently available"); require(token.balanceOf(msg.sender) > _depositAmount, "You do not have enough tokens to deposit this amount"); token.transferFrom(msg.sender, depositDestination, _depositAmount); userTokensDeposited[msg.sender] += _depositAmount; } function withdrawContractTokens(address _withdrawalToken) public onlyOwner { IERC20 token = IERC20(_withdrawalToken); token.transferFrom(address(this), msg.sender, token.balanceOf(msg.sender)); } function setDepositStatus(bool _value) public onlyOwner { depositsEnabled = _value; } function setTokenAddress(address _address) public onlyOwner { tokenAddress = _address; } function setDestination(address _dest) public onlyOwner { depositDestination = _dest; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the 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); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { 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" ] } } }
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":"depositDestination","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_depositAmount","type":"uint256"}],"name":"depositTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositsEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bool","name":"_value","type":"bool"}],"name":"setDepositStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_dest","type":"address"}],"name":"setDestination","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setTokenAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenAddress","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":"address","name":"","type":"address"}],"name":"userTokensDeposited","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_withdrawalToken","type":"address"}],"name":"withdrawContractTokens","outputs":[],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
6080604052600180546001600160a01b031990811673e2cbc2cf840f9889eb51b8bb06d4090b8f8e42be179091556002805490911661dead1790556004805460ff1916905534801561005057600080fd5b5061005a3361005f565b6100af565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610769806100be6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806375f0dc101161007157806375f0dc10146101495780638da5cb5b146101775780639d76ea5814610188578063dd49756e1461019b578063f2fde38b146101ae578063fd7611c7146101c157600080fd5b80630a0a05e6146100b957806310fa185e146100ce57806326a4e8d2146100fe57806350ea596c146101115780635392fd1c14610124578063715018a614610141575b600080fd5b6100cc6100c7366004610662565b6101d4565b005b6002546100e1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc61010c366004610662565b6101fe565b6100cc61011f3660046106a0565b610228565b6004546101319060ff1681565b60405190151581526020016100f5565b6100cc610243565b610169610157366004610662565b60036020526000908152604090205481565b6040519081526020016100f5565b6000546001600160a01b03166100e1565b6001546100e1906001600160a01b031681565b6100cc6101a93660046106bd565b610257565b6100cc6101bc366004610662565b610443565b6100cc6101cf366004610662565b6104bc565b6101dc6105b8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6102066105b8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6102306105b8565b6004805460ff1916911515919091179055565b61024b6105b8565b6102556000610612565b565b6001546004546001600160a01b039091169060ff166102c95760405162461bcd60e51b8152602060048201526024808201527f4465706f7369747320617265206e6f742063757272656e746c7920617661696c60448201526361626c6560e01b60648201526084015b60405180910390fd5b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa15801561030f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033391906106d6565b1161039d5760405162461bcd60e51b815260206004820152603460248201527f596f7520646f206e6f74206861766520656e6f75676820746f6b656e7320746f6044820152730819195c1bdcda5d081d1a1a5cc8185b5bdd5b9d60621b60648201526084016102c0565b6002546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101849052908216906323b872dd906064016020604051808303816000875af11580156103f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041a91906106ef565b50336000908152600360205260408120805484929061043a90849061070c565b90915550505050565b61044b6105b8565b6001600160a01b0381166104b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c0565b6104b981610612565b50565b6104c46105b8565b6040516370a0823160e01b8152336004820181905282916001600160a01b038316916323b872dd9130919084906370a0823190602401602060405180830381865afa158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b91906106d6565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561058f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b391906106ef565b505050565b6000546001600160a01b031633146102555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561067457600080fd5b81356001600160a01b038116811461068b57600080fd5b9392505050565b80151581146104b957600080fd5b6000602082840312156106b257600080fd5b813561068b81610692565b6000602082840312156106cf57600080fd5b5035919050565b6000602082840312156106e857600080fd5b5051919050565b60006020828403121561070157600080fd5b815161068b81610692565b8082018082111561072d57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220fb314fb3c67689312627c62646dcc73b2b5a37bc6fc50e6820c44f7ddb7fddd264736f6c63430008110033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806375f0dc101161007157806375f0dc10146101495780638da5cb5b146101775780639d76ea5814610188578063dd49756e1461019b578063f2fde38b146101ae578063fd7611c7146101c157600080fd5b80630a0a05e6146100b957806310fa185e146100ce57806326a4e8d2146100fe57806350ea596c146101115780635392fd1c14610124578063715018a614610141575b600080fd5b6100cc6100c7366004610662565b6101d4565b005b6002546100e1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc61010c366004610662565b6101fe565b6100cc61011f3660046106a0565b610228565b6004546101319060ff1681565b60405190151581526020016100f5565b6100cc610243565b610169610157366004610662565b60036020526000908152604090205481565b6040519081526020016100f5565b6000546001600160a01b03166100e1565b6001546100e1906001600160a01b031681565b6100cc6101a93660046106bd565b610257565b6100cc6101bc366004610662565b610443565b6100cc6101cf366004610662565b6104bc565b6101dc6105b8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6102066105b8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6102306105b8565b6004805460ff1916911515919091179055565b61024b6105b8565b6102556000610612565b565b6001546004546001600160a01b039091169060ff166102c95760405162461bcd60e51b8152602060048201526024808201527f4465706f7369747320617265206e6f742063757272656e746c7920617661696c60448201526361626c6560e01b60648201526084015b60405180910390fd5b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa15801561030f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033391906106d6565b1161039d5760405162461bcd60e51b815260206004820152603460248201527f596f7520646f206e6f74206861766520656e6f75676820746f6b656e7320746f6044820152730819195c1bdcda5d081d1a1a5cc8185b5bdd5b9d60621b60648201526084016102c0565b6002546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101849052908216906323b872dd906064016020604051808303816000875af11580156103f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041a91906106ef565b50336000908152600360205260408120805484929061043a90849061070c565b90915550505050565b61044b6105b8565b6001600160a01b0381166104b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c0565b6104b981610612565b50565b6104c46105b8565b6040516370a0823160e01b8152336004820181905282916001600160a01b038316916323b872dd9130919084906370a0823190602401602060405180830381865afa158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b91906106d6565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561058f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b391906106ef565b505050565b6000546001600160a01b031633146102555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561067457600080fd5b81356001600160a01b038116811461068b57600080fd5b9392505050565b80151581146104b957600080fd5b6000602082840312156106b257600080fd5b813561068b81610692565b6000602082840312156106cf57600080fd5b5035919050565b6000602082840312156106e857600080fd5b5051919050565b60006020828403121561070157600080fd5b815161068b81610692565b8082018082111561072d57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220fb314fb3c67689312627c62646dcc73b2b5a37bc6fc50e6820c44f7ddb7fddd264736f6c63430008110033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.