More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 50 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Set Owner | 18702944 | 275 days ago | IN | 0 ETH | 0.0008222 | ||||
Transfer | 18285059 | 333 days ago | IN | 0 ETH | 0.00066975 | ||||
Withdraw | 17849832 | 394 days ago | IN | 0 ETH | 0.00055662 | ||||
Transfer | 17549710 | 436 days ago | IN | 0 ETH | 0.00059574 | ||||
Transfer | 17339901 | 466 days ago | IN | 0.00082382 ETH | 0.00056018 | ||||
Transfer | 17227339 | 482 days ago | IN | 0 ETH | 0.00254818 | ||||
Set Token | 17227338 | 482 days ago | IN | 0 ETH | 0.00176315 | ||||
Emergency Withdr... | 17227320 | 482 days ago | IN | 0 ETH | 0.00222609 | ||||
Transfer | 17181849 | 488 days ago | IN | 0.012 ETH | 0.00190994 | ||||
Transfer | 17107885 | 498 days ago | IN | 0.005 ETH | 0.00082531 | ||||
Transfer | 17080637 | 502 days ago | IN | 0.06364638 ETH | 0.00147667 | ||||
Transfer | 17077643 | 503 days ago | IN | 0.00987793 ETH | 0.00089922 | ||||
Transfer | 17004176 | 513 days ago | IN | 0.05 ETH | 0.00045011 | ||||
Transfer | 16958895 | 520 days ago | IN | 0.02294643 ETH | 0.00040046 | ||||
Transfer | 16883976 | 530 days ago | IN | 0.01 ETH | 0.00082682 | ||||
Transfer | 16867593 | 532 days ago | IN | 0 ETH | 0.00027777 | ||||
Transfer | 16861822 | 533 days ago | IN | 0.03207504 ETH | 0.00034165 | ||||
Transfer | 16851563 | 535 days ago | IN | 0.05 ETH | 0.00039264 | ||||
Transfer | 16846395 | 535 days ago | IN | 0.01428551 ETH | 0.0003647 | ||||
Transfer | 16846392 | 535 days ago | IN | 0.01955343 ETH | 0.00035338 | ||||
Transfer | 16818981 | 539 days ago | IN | 0.03 ETH | 0.00038267 | ||||
Transfer | 16742185 | 550 days ago | IN | 0.0260613 ETH | 0.00106234 | ||||
Transfer | 16727602 | 552 days ago | IN | 0.00061 ETH | 0.00058664 | ||||
Transfer | 16704289 | 555 days ago | IN | 0 ETH | 0.00046713 | ||||
Transfer | 16681367 | 559 days ago | IN | 0.01 ETH | 0.00068825 |
Loading...
Loading
Contract Name:
TwitFiDeposit
Compiler Version
v0.8.17+commit.8df45f5f
Optimization Enabled:
Yes with 150 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; contract TwitFiDeposit { address public _owner; IERC20 public _twitfi; constructor(IERC20 _token) { _owner = msg.sender; _twitfi = _token; } function setToken(IERC20 _token) public onlyOwner { _twitfi = _token; } function setOwner(address _newOwner) public onlyOwner { _owner = _newOwner; } function transfer(address _to, uint _amount) public onlyOwner { require(_twitfi.balanceOf(address(this)) >= _amount, "INSUFFICIENT_BALANCE"); _twitfi.transfer(_to, _amount); } function withdraw() public onlyOwner { uint amount = address(this).balance; require(amount > 0, "Insufficient balance"); (bool success, ) = payable(_owner).call { value: amount }(""); require(success, "Failed to send Matic"); } function emergencyWithdraw() external onlyOwner { _twitfi.transfer(_owner, _twitfi.balanceOf(address(this))); } modifier onlyOwner { require(msg.sender == _owner, "UNAUTHORIZED"); _; } receive() payable external {} }
// 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); }
{ "optimizer": { "enabled": true, "runs": 150 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"_owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_twitfi","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"emergencyWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_newOwner","type":"address"}],"name":"setOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20","name":"_token","type":"address"}],"name":"setToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5060405161070f38038061070f83398101604081905261002f91610062565b60008054336001600160a01b031991821617909155600180549091166001600160a01b0392909216919091179055610092565b60006020828403121561007457600080fd5b81516001600160a01b038116811461008b57600080fd5b9392505050565b61066e806100a16000396000f3fe6080604052600436106100645760003560e01c806313af403514610070578063144fa6d7146100925780633ccfd60b146100b2578063a9059cbb146100c7578063ad267675146100e7578063b2bdfa7b14610123578063db2e21bc1461014357600080fd5b3661006b57005b600080fd5b34801561007c57600080fd5b5061009061008b366004610587565b610158565b005b34801561009e57600080fd5b506100906100ad366004610587565b6101ad565b3480156100be57600080fd5b506100906101f9565b3480156100d357600080fd5b506100906100e23660046105ab565b610306565b3480156100f357600080fd5b50600154610107906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b34801561012f57600080fd5b50600054610107906001600160a01b031681565b34801561014f57600080fd5b5061009061045d565b6000546001600160a01b0316331461018b5760405162461bcd60e51b8152600401610182906105d7565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146101d75760405162461bcd60e51b8152600401610182906105d7565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102235760405162461bcd60e51b8152600401610182906105d7565b47806102685760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610182565b600080546040516001600160a01b039091169083908381818185875af1925050503d80600081146102b5576040519150601f19603f3d011682016040523d82523d6000602084013e6102ba565b606091505b50509050806103025760405162461bcd60e51b81526020600482015260146024820152734661696c656420746f2073656e64204d6174696360601b6044820152606401610182565b5050565b6000546001600160a01b031633146103305760405162461bcd60e51b8152600401610182906105d7565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610378573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039c91906105fd565b10156103e15760405162461bcd60e51b8152602060048201526014602482015273494e53554646494349454e545f42414c414e434560601b6044820152606401610182565b60015460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610434573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104589190610616565b505050565b6000546001600160a01b031633146104875760405162461bcd60e51b8152600401610182906105d7565b6001546000546040516370a0823160e01b81523060048201526001600160a01b039283169263a9059cbb92169083906370a0823190602401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050091906105fd565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561054b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056f9190610616565b50565b6001600160a01b038116811461056f57600080fd5b60006020828403121561059957600080fd5b81356105a481610572565b9392505050565b600080604083850312156105be57600080fd5b82356105c981610572565b946020939093013593505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b60006020828403121561060f57600080fd5b5051919050565b60006020828403121561062857600080fd5b815180151581146105a457600080fdfea2646970667358221220c9b516e8c4424d2a4555a6731be4239cc2b8adf0f8477bd4e26aa1c6dae09ed964736f6c634300081100330000000000000000000000003a9cf14a7ade7544645ca49a88f7a20623ba0442
Deployed Bytecode
0x6080604052600436106100645760003560e01c806313af403514610070578063144fa6d7146100925780633ccfd60b146100b2578063a9059cbb146100c7578063ad267675146100e7578063b2bdfa7b14610123578063db2e21bc1461014357600080fd5b3661006b57005b600080fd5b34801561007c57600080fd5b5061009061008b366004610587565b610158565b005b34801561009e57600080fd5b506100906100ad366004610587565b6101ad565b3480156100be57600080fd5b506100906101f9565b3480156100d357600080fd5b506100906100e23660046105ab565b610306565b3480156100f357600080fd5b50600154610107906001600160a01b031681565b6040516001600160a01b03909116815260200160405180910390f35b34801561012f57600080fd5b50600054610107906001600160a01b031681565b34801561014f57600080fd5b5061009061045d565b6000546001600160a01b0316331461018b5760405162461bcd60e51b8152600401610182906105d7565b60405180910390fd5b600080546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146101d75760405162461bcd60e51b8152600401610182906105d7565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146102235760405162461bcd60e51b8152600401610182906105d7565b47806102685760405162461bcd60e51b8152602060048201526014602482015273496e73756666696369656e742062616c616e636560601b6044820152606401610182565b600080546040516001600160a01b039091169083908381818185875af1925050503d80600081146102b5576040519150601f19603f3d011682016040523d82523d6000602084013e6102ba565b606091505b50509050806103025760405162461bcd60e51b81526020600482015260146024820152734661696c656420746f2073656e64204d6174696360601b6044820152606401610182565b5050565b6000546001600160a01b031633146103305760405162461bcd60e51b8152600401610182906105d7565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015610378573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061039c91906105fd565b10156103e15760405162461bcd60e51b8152602060048201526014602482015273494e53554646494349454e545f42414c414e434560601b6044820152606401610182565b60015460405163a9059cbb60e01b81526001600160a01b038481166004830152602482018490529091169063a9059cbb906044016020604051808303816000875af1158015610434573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104589190610616565b505050565b6000546001600160a01b031633146104875760405162461bcd60e51b8152600401610182906105d7565b6001546000546040516370a0823160e01b81523060048201526001600160a01b039283169263a9059cbb92169083906370a0823190602401602060405180830381865afa1580156104dc573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061050091906105fd565b6040516001600160e01b031960e085901b1681526001600160a01b03909216600483015260248201526044016020604051808303816000875af115801561054b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061056f9190610616565b50565b6001600160a01b038116811461056f57600080fd5b60006020828403121561059957600080fd5b81356105a481610572565b9392505050565b600080604083850312156105be57600080fd5b82356105c981610572565b946020939093013593505050565b6020808252600c908201526b15539055551213d49256915160a21b604082015260600190565b60006020828403121561060f57600080fd5b5051919050565b60006020828403121561062857600080fd5b815180151581146105a457600080fdfea2646970667358221220c9b516e8c4424d2a4555a6731be4239cc2b8adf0f8477bd4e26aa1c6dae09ed964736f6c63430008110033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
0000000000000000000000003a9cf14a7ade7544645ca49a88f7a20623ba0442
-----Decoded View---------------
Arg [0] : _token (address): 0x3A9CF14A7aDE7544645cA49A88F7a20623bA0442
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 0000000000000000000000003a9cf14a7ade7544645ca49a88f7a20623ba0442
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.