Verified contractPartial
NOTBAD
Address0xff8b53e8b4f31963f46f16efdefa664c1e3b4b66
- Balance
0.012876 ETH
- Transactions
828
- Compiler
solc 0.4.25
- Same code
Only this contract
Details
- Compiler
- solc 0.4.25+commit.59dbf8f1
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 6,465,422
- Creation transaction
- 0x86679e6e36…b4bc7ad91e
NOTBAD.sol
pragma solidity ^0.4.25;
// https://www.youtube.com/channel/UCfCIlNwVtwcEn_Qscyhld_g/featured?view_as=subscriber
contract NOTBAD {
mapping (address => uint256) public invested;
mapping (address => uint256) public atBlock;
function () external payable
{
if (invested[msg.sender] != 0) {
uint256 amount = invested[msg.sender] * (address(this).balance / (invested[msg.sender] * 100 )) / 100 * (block.number - atBlock[msg.sender]) / 6100;
msg.sender.transfer(amount);
}
atBlock[msg.sender] = block.number;
invested[msg.sender] += msg.value;
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.