Verified contractPartial
Token
Address0xd4c9d782c41c5c96f0d91ceee7d6dd1c8441b3bf
- Balance
0 ETH
- Transactions
4
- Compiler
solc 0.4.18
- Same code
Only this contract
Details
- Compiler
- solc 0.4.18+commit.9cf6e910
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: no, runtime code: yes
- Verified on Sourcify
- Created in block
- 5,133,224
Token.sol
/*! gbcoin.sol | (c) 2017 Develop by BelovITLab, autor my.life.cookie | License: MIT */
/*
Russian
Что такое GB Systems:
Это Geo Blockchain система, которая не привязывается ни к одной стране и банкам. У нас есть свой
процессинговый центр, эквайринг и платежная система GBPay - аналог Visa, MasterCard, UnionPay.
Все транзакции которые будут проходить внутри системы и банков партнеров моментально. Так же,
подключающиеся компании партнеров и банки, имеют возможность использовать всю систему для своего
бизнеса, путем интеграции API кода и использовать все возможности нашей системы для своих клиентов.
Каждому партнеру выгодно сотрудничать с нашей системой, что позволить увеличить количество клиентов
во всем мире. В нашей системе скоро будет холодный кошелек GB Wallet, где можно хранить криптовалюту
и национальную валюту любой страны. Компания GB Network позволит каждому клиенту приобрести виртуальный
счет, где можно хранить средства, и совершать покупку путем приложения NFC, одним касанием к Пост
Терминалу, а также покупать и оплачивать услуги и товары через онлайн систему. Так же компания дает
возможность зарабатывать на партнерской программе. Мы не забыли и о благотворительном фонде, который
будет межуднародный и не привязываться к одной стране. Часть средств от нашей системы будет поступать
в этот фонд.
Банкам партнерам разрешается по мимо нашей системы, имитировать пластиковые карты для своих и наших
клиентов всей системы, в национальной валюте, с применением нашей платежной системой с нашим логотипом
GBPay, и с использованием нашей платформы Blockchain, куда входит эквайринг, процессинговый центр и
платежная система, все это за 1,2%. Границ между странами в нашей системе нет, что позволяет совершать
платежи и переводы за секунду в любою точку земного шара. Для работы в системе, мы создали токен GBCoin,
который будет отвечать за весь функционал финансовой системы GB Systems, как внутренняя международная
транзакционная валюта системы, которой будут привязаны все наши компании и банки.
К нашей системе GB Systems подключены: Grande Bank, Grande Finance, GB Network, GBMarkets, GB Wallet,
Charity Foundation, GBPay.
Мы так же будем предоставлять потребительские кредиты, автокредитование, ипотечное кредитование,
под минимальные проценты, открываеть депозитные и инвестиционные вклады, вклады на доверительное
управление, страхование с большими возможностями, обменник валют, платежная система, так же можно
будет оплачивать нашей криптовалютой GBCoin услуги такси в разных странах, оплачивать за
туристические путевки у туроператоров, По системе лояльности иметь возможность получать скидки
и cash back в продуктовых магазинах партнеров и многое другое.
С нами вы будете иметь все в одной системе и не нужно будет обращаться в сторонние структуры.
Удобство и Качество для всех клиентов.
English
What is GB Systems:
It is Geo Blockchain system which does not become attached to one country and banks.
We have the processing center, acquiring and GBPay payment provider - this analog Visa, MasterCard,
UnionPay. All transactions which will take place in system and banks of partners instantly. Also,
the connected partner companies and banks, have an opportunity to use all system for the business,
by integration of an API code and to use all opportunities of our system for the clients. It is
profitable to each partner to cooperate with our system what to allow to increase the number of
clients around the world. In our system there will be soon a cold purse of GB Wallet where it is
possible to keep cryptocurrency and national currency of any country. The GB Network company will
allow each client to purchase the virtual account where it is possible to store means and to make
purchase by the application NFC, one contact to the Post to the Terminal and also to buy and pay
services and goods through online system. Also the company gives the chance to earn on the partner
program. We did not forget also about charity foundation which will be mezhudnarodny and not to
become attached to one country. A part of means from our system will come to this fund. To partners
it is allowed to banks on by our system, to imitate plastic cards for the and our clients of all
system, in national currency, using our payment service provider with our GBPay logo, and with use
of our Blockchain platform where acquiring, a processing center and a payment service provider,
all this for 1,2% enters. There are no borders between the countries in our system that allows
to make payments and transfers for second in any a globe point. For work in system, we created
a token of GBCoin which will be responsible for all functionality of the GB Systems financial
system as internal world transactional currency of system which will attach all our companies
and banks.
Our system is already connected Grande Bank, Grande Finance, GB Network, GBMarkets, GB Wallet,
Charity Foundation, GBPay.
*/
pragma solidity 0.4.18;
library SafeMath {
function mul(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a * b;
assert(a == 0 || c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a / b;
return c;
}
function sub(uint256 a, uint256 b) internal constant returns(uint256) {
assert(b <= a);
return a - b;
}
function add(uint256 a, uint256 b) internal constant returns(uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
contract Ownable {
address public owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
modifier onlyOwner() { require(msg.sender == owner); _; }
function Ownable() {
owner = msg.sender;
}
function transferOwnership(address newOwner) onlyOwner {
require(newOwner != address(0));
OwnershipTransferred(owner, newOwner);
owner = newOwner;
}
}
contract Pausable is Ownable {
bool public paused = false;
event Pause();
event Unpause();
modifier whenNotPaused() { require(!paused); _; }
modifier whenPaused() { require(paused); _; }
function pause() onlyOwner whenNotPaused {
paused = true;
Pause();
}
function unpause() onlyOwner whenPaused {
paused = false;
Unpause();
}
}
contract ERC20 {
uint256 public totalSupply;
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function balanceOf(address who) constant returns (uint256);
function transfer(address to, uint256 value) returns (bool);
function transferFrom(address from, address to, uint256 value) returns (bool);
function allowance(address owner, address spender) constant returns (uint256);
function approve(address spender, uint256 value) returns (bool);
}
contract StandardToken is ERC20 {
using SafeMath for uint256;
mapping(address => uint256) balances;
mapping(address => mapping(address => uint256)) allowed;
function balanceOf(address _owner) constant returns(uint256 balance) {
return balances[_owner];
}
function transfer(address _to, uint256 _value) returns(bool success) {
require(_to != address(0));
balances[msg.sender] = balances[msg.sender].sub(_value);
balances[_to] = balances[_to].add(_value);
Transfer(msg.sender, _to, _value);
return true;
}
function transferFrom(address _from, address _to, uint256 _value) returns(bool success) {
require(_to != address(0));
var _allowance = allowed[_from][msg.sender];
balances[_from] = balances[_from].sub(_value);
balances[_to] = balances[_to].add(_value);
allowed[_from][msg.sender] = _allowance.sub(_value);
Transfer(_from, _to, _value);
return true;
}
function allowance(address _owner, address _spender) constant returns(uint256 remaining) {
return allowed[_owner][_spender];
}
function approve(address _spender, uint256 _value) returns(bool success) {
require((_value == 0) || (allowed[msg.sender][_spender] == 0));
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
function increaseApproval(address _spender, uint _addedValue) returns(bool success) {
allowed[msg.sender][_spender] = allowed[msg.sender][_spender].add(_addedValue);
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
function decreaseApproval(address _spender, uint _subtractedValue) returns(bool success) {
uint oldValue = allowed[msg.sender][_spender];
if(_subtractedValue > oldValue) {
allowed[msg.sender][_spender] = 0;
} else {
allowed[msg.sender][_spender] = oldValue.sub(_subtractedValue);
}
Approval(msg.sender, _spender, allowed[msg.sender][_spender]);
return true;
}
}
contract BurnableToken is StandardToken {
event Burn(address indexed burner, uint256 value);
function burn(uint256 _value) public {
require(_value > 0);
address burner = msg.sender;
balances[burner] = balances[burner].sub(_value);
totalSupply = totalSupply.sub(_value);
Burn(burner, _value);
}
}
contract MintableToken is StandardToken, Ownable {
event Mint(address indexed to, uint256 amount);
event MintFinished();
bool public mintingFinished = false;
uint public MAX_SUPPLY;
modifier canMint() { require(!mintingFinished); _; }
function mint(address _to, uint256 _amount) onlyOwner canMint public returns(bool success) {
require(totalSupply.add(_amount) <= MAX_SUPPLY);
totalSupply = totalSupply.add(_amount);
balances[_to] = balances[_to].add(_amount);
Mint(_to, _amount);
Transfer(address(0), _to, _amount);
return true;
}
function finishMinting() onlyOwner public returns(bool success) {
mintingFinished = true;
MintFinished();
return true;
}
}
/*
ICO GBCoin
- Эмиссия токенов ограничена (всего 40 000 000 токенов, токены выпускаются во время Crowdsale)
- Цена токена во время старта: 1 ETH = 20 токенов (1 Eth (~500$) / 20 = ~25$) (цену можно изменить во время ICO)
- Минимальная и максимальная сумма покупки: 1 ETH и 10 000 ETH
- Токенов на продажу 20 000 000 (50%)
- 20 000 000 (50%) токенов передается бенефициару во время создания токена
- Средства от покупки токенов передаются бенефициару
- Закрытие Crowdsale происходит с помощью функции `withdraw()`:нераскупленные токены и управление токеном передаётся бенефициару, выпуск токенов закрывается
- Измение цены токена происходет функцией `setTokenPrice(_value)`, где `_value` - кол-во токенов покумаемое за 1 Ether, смена стоимости токена доступно только во время паузы администратору, после завершения Crowdsale функция становится недоступной
*/
contract Token is BurnableToken, MintableToken {
string public name = "GBCoin";
string public symbol = "GBCN";
uint256 public decimals = 18;
function Token() {
MAX_SUPPLY = 40000000 * 1 ether; // Maximum amount tokens
mint(0xb942E28245d39ab4482e7C9972E07325B5653642, 20000000 * 1 ether);
}
}
contract Crowdsale is Pausable {
using SafeMath for uint;
Token public token;
address public beneficiary = 0xb942E28245d39ab4482e7C9972E07325B5653642;
uint public collectedWei;
uint public tokensSold;
uint public tokensForSale = 20000000 * 1 ether; // Amount tokens for sale
uint public priceTokenWei = 1 ether / 25; // 1 Eth (~875$) / 25 = ~35$
bool public crowdsaleFinished = false;
event NewContribution(address indexed holder, uint256 tokenAmount, uint256 etherAmount);
event Withdraw();
function Crowdsale() {
token = new Token();
}
function() payable {
purchase();
}
function setTokenPrice(uint _value) onlyOwner whenPaused {
require(!crowdsaleFinished);
priceTokenWei = 1 ether / _value;
}
function purchase() whenNotPaused payable {
require(!crowdsaleFinished);
require(tokensSold < tokensForSale);
require(msg.value >= 0.01 ether && msg.value <= 10000 * 1 ether);
uint sum = msg.value;
uint amount = sum.div(priceTokenWei).mul(1 ether);
uint retSum = 0;
if(tokensSold.add(amount) > tokensForSale) {
uint retAmount = tokensSold.add(amount).sub(tokensForSale);
retSum = retAmount.mul(priceTokenWei).div(1 ether);
amount = amount.sub(retAmount);
sum = sum.sub(retSum);
}
tokensSold = tokensSold.add(amount);
collectedWei = collectedWei.add(sum);
beneficiary.transfer(sum);
token.mint(msg.sender, amount);
if(retSum > 0) {
msg.sender.transfer(retSum);
}
NewContribution(msg.sender, amount, sum);
}
function withdraw() onlyOwner {
require(!crowdsaleFinished);
if(tokensForSale.sub(tokensSold) > 0) {
token.mint(beneficiary, tokensForSale.sub(tokensSold));
}
token.finishMinting();
token.transferOwnership(beneficiary);
crowdsaleFinished = true;
Withdraw();
}
function balanceOf(address _owner) constant returns(uint256 balance) {
return token.balanceOf(_owner);
}
}Compiler settingsShow
{
"optimizer": {
"runs": 0,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.