W GREEN PAY
ERC20
This contract is an ERC20 token.
Name
W GREEN PAY
Symbol
WGP
Decimals
18
Total Supply
600,000,000 WGP
About
link
description
W-Foundation leverages blockchain to promote environmental sustainability through its HOOXI mobile application, which is a gamified mobile social network service that encourages the public to reduce greenhouse gas emissions.
Stats
Public Functions
29
Event Types
9
Code Size
9,359 bytes
Library Use
Uses SafeMath for uint256.
Events (9) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
allowance keyboard_arrow_up
transferFrom keyboard_arrow_up
Modifiers help
onlyFinishedICO checks for the following:
onlyUnlockToken checks for the following:
Requirements help
Source Code
function transferFrom( address _from, address _to, uint256 _amount ) public onlyFinishedICO onlyUnlockToken returns (bool) {
require( _to != address(0), "Receiver can not be 0x0");
require(balances[_from] >= _amount, "Source's balance is not enough");
require(allowed[_from][msg.sender] >= _amount, "Allowance is not enough");
require(!locked[_from], "From address is locked");
require(!locked[_to], "Receiver address is locked");
balances[_from] = (balances[_from]).sub(_amount);
allowed[_from][msg.sender] = (allowed[_from][msg.sender]).sub(_amount);
balances[_to] = (balances[_to]).add(_amount);
emit Transfer(_from, _to, _amount);
return true;
}
approve keyboard_arrow_up
Modifiers help
onlyFinishedICO checks for the following:
onlyUnlockToken checks for the following:
Requirements help
Source Code
function approve(address _spender, uint256 _amount) public onlyFinishedICO onlyUnlockToken returns (bool) {
require( _spender != address(0), "Address can not be 0x0");
require(balances[msg.sender] >= _amount, "Balance does not have enough tokens");
require(!locked[msg.sender], "Sender address is locked");
require(!locked[_spender], "Spender address is locked");
allowed[msg.sender][_spender] = _amount;
emit Approval(msg.sender, _spender, _amount);
return true;
}
transfer keyboard_arrow_up
Modifiers help
onlyFinishedICO checks for the following:
onlyUnlockToken checks for the following:
Requirements help
Source Code
function transfer(address _to, uint256 _amount) public onlyFinishedICO onlyUnlockToken returns (bool) {
require( _to != address(0), "Receiver can not be 0x0");
require(balances[msg.sender] >= _amount, "Balance does not have enough tokens");
require(!locked[msg.sender], "Sender address is locked");
require(!locked[_to], "Receiver address is locked");
balances[msg.sender] = (balances[msg.sender]).sub(_amount);
balances[_to] = (balances[_to]).add(_amount);
emit Transfer(msg.sender, _to, _amount);
return true;
}
name keyboard_arrow_up
symbol keyboard_arrow_up
decimals keyboard_arrow_up
maxCap keyboard_arrow_up
owner keyboard_arrow_up
ethFundMain keyboard_arrow_up
icoStartDate keyboard_arrow_up
icoEndDate keyboard_arrow_up
lockToken keyboard_arrow_up
allowICO keyboard_arrow_up
lockStatusOf keyboard_arrow_up
burn keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Requirements help
Source Code
function burn(uint256 _value) public onlyOwner returns (bool) {
require(balances[msg.sender] >= _value, "Balance does not have enough tokens");
balances[msg.sender] = (balances[msg.sender]).sub(_value);
_totalsupply = _totalsupply.sub(_value);
emit Burn(msg.sender, _value);
return true;
}
stopTransferToken keyboard_arrow_up
startTransferToken keyboard_arrow_up
constructor keyboard_arrow_up
manualMint keyboard_arrow_up
haltCrowdSale keyboard_arrow_up
resumeCrowdSale keyboard_arrow_up
changeReceiveWallet keyboard_arrow_up
assignOwnership keyboard_arrow_up
forwardFunds keyboard_arrow_up
haltTokenTransferFromAddress keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function haltTokenTransferFromAddress(address investor) external onlyOwner {
locked[investor] = true;
emit ChangeLockStatusFrom(investor, true);
}
resumeTokenTransferFromAddress keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function resumeTokenTransferFromAddress(address investor) external onlyOwner {
locked[investor] = false;
emit ChangeLockStatusFrom(investor, false);
}