More Info
Private Name Tags
ContractCreator
Latest 1 internal transaction
Advanced mode:
Parent Transaction Hash | Block |
From
|
To
|
|||
---|---|---|---|---|---|---|
20031109 | 208 days ago | 15.00123427 ETH |
Loading...
Loading
Contract Name:
ETH_BANK
Compiler Version
v0.7.6+commit.7338295f
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2024-05-06 */ // SPDX-License-Identifier: MIT pragma solidity 0.7.6; contract ETH_BANK { function Deposit(uint _unlockTime) public payable { Holder storage acc = Accounts[msg.sender]; acc.balance += msg.value; acc.unlockTime = _unlockTime > block.timestamp ? _unlockTime : block.timestamp; LogFile.AddMessage(msg.sender, msg.value, "Put"); } function Collect(uint _am) public payable { Holder storage acc = Accounts[msg.sender]; if (acc.balance > MinSum && acc.balance >= _am && block.timestamp > acc.unlockTime) { (bool success, ) = msg.sender.call{value: _am}(""); if (success) { acc.balance -= _am; LogFile.AddMessage(msg.sender, _am, "Collect"); } } } struct Holder { uint unlockTime; uint balance; } mapping(address => Holder) public Accounts; Log LogFile; uint public MinSum = 1 ether; constructor(address log) { LogFile = Log(log); } fallback() external payable { Deposit(0); } receive() external payable { Deposit(0); } } contract Log { event Message(address indexed Sender, string Data, uint Val, uint Time); function AddMessage(address _adr, uint _val, string memory _data) external { emit Message(_adr, _data, _val, block.timestamp); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"log","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"stateMutability":"payable","type":"fallback"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"Accounts","outputs":[{"internalType":"uint256","name":"unlockTime","type":"uint256"},{"internalType":"uint256","name":"balance","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_am","type":"uint256"}],"name":"Collect","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_unlockTime","type":"uint256"}],"name":"Deposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"MinSum","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052670de0b6b3a764000060025534801561001c57600080fd5b506040516103a53803806103a58339818101604052602081101561003f57600080fd5b5051600180546001600160a01b0319166001600160a01b039092169190911790556103368061006f6000396000f3fe6080604052600436106100435760003560e01c80633fe438221461005e5780634d6ce1e51461007b578063c2808d1a14610098578063e203b506146100bf57610054565b3661005457610052600061010b565b005b610052600061010b565b6100526004803603602081101561007457600080fd5b50356101bd565b6100526004803603602081101561009157600080fd5b503561010b565b3480156100a457600080fd5b506100ad6102e1565b60408051918252519081900360200190f35b3480156100cb57600080fd5b506100f2600480360360208110156100e257600080fd5b50356001600160a01b03166102e7565b6040805192835260208301919091528051918290030190f35b336000908152602081905260409020600181018054340190554282116101315742610133565b815b81556001546040805163130bc12960e21b8152336004820152346024820152606060448201526003606482015262141d5d60ea1b608482015290516001600160a01b0390921691634c2f04a49160a48082019260009290919082900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b505050505050565b33600090815260208190526040902060025460018201541180156101e5575081816001015410155b80156101f15750805442115b156102dd57604051600090339084908381818185875af1925050503d8060008114610238576040519150601f19603f3d011682016040523d82523d6000602084013e61023d565b606091505b5050905080156102db57600180830180548590039055546040805163130bc12960e21b81523360048201526024810186905260606044820152600760648201526610dbdb1b1958dd60ca1b608482015290516001600160a01b0390921691634c2f04a49160a48082019260009290919082900301818387803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050505b505b5050565b60025481565b600060208190529081526040902080546001909101548256fea2646970667358221220937b9a75c4b49577887babfe58fe1c55c726513f758220f0560522f6ceeef6f764736f6c6343000706003300000000000000000000000023b0510b4cf1a997eb5dc65c26904b5762b5aa21
Deployed Bytecode
0x6080604052600436106100435760003560e01c80633fe438221461005e5780634d6ce1e51461007b578063c2808d1a14610098578063e203b506146100bf57610054565b3661005457610052600061010b565b005b610052600061010b565b6100526004803603602081101561007457600080fd5b50356101bd565b6100526004803603602081101561009157600080fd5b503561010b565b3480156100a457600080fd5b506100ad6102e1565b60408051918252519081900360200190f35b3480156100cb57600080fd5b506100f2600480360360208110156100e257600080fd5b50356001600160a01b03166102e7565b6040805192835260208301919091528051918290030190f35b336000908152602081905260409020600181018054340190554282116101315742610133565b815b81556001546040805163130bc12960e21b8152336004820152346024820152606060448201526003606482015262141d5d60ea1b608482015290516001600160a01b0390921691634c2f04a49160a48082019260009290919082900301818387803b1580156101a157600080fd5b505af11580156101b5573d6000803e3d6000fd5b505050505050565b33600090815260208190526040902060025460018201541180156101e5575081816001015410155b80156101f15750805442115b156102dd57604051600090339084908381818185875af1925050503d8060008114610238576040519150601f19603f3d011682016040523d82523d6000602084013e61023d565b606091505b5050905080156102db57600180830180548590039055546040805163130bc12960e21b81523360048201526024810186905260606044820152600760648201526610dbdb1b1958dd60ca1b608482015290516001600160a01b0390921691634c2f04a49160a48082019260009290919082900301818387803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050505b505b5050565b60025481565b600060208190529081526040902080546001909101548256fea2646970667358221220937b9a75c4b49577887babfe58fe1c55c726513f758220f0560522f6ceeef6f764736f6c63430007060033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
00000000000000000000000023b0510b4cf1a997eb5dc65c26904b5762b5aa21
-----Decoded View---------------
Arg [0] : log (address): 0x23b0510b4Cf1a997eB5Dc65C26904b5762b5aa21
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000023b0510b4cf1a997eb5dc65c26904b5762b5aa21
Deployed Bytecode Sourcemap
59:1133:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1171:10;1179:1;1171:7;:10::i;:::-;59:1133;;1107:10;1115:1;1107:7;:10::i;385:418::-;;;;;;;;;;;;;;;;-1:-1:-1;385:418:0;;:::i;84:293::-;;;;;;;;;;;;;;;;-1:-1:-1;84:293:0;;:::i;961:28::-;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;890:42;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;890:42:0;-1:-1:-1;;;;;890:42:0;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;84:293;175:10;145:18;166:20;;;;;;;;;;197:11;;;:24;;212:9;197:24;;;263:15;249:29;;:61;;295:15;249:61;;;281:11;249:61;232:78;;321:7;;:48;;;-1:-1:-1;;;321:48:0;;340:10;321:48;;;;352:9;321:48;;;;;;;;;;;;;;-1:-1:-1;;;321:48:0;;;;;;-1:-1:-1;;;;;321:7:0;;;;:18;;:48;;;;;232:14;;321:48;;;;;;;;232:14;321:7;:48;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;84:293;;:::o;385:418::-;468:10;438:18;459:20;;;;;;;;;;508:6;;494:11;;;;:20;:42;;;;;533:3;518;:11;;;:18;;494:42;:78;;;;-1:-1:-1;558:14:0;;540:15;:32;494:78;490:306;;;608:31;;590:12;;608:10;;631:3;;590:12;608:31;590:12;608:31;631:3;608:10;:31;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;589:50;;;658:7;654:131;;;686:11;;;;:18;;;;;;;723:7;:46;;;-1:-1:-1;;;723:46:0;;742:10;723:46;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;723:46:0;;;;;;-1:-1:-1;;;;;723:7:0;;;;:18;;:46;;;;;686:11;;723:46;;;;;;;;686:11;723:7;:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;654:131;490:306;;385:418;;:::o;961:28::-;;;;:::o;890:42::-;;;;;;;;;;;;;;;;;;;;:::o
Swarm Source
ipfs://937b9a75c4b49577887babfe58fe1c55c726513f758220f0560522f6ceeef6f7
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
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.