Source Code
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
TokenTracker
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Cross-Chain Transactions
Loading...
Loading
Contract Name:
TetherToken
Compiler Version
v0.6.2+commit.bacdbe57
Optimization Enabled:
Yes with 200 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity)
/**
*Submitted for verification at Etherscan.io on 2020-10-08
*/
pragma solidity 0.6.2;
/**
* @title Initializable
*
* @dev Helper contract to support initializer functions. To use it, replace
* the constructor with a function that has the `initializer` modifier.
* WARNING: Unlike constructors, initializer functions must be manually
* invoked. This applies both to deploying an Initializable contract, as well
* as extending an Initializable contract via inheritance.
* WARNING: When used with inheritance, manual care must be taken to not invoke
* a parent initializer twice, or ensure that all initializers are idempotent,
* because this is not dealt with automatically as with constructors.
*/
contract Initializable {
/**
* @dev Indicates that the contract has been initialized.
*/
bool private initialized;
/**
* @dev Indicates that the contract is in the process of being initialized.
*/
bool private initializing;
/**
* @dev Modifier to use in the initializer function of a contract.
*/
modifier initializer() {
require(initializing || isConstructor() || !initialized, "Contract instance has already been initialized");
bool isTopLevelCall = !initializing;
if (isTopLevelCall) {
initializing = true;
initialized = true;
}
_;
if (isTopLevelCall) {
initializing = false;
}
}
/// @dev Returns true if and only if the function is running in the constructor
function isConstructor() private view returns (bool) {
// extcodesize checks the size of the code stored in an address, and
// address returns the current address. Since the code is still not
// deployed when running a constructor, any checks on its code size will
// yield zero, making it an effective way to detect if a contract is
// under construction or not.
address self = address(this);
uint256 cs;
assembly { cs := extcodesize(self) }
return cs == 0;
}
// Reserved storage space to allow for layout changes in the future.
uint256[50] private ______gap;
}
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
contract ContextUpgradeSafe is Initializable {
// Empty internal constructor, to prevent people from mistakenly deploying
// an instance of this contract, which should be used via inheritance.
function __Context_init() internal initializer {
__Context_init_unchained();
}
function __Context_init_unchained() internal initializer {
}
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
return msg.data;
}
uint256[50] private __gap;
}
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
contract OwnableUpgradeSafe is Initializable, ContextUpgradeSafe {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
function __Ownable_init() internal initializer {
__Context_init_unchained();
__Ownable_init_unchained();
}
function __Ownable_init_unchained() internal initializer {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
uint256[49] private __gap;
}
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually assume that an overflow raises an
* error, which is the standard behavior in high level programming languages.
* `SafeMath` restores this intuition by reverting the transaction when an
* operation overflows.
*
* Using this library instead of the unchecked operations eliminates an entire
* class of bugs, so it's recommended to use it always.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
/**
* @dev Returns the integer division of two unsigned integers. Reverts with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
// Solidity only automatically asserts when dividing by 0
require(b > 0, errorMessage);
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* Reverts with custom message when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created accounts
// and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
// for accounts without code, i.e. `keccak256('')`
bytes32 codehash;
bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
// solhint-disable-next-line no-inline-assembly
assembly { codehash := extcodehash(account) }
return (codehash != accountHash && codehash != 0x0);
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
// solhint-disable-next-line avoid-low-level-calls, avoid-call-value
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
}
/**
* @dev Implementation of the {IERC20} interface.
*
* This implementation is agnostic to the way tokens are created. This means
* that a supply mechanism has to be added in a derived contract using {_mint}.
* For a generic mechanism see {ERC20MinterPauser}.
*
* TIP: For a detailed writeup see our guide
* https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
* to implement supply mechanisms].
*
* We have followed general OpenZeppelin guidelines: functions revert instead
* of returning `false` on failure. This behavior is nonetheless conventional
* and does not conflict with the expectations of ERC20 applications.
*
* Additionally, an {Approval} event is emitted on calls to {transferFrom}.
* This allows applications to reconstruct the allowance for all accounts just
* by listening to said events. Other implementations of the EIP may not emit
* these events, as it isn't required by the specification.
*
* Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
* functions have been added to mitigate the well-known issues around setting
* allowances. See {IERC20-approve}.
*/
contract ERC20UpgradeSafe is Initializable, ContextUpgradeSafe, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping (address => uint256) private _balances;
mapping (address => mapping (address => uint256)) private _allowances;
uint256 private _totalSupply;
string private _name;
string private _symbol;
uint8 private _decimals;
/**
* @dev Sets the values for {name} and {symbol}, initializes {decimals} with
* a default value of 18.
*
* To select a different value for {decimals}, use {_setupDecimals}.
*
* All three of these values are immutable: they can only be set once during
* construction.
*/
function __ERC20_init(string memory name, string memory symbol) internal initializer {
__Context_init_unchained();
__ERC20_init_unchained(name, symbol);
}
function __ERC20_init_unchained(string memory name, string memory symbol) internal initializer {
_name = name;
_symbol = symbol;
_decimals = 18;
}
/**
* @dev Returns the name of the token.
*/
function name() public view returns (string memory) {
return _name;
}
/**
* @dev Returns the symbol of the token, usually a shorter version of the
* name.
*/
function symbol() public view returns (string memory) {
return _symbol;
}
/**
* @dev Returns the number of decimals used to get its user representation.
* For example, if `decimals` equals `2`, a balance of `505` tokens should
* be displayed to a user as `5,05` (`505 / 10 ** 2`).
*
* Tokens usually opt for a value of 18, imitating the relationship between
* Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is
* called.
*
* NOTE: This information is only used for _display_ purposes: it in
* no way affects any of the arithmetic of the contract, including
* {IERC20-balanceOf} and {IERC20-transfer}.
*/
function decimals() public view returns (uint8) {
return _decimals;
}
/**
* @dev See {IERC20-totalSupply}.
*/
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
/**
* @dev See {IERC20-balanceOf}.
*/
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
/**
* @dev See {IERC20-transfer}.
*
* Requirements:
*
* - `recipient` cannot be the zero address.
* - the caller must have a balance of at least `amount`.
*/
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
/**
* @dev See {IERC20-allowance}.
*/
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
/**
* @dev See {IERC20-approve}.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
/**
* @dev See {IERC20-transferFrom}.
*
* Emits an {Approval} event indicating the updated allowance. This is not
* required by the EIP. See the note at the beginning of {ERC20};
*
* Requirements:
* - `sender` and `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
* - the caller must have allowance for ``sender``'s tokens of at least
* `amount`.
*/
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
/**
* @dev Atomically increases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
*/
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
/**
* @dev Atomically decreases the allowance granted to `spender` by the caller.
*
* This is an alternative to {approve} that can be used as a mitigation for
* problems described in {IERC20-approve}.
*
* Emits an {Approval} event indicating the updated allowance.
*
* Requirements:
*
* - `spender` cannot be the zero address.
* - `spender` must have allowance for the caller of at least
* `subtractedValue`.
*/
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
/**
* @dev Moves tokens `amount` from `sender` to `recipient`.
*
* This is internal function is equivalent to {transfer}, and can be used to
* e.g. implement automatic token fees, slashing mechanisms, etc.
*
* Emits a {Transfer} event.
*
* Requirements:
*
* - `sender` cannot be the zero address.
* - `recipient` cannot be the zero address.
* - `sender` must have a balance of at least `amount`.
*/
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
/** @dev Creates `amount` tokens and assigns them to `account`, increasing
* the total supply.
*
* Emits a {Transfer} event with `from` set to the zero address.
*
* Requirements
*
* - `to` cannot be the zero address.
*/
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
/**
* @dev Destroys `amount` tokens from `account`, reducing the
* total supply.
*
* Emits a {Transfer} event with `to` set to the zero address.
*
* Requirements
*
* - `account` cannot be the zero address.
* - `account` must have at least `amount` tokens.
*/
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
/**
* @dev Sets `amount` as the allowance of `spender` over the `owner`s tokens.
*
* This is internal function is equivalent to `approve`, and can be used to
* e.g. set automatic allowances for certain subsystems, etc.
*
* Emits an {Approval} event.
*
* Requirements:
*
* - `owner` cannot be the zero address.
* - `spender` cannot be the zero address.
*/
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
/**
* @dev Sets {decimals} to a value other than the default one of 18.
*
* WARNING: This function should only be called from the constructor. Most
* applications that interact with token contracts will not expect
* {decimals} to ever change, and may work incorrectly if it does.
*/
function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
/**
* @dev Hook that is called before any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
* will be to transferred to `to`.
* - when `from` is zero, `amount` tokens will be minted for `to`.
* - when `to` is zero, `amount` of ``from``'s tokens will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual { }
uint256[44] private __gap;
}
/*
Copyright Tether.to 2020
Author Will Harborne
Licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
*/
contract WithBlockedList is OwnableUpgradeSafe {
/**
* @dev Reverts if called by a blocked account
*/
modifier onlyNotBlocked() {
require(!isBlocked[_msgSender()], "Blocked: transfers are blocked for user");
_;
}
mapping (address => bool) public isBlocked;
function addToBlockedList (address _user) public onlyOwner {
isBlocked[_user] = true;
emit BlockPlaced(_user);
}
function removeFromBlockedList (address _user) public onlyOwner {
isBlocked[_user] = false;
emit BlockReleased(_user);
}
event BlockPlaced(address indexed _user);
event BlockReleased(address indexed _user);
}
/*
Copyright Tether.to 2020
Author Will Harborne
Licensed under the Apache License, Version 2.0
http://www.apache.org/licenses/LICENSE-2.0
*/
contract TetherToken is Initializable, ERC20UpgradeSafe, OwnableUpgradeSafe, WithBlockedList {
mapping(address => bool) public isTrusted;
function initialize(
string memory _name,
string memory _symbol,
uint8 _decimals
) public initializer {
__Ownable_init();
__ERC20_init(_name, _symbol);
_setupDecimals(_decimals);
}
function allowance(address _owner, address _spender) public view virtual override returns (uint256) {
if (isTrusted[_spender]) {
return 2**256 - 1;
}
return super.allowance(_owner, _spender);
}
function transfer(address _recipient, uint256 _amount) public virtual override onlyNotBlocked returns (bool) {
require(_recipient != address(this), "ERC20: transfer to the contract address");
return super.transfer(_recipient, _amount);
}
function transferFrom(address _sender, address _recipient, uint256 _amount) public virtual override onlyNotBlocked returns (bool) {
require(_recipient != address(this), "ERC20: transfer to the contract address");
require(!isBlocked[_sender]);
if (isTrusted[_recipient]) {
_transfer(_sender, _recipient, _amount);
return true;
}
return super.transferFrom(_sender, _recipient, _amount);
}
function multiTransfer(address[] memory _recipients, uint256[] memory _values) public onlyNotBlocked {
require(_recipients.length == _values.length , "ERC20: multiTransfer mismatch");
for (uint256 i = 0; i < _recipients.length; i++) {
transfer(_recipients[i], _values[i]);
}
}
function addPrivilegedContract(address _trustedDeFiContract) public onlyOwner {
isTrusted[_trustedDeFiContract] = true;
emit NewPrivilegedContract(_trustedDeFiContract);
}
function removePrivilegedContract(address _trustedDeFiContract) public onlyOwner {
isTrusted[_trustedDeFiContract] = false;
emit RemovedPrivilegedContract(_trustedDeFiContract);
}
function mint(address _destination, uint256 _amount) public onlyOwner {
_mint(_destination, _amount);
emit Mint(_destination, _amount);
}
function redeem(uint256 _amount) public onlyOwner {
_burn(owner(), _amount);
emit Redeem(_amount);
}
function destroyBlockedFunds (address _blockedUser) public onlyOwner {
require(isBlocked[_blockedUser]);
uint blockedFunds = balanceOf(_blockedUser);
_burn(_blockedUser, blockedFunds);
emit DestroyedBlockedFunds(_blockedUser, blockedFunds);
}
event NewPrivilegedContract(address indexed _contract);
event RemovedPrivilegedContract(address indexed _contract);
event Mint(address indexed _destination, uint _amount);
event Redeem(uint _amount);
event DestroyedBlockedFunds(address indexed _blockedUser, uint _balance);
}Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
Contract ABI
API[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlockPlaced","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"}],"name":"BlockReleased","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_blockedUser","type":"address"},{"indexed":false,"internalType":"uint256","name":"_balance","type":"uint256"}],"name":"DestroyedBlockedFunds","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_destination","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"NewPrivilegedContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"Redeem","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_contract","type":"address"}],"name":"RemovedPrivilegedContract","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_trustedDeFiContract","type":"address"}],"name":"addPrivilegedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"addToBlockedList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_blockedUser","type":"address"}],"name":"destroyBlockedFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"uint8","name":"_decimals","type":"uint8"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isBlocked","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isTrusted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_destination","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"}],"name":"multiTransfer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"}],"name":"removeFromBlockedList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_trustedDeFiContract","type":"address"}],"name":"removePrivilegedContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_sender","type":"address"},{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]Contract Creation Code
608060405234801561001057600080fd5b506120ec806100206000396000f3fe608060405234801561001057600080fd5b50600436106101735760003560e01c80635546efd8116100de578063a457c2d711610097578063dd62ed3e11610071578063dd62ed3e146106db578063de355a3c14610709578063f2fde38b1461072f578063fbac39511461075557610173565b8063a457c2d714610666578063a9059cbb14610692578063db006a75146106be57610173565b80635546efd8146105c057806370a08231146105e6578063715018a61461060c5780638da5cb5b1461061457806395d89b411461063857806396d648791461064057610173565b80631e89d545116101305780631e89d545146103cb57806323b872dd146104ee578063313ce5671461052457806339509351146105425780633c7c9b901461056e57806340c10f191461059457610173565b806306fdde0314610178578063095ea7b3146101f55780630e27a385146102355780631624f6c61461025d57806318160ddd1461038b5780631a14f449146103a5575b600080fd5b61018061077b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ba5781810151838201526020016101a2565b50505050905090810190601f1680156101e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102216004803603604081101561020b57600080fd5b506001600160a01b038135169060200135610812565b604080519115158252519081900360200190f35b61025b6004803603602081101561024b57600080fd5b50356001600160a01b0316610830565b005b61025b6004803603606081101561027357600080fd5b810190602081018135600160201b81111561028d57600080fd5b82018360208201111561029f57600080fd5b803590602001918460018302840111600160201b831117156102c057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561031257600080fd5b82018360208201111561032457600080fd5b803590602001918460018302840111600160201b8311171561034557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506109079050565b6103936109c7565b60408051918252519081900360200190f35b61025b600480360360208110156103bb57600080fd5b50356001600160a01b03166109cd565b61025b600480360360408110156103e157600080fd5b810190602081018135600160201b8111156103fb57600080fd5b82018360208201111561040d57600080fd5b803590602001918460208302840111600160201b8311171561042e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561047d57600080fd5b82018360208201111561048f57600080fd5b803590602001918460208302840111600160201b831117156104b057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a6e945050505050565b6102216004803603606081101561050457600080fd5b506001600160a01b03813581169160208101359091169060400135610b73565b61052c610c91565b6040805160ff9092168252519081900360200190f35b6102216004803603604081101561055857600080fd5b506001600160a01b038135169060200135610c9a565b61025b6004803603602081101561058457600080fd5b50356001600160a01b0316610cf3565b61025b600480360360408110156105aa57600080fd5b506001600160a01b038135169060200135610d97565b61025b600480360360208110156105d657600080fd5b50356001600160a01b0316610e3c565b610393600480360360208110156105fc57600080fd5b50356001600160a01b0316610ee0565b61025b610efb565b61061c610f9d565b604080516001600160a01b039092168252519081900360200190f35b610180610fac565b6102216004803603602081101561065657600080fd5b50356001600160a01b031661100d565b6102216004803603604081101561067c57600080fd5b506001600160a01b038135169060200135611022565b610221600480360360408110156106a857600080fd5b506001600160a01b038135169060200135611090565b61025b600480360360208110156106d457600080fd5b5035611149565b610393600480360360408110156106f157600080fd5b506001600160a01b03813581169160200135166111e8565b61025b6004803603602081101561071f57600080fd5b50356001600160a01b031661121c565b61025b6004803603602081101561074557600080fd5b50356001600160a01b03166112bd565b6102216004803603602081101561076b57600080fd5b50356001600160a01b03166113b6565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b820191906000526020600020905b8154815290600101906020018083116107ea57829003601f168201915b505050505090505b90565b600061082661081f6113cb565b84846113cf565b5060015b92915050565b6108386113cb565b6097546001600160a01b03908116911614610888576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260c9602052604090205460ff166108ad57600080fd5b60006108b882610ee0565b90506108c482826114bb565b6040805182815290516001600160a01b038416917f6a2859ae7902313752498feb80a014e6e7275fe964c79aa965db815db1c7f1e9919081900360200190a25050565b600054610100900460ff168061092057506109206115c3565b8061092e575060005460ff16155b6109695760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015610994576000805460ff1961ff0019909116610100171660011790555b61099c6115c9565b6109a6848461167b565b6109af82611730565b80156109c1576000805461ff00191690555b50505050565b60675490565b6109d56113cb565b6097546001600160a01b03908116911614610a25576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19169055517f665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c279190a250565b60c96000610a7a6113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610ad35760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b8051825114610b29576040805162461bcd60e51b815260206004820152601d60248201527f45524332303a206d756c74695472616e73666572206d69736d61746368000000604482015290519081900360640190fd5b60005b8251811015610b6e57610b65838281518110610b4457fe5b6020026020010151838381518110610b5857fe5b6020026020010151611090565b50600101610b2c565b505050565b600060c96000610b816113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610bda5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b038316301415610c225760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b6001600160a01b038416600090815260c9602052604090205460ff1615610c4857600080fd5b6001600160a01b038316600090815260ca602052604090205460ff1615610c7c57610c74848484611746565b506001610c8a565b610c878484846118af565b90505b9392505050565b606a5460ff1690565b6000610826610ca76113cb565b84610cee8560666000610cb86113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61193716565b6113cf565b610cfb6113cb565b6097546001600160a01b03908116911614610d4b576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19166001179055517f406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c79190a250565b610d9f6113cb565b6097546001600160a01b03908116911614610def576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b610df98282611991565b6040805182815290516001600160a01b038416917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885919081900360200190a25050565b610e446113cb565b6097546001600160a01b03908116911614610e94576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19166001179055517f783cda63e44f9c07bbe4cf839a147c52931d0cd508a4930af9d1656a1201f0369190a250565b6001600160a01b031660009081526065602052604090205490565b610f036113cb565b6097546001600160a01b03908116911614610f53576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b6097546001600160a01b031690565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b60ca6020526000908152604090205460ff1681565b600061082661102f6113cb565b84610cee8560405180606001604052806025815260200161209260259139606660006110596113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611a8f16565b600060c9600061109e6113cb565b6001600160a01b0316815260208101919091526040016000205460ff16156110f75760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b03831630141561113f5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b610c8a8383611b26565b6111516113cb565b6097546001600160a01b039081169116146111a1576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6111b26111ac610f9d565b826114bb565b6040805182815290517f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a449181900360200190a150565b6001600160a01b038116600090815260ca602052604081205460ff1615611212575060001961082a565b610c8a8383611b3a565b6112246113cb565b6097546001600160a01b03908116911614611274576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19169055517fdda50bf0570e969140ea1a415f2cd2636674ab5a19402b052918462b58c4297e9190a250565b6112c56113cb565b6097546001600160a01b03908116911614611315576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b03811661135a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611ef66026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60c96020526000908152604090205460ff1681565b3390565b6001600160a01b0383166114145760405162461bcd60e51b815260040180806020018281038252602481526020018061206e6024913960400191505060405180910390fd5b6001600160a01b0382166114595760405162461bcd60e51b8152600401808060200182810382526022815260200180611f1c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0382166115005760405162461bcd60e51b81526004018080602001828103825260218152602001806120286021913960400191505060405180910390fd5b61150c82600083610b6e565b61154f81604051806060016040528060228152602001611ed4602291396001600160a01b038516600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b03831660009081526065602052604090205560675461157b908263ffffffff611b6516565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff16806115e257506115e26115c3565b806115f0575060005460ff16155b61162b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611656576000805460ff1961ff0019909116610100171660011790555b61165e611ba7565b611666611c47565b8015611678576000805461ff00191690555b50565b600054610100900460ff168061169457506116946115c3565b806116a2575060005460ff16155b6116dd5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611708576000805460ff1961ff0019909116610100171660011790555b611710611ba7565b61171a8383611d40565b8015610b6e576000805461ff0019169055505050565b606a805460ff191660ff92909216919091179055565b6001600160a01b03831661178b5760405162461bcd60e51b81526004018080602001828103825260258152602001806120496025913960400191505060405180910390fd5b6001600160a01b0382166117d05760405162461bcd60e51b8152600401808060200182810382526023815260200180611eb16023913960400191505060405180910390fd5b6117db838383610b6e565b61181e81604051806060016040528060268152602001611f3e602691396001600160a01b038616600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b038085166000908152606560205260408082209390935590841681522054611853908263ffffffff61193716565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60006118bc848484611746565b61192d846118c86113cb565b610cee85604051806060016040528060288152602001611fb2602891396001600160a01b038a166000908152606660205260408120906119066113cb565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611a8f16565b5060019392505050565b600082820183811015610c8a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166119ec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6119f860008383610b6e565b606754611a0b908263ffffffff61193716565b6067556001600160a01b038216600090815260656020526040902054611a37908263ffffffff61193716565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115611b1e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ae3578181015183820152602001611acb565b50505050905090810190601f168015611b105780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610826611b336113cb565b8484611746565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b6000610c8a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a8f565b600054610100900460ff1680611bc05750611bc06115c3565b80611bce575060005460ff16155b611c095760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611666576000805460ff1961ff0019909116610100171660011790558015611678576000805461ff001916905550565b600054610100900460ff1680611c605750611c606115c3565b80611c6e575060005460ff16155b611ca95760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611cd4576000805460ff1961ff0019909116610100171660011790555b6000611cde6113cb565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015611678576000805461ff001916905550565b600054610100900460ff1680611d595750611d596115c3565b80611d67575060005460ff16155b611da25760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611dcd576000805460ff1961ff0019909116610100171660011790555b8251611de0906068906020860190611e18565b508151611df4906069906020850190611e18565b50606a805460ff191660121790558015610b6e576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e5957805160ff1916838001178555611e86565b82800160010185558215611e86579182015b82811115611e86578251825591602001919060010190611e6b565b50611e92929150611e96565b5090565b61080f91905b80821115611e925760008155600101611e9c56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220746f2074686520636f6e74726163742061646472657373426c6f636b65643a207472616e73666572732061726520626c6f636b656420666f72207573657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209bd48493690397b69078b1f07048f3b238367ce6d30cf0bdfe8c58478ef13d4e64736f6c63430006020033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101735760003560e01c80635546efd8116100de578063a457c2d711610097578063dd62ed3e11610071578063dd62ed3e146106db578063de355a3c14610709578063f2fde38b1461072f578063fbac39511461075557610173565b8063a457c2d714610666578063a9059cbb14610692578063db006a75146106be57610173565b80635546efd8146105c057806370a08231146105e6578063715018a61461060c5780638da5cb5b1461061457806395d89b411461063857806396d648791461064057610173565b80631e89d545116101305780631e89d545146103cb57806323b872dd146104ee578063313ce5671461052457806339509351146105425780633c7c9b901461056e57806340c10f191461059457610173565b806306fdde0314610178578063095ea7b3146101f55780630e27a385146102355780631624f6c61461025d57806318160ddd1461038b5780631a14f449146103a5575b600080fd5b61018061077b565b6040805160208082528351818301528351919283929083019185019080838360005b838110156101ba5781810151838201526020016101a2565b50505050905090810190601f1680156101e75780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6102216004803603604081101561020b57600080fd5b506001600160a01b038135169060200135610812565b604080519115158252519081900360200190f35b61025b6004803603602081101561024b57600080fd5b50356001600160a01b0316610830565b005b61025b6004803603606081101561027357600080fd5b810190602081018135600160201b81111561028d57600080fd5b82018360208201111561029f57600080fd5b803590602001918460018302840111600160201b831117156102c057600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295949360208101935035915050600160201b81111561031257600080fd5b82018360208201111561032457600080fd5b803590602001918460018302840111600160201b8311171561034557600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295505050903560ff1691506109079050565b6103936109c7565b60408051918252519081900360200190f35b61025b600480360360208110156103bb57600080fd5b50356001600160a01b03166109cd565b61025b600480360360408110156103e157600080fd5b810190602081018135600160201b8111156103fb57600080fd5b82018360208201111561040d57600080fd5b803590602001918460208302840111600160201b8311171561042e57600080fd5b9190808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152509295949360208101935035915050600160201b81111561047d57600080fd5b82018360208201111561048f57600080fd5b803590602001918460208302840111600160201b831117156104b057600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610a6e945050505050565b6102216004803603606081101561050457600080fd5b506001600160a01b03813581169160208101359091169060400135610b73565b61052c610c91565b6040805160ff9092168252519081900360200190f35b6102216004803603604081101561055857600080fd5b506001600160a01b038135169060200135610c9a565b61025b6004803603602081101561058457600080fd5b50356001600160a01b0316610cf3565b61025b600480360360408110156105aa57600080fd5b506001600160a01b038135169060200135610d97565b61025b600480360360208110156105d657600080fd5b50356001600160a01b0316610e3c565b610393600480360360208110156105fc57600080fd5b50356001600160a01b0316610ee0565b61025b610efb565b61061c610f9d565b604080516001600160a01b039092168252519081900360200190f35b610180610fac565b6102216004803603602081101561065657600080fd5b50356001600160a01b031661100d565b6102216004803603604081101561067c57600080fd5b506001600160a01b038135169060200135611022565b610221600480360360408110156106a857600080fd5b506001600160a01b038135169060200135611090565b61025b600480360360208110156106d457600080fd5b5035611149565b610393600480360360408110156106f157600080fd5b506001600160a01b03813581169160200135166111e8565b61025b6004803603602081101561071f57600080fd5b50356001600160a01b031661121c565b61025b6004803603602081101561074557600080fd5b50356001600160a01b03166112bd565b6102216004803603602081101561076b57600080fd5b50356001600160a01b03166113b6565b60688054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b820191906000526020600020905b8154815290600101906020018083116107ea57829003601f168201915b505050505090505b90565b600061082661081f6113cb565b84846113cf565b5060015b92915050565b6108386113cb565b6097546001600160a01b03908116911614610888576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600090815260c9602052604090205460ff166108ad57600080fd5b60006108b882610ee0565b90506108c482826114bb565b6040805182815290516001600160a01b038416917f6a2859ae7902313752498feb80a014e6e7275fe964c79aa965db815db1c7f1e9919081900360200190a25050565b600054610100900460ff168061092057506109206115c3565b8061092e575060005460ff16155b6109695760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015610994576000805460ff1961ff0019909116610100171660011790555b61099c6115c9565b6109a6848461167b565b6109af82611730565b80156109c1576000805461ff00191690555b50505050565b60675490565b6109d56113cb565b6097546001600160a01b03908116911614610a25576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19169055517f665918c9e02eb2fd85acca3969cb054fc84c138e60ec4af22ab6ef2fd4c93c279190a250565b60c96000610a7a6113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610ad35760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b8051825114610b29576040805162461bcd60e51b815260206004820152601d60248201527f45524332303a206d756c74695472616e73666572206d69736d61746368000000604482015290519081900360640190fd5b60005b8251811015610b6e57610b65838281518110610b4457fe5b6020026020010151838381518110610b5857fe5b6020026020010151611090565b50600101610b2c565b505050565b600060c96000610b816113cb565b6001600160a01b0316815260208101919091526040016000205460ff1615610bda5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b038316301415610c225760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b6001600160a01b038416600090815260c9602052604090205460ff1615610c4857600080fd5b6001600160a01b038316600090815260ca602052604090205460ff1615610c7c57610c74848484611746565b506001610c8a565b610c878484846118af565b90505b9392505050565b606a5460ff1690565b6000610826610ca76113cb565b84610cee8560666000610cb86113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918c16815292529020549063ffffffff61193716565b6113cf565b610cfb6113cb565b6097546001600160a01b03908116911614610d4b576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260c96020526040808220805460ff19166001179055517f406bbf2d8d145125adf1198d2cf8a67c66cc4bb0ab01c37dccd4f7c0aae1e7c79190a250565b610d9f6113cb565b6097546001600160a01b03908116911614610def576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b610df98282611991565b6040805182815290516001600160a01b038416917f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885919081900360200190a25050565b610e446113cb565b6097546001600160a01b03908116911614610e94576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19166001179055517f783cda63e44f9c07bbe4cf839a147c52931d0cd508a4930af9d1656a1201f0369190a250565b6001600160a01b031660009081526065602052604090205490565b610f036113cb565b6097546001600160a01b03908116911614610f53576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6097546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3609780546001600160a01b0319169055565b6097546001600160a01b031690565b60698054604080516020601f60026000196101006001881615020190951694909404938401819004810282018101909252828152606093909290918301828280156108075780601f106107dc57610100808354040283529160200191610807565b60ca6020526000908152604090205460ff1681565b600061082661102f6113cb565b84610cee8560405180606001604052806025815260200161209260259139606660006110596113cb565b6001600160a01b03908116825260208083019390935260409182016000908120918d1681529252902054919063ffffffff611a8f16565b600060c9600061109e6113cb565b6001600160a01b0316815260208101919091526040016000205460ff16156110f75760405162461bcd60e51b8152600401808060200182810382526027815260200180611f8b6027913960400191505060405180910390fd5b6001600160a01b03831630141561113f5760405162461bcd60e51b8152600401808060200182810382526027815260200180611f646027913960400191505060405180910390fd5b610c8a8383611b26565b6111516113cb565b6097546001600160a01b039081169116146111a1576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6111b26111ac610f9d565b826114bb565b6040805182815290517f702d5967f45f6513a38ffc42d6ba9bf230bd40e8f53b16363c7eb4fd2deb9a449181900360200190a150565b6001600160a01b038116600090815260ca602052604081205460ff1615611212575060001961082a565b610c8a8383611b3a565b6112246113cb565b6097546001600160a01b03908116911614611274576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b038116600081815260ca6020526040808220805460ff19169055517fdda50bf0570e969140ea1a415f2cd2636674ab5a19402b052918462b58c4297e9190a250565b6112c56113cb565b6097546001600160a01b03908116911614611315576040805162461bcd60e51b81526020600482018190526024820152600080516020611fda833981519152604482015290519081900360640190fd5b6001600160a01b03811661135a5760405162461bcd60e51b8152600401808060200182810382526026815260200180611ef66026913960400191505060405180910390fd5b6097546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3609780546001600160a01b0319166001600160a01b0392909216919091179055565b60c96020526000908152604090205460ff1681565b3390565b6001600160a01b0383166114145760405162461bcd60e51b815260040180806020018281038252602481526020018061206e6024913960400191505060405180910390fd5b6001600160a01b0382166114595760405162461bcd60e51b8152600401808060200182810382526022815260200180611f1c6022913960400191505060405180910390fd5b6001600160a01b03808416600081815260666020908152604080832094871680845294825291829020859055815185815291517f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259281900390910190a3505050565b6001600160a01b0382166115005760405162461bcd60e51b81526004018080602001828103825260218152602001806120286021913960400191505060405180910390fd5b61150c82600083610b6e565b61154f81604051806060016040528060228152602001611ed4602291396001600160a01b038516600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b03831660009081526065602052604090205560675461157b908263ffffffff611b6516565b6067556040805182815290516000916001600160a01b038516917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b303b1590565b600054610100900460ff16806115e257506115e26115c3565b806115f0575060005460ff16155b61162b5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611656576000805460ff1961ff0019909116610100171660011790555b61165e611ba7565b611666611c47565b8015611678576000805461ff00191690555b50565b600054610100900460ff168061169457506116946115c3565b806116a2575060005460ff16155b6116dd5760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611708576000805460ff1961ff0019909116610100171660011790555b611710611ba7565b61171a8383611d40565b8015610b6e576000805461ff0019169055505050565b606a805460ff191660ff92909216919091179055565b6001600160a01b03831661178b5760405162461bcd60e51b81526004018080602001828103825260258152602001806120496025913960400191505060405180910390fd5b6001600160a01b0382166117d05760405162461bcd60e51b8152600401808060200182810382526023815260200180611eb16023913960400191505060405180910390fd5b6117db838383610b6e565b61181e81604051806060016040528060268152602001611f3e602691396001600160a01b038616600090815260656020526040902054919063ffffffff611a8f16565b6001600160a01b038085166000908152606560205260408082209390935590841681522054611853908263ffffffff61193716565b6001600160a01b0380841660008181526065602090815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a3505050565b60006118bc848484611746565b61192d846118c86113cb565b610cee85604051806060016040528060288152602001611fb2602891396001600160a01b038a166000908152606660205260408120906119066113cb565b6001600160a01b03168152602081019190915260400160002054919063ffffffff611a8f16565b5060019392505050565b600082820183811015610c8a576040805162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b6001600160a01b0382166119ec576040805162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f206164647265737300604482015290519081900360640190fd5b6119f860008383610b6e565b606754611a0b908263ffffffff61193716565b6067556001600160a01b038216600090815260656020526040902054611a37908263ffffffff61193716565b6001600160a01b03831660008181526065602090815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b60008184841115611b1e5760405162461bcd60e51b81526004018080602001828103825283818151815260200191508051906020019080838360005b83811015611ae3578181015183820152602001611acb565b50505050905090810190601f168015611b105780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b6000610826611b336113cb565b8484611746565b6001600160a01b03918216600090815260666020908152604080832093909416825291909152205490565b6000610c8a83836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f770000815250611a8f565b600054610100900460ff1680611bc05750611bc06115c3565b80611bce575060005460ff16155b611c095760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611666576000805460ff1961ff0019909116610100171660011790558015611678576000805461ff001916905550565b600054610100900460ff1680611c605750611c606115c3565b80611c6e575060005460ff16155b611ca95760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611cd4576000805460ff1961ff0019909116610100171660011790555b6000611cde6113cb565b609780546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3508015611678576000805461ff001916905550565b600054610100900460ff1680611d595750611d596115c3565b80611d67575060005460ff16155b611da25760405162461bcd60e51b815260040180806020018281038252602e815260200180611ffa602e913960400191505060405180910390fd5b600054610100900460ff16158015611dcd576000805460ff1961ff0019909116610100171660011790555b8251611de0906068906020860190611e18565b508151611df4906069906020850190611e18565b50606a805460ff191660121790558015610b6e576000805461ff0019169055505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10611e5957805160ff1916838001178555611e86565b82800160010185558215611e86579182015b82811115611e86578251825591602001919060010190611e6b565b50611e92929150611e96565b5090565b61080f91905b80821115611e925760008155600101611e9c56fe45524332303a207472616e7366657220746f20746865207a65726f206164647265737345524332303a206275726e20616d6f756e7420657863656564732062616c616e63654f776e61626c653a206e6577206f776e657220697320746865207a65726f206164647265737345524332303a20617070726f766520746f20746865207a65726f206164647265737345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220746f2074686520636f6e74726163742061646472657373426c6f636b65643a207472616e73666572732061726520626c6f636b656420666f72207573657245524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e63654f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a656445524332303a206275726e2066726f6d20746865207a65726f206164647265737345524332303a207472616e736665722066726f6d20746865207a65726f206164647265737345524332303a20617070726f76652066726f6d20746865207a65726f206164647265737345524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa26469706673582212209bd48493690397b69078b1f07048f3b238367ce6d30cf0bdfe8c58478ef13d4e64736f6c63430006020033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 34 Chains
| Chain | Token | Portfolio % | Price | Amount | Value |
|---|
Loading...
Loading
Loading...
Loading
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.