by capableweb · 3y ago · 0 comments
This is basically what USDC is, and Circle is the organization that controls it. It is not a decentralized currency, it's a centralized digital currency. If Circle blacklists you and your funds, you won't be able to trade it for USD in the traditional exchanges, you'd only be able to do it P2P. This has happened already, with Tornado Cash, so it has precedent, not something I'm making up.
> USDC is issued and redeemed in accordance with Centre policies including the Centre Blacklisting Policy. Centre reserves the right to block the transfer of USDC to and from an address on chain as permitted under the Centre Blacklisting Policy.
https://www.circle.com/en/legal/usdc-terms & https://www.centre.io/hubfs/PDF/Centre_Blacklisting_Policy_2...
If Circle says you cannot exchange your USDC for USD, then that's the rule. If you don't want that possibility, you wouldn't use USDC in the first place.
It inherits from Blacklistable which allows a blacklister to blacklist accounts, and almost all functions on the contract have the notBlacklisted modifier which prevents them from being called by blacklisted accounts.
/**
* @title Blacklistable Token
* @dev Allows accounts to be blacklisted by a "blacklister" role
*/
contract Blacklistable is Ownable {
address public blacklister;
mapping(address => bool) internal blacklisted;
event Blacklisted(address indexed _account);
event UnBlacklisted(address indexed _account);
event BlacklisterChanged(address indexed newBlacklister);
/**
* @dev Throws if called by any account other than the blacklister
*/
modifier onlyBlacklister() {
require(
msg.sender == blacklister,
"Blacklistable: caller is not the blacklister"
);
_;
}
/**
* @dev Throws if argument account is blacklisted
* @param _account The address to check
*/
modifier notBlacklisted(address _account) {
require(
!blacklisted[_account],
"Blacklistable: account is blacklisted"
);
_;
}
/**
* @dev Checks if account is blacklisted
* @param _account The address to check
*/
function isBlacklisted(address _account) external view returns (bool) {
return blacklisted[_account];
}
/**
* @dev Adds account to blacklist
* @param _account The address to blacklist
*/
function blacklist(address _account) external onlyBlacklister {
blacklisted[_account] = true;
emit Blacklisted(_account);
}
/**
* @dev Removes account from blacklist
* @param _account The address to remove from the blacklist
*/
function unBlacklist(address _account) external onlyBlacklister {
blacklisted[_account] = false;
emit UnBlacklisted(_account);
}
function updateBlacklister(address _newBlacklister) external onlyOwner {
require(
_newBlacklister != address(0),
"Blacklistable: new blacklister is the zero address"
);
blacklister = _newBlacklister;
emit BlacklisterChanged(blacklister);
}
}