Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 1 from a total of 1 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Transfer | 12826275 | 1322 days ago | IN | 0 ETH | 0.00291549 |
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
ConditionalVault
Compiler Version
v0.8.5+commit.a4f2e591
Contract Source Code (Solidity)
/** *Submitted for verification at Etherscan.io on 2021-07-14 */ // SPDX-License-Identifier: GPL-3.0-or-later pragma solidity 0.8.5; contract ConditionalVault { address payable public immutable recipient; address payable public immutable overflow; uint256 public immutable threshold; constructor( address payable recipient_, address payable overflow_, uint256 threshold_ ) { recipient = recipient_; overflow = overflow_; threshold = threshold_; } function transfer() public { uint256 balance = address(this).balance; if (balance > threshold) { _sendFunds(overflow, balance - threshold); _sendFunds(recipient, threshold); } else { _sendFunds(recipient, balance); } } receive() external payable {} // ============ Private Utils ============ function _sendFunds(address payable to, uint256 amount) private { require( address(this).balance >= amount, "Insufficient balance for send" ); (bool success, ) = to.call{value: amount}(""); require(success, "Unable to send value: recipient may have reverted"); } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address payable","name":"recipient_","type":"address"},{"internalType":"address payable","name":"overflow_","type":"address"},{"internalType":"uint256","name":"threshold_","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"overflow","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"recipient","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"threshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"transfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
60e060405234801561001057600080fd5b5060405161050738038061050783398101604081905261002f9161006e565b6001600160601b0319606093841b81166080529190921b1660a05260c0526100aa565b80516001600160a01b038116811461006957600080fd5b919050565b60008060006060848603121561008357600080fd5b61008c84610052565b925061009a60208501610052565b9150604084015190509250925092565b60805160601c60a05160601c60c0516104006101076000396000818160be0152818161013c0152818161018b01526101db01526000818160600152610167015260008181610100015281816101ba015261020701526104006000f3fe6080604052600436106100425760003560e01c80624264c31461004e57806342cde4e8146100ac57806366d003ac146100ee5780638a4068dd1461012257600080fd5b3661004957005b600080fd5b34801561005a57600080fd5b506100827f000000000000000000000000000000000000000000000000000000000000000081565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156100b857600080fd5b506100e07f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016100a3565b3480156100fa57600080fd5b506100827f000000000000000000000000000000000000000000000000000000000000000081565b34801561012e57600080fd5b50610137610139565b005b477f0000000000000000000000000000000000000000000000000000000000000000811115610202576101b57f00000000000000000000000000000000000000000000000000000000000000006101b07f00000000000000000000000000000000000000000000000000000000000000008461038c565b610228565b6101ff7f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000610228565b50565b6101ff7f0000000000000000000000000000000000000000000000000000000000000000825b80471015610297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496e73756666696369656e742062616c616e636520666f722073656e6400000060448201526064015b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146102f1576040519150601f19603f3d011682016040523d82523d6000602084013e6102f6565b606091505b5050905080610387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f556e61626c6520746f2073656e642076616c75653a20726563697069656e742060448201527f6d61792068617665207265766572746564000000000000000000000000000000606482015260840161028e565b505050565b6000828210156103c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50039056fea26469706673582212209d1ece5dbc2999860426099e2374f7a21f7fda086545613739dccc99af2ffd3e64736f6c63430008050033000000000000000000000000ac484da38306e7010d36dd9bb4533308d347c525000000000000000000000000941a3147ce69ad72c538a9da4a54bca4e6c488460000000000000000000000000000000000000000000000001bc16d674ec80000
Deployed Bytecode
0x6080604052600436106100425760003560e01c80624264c31461004e57806342cde4e8146100ac57806366d003ac146100ee5780638a4068dd1461012257600080fd5b3661004957005b600080fd5b34801561005a57600080fd5b506100827f000000000000000000000000941a3147ce69ad72c538a9da4a54bca4e6c4884681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b3480156100b857600080fd5b506100e07f0000000000000000000000000000000000000000000000001bc16d674ec8000081565b6040519081526020016100a3565b3480156100fa57600080fd5b506100827f000000000000000000000000ac484da38306e7010d36dd9bb4533308d347c52581565b34801561012e57600080fd5b50610137610139565b005b477f0000000000000000000000000000000000000000000000001bc16d674ec80000811115610202576101b57f000000000000000000000000941a3147ce69ad72c538a9da4a54bca4e6c488466101b07f0000000000000000000000000000000000000000000000001bc16d674ec800008461038c565b610228565b6101ff7f000000000000000000000000ac484da38306e7010d36dd9bb4533308d347c5257f0000000000000000000000000000000000000000000000001bc16d674ec80000610228565b50565b6101ff7f000000000000000000000000ac484da38306e7010d36dd9bb4533308d347c525825b80471015610297576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f496e73756666696369656e742062616c616e636520666f722073656e6400000060448201526064015b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146102f1576040519150601f19603f3d011682016040523d82523d6000602084013e6102f6565b606091505b5050905080610387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603160248201527f556e61626c6520746f2073656e642076616c75653a20726563697069656e742060448201527f6d61792068617665207265766572746564000000000000000000000000000000606482015260840161028e565b505050565b6000828210156103c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b50039056fea26469706673582212209d1ece5dbc2999860426099e2374f7a21f7fda086545613739dccc99af2ffd3e64736f6c63430008050033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000ac484da38306e7010d36dd9bb4533308d347c525000000000000000000000000941a3147ce69ad72c538a9da4a54bca4e6c488460000000000000000000000000000000000000000000000001bc16d674ec80000
-----Decoded View---------------
Arg [0] : recipient_ (address): 0xaC484Da38306E7010D36Dd9BB4533308d347C525
Arg [1] : overflow_ (address): 0x941A3147CE69aD72c538a9DA4a54Bca4E6C48846
Arg [2] : threshold_ (uint256): 2000000000000000000
-----Encoded View---------------
3 Constructor Arguments found :
Arg [0] : 000000000000000000000000ac484da38306e7010d36dd9bb4533308d347c525
Arg [1] : 000000000000000000000000941a3147ce69ad72c538a9da4a54bca4e6c48846
Arg [2] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Deployed Bytecode Sourcemap
72:1136:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;154:41;;;;;;;;;;;;;;;;;;416:42:1;404:55;;;386:74;;374:2;359:18;154:41:0;;;;;;;;202:34;;;;;;;;;;;;;;;;;;1393:25:1;;;1381:2;1366:18;202:34:0;1348:76:1;105:42:0;;;;;;;;;;;;;;;479:300;;;;;;;;;;;;;:::i;:::-;;;535:21;583:9;573:19;;569:203;;;609:41;620:8;630:19;640:9;630:7;:19;:::i;:::-;609:10;:41::i;:::-;665:32;676:9;687;665:10;:32::i;:::-;506:273;479:300::o;569:203::-;730:30;741:9;752:7;874:331;996:6;971:21;:31;;949:110;;;;;;;673:2:1;949:110:0;;;655:21:1;712:2;692:18;;;685:30;751:31;731:18;;;724:59;800:18;;949:110:0;;;;;;;;;1073:12;1091:2;:7;;1106:6;1091:26;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1072:45;;;1136:7;1128:69;;;;;;;1031:2:1;1128:69:0;;;1013:21:1;1070:2;1050:18;;;1043:30;1109:34;1089:18;;;1082:62;1180:19;1160:18;;;1153:47;1217:19;;1128:69:0;1003:239:1;1128:69:0;938:267;874:331;;:::o;1429:279:1:-;1469:4;1497:1;1494;1491:8;1488:2;;;1532:77;1529:1;1522:88;1633:4;1630:1;1623:15;1661:4;1658:1;1651:15;1488:2;-1:-1:-1;1693:9:1;;1478:230::o
Swarm Source
ipfs://9d1ece5dbc2999860426099e2374f7a21f7fda086545613739dccc99af2ffd3e
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 31 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.