More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 37 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Withdraw BNB | 18633571 | 418 days ago | IN | 0 ETH | 0.00080788 | ||||
Withdraw BNB | 18633542 | 418 days ago | IN | 0 ETH | 0.00088513 | ||||
Transfer | 18611853 | 421 days ago | IN | 0 ETH | 0.00187011 | ||||
Transfer | 18611835 | 421 days ago | IN | 0 ETH | 0.00135685 | ||||
Transfer | 18611813 | 421 days ago | IN | 0 ETH | 0.00178403 | ||||
Transfer | 18611812 | 421 days ago | IN | 0 ETH | 0.00184661 | ||||
Transfer | 18611809 | 421 days ago | IN | 0 ETH | 0.00198282 | ||||
Transfer | 18611795 | 421 days ago | IN | 0 ETH | 0.00186719 | ||||
Transfer | 18611789 | 421 days ago | IN | 0 ETH | 0.00184876 | ||||
Transfer | 18611788 | 421 days ago | IN | 0 ETH | 0.00187584 | ||||
Transfer | 18611786 | 421 days ago | IN | 0 ETH | 0.00203275 | ||||
Transfer | 18611785 | 421 days ago | IN | 0 ETH | 0.00207362 | ||||
Transfer | 18611640 | 421 days ago | IN | 0 ETH | 0.00133206 | ||||
Transfer | 18611589 | 421 days ago | IN | 0 ETH | 0.00154454 | ||||
Transfer | 18611575 | 421 days ago | IN | 0 ETH | 0.0014968 | ||||
Transfer | 18611563 | 421 days ago | IN | 0 ETH | 0.00157683 | ||||
Transfer | 18611438 | 421 days ago | IN | 0 ETH | 0.00368036 | ||||
Transfer | 18611401 | 421 days ago | IN | 0 ETH | 0.0041069 | ||||
Transfer | 18611390 | 421 days ago | IN | 0 ETH | 0.00425156 | ||||
Transfer | 18611374 | 421 days ago | IN | 0 ETH | 0.00420388 | ||||
Transfer | 18611361 | 421 days ago | IN | 0 ETH | 0.00469029 | ||||
Transfer | 18513068 | 434 days ago | IN | 0 ETH | 0.00104417 | ||||
Transfer | 18513010 | 434 days ago | IN | 0 ETH | 0.00361054 | ||||
Transfer | 18513004 | 434 days ago | IN | 0 ETH | 0.00154274 | ||||
Transfer | 18512956 | 434 days ago | IN | 0 ETH | 0.00458748 |
Loading...
Loading
Contract Name:
Vault
Compiler Version
v0.8.18+commit.87f61d96
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2023-08-25 */ // SPDX-License-Identifier: MIT pragma solidity 0.8.18; interface TokenLike { function approve(address,uint) external; function transfer(address,uint) external; } contract Vault { // --- Auth --- mapping (address => uint) public wards; function rely(address usr) external auth { wards[usr] = 1; } function deny(address usr) external auth { wards[usr] = 0; } modifier auth { require(wards[msg.sender] == 1, "Vault/not-authorized"); _; } constructor(){ wards[msg.sender] = 1; } receive() external payable { } function approve(address _asset,address _contract, uint256 _wad) public auth { TokenLike(_asset).approve(_contract,_wad); } function transfer(address _asset,address _usr, uint256 _wad) public auth{ TokenLike(_asset).transfer(_usr,_wad); } function withdrawBNB(uint256 wad, address payable usr) public auth returns (bool) { usr.transfer(wad); return true; } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_contract","type":"address"},{"internalType":"uint256","name":"_wad","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"deny","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"usr","type":"address"}],"name":"rely","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_asset","type":"address"},{"internalType":"address","name":"_usr","type":"address"},{"internalType":"uint256","name":"_wad","type":"uint256"}],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"wards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"wad","type":"uint256"},{"internalType":"address payable","name":"usr","type":"address"}],"name":"withdrawBNB","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
608060405234801561001057600080fd5b5060016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055506108c7806100646000396000f3fe6080604052600436106100595760003560e01c806307d1b2471461006557806365fae35e146100a25780639c52a7f1146100cb578063beabacc8146100f4578063bf353dbb1461011d578063e1f21c671461015a57610060565b3661006057005b600080fd5b34801561007157600080fd5b5061008c6004803603810190610087919061067e565b610183565b60405161009991906106d9565b60405180910390f35b3480156100ae57600080fd5b506100c960048036038101906100c49190610732565b610257565b005b3480156100d757600080fd5b506100f260048036038101906100ed9190610732565b61031f565b005b34801561010057600080fd5b5061011b6004803603810190610116919061075f565b6103e7565b005b34801561012957600080fd5b50610144600480360381019061013f9190610732565b6104da565b60405161015191906107c1565b60405180910390f35b34801561016657600080fd5b50610181600480360381019061017c919061075f565b6104f2565b005b600060016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101fd90610839565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f1935050505015801561024c573d6000803e3d6000fd5b506001905092915050565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146102d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102cf90610839565b60405180910390fd5b60016000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146103a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039790610839565b60405180910390fd5b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045f90610839565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016104a3929190610868565b600060405180830381600087803b1580156104bd57600080fd5b505af11580156104d1573d6000803e3d6000fd5b50505050505050565b60006020528060005260406000206000915090505481565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056a90610839565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663095ea7b383836040518363ffffffff1660e01b81526004016105ae929190610868565b600060405180830381600087803b1580156105c857600080fd5b505af11580156105dc573d6000803e3d6000fd5b50505050505050565b600080fd5b6000819050919050565b6105fd816105ea565b811461060857600080fd5b50565b60008135905061061a816105f4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061064b82610620565b9050919050565b61065b81610640565b811461066657600080fd5b50565b60008135905061067881610652565b92915050565b60008060408385031215610695576106946105e5565b5b60006106a38582860161060b565b92505060206106b485828601610669565b9150509250929050565b60008115159050919050565b6106d3816106be565b82525050565b60006020820190506106ee60008301846106ca565b92915050565b60006106ff82610620565b9050919050565b61070f816106f4565b811461071a57600080fd5b50565b60008135905061072c81610706565b92915050565b600060208284031215610748576107476105e5565b5b60006107568482850161071d565b91505092915050565b600080600060608486031215610778576107776105e5565b5b60006107868682870161071d565b93505060206107978682870161071d565b92505060406107a88682870161060b565b9150509250925092565b6107bb816105ea565b82525050565b60006020820190506107d660008301846107b2565b92915050565b600082825260208201905092915050565b7f5661756c742f6e6f742d617574686f72697a6564000000000000000000000000600082015250565b60006108236014836107dc565b915061082e826107ed565b602082019050919050565b6000602082019050818103600083015261085281610816565b9050919050565b610862816106f4565b82525050565b600060408201905061087d6000830185610859565b61088a60208301846107b2565b939250505056fea264697066735822122060931e3f0efa463465b88f2b2a98e49128fc1c33d5c9743238cd10e547ff37c364736f6c63430008120033
Deployed Bytecode
0x6080604052600436106100595760003560e01c806307d1b2471461006557806365fae35e146100a25780639c52a7f1146100cb578063beabacc8146100f4578063bf353dbb1461011d578063e1f21c671461015a57610060565b3661006057005b600080fd5b34801561007157600080fd5b5061008c6004803603810190610087919061067e565b610183565b60405161009991906106d9565b60405180910390f35b3480156100ae57600080fd5b506100c960048036038101906100c49190610732565b610257565b005b3480156100d757600080fd5b506100f260048036038101906100ed9190610732565b61031f565b005b34801561010057600080fd5b5061011b6004803603810190610116919061075f565b6103e7565b005b34801561012957600080fd5b50610144600480360381019061013f9190610732565b6104da565b60405161015191906107c1565b60405180910390f35b34801561016657600080fd5b50610181600480360381019061017c919061075f565b6104f2565b005b600060016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101fd90610839565b60405180910390fd5b8173ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f1935050505015801561024c573d6000803e3d6000fd5b506001905092915050565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146102d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016102cf90610839565b60405180910390fd5b60016000808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054146103a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161039790610839565b60405180910390fd5b60008060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161045f90610839565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016104a3929190610868565b600060405180830381600087803b1580156104bd57600080fd5b505af11580156104d1573d6000803e3d6000fd5b50505050505050565b60006020528060005260406000206000915090505481565b60016000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205414610573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161056a90610839565b60405180910390fd5b8273ffffffffffffffffffffffffffffffffffffffff1663095ea7b383836040518363ffffffff1660e01b81526004016105ae929190610868565b600060405180830381600087803b1580156105c857600080fd5b505af11580156105dc573d6000803e3d6000fd5b50505050505050565b600080fd5b6000819050919050565b6105fd816105ea565b811461060857600080fd5b50565b60008135905061061a816105f4565b92915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061064b82610620565b9050919050565b61065b81610640565b811461066657600080fd5b50565b60008135905061067881610652565b92915050565b60008060408385031215610695576106946105e5565b5b60006106a38582860161060b565b92505060206106b485828601610669565b9150509250929050565b60008115159050919050565b6106d3816106be565b82525050565b60006020820190506106ee60008301846106ca565b92915050565b60006106ff82610620565b9050919050565b61070f816106f4565b811461071a57600080fd5b50565b60008135905061072c81610706565b92915050565b600060208284031215610748576107476105e5565b5b60006107568482850161071d565b91505092915050565b600080600060608486031215610778576107776105e5565b5b60006107868682870161071d565b93505060206107978682870161071d565b92505060406107a88682870161060b565b9150509250925092565b6107bb816105ea565b82525050565b60006020820190506107d660008301846107b2565b92915050565b600082825260208201905092915050565b7f5661756c742f6e6f742d617574686f72697a6564000000000000000000000000600082015250565b60006108236014836107dc565b915061082e826107ed565b602082019050919050565b6000602082019050818103600083015261085281610816565b9050919050565b610862816106f4565b82525050565b600060408201905061087d6000830185610859565b61088a60208301846107b2565b939250505056fea264697066735822122060931e3f0efa463465b88f2b2a98e49128fc1c33d5c9743238cd10e547ff37c364736f6c63430008120033
Deployed Bytecode Sourcemap
177:854:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;887:140;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;268:61;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;335;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;753:128;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;223:38;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;610:137;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;:::i;:::-;;887:140;963:4;456:1;435:5;:17;441:10;435:17;;;;;;;;;;;;;;;;:22;427:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;980:3:::1;:12;;:17;993:3;980:17;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;1015:4;1008:11;;887:140:::0;;;;:::o;268:61::-;456:1;435:5;:17;441:10;435:17;;;;;;;;;;;;;;;;:22;427:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;325:1:::1;312:5;:10:::0;318:3:::1;312:10;;;;;;;;;;;;;;;:14;;;;268:61:::0;:::o;335:::-;456:1;435:5;:17;441:10;435:17;;;;;;;;;;;;;;;;:22;427:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;392:1:::1;379:5:::0;:10:::1;385:3;379:10;;;;;;;;;;;;;;;:14;;;;335:61:::0;:::o;753:128::-;456:1;435:5;:17;441:10;435:17;;;;;;;;;;;;;;;;:22;427:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;846:6:::1;836:26;;;863:4;868;836:37;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;753:128:::0;;;:::o;223:38::-;;;;;;;;;;;;;;;;;:::o;610:137::-;456:1;435:5;:17;441:10;435:17;;;;;;;;;;;;;;;;:22;427:55;;;;;;;;;;;;:::i;:::-;;;;;;;;;708:6:::1;698:25;;;724:9;734:4;698:41;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;::::0;::::1;;;;;;;;;;;;::::0;::::1;;;;;;;;;610:137:::0;;;:::o;88:117:1:-;197:1;194;187:12;334:77;371:7;400:5;389:16;;334:77;;;:::o;417:122::-;490:24;508:5;490:24;:::i;:::-;483:5;480:35;470:63;;529:1;526;519:12;470:63;417:122;:::o;545:139::-;591:5;629:6;616:20;607:29;;645:33;672:5;645:33;:::i;:::-;545:139;;;;:::o;690:126::-;727:7;767:42;760:5;756:54;745:65;;690:126;;;:::o;822:104::-;867:7;896:24;914:5;896:24;:::i;:::-;885:35;;822:104;;;:::o;932:138::-;1013:32;1039:5;1013:32;:::i;:::-;1006:5;1003:43;993:71;;1060:1;1057;1050:12;993:71;932:138;:::o;1076:155::-;1130:5;1168:6;1155:20;1146:29;;1184:41;1219:5;1184:41;:::i;:::-;1076:155;;;;:::o;1237:490::-;1313:6;1321;1370:2;1358:9;1349:7;1345:23;1341:32;1338:119;;;1376:79;;:::i;:::-;1338:119;1496:1;1521:53;1566:7;1557:6;1546:9;1542:22;1521:53;:::i;:::-;1511:63;;1467:117;1623:2;1649:61;1702:7;1693:6;1682:9;1678:22;1649:61;:::i;:::-;1639:71;;1594:126;1237:490;;;;;:::o;1733:90::-;1767:7;1810:5;1803:13;1796:21;1785:32;;1733:90;;;:::o;1829:109::-;1910:21;1925:5;1910:21;:::i;:::-;1905:3;1898:34;1829:109;;:::o;1944:210::-;2031:4;2069:2;2058:9;2054:18;2046:26;;2082:65;2144:1;2133:9;2129:17;2120:6;2082:65;:::i;:::-;1944:210;;;;:::o;2160:96::-;2197:7;2226:24;2244:5;2226:24;:::i;:::-;2215:35;;2160:96;;;:::o;2262:122::-;2335:24;2353:5;2335:24;:::i;:::-;2328:5;2325:35;2315:63;;2374:1;2371;2364:12;2315:63;2262:122;:::o;2390:139::-;2436:5;2474:6;2461:20;2452:29;;2490:33;2517:5;2490:33;:::i;:::-;2390:139;;;;:::o;2535:329::-;2594:6;2643:2;2631:9;2622:7;2618:23;2614:32;2611:119;;;2649:79;;:::i;:::-;2611:119;2769:1;2794:53;2839:7;2830:6;2819:9;2815:22;2794:53;:::i;:::-;2784:63;;2740:117;2535:329;;;;:::o;2870:619::-;2947:6;2955;2963;3012:2;3000:9;2991:7;2987:23;2983:32;2980:119;;;3018:79;;:::i;:::-;2980:119;3138:1;3163:53;3208:7;3199:6;3188:9;3184:22;3163:53;:::i;:::-;3153:63;;3109:117;3265:2;3291:53;3336:7;3327:6;3316:9;3312:22;3291:53;:::i;:::-;3281:63;;3236:118;3393:2;3419:53;3464:7;3455:6;3444:9;3440:22;3419:53;:::i;:::-;3409:63;;3364:118;2870:619;;;;;:::o;3495:118::-;3582:24;3600:5;3582:24;:::i;:::-;3577:3;3570:37;3495:118;;:::o;3619:222::-;3712:4;3750:2;3739:9;3735:18;3727:26;;3763:71;3831:1;3820:9;3816:17;3807:6;3763:71;:::i;:::-;3619:222;;;;:::o;3847:169::-;3931:11;3965:6;3960:3;3953:19;4005:4;4000:3;3996:14;3981:29;;3847:169;;;;:::o;4022:170::-;4162:22;4158:1;4150:6;4146:14;4139:46;4022:170;:::o;4198:366::-;4340:3;4361:67;4425:2;4420:3;4361:67;:::i;:::-;4354:74;;4437:93;4526:3;4437:93;:::i;:::-;4555:2;4550:3;4546:12;4539:19;;4198:366;;;:::o;4570:419::-;4736:4;4774:2;4763:9;4759:18;4751:26;;4823:9;4817:4;4813:20;4809:1;4798:9;4794:17;4787:47;4851:131;4977:4;4851:131;:::i;:::-;4843:139;;4570:419;;;:::o;4995:118::-;5082:24;5100:5;5082:24;:::i;:::-;5077:3;5070:37;4995:118;;:::o;5119:332::-;5240:4;5278:2;5267:9;5263:18;5255:26;;5291:71;5359:1;5348:9;5344:17;5335:6;5291:71;:::i;:::-;5372:72;5440:2;5429:9;5425:18;5416:6;5372:72;:::i;:::-;5119:332;;;;;:::o
Swarm Source
ipfs://60931e3f0efa463465b88f2b2a98e49128fc1c33d5c9743238cd10e547ff37c3
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.