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 Green Pay (WGP) is a cryptocurrency and operates on the Ethereum platform. W Green Pay has a current supply of 600,000,000 with 17,630,267.351556 in circulation. The last known price of W Green Pay is 0.01049579 USD and is down -0.14 over the last 24 hours. It is currently trading on 1 active market(s) with $21,208.25 traded over the last 24 hours. More information can be found at https://wpay.sg/.
Stats
Public Functions
29
Event Types
9
Code Size
9,359 bytes
Library Use
Uses SafeMath for uint256.
Events (9) keyboard_arrow_up
State Variables (10) 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
Modifiers help
onlyOwner checks for the following:
Source Code
function assignOwnership(address newOwner) external onlyOwner {
require(newOwner != address(0), "Address can not be 0x0");
_owner = newOwner;
emit ChangeOwnerShip(newOwner);
}
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);
}
Internal Functions
Internal functions are parts of the contract that can't be used directly, but instead are used by the public functions listed above.
internal WGP.mint keyboard_arrow_up
Requirements help
Source Code
function mint(
address from,
address receiver,
uint256 value
) internal {
require(receiver != address(0), "Address can not be 0x0");
require(value > 0, "Value should larger than 0");
balances[receiver] = balances[receiver].add(value);
_totalsupply = _totalsupply.add(value);
require(_totalsupply <= _maxCap, "CrowdSale hit max cap");
emit Mint(from, receiver, value);
emit Transfer(address(0), receiver, value);
}