ETH Price: $3,382.17 (-1.89%)
Gas: 4 Gwei

Contract

0x94EB46649152e9187Ffd18FEb29ADb5FAC3C6405
 

Overview

ETH Balance

34 wei

Eth Value

Less Than $0.01 (@ $3,382.17/ETH)

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Stream Withdraw200408262024-06-07 15:24:3525 days ago1717773875IN
0x94EB4664...FAC3C6405
0 ETH0.0010585423.29947605
Stream Withdraw198400592024-05-10 13:53:3553 days ago1715349215IN
0x94EB4664...FAC3C6405
0 ETH0.000286186.32089098
Stream Withdraw197741812024-05-01 8:46:5962 days ago1714553219IN
0x94EB4664...FAC3C6405
0 ETH0.0006024813.27526772
Stream Withdraw197248032024-04-24 11:00:4769 days ago1713956447IN
0x94EB4664...FAC3C6405
0 ETH0.0009054718.9684714
Stream Withdraw195552702024-03-31 17:12:1193 days ago1711905131IN
0x94EB4664...FAC3C6405
0 ETH0.0011949425.06392331
Stream Withdraw194975072024-03-23 13:10:11101 days ago1711199411IN
0x94EB4664...FAC3C6405
0 ETH0.0007536916.35047824
Stream Withdraw194664742024-03-19 4:39:35105 days ago1710823175IN
0x94EB4664...FAC3C6405
0 ETH0.0010083421.93198553
Stream Withdraw194260752024-03-13 12:12:47111 days ago1710331967IN
0x94EB4664...FAC3C6405
0 ETH0.0027924760.54794261
Stream Withdraw193131322024-02-26 17:09:47127 days ago1708967387IN
0x94EB4664...FAC3C6405
0 ETH0.0034424773.02043087
Stream Withdraw192738362024-02-21 5:02:59132 days ago1708491779IN
0x94EB4664...FAC3C6405
0 ETH0.0017439938.50895588
Stream Withdraw192035512024-02-11 8:10:59142 days ago1707639059IN
0x94EB4664...FAC3C6405
0 ETH0.0015803933.04046739
Stream Withdraw190764062024-01-24 12:10:23160 days ago1706098223IN
0x94EB4664...FAC3C6405
0 ETH0.0004920810.3058149
Stream Withdraw190339252024-01-18 13:03:59166 days ago1705583039IN
0x94EB4664...FAC3C6405
0 ETH0.0014401130.16075351
Stream Withdraw189681552024-01-09 8:15:23175 days ago1704788123IN
0x94EB4664...FAC3C6405
0 ETH0.0008726417.58760705
Stream Withdraw188281702023-12-20 15:59:23195 days ago1703087963IN
0x94EB4664...FAC3C6405
0 ETH0.002969865.75015964
Stream Withdraw187561482023-12-10 13:36:47205 days ago1702215407IN
0x94EB4664...FAC3C6405
0 ETH0.0009872521.81674523
Stream Withdraw185759352023-11-15 7:54:11230 days ago1700034851IN
0x94EB4664...FAC3C6405
0 ETH0.0012569425.00431774
Stream Withdraw183638822023-10-16 15:37:59260 days ago1697470679IN
0x94EB4664...FAC3C6405
0 ETH0.0005401711.23524111
Stream Withdraw183135072023-10-09 14:27:11267 days ago1696861631IN
0x94EB4664...FAC3C6405
0 ETH0.0004298.89636833
Stream Withdraw182557112023-10-01 12:33:11275 days ago1696163591IN
0x94EB4664...FAC3C6405
0 ETH0.00042918.9361607
Stream Withdraw182128512023-09-25 12:38:35281 days ago1695645515IN
0x94EB4664...FAC3C6405
0 ETH0.0004743610.2560134
Stream Withdraw181619242023-09-18 9:24:23288 days ago1695029063IN
0x94EB4664...FAC3C6405
0 ETH0.0005840812.62828742
Stream Withdraw180422262023-09-01 14:14:11305 days ago1693577651IN
0x94EB4664...FAC3C6405
0 ETH0.0011781225.47185822
Stream Withdraw178855042023-08-10 15:53:11327 days ago1691682791IN
0x94EB4664...FAC3C6405
0 ETH0.0012846725.42253701
Stream Withdraw177846582023-07-27 13:20:23341 days ago1690464023IN
0x94EB4664...FAC3C6405
0 ETH0.001432330.95932684
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
200408262024-06-07 15:24:3525 days ago1717773875
0x94EB4664...FAC3C6405
0.58488866 ETH
198400592024-05-10 13:53:3553 days ago1715349215
0x94EB4664...FAC3C6405
0.15 ETH
197741812024-05-01 8:46:5962 days ago1714553219
0x94EB4664...FAC3C6405
0.2 ETH
197248032024-04-24 11:00:4769 days ago1713956447
0x94EB4664...FAC3C6405
0.21481354 ETH
195552702024-03-31 17:12:1193 days ago1711905131
0x94EB4664...FAC3C6405
0.25 ETH
194975072024-03-23 13:10:11101 days ago1711199411
0x94EB4664...FAC3C6405
0.3 ETH
194664742024-03-19 4:39:35105 days ago1710823175
0x94EB4664...FAC3C6405
0.2 ETH
194260752024-03-13 12:12:47111 days ago1710331967
0x94EB4664...FAC3C6405
0.2 ETH
193777192024-03-06 17:47:47118 days ago1709747267
0x94EB4664...FAC3C6405
1.5 ETH
193131322024-02-26 17:09:47127 days ago1708967387
0x94EB4664...FAC3C6405
0.5 ETH
192738362024-02-21 5:02:59132 days ago1708491779
0x94EB4664...FAC3C6405
0.1 ETH
192035512024-02-11 8:10:59142 days ago1707639059
0x94EB4664...FAC3C6405
0.4 ETH
190764062024-01-24 12:10:23160 days ago1706098223
0x94EB4664...FAC3C6405
0.3 ETH
190339252024-01-18 13:03:59166 days ago1705583039
0x94EB4664...FAC3C6405
0.19912306 ETH
190272722024-01-17 14:42:35167 days ago1705502555
0x94EB4664...FAC3C6405
1.5 ETH
189681552024-01-09 8:15:23175 days ago1704788123
0x94EB4664...FAC3C6405
0.25 ETH
188281702023-12-20 15:59:23195 days ago1703087963
0x94EB4664...FAC3C6405
0.5 ETH
187561482023-12-10 13:36:47205 days ago1702215407
0x94EB4664...FAC3C6405
0.29928215 ETH
185759352023-11-15 7:54:11230 days ago1700034851
0x94EB4664...FAC3C6405
1 ETH
185362742023-11-09 18:47:35236 days ago1699555655
0x94EB4664...FAC3C6405
1.5 ETH
183638822023-10-16 15:37:59260 days ago1697470679
0x94EB4664...FAC3C6405
0.7 ETH
183135072023-10-09 14:27:11267 days ago1696861631
0x94EB4664...FAC3C6405
0.3 ETH
182648692023-10-02 19:14:23274 days ago1696274063
0x94EB4664...FAC3C6405
1.5 ETH
182557112023-10-01 12:33:11275 days ago1696163591
0x94EB4664...FAC3C6405
0.5 ETH
182128512023-09-25 12:38:35281 days ago1695645515
0x94EB4664...FAC3C6405
0.5 ETH
View All Internal Transactions
Loading...
Loading

Similar Match Source Code
This contract matches the deployed Bytecode of the Source Code for Contract 0x518Af5F2...74AB4F9c4
The constructor portion of the code might be different and could alter the actual behaviour of the contract

Contract Name:
SimpleStream

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license
/**
 *Submitted for verification at Etherscan.io on 2021-05-20
*/

// Sources flattened with hardhat v2.1.1 https://hardhat.org

// File contracts/SimpleStream.sol
// https://github.com/austintgriffith/scaffold-eth/tree/simple-stream

//
// 🏰 BuidlGuidl.com
//


pragma solidity >=0.8.0;
//SPDX-License-Identifier: MIT

//import "hardhat/console.sol";

contract SimpleStream {

  event Withdraw( address indexed to, uint256 amount, string reason );
  event Deposit( address indexed from, uint256 amount, string reason );

  address payable public toAddress;// = payable(0xD75b0609ed51307E13bae0F9394b5f63A7f8b6A1);
  uint256 public cap;// = 0.5 ether;
  uint256 public frequency;// 1296000 seconds == 2 weeks;
  uint256 public last;//stream starts empty (last = block.timestamp) or full (block.timestamp - frequency)

  constructor(address payable _toAddress, uint256 _cap, uint256 _frequency, bool _startsFull) {
    toAddress = _toAddress;
    cap = _cap;
    frequency = _frequency;
    if(_startsFull){
      last = block.timestamp - frequency;
    }else{
      last = block.timestamp;
    }
  }

  function streamBalance() public view returns (uint256){
    if(block.timestamp-last > frequency){
      return cap;
    }
    return (cap * (block.timestamp-last)) / frequency;
  }

  function streamWithdraw(uint256 amount, string memory reason) public {
     require(msg.sender==toAddress,"this stream is not for you");
     uint256 totalAmountCanWithdraw = streamBalance();
     require(totalAmountCanWithdraw>=amount,"not enough in the stream");
     uint256 cappedLast = block.timestamp-frequency;
     if(last<cappedLast){
       last = cappedLast;
     }
     last = last + ((block.timestamp - last) * amount / totalAmountCanWithdraw);
     emit Withdraw( msg.sender, amount, reason );
     toAddress.transfer(amount);
   }

   function streamDeposit(string memory reason) public payable {
      emit Deposit( msg.sender, msg.value, reason );
   }

   receive() external payable { streamDeposit(""); }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address payable","name":"_toAddress","type":"address"},{"internalType":"uint256","name":"_cap","type":"uint256"},{"internalType":"uint256","name":"_frequency","type":"uint256"},{"internalType":"bool","name":"_startsFull","type":"bool"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"string","name":"reason","type":"string"}],"name":"Withdraw","type":"event"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"frequency","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"last","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"streamBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"reason","type":"string"}],"name":"streamDeposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"string","name":"reason","type":"string"}],"name":"streamWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toAddress","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"stateMutability":"payable","type":"receive"}]

Deployed Bytecode

0x6080604052600436106100745760003560e01c8063a8397ddc1161004e578063a8397ddc1461010f578063c3ae1e591461012f578063c5a15ec814610144578063ead50da31461015757600080fd5b806319c87f1f14610098578063355274ea146100d557806347799da8146100f957600080fd5b36610093576100916040518060200160405280600081525061016d565b005b600080fd5b3480156100a457600080fd5b506000546100b8906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156100e157600080fd5b506100eb60015481565b6040519081526020016100cc565b34801561010557600080fd5b506100eb60035481565b34801561011b57600080fd5b5061009161012a36600461044e565b6101b3565b34801561013b57600080fd5b506100eb610340565b610091610152366004610413565b61016d565b34801561016357600080fd5b506100eb60025481565b336001600160a01b03167f643e927b32d5bfd08eccd2fcbd97057ad413850f857a2359639114e8e8dd3d7b34836040516101a8929190610493565b60405180910390a250565b6000546001600160a01b031633146102125760405162461bcd60e51b815260206004820152601a60248201527f746869732073747265616d206973206e6f7420666f7220796f7500000000000060448201526064015b60405180910390fd5b600061021c610340565b90508281101561026e5760405162461bcd60e51b815260206004820152601860248201527f6e6f7420656e6f75676820696e207468652073747265616d00000000000000006044820152606401610209565b60006002544261027e9190610545565b90508060035410156102905760038190555b8184600354426102a09190610545565b6102aa9190610526565b6102b49190610506565b6003546102c191906104ee565b60035560405133907f485f1bb6524c663555797e00171a10f341656e59b02d6b557a0a38ba7d5d9751906102f89087908790610493565b60405180910390a2600080546040516001600160a01b039091169186156108fc02918791818181858888f19350505050158015610339573d6000803e3d6000fd5b5050505050565b6000600254600354426103539190610545565b1115610360575060015490565b6002546003546103709042610545565b60015461037d9190610526565b6103879190610506565b905090565b600082601f83011261039c578081fd5b813567ffffffffffffffff808211156103b7576103b7610572565b604051601f8301601f19908116603f011681019082821181831017156103df576103df610572565b816040528381528660208588010111156103f7578485fd5b8360208701602083013792830160200193909352509392505050565b600060208284031215610424578081fd5b813567ffffffffffffffff81111561043a578182fd5b6104468482850161038c565b949350505050565b60008060408385031215610460578081fd5b82359150602083013567ffffffffffffffff81111561047d578182fd5b6104898582860161038c565b9150509250929050565b828152600060206040818401528351806040850152825b818110156104c6578581018301518582016060015282016104aa565b818111156104d75783606083870101525b50601f01601f191692909201606001949350505050565b600082198211156105015761050161055c565b500190565b60008261052157634e487b7160e01b81526012600452602481fd5b500490565b60008160001904831182151516156105405761054061055c565b500290565b6000828210156105575761055761055c565b500390565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fdfea2646970667358221220998fd3296a17e6fc1e79b14215371f2ae91a0a88a0ca053c18e4bbb8872216b664736f6c63430008040033

Deployed Bytecode Sourcemap

304:1705:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;1986:17;;;;;;;;;;;;;:13;:17::i;:::-;304:1705;;;;;480:32;;;;;;;;;;-1:-1:-1;480:32:0;;;;-1:-1:-1;;;;;480:32:0;;;;;;-1:-1:-1;;;;;1700:32:1;;;1682:51;;1670:2;1655:18;480:32:0;;;;;;;;574:18;;;;;;;;;;;;;;;;;;;2598:25:1;;;2586:2;2571:18;574::0;2553:76:1;671:19:0;;;;;;;;;;;;;;;;1266:556;;;;;;;;;;-1:-1:-1;1266:556:0;;;;;:::i;:::-;;:::i;1075:185::-;;;;;;;;;;;;;:::i;1829:121::-;;;;;;:::i;:::-;;:::i;612:24::-;;;;;;;;;;;;;;;;1829:121;1912:10;-1:-1:-1;;;;;1903:40:0;;1924:9;1935:6;1903:40;;;;;;;:::i;:::-;;;;;;;;1829:121;:::o;1266:556::-;1363:9;;-1:-1:-1;;;;;1363:9:0;1351:10;:21;1343:59;;;;-1:-1:-1;;;1343:59:0;;1946:2:1;1343:59:0;;;1928:21:1;1985:2;1965:18;;;1958:30;2024:28;2004:18;;;1997:56;2070:18;;1343:59:0;;;;;;;;;1410:30;1443:15;:13;:15::i;:::-;1410:48;;1498:6;1474:22;:30;;1466:66;;;;-1:-1:-1;;;1466:66:0;;2301:2:1;1466:66:0;;;2283:21:1;2340:2;2320:18;;;2313:30;2379:26;2359:18;;;2352:54;2423:18;;1466:66:0;2273:174:1;1466:66:0;1540:18;1577:9;;1561:15;:25;;;;:::i;:::-;1540:46;;1602:10;1597:4;;:15;1594:55;;;1623:4;:17;;;1594:55;1707:22;1698:6;1690:4;;1672:15;:22;;;;:::i;:::-;1671:33;;;;:::i;:::-;:58;;;;:::i;:::-;1663:4;;:67;;;;:::i;:::-;1656:4;:74;1743:38;;1753:10;;1743:38;;;;1765:6;;1773;;1743:38;:::i;:::-;;;;;;;;1789:9;;;:26;;-1:-1:-1;;;;;1789:9:0;;;;:26;;;;;1808:6;;1789:26;:9;:26;1808:6;1789:9;:26;;;;;;;;;;;;;;;;;;;;;1266:556;;;;:::o;1075:185::-;1121:7;1162:9;;1155:4;;1139:15;:20;;;;:::i;:::-;:32;1136:63;;;-1:-1:-1;1188:3:0;;;1075:185::o;1136:63::-;1245:9;;1236:4;;1220:20;;:15;:20;:::i;:::-;1213:3;;:28;;;;:::i;:::-;1212:42;;;;:::i;:::-;1205:49;;1075:185;:::o;14:739:1:-;57:5;110:3;103:4;95:6;91:17;87:27;77:2;;132:5;125;118:20;77:2;172:6;159:20;198:18;235:2;231;228:10;225:2;;;241:18;;:::i;:::-;316:2;310:9;284:2;370:13;;-1:-1:-1;;366:22:1;;;390:2;362:31;358:40;346:53;;;414:18;;;434:22;;;411:46;408:2;;;460:18;;:::i;:::-;500:10;496:2;489:22;535:2;527:6;520:18;581:3;574:4;569:2;561:6;557:15;553:26;550:35;547:2;;;602:5;595;588:20;547:2;670;663:4;655:6;651:17;644:4;636:6;632:17;619:54;693:15;;;710:4;689:26;682:41;;;;-1:-1:-1;697:6:1;67:686;-1:-1:-1;;;67:686:1:o;758:342::-;827:6;880:2;868:9;859:7;855:23;851:32;848:2;;;901:6;893;886:22;848:2;946:9;933:23;979:18;971:6;968:30;965:2;;;1016:6;1008;1001:22;965:2;1044:50;1086:7;1077:6;1066:9;1062:22;1044:50;:::i;:::-;1034:60;838:262;-1:-1:-1;;;;838:262:1:o;1105:410::-;1183:6;1191;1244:2;1232:9;1223:7;1219:23;1215:32;1212:2;;;1265:6;1257;1250:22;1212:2;1306:9;1293:23;1283:33;;1367:2;1356:9;1352:18;1339:32;1394:18;1386:6;1383:30;1380:2;;;1431:6;1423;1416:22;1380:2;1459:50;1501:7;1492:6;1481:9;1477:22;1459:50;:::i;:::-;1449:60;;;1202:313;;;;;:::o;2634:674::-;2811:6;2800:9;2793:25;2774:4;2837:2;2875;2870;2859:9;2855:18;2848:30;2907:6;2901:13;2950:6;2945:2;2934:9;2930:18;2923:34;2975:4;2988:140;3002:6;2999:1;2996:13;2988:140;;;3097:14;;;3093:23;;3087:30;3063:17;;;3082:2;3059:26;3052:66;3017:10;;2988:140;;;3146:6;3143:1;3140:13;3137:2;;;3216:4;3211:2;3202:6;3191:9;3187:22;3183:31;3176:45;3137:2;-1:-1:-1;3292:2:1;3271:15;-1:-1:-1;;3267:29:1;3252:45;;;;3299:2;3248:54;;2783:525;-1:-1:-1;;;;2783:525:1:o;3313:128::-;3353:3;3384:1;3380:6;3377:1;3374:13;3371:2;;;3390:18;;:::i;:::-;-1:-1:-1;3426:9:1;;3361:80::o;3446:217::-;3486:1;3512;3502:2;;-1:-1:-1;;;3537:31:1;;3591:4;3588:1;3581:15;3619:4;3544:1;3609:15;3502:2;-1:-1:-1;3648:9:1;;3492:171::o;3668:168::-;3708:7;3774:1;3770;3766:6;3762:14;3759:1;3756:21;3751:1;3744:9;3737:17;3733:45;3730:2;;;3781:18;;:::i;:::-;-1:-1:-1;3821:9:1;;3720:116::o;3841:125::-;3881:4;3909:1;3906;3903:8;3900:2;;;3914:18;;:::i;:::-;-1:-1:-1;3951:9:1;;3890:76::o;3971:127::-;4032:10;4027:3;4023:20;4020:1;4013:31;4063:4;4060:1;4053:15;4087:4;4084:1;4077:15;4103:127;4164:10;4159:3;4155:20;4152:1;4145:31;4195:4;4192:1;4185:15;4219:4;4216:1;4209:15

Swarm Source

ipfs://998fd3296a17e6fc1e79b14215371f2ae91a0a88a0ca053c18e4bbb8872216b6

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
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.