Tether USD
ERC20
This contract is an ERC20 token.
Name
Tether USD
Symbol
USDT
Decimals
6
Total Supply
6,877,479,172 USDT
About
link
description
Tether (USDT) is a cryptocurrency with a value meant to mirror the value of the U.S. dollar. The idea was to create a stable cryptocurrency that can be used like digital dollars. Coins that serve this purpose of being a stable dollar substitute are called “stable coins.” According to their site, Tether converts cash into digital currency, to anchor or “tether” the value of the coin to the price of national currencies like the US dollar, the Euro, and the Yen.
Tether (USDT) is issued on the Omni, TRON, and ETH blockchains. For details on the issuance across the different chains, please refer to: https://wallet.tether.to/transparency
Stats
Public Functions
18
Event Types
11
Code Size
14,888 bytes
Events (11) keyboard_arrow_up
Functions
totalSupply keyboard_arrow_up
balanceOf keyboard_arrow_up
Source Code
function balanceOf(address who) public constant returns (uint) {
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).balanceOf(who);
} else {
return super.balanceOf(who);
}
}
transfer keyboard_arrow_up
Requirements help
Source Code
function transfer(address _to, uint _value) public whenNotPaused {
require(!isBlackListed[msg.sender]);
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).transferByLegacy(msg.sender, _to, _value);
} else {
return super.transfer(_to, _value);
}
}
transferOwnership keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function transferOwnership(address newOwner) public onlyOwner {
if (newOwner != address(0)) {
owner = newOwner;
}
}
getBlackListStatus keyboard_arrow_up
getOwner keyboard_arrow_up
addBlackList keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function addBlackList (address _evilUser) public onlyOwner {
isBlackListed[_evilUser] = true;
AddedBlackList(_evilUser);
}
removeBlackList keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function removeBlackList (address _clearedUser) public onlyOwner {
isBlackListed[_clearedUser] = false;
RemovedBlackList(_clearedUser);
}
destroyBlackFunds keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function destroyBlackFunds (address _blackListedUser) public onlyOwner {
require(isBlackListed[_blackListedUser]);
uint dirtyFunds = balanceOf(_blackListedUser);
balances[_blackListedUser] = 0;
_totalSupply -= dirtyFunds;
DestroyedBlackFunds(_blackListedUser, dirtyFunds);
}
allowance keyboard_arrow_up
Source Code
function allowance(address _owner, address _spender) public constant returns (uint remaining) {
if (deprecated) {
return StandardToken(upgradedAddress).allowance(_owner, _spender);
} else {
return super.allowance(_owner, _spender);
}
}
transferFrom keyboard_arrow_up
Requirements help
Source Code
function transferFrom(address _from, address _to, uint _value) public whenNotPaused {
require(!isBlackListed[_from]);
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).transferFromByLegacy(msg.sender, _from, _to, _value);
} else {
return super.transferFrom(_from, _to, _value);
}
}
approve keyboard_arrow_up
Modifiers help
onlyPayloadSize checks for the following:
UNKNOWN VALUE must not be true
Source Code
function approve(address _spender, uint _value) public onlyPayloadSize(2 * 32) {
if (deprecated) {
return UpgradedStandardToken(upgradedAddress).approveByLegacy(msg.sender, _spender, _value);
} else {
return super.approve(_spender, _value);
}
}
pause keyboard_arrow_up
unpause keyboard_arrow_up
deprecate keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Source Code
function deprecate(address _upgradedAddress) public onlyOwner {
deprecated = true;
upgradedAddress = _upgradedAddress;
Deprecate(_upgradedAddress);
}
issue keyboard_arrow_up
redeem keyboard_arrow_up
setParams keyboard_arrow_up
Modifiers help
onlyOwner checks for the following:
Requirements help
Source Code
function setParams(uint newBasisPoints, uint newMaxFee) public onlyOwner {
// Ensure transparency by hardcoding limit beyond which fees can never be added
require(newBasisPoints < 20);
require(newMaxFee < 50);
basisPointsRate = newBasisPoints;
maximumFee = newMaxFee.mul(10**decimals);
Params(basisPointsRate, maximumFee);
}