ETH Price: $3,064.68 (-2.55%)
Gas: 0.24 GWei

Contract

0x5c2814b6b98513cB9A14278A6B762C1D9b86077c

Overview

ETH Balance

Scroll LogoScroll LogoScroll Logo0 ETH

ETH Value

$0.00

Token Holdings

Multichain Info

1 address found via
Transaction Hash
Method
Block
From
To
Value
Deposit Tokens T...48076342024-04-13 5:30:4990 days ago1712986249IN
0x5c2814b6...D9b86077c
0 ETH0.000115180.83884944
Deposit Tokens T...14009842023-12-07 22:08:52217 days ago1701986932IN
0x5c2814b6...D9b86077c
0 ETH0.000389570.4
Deposit Tokens T...13425642023-12-05 17:51:35219 days ago1701798695IN
0x5c2814b6...D9b86077c
0 ETH0.000456340.4
Deposit Tokens T...13421542023-12-05 17:28:16219 days ago1701797296IN
0x5c2814b6...D9b86077c
0 ETH0.000445250.4
Withdraw For Bur...12155662023-11-30 21:39:10224 days ago1701380350IN
0x5c2814b6...D9b86077c
0 ETH0.000299530.4
Deposit Tokens T...12083862023-11-30 14:43:39224 days ago1701355419IN
0x5c2814b6...D9b86077c
0 ETH0.000416290.4
Deposit Tokens T...12067202023-11-30 13:15:52224 days ago1701350152IN
0x5c2814b6...D9b86077c
0 ETH0.000203980.4
Deposit Tokens T...12063822023-11-30 12:58:47224 days ago1701349127IN
0x5c2814b6...D9b86077c
0 ETH0.000201450.4
Deposit Tokens T...12061772023-11-30 12:48:29224 days ago1701348509IN
0x5c2814b6...D9b86077c
0 ETH0.00018520.4
Deposit Tokens T...12059732023-11-30 12:38:08224 days ago1701347888IN
0x5c2814b6...D9b86077c
0 ETH0.00020410.4
Deposit Tokens T...12058922023-11-30 12:34:02224 days ago1701347642IN
0x5c2814b6...D9b86077c
0 ETH0.000181230.4
Deposit Tokens T...12050962023-11-30 11:53:43224 days ago1701345223IN
0x5c2814b6...D9b86077c
0 ETH0.00020180.4
Deposit Tokens T...12049422023-11-30 11:46:01224 days ago1701344761IN
0x5c2814b6...D9b86077c
0 ETH0.000203810.4
Deposit Tokens T...12046632023-11-30 11:31:32224 days ago1701343892IN
0x5c2814b6...D9b86077c
0 ETH0.00016380.4
Deposit Tokens T...12044832023-11-30 11:22:28224 days ago1701343348IN
0x5c2814b6...D9b86077c
0 ETH0.000157980.4
Deposit Tokens T...12043842023-11-30 11:17:29224 days ago1701343049IN
0x5c2814b6...D9b86077c
0 ETH0.000186870.4
Deposit Tokens T...12042812023-11-30 11:12:20224 days ago1701342740IN
0x5c2814b6...D9b86077c
0 ETH0.000156650.4
Deposit Tokens T...12040092023-11-30 10:58:42224 days ago1701341922IN
0x5c2814b6...D9b86077c
0 ETH0.000159790.4
Deposit Tokens T...12037802023-11-30 10:47:11224 days ago1701341231IN
0x5c2814b6...D9b86077c
0 ETH0.000160310.4
Deposit Tokens T...12036922023-11-30 10:42:44224 days ago1701340964IN
0x5c2814b6...D9b86077c
0 ETH0.00015840.4
Deposit Tokens T...12035602023-11-30 10:36:05224 days ago1701340565IN
0x5c2814b6...D9b86077c
0 ETH0.000160180.4
Deposit Tokens T...12033732023-11-30 10:26:41224 days ago1701340001IN
0x5c2814b6...D9b86077c
0 ETH0.000160980.4
Deposit Tokens T...12032082023-11-30 10:18:23224 days ago1701339503IN
0x5c2814b6...D9b86077c
0 ETH0.000157520.4
Deposit Tokens T...12024382023-11-30 9:39:26225 days ago1701337166IN
0x5c2814b6...D9b86077c
0 ETH0.000183080.4
Deposit Tokens T...12022282023-11-30 9:28:52225 days ago1701336532IN
0x5c2814b6...D9b86077c
0 ETH0.000166350.4
View all transactions

Parent Transaction Hash Block From To Value
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
BurningVault

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
london EvmVersion
File 1 of 2 : BurningVault.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

contract BurningVault {
    address public admin;
    IERC20 public token;

    mapping(address => uint256) public deposits;

    event Deposited(address indexed user, uint256 amount);
    event WithdrawForBurning(uint256 amount);

    constructor(address _tokenAddress) {
        admin = msg.sender;
        token = IERC20(_tokenAddress);
    }

    modifier onlyAdmin() {
        require(msg.sender == admin, "Only admin can call this function.");
        _;
    }

    function depositTokensToBurn(uint256 amount) external {
        require(token.transferFrom(msg.sender, address(this), amount), "Transfer failed.");

        deposits[msg.sender] += amount;
        emit Deposited(msg.sender, amount);
    }

    function withdrawForBurning() external onlyAdmin {
        uint256 contractBalance = token.balanceOf(address(this));
        require(token.transfer(msg.sender, contractBalance), "Transfer to burn address failed.");
        emit WithdrawForBurning(contractBalance);
    }
}

File 2 of 2 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.9.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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_tokenAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Deposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"WithdrawForBurning","type":"event"},{"inputs":[],"name":"admin","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"depositTokensToBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"deposits","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"token","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawForBurning","outputs":[],"stateMutability":"nonpayable","type":"function"}]

608060405234801561001057600080fd5b5060405161057d38038061057d83398101604081905261002f91610062565b60008054336001600160a01b031991821617909155600180549091166001600160a01b0392909216919091179055610092565b60006020828403121561007457600080fd5b81516001600160a01b038116811461008b57600080fd5b9392505050565b6104dc806100a16000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c806303d4f6d41461005c578063c4ba60e314610066578063f851a44014610079578063fc0c546a146100a9578063fc7e286d146100bc575b600080fd5b6100646100ea565b005b6100646100743660046103fc565b6102d7565b60005461008c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b60015461008c906001600160a01b031681565b6100dc6100ca366004610415565b60026020526000908152604090205481565b6040519081526020016100a0565b6000546001600160a01b031633146101545760405162461bcd60e51b815260206004820152602260248201527f4f6e6c792061646d696e2063616e2063616c6c20746869732066756e6374696f604482015261371760f11b60648201526084015b60405180910390fd5b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561019857600080fd5b505afa1580156101ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d09190610445565b60015460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561021d57600080fd5b505af1158015610231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610255919061045e565b6102a15760405162461bcd60e51b815260206004820181905260248201527f5472616e7366657220746f206275726e2061646472657373206661696c65642e604482015260640161014b565b6040518181527f77ab6deae7cf41af54b3ea81f30cca62ac822d1fff4b0cc6ac2baad3962893249060200160405180910390a150565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561032957600080fd5b505af115801561033d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610361919061045e565b6103a05760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161014b565b33600090815260026020526040812080548392906103bf908490610480565b909155505060405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49060200160405180910390a250565b60006020828403121561040e57600080fd5b5035919050565b60006020828403121561042757600080fd5b81356001600160a01b038116811461043e57600080fd5b9392505050565b60006020828403121561045757600080fd5b5051919050565b60006020828403121561047057600080fd5b8151801515811461043e57600080fd5b600082198211156104a157634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212200e71e9da242dd3acfdeadad8d3cf11cc4397ba29e08ab7a739dceb2ce9e931a164736f6c63430008090033000000000000000000000000580e933d90091b9ce380740e3a4a39c67eb85b4c

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100575760003560e01c806303d4f6d41461005c578063c4ba60e314610066578063f851a44014610079578063fc0c546a146100a9578063fc7e286d146100bc575b600080fd5b6100646100ea565b005b6100646100743660046103fc565b6102d7565b60005461008c906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b60015461008c906001600160a01b031681565b6100dc6100ca366004610415565b60026020526000908152604090205481565b6040519081526020016100a0565b6000546001600160a01b031633146101545760405162461bcd60e51b815260206004820152602260248201527f4f6e6c792061646d696e2063616e2063616c6c20746869732066756e6374696f604482015261371760f11b60648201526084015b60405180910390fd5b6001546040516370a0823160e01b81523060048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561019857600080fd5b505afa1580156101ac573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d09190610445565b60015460405163a9059cbb60e01b8152336004820152602481018390529192506001600160a01b03169063a9059cbb90604401602060405180830381600087803b15801561021d57600080fd5b505af1158015610231573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610255919061045e565b6102a15760405162461bcd60e51b815260206004820181905260248201527f5472616e7366657220746f206275726e2061646472657373206661696c65642e604482015260640161014b565b6040518181527f77ab6deae7cf41af54b3ea81f30cca62ac822d1fff4b0cc6ac2baad3962893249060200160405180910390a150565b6001546040516323b872dd60e01b8152336004820152306024820152604481018390526001600160a01b03909116906323b872dd90606401602060405180830381600087803b15801561032957600080fd5b505af115801561033d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610361919061045e565b6103a05760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161014b565b33600090815260026020526040812080548392906103bf908490610480565b909155505060405181815233907f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c49060200160405180910390a250565b60006020828403121561040e57600080fd5b5035919050565b60006020828403121561042757600080fd5b81356001600160a01b038116811461043e57600080fd5b9392505050565b60006020828403121561045757600080fd5b5051919050565b60006020828403121561047057600080fd5b8151801515811461043e57600080fd5b600082198211156104a157634e487b7160e01b600052601160045260246000fd5b50019056fea26469706673582212200e71e9da242dd3acfdeadad8d3cf11cc4397ba29e08ab7a739dceb2ce9e931a164736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000580e933d90091b9ce380740e3a4a39c67eb85b4c

-----Decoded View---------------
Arg [0] : _tokenAddress (address): 0x580E933D90091b9cE380740E3a4A39c67eB85B4c

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000580e933d90091b9ce380740e3a4a39c67eb85b4c


Block Transaction Gas Used Reward
view all blocks sequenced

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
[ 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.