Verified contractPartial
CWTBankStockOn
Address0xe8a64889abc1cc8b912b9eb727e69bcc498ebfcd
- Balance
0 ETH
- Transactions
3
- Compiler
solc 0.4.26
- Same code
Only this contract
Details
- Compiler
- solc 0.4.26+commit.4563c3fc
- Language
- solidity
- Optimization
- Yes, 200 runs
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 8,722,019
- Creation transaction
- 0x58faa825f9…698b6bb8d7
CWTBankStockOn.sol
pragma solidity ^0.4.26;
/*This contract was created for CWT Bank.
*https://cwtbank.space/
*CWT Bank is not just an great Bank.
*CWT Bank is a lot. If not all.
*
*
*/
contract owned {
address public owner;
address public newOwner;
function owned() payable {
owner = msg.sender;
}
modifier onlyOwner {
require(owner == msg.sender);
_;
}
function changeOwner(address _owner) onlyOwner public {
require(_owner != 0);
newOwner = _owner;
}
function confirmOwner() public {
require(newOwner == msg.sender);
owner = newOwner;
delete newOwner;
}
}
contract Crowdsale is owned {
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
event Transfer(address indexed from, address indexed to, uint256 value);
function Crowdsale() payable owned() {
totalSupply = 6000000000;
balanceOf[this] = 6000000000;
balanceOf[owner] = totalSupply - balanceOf[this];
Transfer(this, owner, balanceOf[owner]);
}
function () payable {
require(balanceOf[this] > 0);
uint256 tokensPerOneEther = 20;
uint256 tokens = tokensPerOneEther * msg.value / 1000000000000000000;
if (tokens > balanceOf[this]) {
tokens = balanceOf[this];
uint valueWei = tokens * 1000000000000000000 / tokensPerOneEther;
msg.sender.transfer(msg.value - valueWei);
}
require(tokens > 0);
balanceOf[msg.sender] += tokens;
balanceOf[this] -= tokens;
Transfer(this, msg.sender, tokens);
}
}
contract EasyToken is Crowdsale {
string public standard = 'CWT Bank Stock';
string public name = 'CWTBankStock';
string public symbol = "CWT";
uint8 public decimals = 0;
function EasyToken() payable Crowdsale() {}
function transfer(address _to, uint256 _value) public {
require(balanceOf[msg.sender] >= _value);
balanceOf[msg.sender] -= _value;
balanceOf[_to] += _value;
Transfer(msg.sender, _to, _value);
}
}
contract CWTBankStockOn is EasyToken {
function CWTBankStockOn() payable EasyToken() {}
function addInvestment( uint investment, address investorAddr) public onlyOwner {
investorAddr.transfer(investment);
}
function so_necessary() public onlyOwner {
owner.transfer(this.balance);
}
function retire() public onlyOwner {
selfdestruct(owner);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": true
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.