ERC20
This contract is an ERC20 token.
Name
CREDITS
Symbol
CS
Decimals
6
Total Supply
249,471,071 CS
About
link
description
Credits (CS) describes itself as an open-source blockchain platform aimed at addressing security, decentralization, and scalability. The team aims to achieve up to 1 million transactions per second speed with 0.1s confirmation times and low fees around 0.001 USD. The platform is designed to develop Dapps and smart contracts. Credits smart contracts reportedly allow users to set cycles and create schedules. For more information, please visit https://credits.com/en.
Stats
Public Functions
21
Event Types
3
Code Size
9,197 bytes
Events (3) keyboard_arrow_up
Functions
setAdmin keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setAdmin(address _address) public onlyOwner{
require(CanChange);
Admin=_address;
}
setFrozen keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setFrozen(bool _Frozen)public onlyOwner{
require(CanChange);
Frozen=_Frozen;
}
setCanChange keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setCanChange(bool _canChange)public onlyOwner{
require(CanChange);
CanChange=_canChange;
}
setAccountIsFrozen keyboard_arrow_up
Source Code
function setAccountIsFrozen(address _address, bool _IsFrozen)public isCanChange{
AccountIsFrozen[_address]=_IsFrozen;
if (isArrAccountIsFrozen[_address] != true) {
ArrAccountIsFrozen[ArrAccountIsFrozen.length++] = _address;
isArrAccountIsFrozen[_address] = true;
}
}
setAccountIsNotFrozen keyboard_arrow_up
Source Code
function setAccountIsNotFrozen(address _address, bool _IsFrozen)public isCanChange{
AccountIsNotFrozen[_address]=_IsFrozen;
if (isArrAccountIsNotFrozen[_address] != true) {
ArrAccountIsNotFrozen[ArrAccountIsNotFrozen.length++] = _address;
isArrAccountIsNotFrozen[_address] = true;
}
}
setAccountIsNotFrozenForReturn keyboard_arrow_up
Source Code
function setAccountIsNotFrozenForReturn(address _address, bool _IsFrozen)public isCanChange{
AccountIsNotFrozenForReturn[_address]=_IsFrozen;
if (isArrAccountIsNotFrozenForReturn[_address] != true) {
ArrAccountIsNotFrozenForReturn[ArrAccountIsNotFrozenForReturn.length++] = _address;
isArrAccountIsNotFrozenForReturn[_address] = true;
}
}
setAccountIsFrozenByDate keyboard_arrow_up
Requirements help
Source Code
function setAccountIsFrozenByDate(address _address, uint _Date)public isCanChange{
require (!isArrAccountIsFrozenByDate[_address]);
AccountIsFrozenByDate[_address]=_Date;
ArrAccountIsFrozenByDate[ArrAccountIsFrozenByDate.length++] = _address;
isArrAccountIsFrozenByDate[_address] = true;
}
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value) public {
require(((!Frozen&&AccountIsFrozen[msg.sender]!=true)||((Frozen)&&AccountIsNotFrozen[msg.sender]==true)||(AccountIsNotFrozenForReturn[msg.sender]==true&&_to==AddressForReturn))&&now>AccountIsFrozenByDate[msg.sender]);
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
require (balanceOf[_to] + _value >= balanceOf[_to]); // Check for overflows
balanceOf[msg.sender] -= _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
Transfer(msg.sender, _to, _value); // Notify anyone listening that this transfer took place
if (isHolder[_to] != true) {
Arrholders[Arrholders.length++] = _to;
isHolder[_to] = true;
}}
approve keyboard_arrow_up
Source Code
function approve(address _spender, uint256 _value)public
returns(bool success) {
allowance[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
transferFrom keyboard_arrow_up
Modifiers help
IsNotFrozen checks for the following:
Requirements help
Source Code
function transferFrom(address _from, address _to, uint256 _value)public IsNotFrozen returns(bool success) {
require(((!Frozen&&AccountIsFrozen[_from]!=true)||((Frozen)&&AccountIsNotFrozen[_from]==true))&&now>AccountIsFrozenByDate[_from]);
require (balanceOf[_from] >= _value) ; // Check if the sender has enough
require (balanceOf[_to] + _value >= balanceOf[_to]) ; // Check for overflows
require (_value <= allowance[_from][msg.sender]) ; // Check allowance
balanceOf[_from] -= _value; // Subtract from the sender
balanceOf[_to] += _value; // Add the same to the recipient
allowance[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
if (isHolder[_to] != true) {
Arrholders[Arrholders.length++] = _to;
isHolder[_to] = true;
}
return true;
}
burn keyboard_arrow_up
Modifiers help
IsNotFrozen checks for the following:
Requirements help
Source Code
function burn(uint256 _value) public IsNotFrozen returns (bool success) {
require(balanceOf[msg.sender] >= _value); // Check if the sender has enough
balanceOf[msg.sender] -= _value; // Subtract from the sender
totalSupply -= _value; // Updates totalSupply
Burn(msg.sender, _value);
return true;
}
burnFrom keyboard_arrow_up
Modifiers help
IsNotFrozen checks for the following:
Requirements help
Source Code
function burnFrom(address _from, uint256 _value) public IsNotFrozen returns (bool success) {
require(((!Frozen&&AccountIsFrozen[_from]!=true)||((Frozen)&&AccountIsNotFrozen[_from]==true))&&now>AccountIsFrozenByDate[_from]);
require(balanceOf[_from] >= _value); // Check if the targeted balance is enough
require(_value <= allowance[_from][msg.sender]); // Check allowance
balanceOf[_from] -= _value; // Subtract from the targeted balance
allowance[_from][msg.sender] -= _value; // Subtract from the sender's allowance
totalSupply -= _value; // Update totalSupply
Burn(_from, _value);
return true;
}
GetHoldersCount keyboard_arrow_up
GetAccountIsFrozenCount keyboard_arrow_up
GetAccountIsNotFrozenForReturnCount keyboard_arrow_up
GetAccountIsNotFrozenCount keyboard_arrow_up
GetAccountIsFrozenByDateCount keyboard_arrow_up
SetAddressForReturn keyboard_arrow_up
Source Code
function SetAddressForReturn (address _address) public isCanChange returns (bool success ){
AddressForReturn=_address;
return true;
}
setSymbol keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setSymbol(string _symbol) public onlyOwner {
require(CanChange);
symbol = _symbol;
}
setName keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function setName(string _name) public onlyOwner {
require(CanChange);
name = _name;
}