Raiden Token
ERC20
This contract is an ERC20 token.
Name
Raiden Token
Symbol
RDN
Decimals
18
Total Supply
100,000,000 RDN
About link description
Raiden Network Token (RDN) is a cryptocurrency and operates on the Ethereum platform. Raiden Network Token has a current supply of 99,999,999.99999996 with 66,793,930.99651379 in circulation. The last known price of Raiden Network Token is 0.25431392 USD and is up 0.41 over the last 24 hours. It is currently trading on 15 active market(s) with $343,662.22 traded over the last 24 hours. More information can be found at https://raiden.network/.
Stats
Public Functions
7
Event Types
4
Code Size
23,596 bytes
Events (4) keyboard_arrow_up
Functions
balanceOf keyboard_arrow_up
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint256 _value) public returns (bool) {
require(_to != 0x0);
require(_to != address(this));
require(balances[msg.sender] >= _value);
require(balances[_to] + _value >= balances[_to]);
balances[msg.sender] -= _value;
balances[_to] += _value;
Transfer(msg.sender, _to, _value);
return true;
}
transferFrom keyboard_arrow_up
Requirements help
Source Code
function transferFrom(
address _from,
address _to,
uint256 _value
) public returns (bool) {
require(_from != 0x0);
require(_to != 0x0);
require(_to != address(this));
require(balances[_from] >= _value);
require(allowed[_from][msg.sender] >= _value);
require(balances[_to] + _value >= balances[_to]);
balances[_to] += _value;
balances[_from] -= _value;
allowed[_from][msg.sender] -= _value;
Transfer(_from, _to, _value);
return true;
}
approve keyboard_arrow_up
Requirements help
One or more of the following:
-
allowed for the sender's address for _spender
must be equal to
0
- OR
_value
must be equal to
0
Source Code
function approve(address _spender, uint256 _value) public returns (bool) {
require(_spender != 0x0);
// To change the approve amount you first have to reduce the addresses`
// allowance to zero by calling `approve(_spender, 0)` if it is not
// already 0 to mitigate the race condition described here:
// https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
require(_value == 0 || allowed[msg.sender][_spender] == 0);
allowed[msg.sender][_spender] = _value;
Approval(msg.sender, _spender, _value);
return true;
}
allowance keyboard_arrow_up
transfer keyboard_arrow_up
Requirements help
null
Source Code
function transfer(
address _to,
uint256 _value,
bytes _data
) public returns (bool) {
require(transfer(_to, _value));
uint256 codeLength;
assembly {
// Retrieve the size of the code on target address, this needs assembly.
codeLength := extcodesize(_to)
}
if (codeLength > 0) {
ERC223ReceivingContract receiver = ERC223ReceivingContract(_to);
receiver.tokenFallback(msg.sender, _value, _data);
}
return true;
}
burn keyboard_arrow_up
Requirements help
Source Code
function burn(uint256 num) public {
require(num > 0);
require(balances[msg.sender] >= num);
require(totalSupply >= num);
uint256 pre_balance = balances[msg.sender];
balances[msg.sender] -= num;
totalSupply -= num;
Burnt(msg.sender, num, totalSupply);
Transfer(msg.sender, 0x0, num);
assert(balances[msg.sender] == pre_balance - num);
}
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.