ETH Price: $3,426.42 (+3.19%)
Gas: 9.81 Gwei

Contract

0x9a368683815eA85f0D4EF431123de0D74b9be0EB
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Deposit Tokens208346312024-09-26 11:56:3558 days ago1727351795IN
0x9a368683...74b9be0EB
0 ETH0.0009512714.71598261
Deposit Tokens195984292024-04-06 18:19:23231 days ago1712427563IN
0x9a368683...74b9be0EB
0 ETH0.0006466813.29747603
Deposit Tokens189242302024-01-03 3:42:59325 days ago1704253379IN
0x9a368683...74b9be0EB
0 ETH0.0010144315.69315549
Deposit Tokens189198622024-01-02 13:01:23326 days ago1704200483IN
0x9a368683...74b9be0EB
0 ETH0.0012250518.95130566
Deposit Tokens189079692023-12-31 20:54:35328 days ago1704056075IN
0x9a368683...74b9be0EB
0 ETH0.0010105115.6324219
Deposit Tokens186903422023-12-01 8:21:35358 days ago1701418895IN
0x9a368683...74b9be0EB
0 ETH0.0021377733.07094734
Deposit Tokens186476242023-11-25 8:49:23364 days ago1700902163IN
0x9a368683...74b9be0EB
0 ETH0.0016711925.85785131
Deposit Tokens186247922023-11-22 4:06:11367 days ago1700625971IN
0x9a368683...74b9be0EB
0 ETH0.001950530.17389252
Deposit Tokens178728472023-08-08 21:21:47473 days ago1691529707IN
0x9a368683...74b9be0EB
0 ETH0.0017162526.55508908
Deposit Tokens178726462023-08-08 20:41:11473 days ago1691527271IN
0x9a368683...74b9be0EB
0 ETH0.0020714326.89610223
Deposit Tokens178726392023-08-08 20:39:47473 days ago1691527187IN
0x9a368683...74b9be0EB
0 ETH0.0016270425.17006533
Deposit Tokens178673442023-08-08 2:51:47473 days ago1691463107IN
0x9a368683...74b9be0EB
0 ETH0.0009421414.57750242
Deposit Tokens177667532023-07-25 1:11:35487 days ago1690247495IN
0x9a368683...74b9be0EB
0 ETH0.0012088618.70093841
Deposit Tokens177661662023-07-24 23:13:11487 days ago1690240391IN
0x9a368683...74b9be0EB
0 ETH0.0023352428.57273159
Deposit Tokens177661422023-07-24 23:08:23487 days ago1690240103IN
0x9a368683...74b9be0EB
0 ETH0.0021100732.64253612
Deposit Tokens177659212023-07-24 22:23:59487 days ago1690237439IN
0x9a368683...74b9be0EB
0 ETH0.0016526925.57640675
Deposit Tokens177658902023-07-24 22:17:47487 days ago1690237067IN
0x9a368683...74b9be0EB
0 ETH0.0015190723.50411873
Deposit Tokens175254112023-06-21 3:37:59521 days ago1687318679IN
0x9a368683...74b9be0EB
0 ETH0.0008849613.69030445
Deposit Tokens174243242023-06-06 22:20:47535 days ago1686090047IN
0x9a368683...74b9be0EB
0 ETH0.0013987521.63854618
Deposit Tokens172844522023-05-18 5:46:59555 days ago1684388819IN
0x9a368683...74b9be0EB
0 ETH0.003983240.29867831
Deposit Tokens171608372023-04-30 19:06:59573 days ago1682881619IN
0x9a368683...74b9be0EB
0 ETH0.0037967158.74542277
Deposit Tokens171575272023-04-30 7:58:11573 days ago1682841491IN
0x9a368683...74b9be0EB
0 ETH0.0022238434.40889404
Deposit Tokens171564012023-04-30 4:11:11573 days ago1682827871IN
0x9a368683...74b9be0EB
0 ETH0.0025549439.53183632
Deposit Tokens171434392023-04-28 8:28:59575 days ago1682670539IN
0x9a368683...74b9be0EB
0 ETH0.0020315733.90701826
Deposit Tokens171433522023-04-28 8:11:11575 days ago1682669471IN
0x9a368683...74b9be0EB
0 ETH0.0024680232.04564696
View all transactions

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
YakuzaDeposit

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 4 : yakuzaDeposit.sol
// 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;
    }
}

File 2 of 4 : IERC20.sol
// 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);
}

File 3 of 4 : Ownable.sol
// 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);
    }
}

File 4 of 4 : Context.sol
// 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;
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"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"}]

6080604052600180546001600160a01b031990811673e2cbc2cf840f9889eb51b8bb06d4090b8f8e42be179091556002805490911661dead1790556004805460ff1916905534801561005057600080fd5b5061005a3361005f565b6100af565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610769806100be6000396000f3fe608060405234801561001057600080fd5b50600436106100b45760003560e01c806375f0dc101161007157806375f0dc10146101495780638da5cb5b146101775780639d76ea5814610188578063dd49756e1461019b578063f2fde38b146101ae578063fd7611c7146101c157600080fd5b80630a0a05e6146100b957806310fa185e146100ce57806326a4e8d2146100fe57806350ea596c146101115780635392fd1c14610124578063715018a614610141575b600080fd5b6100cc6100c7366004610662565b6101d4565b005b6002546100e1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc61010c366004610662565b6101fe565b6100cc61011f3660046106a0565b610228565b6004546101319060ff1681565b60405190151581526020016100f5565b6100cc610243565b610169610157366004610662565b60036020526000908152604090205481565b6040519081526020016100f5565b6000546001600160a01b03166100e1565b6001546100e1906001600160a01b031681565b6100cc6101a93660046106bd565b610257565b6100cc6101bc366004610662565b610443565b6100cc6101cf366004610662565b6104bc565b6101dc6105b8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6102066105b8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6102306105b8565b6004805460ff1916911515919091179055565b61024b6105b8565b6102556000610612565b565b6001546004546001600160a01b039091169060ff166102c95760405162461bcd60e51b8152602060048201526024808201527f4465706f7369747320617265206e6f742063757272656e746c7920617661696c60448201526361626c6560e01b60648201526084015b60405180910390fd5b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa15801561030f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033391906106d6565b1161039d5760405162461bcd60e51b815260206004820152603460248201527f596f7520646f206e6f74206861766520656e6f75676820746f6b656e7320746f6044820152730819195c1bdcda5d081d1a1a5cc8185b5bdd5b9d60621b60648201526084016102c0565b6002546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101849052908216906323b872dd906064016020604051808303816000875af11580156103f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041a91906106ef565b50336000908152600360205260408120805484929061043a90849061070c565b90915550505050565b61044b6105b8565b6001600160a01b0381166104b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c0565b6104b981610612565b50565b6104c46105b8565b6040516370a0823160e01b8152336004820181905282916001600160a01b038316916323b872dd9130919084906370a0823190602401602060405180830381865afa158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b91906106d6565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561058f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b391906106ef565b505050565b6000546001600160a01b031633146102555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561067457600080fd5b81356001600160a01b038116811461068b57600080fd5b9392505050565b80151581146104b957600080fd5b6000602082840312156106b257600080fd5b813561068b81610692565b6000602082840312156106cf57600080fd5b5035919050565b6000602082840312156106e857600080fd5b5051919050565b60006020828403121561070157600080fd5b815161068b81610692565b8082018082111561072d57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220fb314fb3c67689312627c62646dcc73b2b5a37bc6fc50e6820c44f7ddb7fddd264736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100b45760003560e01c806375f0dc101161007157806375f0dc10146101495780638da5cb5b146101775780639d76ea5814610188578063dd49756e1461019b578063f2fde38b146101ae578063fd7611c7146101c157600080fd5b80630a0a05e6146100b957806310fa185e146100ce57806326a4e8d2146100fe57806350ea596c146101115780635392fd1c14610124578063715018a614610141575b600080fd5b6100cc6100c7366004610662565b6101d4565b005b6002546100e1906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6100cc61010c366004610662565b6101fe565b6100cc61011f3660046106a0565b610228565b6004546101319060ff1681565b60405190151581526020016100f5565b6100cc610243565b610169610157366004610662565b60036020526000908152604090205481565b6040519081526020016100f5565b6000546001600160a01b03166100e1565b6001546100e1906001600160a01b031681565b6100cc6101a93660046106bd565b610257565b6100cc6101bc366004610662565b610443565b6100cc6101cf366004610662565b6104bc565b6101dc6105b8565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6102066105b8565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6102306105b8565b6004805460ff1916911515919091179055565b61024b6105b8565b6102556000610612565b565b6001546004546001600160a01b039091169060ff166102c95760405162461bcd60e51b8152602060048201526024808201527f4465706f7369747320617265206e6f742063757272656e746c7920617661696c60448201526361626c6560e01b60648201526084015b60405180910390fd5b6040516370a0823160e01b815233600482015282906001600160a01b038316906370a0823190602401602060405180830381865afa15801561030f573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061033391906106d6565b1161039d5760405162461bcd60e51b815260206004820152603460248201527f596f7520646f206e6f74206861766520656e6f75676820746f6b656e7320746f6044820152730819195c1bdcda5d081d1a1a5cc8185b5bdd5b9d60621b60648201526084016102c0565b6002546040516323b872dd60e01b81523360048201526001600160a01b03918216602482015260448101849052908216906323b872dd906064016020604051808303816000875af11580156103f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061041a91906106ef565b50336000908152600360205260408120805484929061043a90849061070c565b90915550505050565b61044b6105b8565b6001600160a01b0381166104b05760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016102c0565b6104b981610612565b50565b6104c46105b8565b6040516370a0823160e01b8152336004820181905282916001600160a01b038316916323b872dd9130919084906370a0823190602401602060405180830381865afa158015610517573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061053b91906106d6565b6040516001600160e01b031960e086901b1681526001600160a01b03938416600482015292909116602483015260448201526064016020604051808303816000875af115801561058f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105b391906106ef565b505050565b6000546001600160a01b031633146102555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016102c0565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006020828403121561067457600080fd5b81356001600160a01b038116811461068b57600080fd5b9392505050565b80151581146104b957600080fd5b6000602082840312156106b257600080fd5b813561068b81610692565b6000602082840312156106cf57600080fd5b5035919050565b6000602082840312156106e857600080fd5b5051919050565b60006020828403121561070157600080fd5b815161068b81610692565b8082018082111561072d57634e487b7160e01b600052601160045260246000fd5b9291505056fea2646970667358221220fb314fb3c67689312627c62646dcc73b2b5a37bc6fc50e6820c44f7ddb7fddd264736f6c63430008110033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.