More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 5,787 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Deposit Tokens T... | 4807634 | 155 days ago | IN | 0 ETH | 0.00011518 | ||||
Deposit Tokens T... | 1400984 | 283 days ago | IN | 0 ETH | 0.00038957 | ||||
Deposit Tokens T... | 1342564 | 285 days ago | IN | 0 ETH | 0.00045634 | ||||
Deposit Tokens T... | 1342154 | 285 days ago | IN | 0 ETH | 0.00044525 | ||||
Withdraw For Bur... | 1215566 | 290 days ago | IN | 0 ETH | 0.00029953 | ||||
Deposit Tokens T... | 1208386 | 290 days ago | IN | 0 ETH | 0.00041629 | ||||
Deposit Tokens T... | 1206720 | 290 days ago | IN | 0 ETH | 0.00020398 | ||||
Deposit Tokens T... | 1206382 | 290 days ago | IN | 0 ETH | 0.00020145 | ||||
Deposit Tokens T... | 1206177 | 290 days ago | IN | 0 ETH | 0.0001852 | ||||
Deposit Tokens T... | 1205973 | 290 days ago | IN | 0 ETH | 0.0002041 | ||||
Deposit Tokens T... | 1205892 | 290 days ago | IN | 0 ETH | 0.00018123 | ||||
Deposit Tokens T... | 1205096 | 290 days ago | IN | 0 ETH | 0.0002018 | ||||
Deposit Tokens T... | 1204942 | 290 days ago | IN | 0 ETH | 0.00020381 | ||||
Deposit Tokens T... | 1204663 | 290 days ago | IN | 0 ETH | 0.0001638 | ||||
Deposit Tokens T... | 1204483 | 290 days ago | IN | 0 ETH | 0.00015798 | ||||
Deposit Tokens T... | 1204384 | 290 days ago | IN | 0 ETH | 0.00018687 | ||||
Deposit Tokens T... | 1204281 | 290 days ago | IN | 0 ETH | 0.00015665 | ||||
Deposit Tokens T... | 1204009 | 290 days ago | IN | 0 ETH | 0.00015979 | ||||
Deposit Tokens T... | 1203780 | 290 days ago | IN | 0 ETH | 0.00016031 | ||||
Deposit Tokens T... | 1203692 | 290 days ago | IN | 0 ETH | 0.0001584 | ||||
Deposit Tokens T... | 1203560 | 290 days ago | IN | 0 ETH | 0.00016018 | ||||
Deposit Tokens T... | 1203373 | 290 days ago | IN | 0 ETH | 0.00016098 | ||||
Deposit Tokens T... | 1203208 | 290 days ago | IN | 0 ETH | 0.00015752 | ||||
Deposit Tokens T... | 1202438 | 290 days ago | IN | 0 ETH | 0.00018308 | ||||
Deposit Tokens T... | 1202228 | 290 days ago | IN | 0 ETH | 0.00016635 |
Loading...
Loading
Contract Name:
BurningVault
Compiler Version
v0.8.9+commit.e5eed63a
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// 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); } }
// 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); }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"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"}]
Contract Creation Code
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
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 27 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
BASE | 100.00% | $0.070243 | 52 | $3.65 |
[ 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.