ERC-20
Overview
Max Total Supply
644,847,500,000,128,360.991366906474817743 RING
Holders
143
Market
Price
$0.00 @ 0.000000 S
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Loading...
Loading
Loading...
Loading
Loading...
Loading
Contract Name:
RINGToken
Compiler Version
v0.8.19+commit.7dd6d404
Contract Source Code (Solidity)
/** *Submitted for verification at SonicScan.org on 2025-03-21 */ /** *Submitted for verification at SonicScan.org on 2025-02-20 */ // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** * @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) { // This method relies on extcodesize, which returns 0 for contracts in // construction, since the code is only stored at the end of the // constructor execution. uint256 size; // solhint-disable-next-line no-inline-assembly assembly { size := extcodesize(account) } return size > 0; } /** * @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 Performs a Solidity function call using a low level `call`. A * plain`call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.call{ value: value }(data); return _verifyCallResult(success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); // solhint-disable-next-line avoid-low-level-calls (bool success, bytes memory returndata) = target.staticcall(data); return _verifyCallResult(success, returndata, errorMessage); } function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) { if (success) { return returndata; } else { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly // solhint-disable-next-line no-inline-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } } /** * @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) { 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 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 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. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } } /** * @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. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor () { 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; } } /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using SafeMath for uint256; using Address for address; function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' // solhint-disable-next-line max-line-length require((value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).add(value); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 newAllowance = token.allowance(address(this), spender).sub(value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { // Return data is optional // solhint-disable-next-line max-line-length require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } } interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the token decimals. */ function decimals() external view returns (uint8); /** * @dev Returns the token symbol. */ function symbol() external view returns (string memory); /** * @dev Returns the token name. */ function name() external view returns (string memory); /** * @dev Returns the erc token owner. */ function getOwner() external view returns (address); /** * @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 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 {ERC20PresetMinterPauser}. * * 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 ERC20 is Context, IERC20, Ownable { using SafeMath for uint256; 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. */ constructor(string memory name, string memory symbol) { _name = name; _symbol = symbol; _decimals = 18; } /** * @dev Returns the erc token owner. */ function getOwner() external override view returns (address) { return owner(); } /** * @dev Returns the name of the token. */ function name() public override view returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public override view returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. */ function decimals() public override view returns (uint8) { return _decimals; } /** * @dev See {ERC20-totalSupply}. */ function totalSupply() public override view returns (uint256) { return _totalSupply; } /** * @dev See {ERC20-balanceOf}. */ function balanceOf(address account) public override view returns (uint256) { return _balances[account]; } /** * @dev See {ERC20-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 override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {ERC20-allowance}. */ function allowance(address owner, address spender) public override view returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {ERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public override returns (bool) { _approve(_msgSender(), spender, amount); return true; } /** * @dev See {ERC20-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 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 {ERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public 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 {ERC20-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 returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, 'ERC20: decreased allowance below zero')); return true; } /** * @dev Creates `amount` tokens and assigns them to `msg.sender`, increasing * the total supply. * * Requirements * * - `msg.sender` must be the token owner */ function mint(uint256 amount) public onlyOwner returns (bool) { _mint(_msgSender(), amount); 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 { require(sender != address(0), 'ERC20: transfer from the zero address'); require(recipient != address(0), 'ERC20: transfer to the zero address'); _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 { require(account != address(0), 'ERC20: mint to the zero address'); _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 { require(account != address(0), 'ERC20: burn from the zero address'); _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 { 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 Destroys `amount` tokens from `account`.`amount` is then deducted * from the caller's allowance. * * See {_burn} and {_approve}. */ function _burnFrom(address account, uint256 amount) internal { _burn(account, amount); _approve(account, _msgSender(), _allowances[account][_msgSender()].sub(amount, 'ERC20: burn amount exceeds allowance')); } } // RINGToken with Governance. contract RINGToken is ERC20('RING', 'RING') { /// @notice Creates `_amount` token to `_to`. Must only be called by the owner (MasterChef). function mint(address _to, uint256 _amount) public onlyOwner { _mint(_to, _amount); _moveDelegates(address(0), _delegates[_to], _amount); } // Copied and modified from YAM code: // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernanceStorage.sol // https://github.com/yam-finance/yam-protocol/blob/master/contracts/token/YAMGovernance.sol // Which is copied and modified from COMPOUND: // https://github.com/compound-finance/compound-protocol/blob/master/contracts/Governance/Comp.sol /// @notice A record of each accounts delegate mapping (address => address) internal _delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint256 votes; } /// @notice A record of votes checkpoints for each account, by index mapping (address => mapping (uint32 => Checkpoint)) public checkpoints; /// @notice The number of checkpoints for each account mapping (address => uint32) public numCheckpoints; /// @notice The EIP-712 typehash for the contract's domain bytes32 public constant DOMAIN_TYPEHASH = keccak256("EIP712Domain(string name,uint256 chainId,address verifyingContract)"); /// @notice The EIP-712 typehash for the delegation struct used by the contract bytes32 public constant DELEGATION_TYPEHASH = keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)"); /// @notice A record of states for signing / validating signatures mapping (address => uint) public nonces; /// @notice An event thats emitted when an account changes its delegate event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /// @notice An event thats emitted when a delegate account's vote balance changes event DelegateVotesChanged(address indexed delegate, uint previousBalance, uint newBalance); /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegator The address to get delegatee for */ function delegates(address delegator) external view returns (address) { return _delegates[delegator]; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) external { return _delegate(msg.sender, delegatee); } /** * @notice Delegates votes from signatory to `delegatee` * @param delegatee The address to delegate votes to * @param nonce The contract state required to match the signature * @param expiry The time at which to expire the signature * @param v The recovery byte of the signature * @param r Half of the ECDSA signature pair * @param s Half of the ECDSA signature pair */ function delegateBySig( address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s ) external { bytes32 domainSeparator = keccak256( abi.encode( DOMAIN_TYPEHASH, keccak256(bytes(name())), getChainId(), address(this) ) ); bytes32 structHash = keccak256( abi.encode( DELEGATION_TYPEHASH, delegatee, nonce, expiry ) ); bytes32 digest = keccak256( abi.encodePacked( "\x19\x01", domainSeparator, structHash ) ); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "RING::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "RING::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "RING::delegateBySig: signature expired"); return _delegate(signatory, delegatee); } /** * @notice Gets the current votes balance for `account` * @param account The address to get votes balance * @return The number of current votes for `account` */ function getCurrentVotes(address account) external view returns (uint256) { uint32 nCheckpoints = numCheckpoints[account]; return nCheckpoints > 0 ? checkpoints[account][nCheckpoints - 1].votes : 0; } /** * @notice Determine the prior number of votes for an account as of a block number * @dev Block number must be a finalized block or else this function will revert to prevent misinformation. * @param account The address of the account to check * @param blockNumber The block number to get the vote balance at * @return The number of votes the account had as of the given block */ function getPriorVotes(address account, uint blockNumber) external view returns (uint256) { require(blockNumber < block.number, "RING::getPriorVotes: not yet determined"); uint32 nCheckpoints = numCheckpoints[account]; if (nCheckpoints == 0) { return 0; } // First check most recent balance if (checkpoints[account][nCheckpoints - 1].fromBlock <= blockNumber) { return checkpoints[account][nCheckpoints - 1].votes; } // Next check implicit zero balance if (checkpoints[account][0].fromBlock > blockNumber) { return 0; } uint32 lower = 0; uint32 upper = nCheckpoints - 1; while (upper > lower) { uint32 center = upper - (upper - lower) / 2; // ceil, avoiding overflow Checkpoint memory cp = checkpoints[account][center]; if (cp.fromBlock == blockNumber) { return cp.votes; } else if (cp.fromBlock < blockNumber) { lower = center; } else { upper = center - 1; } } return checkpoints[account][lower].votes; } function _delegate(address delegator, address delegatee) internal { address currentDelegate = _delegates[delegator]; uint256 delegatorBalance = balanceOf(delegator); // balance of underlying RINGs (not scaled); _delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _moveDelegates(address srcRep, address dstRep, uint256 amount) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { // decrease old representative uint32 srcRepNum = numCheckpoints[srcRep]; uint256 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint256 srcRepNew = srcRepOld - amount; _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { // increase new representative uint32 dstRepNum = numCheckpoints[dstRep]; uint256 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint256 dstRepNew = dstRepOld + amount; _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint256 oldVotes, uint256 newVotes ) internal { uint32 blockNumber = safe32(block.number, "RING::_writeCheckpoint: block number exceeds 32 bits"); if (nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber) { checkpoints[delegatee][nCheckpoints - 1].votes = newVotes; } else { checkpoints[delegatee][nCheckpoints] = Checkpoint(blockNumber, newVotes); numCheckpoints[delegatee] = nCheckpoints + 1; } emit DelegateVotesChanged(delegatee, oldVotes, newVotes); } function safe32(uint n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function getChainId() internal view returns (uint) { uint256 chainId; assembly { chainId := chainid() } return chainId; } }
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":"delegator","type":"address"},{"indexed":true,"internalType":"address","name":"fromDelegate","type":"address"},{"indexed":true,"internalType":"address","name":"toDelegate","type":"address"}],"name":"DelegateChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"delegate","type":"address"},{"indexed":false,"internalType":"uint256","name":"previousBalance","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"DelegateVotesChanged","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":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":[],"name":"DELEGATION_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DOMAIN_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint256","name":"votes","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":"delegatee","type":"address"}],"name":"delegate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegatee","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"delegateBySig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"delegator","type":"address"}],"name":"delegates","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"getCurrentVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numCheckpoints","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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
60806040523480156200001157600080fd5b506040518060400160405280600481526020016352494e4760e01b8152506040518060400160405280600481526020016352494e4760e01b81525060006200005e620000db60201b60201c565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506004620000b6838262000184565b506005620000c5828262000184565b50506006805460ff191660121790555062000250565b3390565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200010a57607f821691505b6020821081036200012b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200017f57600081815260208120601f850160051c810160208610156200015a5750805b601f850160051c820191505b818110156200017b5782815560010162000166565b5050505b505050565b81516001600160401b03811115620001a057620001a0620000df565b620001b881620001b18454620000f5565b8462000131565b602080601f831160018114620001f05760008415620001d75750858301515b600019600386901b1c1916600185901b1785556200017b565b600085815260208120601f198616915b82811015620002215788860151825594840194600190910190840162000200565b5085821015620002405787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6119e280620002606000396000f3fe608060405234801561001057600080fd5b50600436106101a95760003560e01c8063782d6fe1116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103e6578063e7a324dc1461041f578063f1127ed814610446578063f2fde38b1461049d57600080fd5b8063a9059cbb146103ad578063b4b5ea57146103c0578063c3cda520146103d357600080fd5b80638da5cb5b116100d35780638da5cb5b1461036e57806395d89b411461037f578063a0712d6814610387578063a457c2d71461039a57600080fd5b8063782d6fe11461033b5780637ecebe001461034e578063893d20e81461036e57600080fd5b806339509351116101665780635c19a95c116101405780635c19a95c146102bc5780636fcfff45146102cf57806370a082311461030a578063715018a61461033357600080fd5b8063395093511461025057806340c10f1914610263578063587cde1e1461027857600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806318160ddd146101ef57806320606b701461020157806323b872dd14610228578063313ce5671461023b575b600080fd5b6101b66104b0565b6040516101c391906115fd565b60405180910390f35b6101df6101da366004611662565b610542565b60405190151581526020016101c3565b6003545b6040519081526020016101c3565b6101f37f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6101df61023636600461168c565b610559565b60065460405160ff90911681526020016101c3565b6101df61025e366004611662565b6105c2565b610276610271366004611662565b6105f8565b005b6102a46102863660046116c8565b6001600160a01b039081166000908152600760205260409020541690565b6040516001600160a01b0390911681526020016101c3565b6102766102ca3660046116c8565b61065e565b6102f56102dd3660046116c8565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101c3565b6101f36103183660046116c8565b6001600160a01b031660009081526001602052604090205490565b61027661066b565b6101f3610349366004611662565b6106df565b6101f361035c3660046116c8565b600a6020526000908152604090205481565b6000546001600160a01b03166102a4565b6101b6610947565b6101df6103953660046116e3565b610956565b6101df6103a8366004611662565b610994565b6101df6103bb366004611662565b6109e3565b6101f36103ce3660046116c8565b6109f0565b6102766103e13660046116fc565b610a65565b6101f36103f436600461175c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101f37fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b61048161045436600461178f565b60086020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016101c3565b6102766104ab3660046116c8565b610d33565b6060600480546104bf906117cf565b80601f01602080910402602001604051908101604052809291908181526020018280546104eb906117cf565b80156105385780601f1061050d57610100808354040283529160200191610538565b820191906000526020600020905b81548152906001019060200180831161051b57829003601f168201915b5050505050905090565b600061054f338484610e1d565b5060015b92915050565b6000610566848484610f42565b6105b884336105b385604051806060016040528060288152602001611960602891396001600160a01b038a16600090815260026020908152604080832033845290915290205491906110c8565b610e1d565b5060019392505050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161054f9185906105b39086611102565b6000546001600160a01b0316331461062b5760405162461bcd60e51b815260040161062290611809565b60405180910390fd5b6106358282611161565b6001600160a01b0380831660009081526007602052604081205461065a921683611247565b5050565b61066833826113ab565b50565b6000546001600160a01b031633146106955760405162461bcd60e51b815260040161062290611809565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60004382106107405760405162461bcd60e51b815260206004820152602760248201527f52494e473a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b6064820152608401610622565b6001600160a01b03831660009081526009602052604081205463ffffffff1690819003610771576000915050610553565b6001600160a01b03841660009081526008602052604081208491610796600185611854565b63ffffffff908116825260208201929092526040016000205416116107ff576001600160a01b0384166000908152600860205260408120906107d9600184611854565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610553565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff1683101561083a576000915050610553565b600080610848600184611854565b90505b8163ffffffff168163ffffffff161115610910576000600261086d8484611854565b6108779190611878565b6108819083611854565b6001600160a01b038816600090815260086020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529192508790036108e4576020015194506105539350505050565b805163ffffffff168711156108fb57819350610909565b610906600183611854565b92505b505061084b565b506001600160a01b038516600090815260086020908152604080832063ffffffff9094168352929052206001015491505092915050565b6060600580546104bf906117cf565b600080546001600160a01b031633146109815760405162461bcd60e51b815260040161062290611809565b61098b3383611161565b5060015b919050565b600061054f33846105b385604051806060016040528060258152602001611988602591393360009081526002602090815260408083206001600160a01b038d16845290915290205491906110c8565b600061054f338484610f42565b6001600160a01b03811660009081526009602052604081205463ffffffff1680610a1b576000610a5e565b6001600160a01b038316600090815260086020526040812090610a3f600184611854565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610a906104b0565b80519060200120610a9e4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610bca573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c3c5760405162461bcd60e51b815260206004820152602660248201527f52494e473a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b6064820152608401610622565b6001600160a01b0381166000908152600a60205260408120805491610c60836118a9565b919050558914610cbd5760405162461bcd60e51b815260206004820152602260248201527f52494e473a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b6064820152608401610622565b87421115610d1c5760405162461bcd60e51b815260206004820152602660248201527f52494e473a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b6064820152608401610622565b610d26818b6113ab565b505050505b505050505050565b6000546001600160a01b03163314610d5d5760405162461bcd60e51b815260040161062290611809565b6001600160a01b038116610dc25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610622565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610e7f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610622565b6001600160a01b038216610ee05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610622565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610fa65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610622565b6001600160a01b0382166110085760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610622565b6110458160405180606001604052806026815260200161193a602691396001600160a01b03861660009081526001602052604090205491906110c8565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546110749082611102565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f359085815260200190565b600081848411156110ec5760405162461bcd60e51b815260040161062291906115fd565b5060006110f984866118c2565b95945050505050565b60008061110f83856118d5565b905083811015610a5e5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610622565b6001600160a01b0382166111b75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610622565b6003546111c49082611102565b6003556001600160a01b0382166000908152600160205260409020546111ea9082611102565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061123b9085815260200190565b60405180910390a35050565b816001600160a01b0316836001600160a01b0316141580156112695750600081115b156113a6576001600160a01b0383161561130c576001600160a01b03831660009081526009602052604081205463ffffffff1690816112a95760006112ec565b6001600160a01b0385166000908152600860205260408120906112cd600185611854565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006112fa84836118c2565b90506113088684848461142b565b5050505b6001600160a01b038216156113a6576001600160a01b03821660009081526009602052604081205463ffffffff16908161134757600061138a565b6001600160a01b03841660009081526008602052604081209061136b600185611854565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600061139884836118d5565b9050610d2b8584848461142b565b505050565b6001600160a01b03828116600081815260076020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611425828483611247565b50505050565b600061144f43604051806060016040528060348152602001611906603491396115cd565b905060008463ffffffff161180156114a957506001600160a01b038516600090815260086020526040812063ffffffff83169161148d600188611854565b63ffffffff908116825260208201929092526040016000205416145b156114f2576001600160a01b038516600090815260086020526040812083916114d3600188611854565b63ffffffff168152602081019190915260400160002060010155611582565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600883528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556115519085906118e8565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106115f55760405162461bcd60e51b815260040161062291906115fd565b509192915050565b600060208083528351808285015260005b8181101561162a5785810183015185820160400152820161160e565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461098f57600080fd5b6000806040838503121561167557600080fd5b61167e8361164b565b946020939093013593505050565b6000806000606084860312156116a157600080fd5b6116aa8461164b565b92506116b86020850161164b565b9150604084013590509250925092565b6000602082840312156116da57600080fd5b610a5e8261164b565b6000602082840312156116f557600080fd5b5035919050565b60008060008060008060c0878903121561171557600080fd5b61171e8761164b565b95506020870135945060408701359350606087013560ff8116811461174257600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561176f57600080fd5b6117788361164b565b91506117866020840161164b565b90509250929050565b600080604083850312156117a257600080fd5b6117ab8361164b565b9150602083013563ffffffff811681146117c457600080fd5b809150509250929050565b600181811c908216806117e357607f821691505b60208210810361180357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff8281168282160390808211156118715761187161183e565b5092915050565b600063ffffffff8084168061189d57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6000600182016118bb576118bb61183e565b5060010190565b818103818111156105535761055361183e565b808201808211156105535761055361183e565b63ffffffff8181168382160190808211156118715761187161183e56fe52494e473a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b4465250ee74a2b23c9d9bd053adb6c9bddc05e445e48024eac5e74d951ac12964736f6c63430008130033
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101a95760003560e01c8063782d6fe1116100f9578063a9059cbb11610097578063dd62ed3e11610071578063dd62ed3e146103e6578063e7a324dc1461041f578063f1127ed814610446578063f2fde38b1461049d57600080fd5b8063a9059cbb146103ad578063b4b5ea57146103c0578063c3cda520146103d357600080fd5b80638da5cb5b116100d35780638da5cb5b1461036e57806395d89b411461037f578063a0712d6814610387578063a457c2d71461039a57600080fd5b8063782d6fe11461033b5780637ecebe001461034e578063893d20e81461036e57600080fd5b806339509351116101665780635c19a95c116101405780635c19a95c146102bc5780636fcfff45146102cf57806370a082311461030a578063715018a61461033357600080fd5b8063395093511461025057806340c10f1914610263578063587cde1e1461027857600080fd5b806306fdde03146101ae578063095ea7b3146101cc57806318160ddd146101ef57806320606b701461020157806323b872dd14610228578063313ce5671461023b575b600080fd5b6101b66104b0565b6040516101c391906115fd565b60405180910390f35b6101df6101da366004611662565b610542565b60405190151581526020016101c3565b6003545b6040519081526020016101c3565b6101f37f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6101df61023636600461168c565b610559565b60065460405160ff90911681526020016101c3565b6101df61025e366004611662565b6105c2565b610276610271366004611662565b6105f8565b005b6102a46102863660046116c8565b6001600160a01b039081166000908152600760205260409020541690565b6040516001600160a01b0390911681526020016101c3565b6102766102ca3660046116c8565b61065e565b6102f56102dd3660046116c8565b60096020526000908152604090205463ffffffff1681565b60405163ffffffff90911681526020016101c3565b6101f36103183660046116c8565b6001600160a01b031660009081526001602052604090205490565b61027661066b565b6101f3610349366004611662565b6106df565b6101f361035c3660046116c8565b600a6020526000908152604090205481565b6000546001600160a01b03166102a4565b6101b6610947565b6101df6103953660046116e3565b610956565b6101df6103a8366004611662565b610994565b6101df6103bb366004611662565b6109e3565b6101f36103ce3660046116c8565b6109f0565b6102766103e13660046116fc565b610a65565b6101f36103f436600461175c565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205490565b6101f37fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b61048161045436600461178f565b60086020908152600092835260408084209091529082529020805460019091015463ffffffff9091169082565b6040805163ffffffff90931683526020830191909152016101c3565b6102766104ab3660046116c8565b610d33565b6060600480546104bf906117cf565b80601f01602080910402602001604051908101604052809291908181526020018280546104eb906117cf565b80156105385780601f1061050d57610100808354040283529160200191610538565b820191906000526020600020905b81548152906001019060200180831161051b57829003601f168201915b5050505050905090565b600061054f338484610e1d565b5060015b92915050565b6000610566848484610f42565b6105b884336105b385604051806060016040528060288152602001611960602891396001600160a01b038a16600090815260026020908152604080832033845290915290205491906110c8565b610e1d565b5060019392505050565b3360008181526002602090815260408083206001600160a01b0387168452909152812054909161054f9185906105b39086611102565b6000546001600160a01b0316331461062b5760405162461bcd60e51b815260040161062290611809565b60405180910390fd5b6106358282611161565b6001600160a01b0380831660009081526007602052604081205461065a921683611247565b5050565b61066833826113ab565b50565b6000546001600160a01b031633146106955760405162461bcd60e51b815260040161062290611809565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b60004382106107405760405162461bcd60e51b815260206004820152602760248201527f52494e473a3a6765745072696f72566f7465733a206e6f742079657420646574604482015266195c9b5a5b995960ca1b6064820152608401610622565b6001600160a01b03831660009081526009602052604081205463ffffffff1690819003610771576000915050610553565b6001600160a01b03841660009081526008602052604081208491610796600185611854565b63ffffffff908116825260208201929092526040016000205416116107ff576001600160a01b0384166000908152600860205260408120906107d9600184611854565b63ffffffff1663ffffffff16815260200190815260200160002060010154915050610553565b6001600160a01b038416600090815260086020908152604080832083805290915290205463ffffffff1683101561083a576000915050610553565b600080610848600184611854565b90505b8163ffffffff168163ffffffff161115610910576000600261086d8484611854565b6108779190611878565b6108819083611854565b6001600160a01b038816600090815260086020908152604080832063ffffffff80861685529083529281902081518083019092528054909316808252600190930154918101919091529192508790036108e4576020015194506105539350505050565b805163ffffffff168711156108fb57819350610909565b610906600183611854565b92505b505061084b565b506001600160a01b038516600090815260086020908152604080832063ffffffff9094168352929052206001015491505092915050565b6060600580546104bf906117cf565b600080546001600160a01b031633146109815760405162461bcd60e51b815260040161062290611809565b61098b3383611161565b5060015b919050565b600061054f33846105b385604051806060016040528060258152602001611988602591393360009081526002602090815260408083206001600160a01b038d16845290915290205491906110c8565b600061054f338484610f42565b6001600160a01b03811660009081526009602052604081205463ffffffff1680610a1b576000610a5e565b6001600160a01b038316600090815260086020526040812090610a3f600184611854565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9392505050565b60007f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866610a906104b0565b80519060200120610a9e4690565b60408051602080820195909552808201939093526060830191909152306080808401919091528151808403909101815260a0830182528051908401207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08401526001600160a01b038b1660e084015261010083018a90526101208084018a90528251808503909101815261014084019092528151919093012061190160f01b610160830152610162820183905261018282018190529192506000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610bca573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116610c3c5760405162461bcd60e51b815260206004820152602660248201527f52494e473a3a64656c656761746542795369673a20696e76616c6964207369676044820152656e617475726560d01b6064820152608401610622565b6001600160a01b0381166000908152600a60205260408120805491610c60836118a9565b919050558914610cbd5760405162461bcd60e51b815260206004820152602260248201527f52494e473a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b6064820152608401610622565b87421115610d1c5760405162461bcd60e51b815260206004820152602660248201527f52494e473a3a64656c656761746542795369673a207369676e617475726520656044820152651e1c1a5c995960d21b6064820152608401610622565b610d26818b6113ab565b505050505b505050505050565b6000546001600160a01b03163314610d5d5760405162461bcd60e51b815260040161062290611809565b6001600160a01b038116610dc25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610622565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b038316610e7f5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610622565b6001600160a01b038216610ee05760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610622565b6001600160a01b0383811660008181526002602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038316610fa65760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610622565b6001600160a01b0382166110085760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610622565b6110458160405180606001604052806026815260200161193a602691396001600160a01b03861660009081526001602052604090205491906110c8565b6001600160a01b0380851660009081526001602052604080822093909355908416815220546110749082611102565b6001600160a01b0380841660008181526001602052604090819020939093559151908516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90610f359085815260200190565b600081848411156110ec5760405162461bcd60e51b815260040161062291906115fd565b5060006110f984866118c2565b95945050505050565b60008061110f83856118d5565b905083811015610a5e5760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006044820152606401610622565b6001600160a01b0382166111b75760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610622565b6003546111c49082611102565b6003556001600160a01b0382166000908152600160205260409020546111ea9082611102565b6001600160a01b0383166000818152600160205260408082209390935591519091907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061123b9085815260200190565b60405180910390a35050565b816001600160a01b0316836001600160a01b0316141580156112695750600081115b156113a6576001600160a01b0383161561130c576001600160a01b03831660009081526009602052604081205463ffffffff1690816112a95760006112ec565b6001600160a01b0385166000908152600860205260408120906112cd600185611854565b63ffffffff1663ffffffff168152602001908152602001600020600101545b905060006112fa84836118c2565b90506113088684848461142b565b5050505b6001600160a01b038216156113a6576001600160a01b03821660009081526009602052604081205463ffffffff16908161134757600061138a565b6001600160a01b03841660009081526008602052604081209061136b600185611854565b63ffffffff1663ffffffff168152602001908152602001600020600101545b9050600061139884836118d5565b9050610d2b8584848461142b565b505050565b6001600160a01b03828116600081815260076020818152604080842080546001845282862054949093528787166001600160a01b03198416811790915590519190951694919391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4611425828483611247565b50505050565b600061144f43604051806060016040528060348152602001611906603491396115cd565b905060008463ffffffff161180156114a957506001600160a01b038516600090815260086020526040812063ffffffff83169161148d600188611854565b63ffffffff908116825260208201929092526040016000205416145b156114f2576001600160a01b038516600090815260086020526040812083916114d3600188611854565b63ffffffff168152602081019190915260400160002060010155611582565b60408051808201825263ffffffff838116825260208083018681526001600160a01b038a166000908152600883528581208a851682529092529390209151825463ffffffff1916911617815590516001918201556115519085906118e8565b6001600160a01b0386166000908152600960205260409020805463ffffffff191663ffffffff929092169190911790555b60408051848152602081018490526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106115f55760405162461bcd60e51b815260040161062291906115fd565b509192915050565b600060208083528351808285015260005b8181101561162a5785810183015185820160400152820161160e565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461098f57600080fd5b6000806040838503121561167557600080fd5b61167e8361164b565b946020939093013593505050565b6000806000606084860312156116a157600080fd5b6116aa8461164b565b92506116b86020850161164b565b9150604084013590509250925092565b6000602082840312156116da57600080fd5b610a5e8261164b565b6000602082840312156116f557600080fd5b5035919050565b60008060008060008060c0878903121561171557600080fd5b61171e8761164b565b95506020870135945060408701359350606087013560ff8116811461174257600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561176f57600080fd5b6117788361164b565b91506117866020840161164b565b90509250929050565b600080604083850312156117a257600080fd5b6117ab8361164b565b9150602083013563ffffffff811681146117c457600080fd5b809150509250929050565b600181811c908216806117e357607f821691505b60208210810361180357634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b63ffffffff8281168282160390808211156118715761187161183e565b5092915050565b600063ffffffff8084168061189d57634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b6000600182016118bb576118bb61183e565b5060010190565b818103818111156105535761055361183e565b808201808211156105535761055361183e565b63ffffffff8181168382160190808211156118715761187161183e56fe52494e473a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d6265722065786365656473203332206269747345524332303a207472616e7366657220616d6f756e7420657863656564732062616c616e636545524332303a207472616e7366657220616d6f756e74206578636565647320616c6c6f77616e636545524332303a2064656372656173656420616c6c6f77616e63652062656c6f77207a65726fa2646970667358221220b4465250ee74a2b23c9d9bd053adb6c9bddc05e445e48024eac5e74d951ac12964736f6c63430008130033
Deployed Bytecode Sourcemap
32084:8867:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24310:92;;;:::i;:::-;;;;;;;:::i;:::-;;;;;;;;25889:161;;;;;;:::i;:::-;;:::i;:::-;;;1169:14:1;;1162:22;1144:41;;1132:2;1117:18;25889:161:0;1004:187:1;24878:100:0;24958:12;;24878:100;;;1342:25:1;;;1330:2;1315:18;24878:100:0;1196:177:1;33413:122:0;;33455:80;33413:122;;26521:364;;;;;;:::i;:::-;;:::i;24722:92::-;24797:9;;24722:92;;24797:9;;;;2035:36:1;;2023:2;2008:18;24722:92:0;1893:184:1;27293:210:0;;;;;;:::i;:::-;;:::i;32233:162::-;;;;;;:::i;:::-;;:::i;:::-;;34394:137;;;;;;:::i;:::-;-1:-1:-1;;;;;34502:21:0;;;34470:7;34502:21;;;:10;:21;;;;;;;;34394:137;;;;-1:-1:-1;;;;;2437:32:1;;;2419:51;;2407:2;2392:18;34394:137:0;2273:203:1;34677:104:0;;;;;;:::i;:::-;;:::i;33291:49::-;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;2655:10:1;2643:23;;;2625:42;;2613:2;2598:18;33291:49:0;2481:192:1;25040:119:0;;;;;;:::i;:::-;-1:-1:-1;;;;;25133:18:0;25106:7;25133:18;;;:9;:18;;;;;;;25040:119;14778:148;;;:::i;37276:1241::-;;;;;;:::i;:::-;;:::i;33827:39::-;;;;;;:::i;:::-;;;;;;;;;;;;;;24146:94;24198:7;14201:6;-1:-1:-1;;;;;14201:6:0;24146:94;;24521:96;;;:::i;28484:130::-;;;;;;:::i;:::-;;:::i;28005:261::-;;;;;;:::i;:::-;;:::i;25371:167::-;;;;;;:::i;:::-;;:::i;36602:243::-;;;;;;:::i;:::-;;:::i;35215:1186::-;;;;;;:::i;:::-;;:::i;25600:143::-;;;;;;:::i;:::-;-1:-1:-1;;;;;25708:18:0;;;25681:7;25708:18;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;25600:143;33629:117;;33675:71;33629:117;;33152:70;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4308:10:1;4296:23;;;4278:42;;4351:2;4336:18;;4329:34;;;;4251:18;33152:70:0;4106:263:1;15081:244:0;;;;;;:::i;:::-;;:::i;24310:92::-;24356:13;24389:5;24382:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24310:92;:::o;25889:161::-;25964:4;25981:39;12996:10;26004:7;26013:6;25981:8;:39::i;:::-;-1:-1:-1;26038:4:0;25889:161;;;;;:::o;26521:364::-;26620:4;26637:36;26647:6;26655:9;26666:6;26637:9;:36::i;:::-;26684:171;26707:6;12996:10;26755:89;26793:6;26755:89;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;26755:19:0;;;;;;:11;:19;;;;;;;;12996:10;26755:33;;;;;;;;;;:37;:89::i;:::-;26684:8;:171::i;:::-;-1:-1:-1;26873:4:0;26521:364;;;;;:::o;27293:210::-;12996:10;27373:4;27422:25;;;:11;:25;;;;;;;;-1:-1:-1;;;;;27422:34:0;;;;;;;;;;27373:4;;27390:83;;27413:7;;27422:50;;27461:10;27422:38;:50::i;32233:162::-;14348:6;;-1:-1:-1;;;;;14348:6:0;12996:10;14348:22;14340:67;;;;-1:-1:-1;;;14340:67:0;;;;;;;:::i;:::-;;;;;;;;;32305:19:::1;32311:3;32316:7;32305:5;:19::i;:::-;-1:-1:-1::0;;;;;32362:15:0;;::::1;32358:1;32362:15:::0;;;:10:::1;:15;::::0;;;;;32335:52:::1;::::0;32362:15:::1;32379:7:::0;32335:14:::1;:52::i;:::-;32233:162:::0;;:::o;34677:104::-;34741:32;34751:10;34763:9;34741;:32::i;:::-;34677:104;:::o;14778:148::-;14348:6;;-1:-1:-1;;;;;14348:6:0;12996:10;14348:22;14340:67;;;;-1:-1:-1;;;14340:67:0;;;;;;;:::i;:::-;14885:1:::1;14869:6:::0;;14848:40:::1;::::0;-1:-1:-1;;;;;14869:6:0;;::::1;::::0;14848:40:::1;::::0;14885:1;;14848:40:::1;14916:1;14899:19:::0;;-1:-1:-1;;;;;;14899:19:0::1;::::0;;14778:148::o;37276:1241::-;37372:7;37419:12;37405:11;:26;37397:78;;;;-1:-1:-1;;;37397:78:0;;5322:2:1;37397:78:0;;;5304:21:1;5361:2;5341:18;;;5334:30;5400:34;5380:18;;;5373:62;-1:-1:-1;;;5451:18:1;;;5444:37;5498:19;;37397:78:0;5120:403:1;37397:78:0;-1:-1:-1;;;;;37510:23:0;;37488:19;37510:23;;;:14;:23;;;;;;;;;37548:17;;;37544:58;;37589:1;37582:8;;;;;37544:58;-1:-1:-1;;;;;37662:20:0;;;;;;:11;:20;;;;;37714:11;;37683:16;37698:1;37683:12;:16;:::i;:::-;37662:38;;;;;;;;;;;;;;;-1:-1:-1;37662:38:0;:48;;:63;37658:147;;-1:-1:-1;;;;;37749:20:0;;;;;;:11;:20;;;;;;37770:16;37785:1;37770:12;:16;:::i;:::-;37749:38;;;;;;;;;;;;;;;:44;;;37742:51;;;;;37658:147;-1:-1:-1;;;;;37866:20:0;;;;;;:11;:20;;;;;;;;:23;;;;;;;;:33;:23;:33;:47;-1:-1:-1;37862:88:0;;;37937:1;37930:8;;;;;37862:88;37962:12;;38004:16;38019:1;38004:12;:16;:::i;:::-;37989:31;;38031:428;38046:5;38038:13;;:5;:13;;;38031:428;;;38068:13;38110:1;38093:13;38101:5;38093;:13;:::i;:::-;38092:19;;;;:::i;:::-;38084:27;;:5;:27;:::i;:::-;-1:-1:-1;;;;;38176:20:0;;38153;38176;;;:11;:20;;;;;;;;:28;;;;;;;;;;;;;38153:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;38068:43;;-1:-1:-1;38223:27:0;;;38219:229;;38278:8;;;;-1:-1:-1;38271:15:0;;-1:-1:-1;;;;38271:15:0;38219:229;38312:12;;:26;;;-1:-1:-1;38308:140:0;;;38367:6;38359:14;;38308:140;;;38422:10;38431:1;38422:6;:10;:::i;:::-;38414:18;;38308:140;38053:406;;38031:428;;;-1:-1:-1;;;;;;38476:20:0;;;;;;:11;:20;;;;;;;;:27;;;;;;;;;;:33;;;;-1:-1:-1;;37276:1241:0;;;;:::o;24521:96::-;24569:13;24602:7;24595:14;;;;;:::i;28484:130::-;28540:4;14348:6;;-1:-1:-1;;;;;14348:6:0;12996:10;14348:22;14340:67;;;;-1:-1:-1;;;14340:67:0;;;;;;;:::i;:::-;28557:27:::1;12996:10:::0;28577:6:::1;28557:5;:27::i;:::-;-1:-1:-1::0;28602:4:0::1;14418:1;28484:130:::0;;;:::o;28005:261::-;28090:4;28107:129;12996:10;28130:7;28139:96;28178:15;28139:96;;;;;;;;;;;;;;;;;12996:10;28139:25;;;;:11;:25;;;;;;;;-1:-1:-1;;;;;28139:34:0;;;;;;;;;;;;:38;:96::i;25371:167::-;25449:4;25466:42;12996:10;25490:9;25501:6;25466:9;:42::i;36602:243::-;-1:-1:-1;;;;;36729:23:0;;36682:7;36729:23;;;:14;:23;;;;;;;;36770:16;:67;;36836:1;36770:67;;;-1:-1:-1;;;;;36789:20:0;;;;;;:11;:20;;;;;;36810:16;36825:1;36810:12;:16;:::i;:::-;36789:38;;;;;;;;;;;;;;;:44;;;36770:67;36763:74;36602:243;-1:-1:-1;;;36602:243:0:o;35215:1186::-;35404:23;33455:80;35533:6;:4;:6::i;:::-;35517:24;;;;;;35560:12;40903:9;;40793:153;35560:12;35454:165;;;;;;;6364:25:1;;;;6405:18;;;6398:34;;;;6448:18;;;6441:34;;;;35599:4:0;6491:18:1;;;;6484:60;;;;35454:165:0;;;;;;;;;;6336:19:1;;;35454:165:0;;35430:200;;;;;;33675:71;35688:140;;;6786:25:1;-1:-1:-1;;;;;6847:32:1;;6827:18;;;6820:60;6896:18;;;6889:34;;;6939:18;;;;6932:34;;;35688:140:0;;;;;;;;;;6758:19:1;;;35688:140:0;;;35664:175;;;;;;;-1:-1:-1;;;35893:123:0;;;7235:27:1;7278:11;;;7271:27;;;7314:12;;;7307:28;;;35430:200:0;;-1:-1:-1;;;7351:12:1;;35893:123:0;;;-1:-1:-1;;35893:123:0;;;;;;;;;35869:158;;35893:123;35869:158;;;;36040:17;36060:26;;;;;;;;;7601:25:1;;;7674:4;7662:17;;7642:18;;;7635:45;;;;7696:18;;;7689:34;;;7739:18;;;7732:34;;;35869:158:0;;-1:-1:-1;36040:17:0;36060:26;;7573:19:1;;36060:26:0;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;36060:26:0;;-1:-1:-1;;36060:26:0;;;-1:-1:-1;;;;;;;36105:23:0;;36097:74;;;;-1:-1:-1;;;36097:74:0;;7979:2:1;36097:74:0;;;7961:21:1;8018:2;7998:18;;;7991:30;8057:34;8037:18;;;8030:62;-1:-1:-1;;;8108:18:1;;;8101:36;8154:19;;36097:74:0;7777:402:1;36097:74:0;-1:-1:-1;;;;;36199:17:0;;;;;;:6;:17;;;;;:19;;;;;;:::i;:::-;;;;;36190:5;:28;36182:75;;;;-1:-1:-1;;;36182:75:0;;8526:2:1;36182:75:0;;;8508:21:1;8565:2;8545:18;;;8538:30;8604:34;8584:18;;;8577:62;-1:-1:-1;;;8655:18:1;;;8648:32;8697:19;;36182:75:0;8324:398:1;36182:75:0;36295:6;36276:15;:25;;36268:76;;;;-1:-1:-1;;;36268:76:0;;8929:2:1;36268:76:0;;;8911:21:1;8968:2;8948:18;;;8941:30;9007:34;8987:18;;;8980:62;-1:-1:-1;;;9058:18:1;;;9051:36;9104:19;;36268:76:0;8727:402:1;36268:76:0;36362:31;36372:9;36383;36362;:31::i;:::-;36355:38;;;;35215:1186;;;;;;;:::o;15081:244::-;14348:6;;-1:-1:-1;;;;;14348:6:0;12996:10;14348:22;14340:67;;;;-1:-1:-1;;;14340:67:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;15170:22:0;::::1;15162:73;;;::::0;-1:-1:-1;;;15162:73:0;;9336:2:1;15162:73:0::1;::::0;::::1;9318:21:1::0;9375:2;9355:18;;;9348:30;9414:34;9394:18;;;9387:62;-1:-1:-1;;;9465:18:1;;;9458:36;9511:19;;15162:73:0::1;9134:402:1::0;15162:73:0::1;15272:6;::::0;;15251:38:::1;::::0;-1:-1:-1;;;;;15251:38:0;;::::1;::::0;15272:6;::::1;::::0;15251:38:::1;::::0;::::1;15300:6;:17:::0;;-1:-1:-1;;;;;;15300:17:0::1;-1:-1:-1::0;;;;;15300:17:0;;;::::1;::::0;;;::::1;::::0;;15081:244::o;31285:339::-;-1:-1:-1;;;;;31380:19:0;;31372:68;;;;-1:-1:-1;;;31372:68:0;;9743:2:1;31372:68:0;;;9725:21:1;9782:2;9762:18;;;9755:30;9821:34;9801:18;;;9794:62;-1:-1:-1;;;9872:18:1;;;9865:34;9916:19;;31372:68:0;9541:400:1;31372:68:0;-1:-1:-1;;;;;31459:21:0;;31451:68;;;;-1:-1:-1;;;31451:68:0;;10148:2:1;31451:68:0;;;10130:21:1;10187:2;10167:18;;;10160:30;10226:34;10206:18;;;10199:62;-1:-1:-1;;;10277:18:1;;;10270:32;10319:19;;31451:68:0;9946:398:1;31451:68:0;-1:-1:-1;;;;;31532:18:0;;;;;;;:11;:18;;;;;;;;:27;;;;;;;;;;;;;:36;;;31584:32;;1342:25:1;;;31584:32:0;;1315:18:1;31584:32:0;;;;;;;;31285:339;;;:::o;29104:472::-;-1:-1:-1;;;;;29203:20:0;;29195:70;;;;-1:-1:-1;;;29195:70:0;;10551:2:1;29195:70:0;;;10533:21:1;10590:2;10570:18;;;10563:30;10629:34;10609:18;;;10602:62;-1:-1:-1;;;10680:18:1;;;10673:35;10725:19;;29195:70:0;10349:401:1;29195:70:0;-1:-1:-1;;;;;29284:23:0;;29276:71;;;;-1:-1:-1;;;29276:71:0;;10957:2:1;29276:71:0;;;10939:21:1;10996:2;10976:18;;;10969:30;11035:34;11015:18;;;11008:62;-1:-1:-1;;;11086:18:1;;;11079:33;11129:19;;29276:71:0;10755:399:1;29276:71:0;29380;29402:6;29380:71;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;29380:17:0;;;;;;:9;:17;;;;;;;:71;:21;:71::i;:::-;-1:-1:-1;;;;;29360:17:0;;;;;;;:9;:17;;;;;;:91;;;;29485:20;;;;;;;:32;;29510:6;29485:24;:32::i;:::-;-1:-1:-1;;;;;29462:20:0;;;;;;;:9;:20;;;;;;;:55;;;;29533:35;;;;;;;;;;29561:6;1342:25:1;;1330:2;1315:18;;1196:177;8819:192:0;8905:7;8941:12;8933:6;;;;8925:29;;;;-1:-1:-1;;;8925:29:0;;;;;;;;:::i;:::-;-1:-1:-1;8965:9:0;8977:5;8981:1;8977;:5;:::i;:::-;8965:17;8819:192;-1:-1:-1;;;;;8819:192:0:o;7916:181::-;7974:7;;8006:5;8010:1;8006;:5;:::i;:::-;7994:17;;8035:1;8030;:6;;8022:46;;;;-1:-1:-1;;;8022:46:0;;11624:2:1;8022:46:0;;;11606:21:1;11663:2;11643:18;;;11636:30;11702:29;11682:18;;;11675:57;11749:18;;8022:46:0;11422:351:1;29857:308:0;-1:-1:-1;;;;;29933:21:0;;29925:65;;;;-1:-1:-1;;;29925:65:0;;11980:2:1;29925:65:0;;;11962:21:1;12019:2;11999:18;;;11992:30;12058:33;12038:18;;;12031:61;12109:18;;29925:65:0;11778:355:1;29925:65:0;30018:12;;:24;;30035:6;30018:16;:24::i;:::-;30003:12;:39;-1:-1:-1;;;;;30074:18:0;;;;;;:9;:18;;;;;;:30;;30097:6;30074:22;:30::i;:::-;-1:-1:-1;;;;;30053:18:0;;;;;;:9;:18;;;;;;:51;;;;30120:37;;30053:18;;;30120:37;;;;30150:6;1342:25:1;;1330:2;1315:18;;1196:177;30120:37:0;;;;;;;;29857:308;;:::o;38967:941::-;39073:6;-1:-1:-1;;;;;39063:16:0;:6;-1:-1:-1;;;;;39063:16:0;;;:30;;;;;39092:1;39083:6;:10;39063:30;39059:842;;;-1:-1:-1;;;;;39114:20:0;;;39110:382;;-1:-1:-1;;;;;39222:22:0;;39203:16;39222:22;;;:14;:22;;;;;;;;;39283:13;:60;;39342:1;39283:60;;;-1:-1:-1;;;;;39299:19:0;;;;;;:11;:19;;;;;;39319:13;39331:1;39319:9;:13;:::i;:::-;39299:34;;;;;;;;;;;;;;;:40;;;39283:60;39263:80;-1:-1:-1;39362:17:0;39382:18;39394:6;39263:80;39382:18;:::i;:::-;39362:38;;39419:57;39436:6;39444:9;39455;39466;39419:16;:57::i;:::-;39136:356;;;39110:382;-1:-1:-1;;;;;39512:20:0;;;39508:382;;-1:-1:-1;;;;;39620:22:0;;39601:16;39620:22;;;:14;:22;;;;;;;;;39681:13;:60;;39740:1;39681:60;;;-1:-1:-1;;;;;39697:19:0;;;;;;:11;:19;;;;;;39717:13;39729:1;39717:9;:13;:::i;:::-;39697:34;;;;;;;;;;;;;;;:40;;;39681:60;39661:80;-1:-1:-1;39760:17:0;39780:18;39792:6;39661:80;39780:18;:::i;:::-;39760:38;;39817:57;39834:6;39842:9;39853;39864;39817:16;:57::i;39508:382::-;38967:941;;;:::o;38525:434::-;-1:-1:-1;;;;;38638:21:0;;;38612:23;38638:21;;;:10;:21;;;;;;;;;;25133:9;:18;;;;;;38773:21;;;;:33;;;-1:-1:-1;;;;;;38773:33:0;;;;;;;38824:54;;38638:21;;;;;25133:18;;38773:33;;38638:21;;;38824:54;;38612:23;38824:54;38891:60;38906:15;38923:9;38934:16;38891:14;:60::i;:::-;38601:358;;38525:434;;:::o;39916:700::-;40091:18;40112:76;40119:12;40112:76;;;;;;;;;;;;;;;;;:6;:76::i;:::-;40091:97;;40220:1;40205:12;:16;;;:85;;;;-1:-1:-1;;;;;;40225:22:0;;;;;;:11;:22;;;;;:65;;;;40248:16;40263:1;40248:12;:16;:::i;:::-;40225:40;;;;;;;;;;;;;;;-1:-1:-1;40225:40:0;:50;;:65;40205:85;40201:339;;;-1:-1:-1;;;;;40307:22:0;;;;;;:11;:22;;;;;40356:8;;40330:16;40345:1;40330:12;:16;:::i;:::-;40307:40;;;;;;;;;;;;;-1:-1:-1;40307:40:0;:46;;:57;40201:339;;;40436:33;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;40397:22:0;;-1:-1:-1;40397:22:0;;;:11;:22;;;;;:36;;;;;;;;;;;:72;;;;-1:-1:-1;;40397:72:0;;;;;;;;-1:-1:-1;40397:72:0;;;;40512:16;;40397:36;;40512:16;:::i;:::-;-1:-1:-1;;;;;40484:25:0;;;;;;:14;:25;;;;;:44;;-1:-1:-1;;40484:44:0;;;;;;;;;;;;40201:339;40557:51;;;12489:25:1;;;12545:2;12530:18;;12523:34;;;-1:-1:-1;;;;;40557:51:0;;;;;12462:18:1;40557:51:0;;;;;;;40080:536;39916:700;;;;:::o;40624:161::-;40699:6;40737:12;40730:5;40726:9;;40718:32;;;;-1:-1:-1;;;40718:32:0;;;;;;;;:::i;:::-;-1:-1:-1;40775:1:0;;40624:161;-1:-1:-1;;40624:161:0:o;14:548:1:-;126:4;155:2;184;173:9;166:21;216:6;210:13;259:6;254:2;243:9;239:18;232:34;284:1;294:140;308:6;305:1;302:13;294:140;;;403:14;;;399:23;;393:30;369:17;;;388:2;365:26;358:66;323:10;;294:140;;;298:3;483:1;478:2;469:6;458:9;454:22;450:31;443:42;553:2;546;542:7;537:2;529:6;525:15;521:29;510:9;506:45;502:54;494:62;;;;14:548;;;;:::o;567:173::-;635:20;;-1:-1:-1;;;;;684:31:1;;674:42;;664:70;;730:1;727;720:12;745:254;813:6;821;874:2;862:9;853:7;849:23;845:32;842:52;;;890:1;887;880:12;842:52;913:29;932:9;913:29;:::i;:::-;903:39;989:2;974:18;;;;961:32;;-1:-1:-1;;;745:254:1:o;1560:328::-;1637:6;1645;1653;1706:2;1694:9;1685:7;1681:23;1677:32;1674:52;;;1722:1;1719;1712:12;1674:52;1745:29;1764:9;1745:29;:::i;:::-;1735:39;;1793:38;1827:2;1816:9;1812:18;1793:38;:::i;:::-;1783:48;;1878:2;1867:9;1863:18;1850:32;1840:42;;1560:328;;;;;:::o;2082:186::-;2141:6;2194:2;2182:9;2173:7;2169:23;2165:32;2162:52;;;2210:1;2207;2200:12;2162:52;2233:29;2252:9;2233:29;:::i;2678:180::-;2737:6;2790:2;2778:9;2769:7;2765:23;2761:32;2758:52;;;2806:1;2803;2796:12;2758:52;-1:-1:-1;2829:23:1;;2678:180;-1:-1:-1;2678:180:1:o;2863:618::-;2965:6;2973;2981;2989;2997;3005;3058:3;3046:9;3037:7;3033:23;3029:33;3026:53;;;3075:1;3072;3065:12;3026:53;3098:29;3117:9;3098:29;:::i;:::-;3088:39;;3174:2;3163:9;3159:18;3146:32;3136:42;;3225:2;3214:9;3210:18;3197:32;3187:42;;3279:2;3268:9;3264:18;3251:32;3323:4;3316:5;3312:16;3305:5;3302:27;3292:55;;3343:1;3340;3333:12;3292:55;2863:618;;;;-1:-1:-1;2863:618:1;;3418:3;3403:19;;3390:33;;3470:3;3455:19;;;3442:33;;-1:-1:-1;2863:618:1;-1:-1:-1;;2863:618:1:o;3486:260::-;3554:6;3562;3615:2;3603:9;3594:7;3590:23;3586:32;3583:52;;;3631:1;3628;3621:12;3583:52;3654:29;3673:9;3654:29;:::i;:::-;3644:39;;3702:38;3736:2;3725:9;3721:18;3702:38;:::i;:::-;3692:48;;3486:260;;;;;:::o;3751:350::-;3818:6;3826;3879:2;3867:9;3858:7;3854:23;3850:32;3847:52;;;3895:1;3892;3885:12;3847:52;3918:29;3937:9;3918:29;:::i;:::-;3908:39;;3997:2;3986:9;3982:18;3969:32;4041:10;4034:5;4030:22;4023:5;4020:33;4010:61;;4067:1;4064;4057:12;4010:61;4090:5;4080:15;;;3751:350;;;;;:::o;4374:380::-;4453:1;4449:12;;;;4496;;;4517:61;;4571:4;4563:6;4559:17;4549:27;;4517:61;4624:2;4616:6;4613:14;4593:18;4590:38;4587:161;;4670:10;4665:3;4661:20;4658:1;4651:31;4705:4;4702:1;4695:15;4733:4;4730:1;4723:15;4587:161;;4374:380;;;:::o;4759:356::-;4961:2;4943:21;;;4980:18;;;4973:30;5039:34;5034:2;5019:18;;5012:62;5106:2;5091:18;;4759:356::o;5528:127::-;5589:10;5584:3;5580:20;5577:1;5570:31;5620:4;5617:1;5610:15;5644:4;5641:1;5634:15;5660:175;5728:10;5771;;;5759;;;5755:27;;5794:12;;;5791:38;;;5809:18;;:::i;:::-;5791:38;5660:175;;;;:::o;5840:288::-;5879:1;5905:10;5942:2;5939:1;5935:10;5964:3;5954:134;;6010:10;6005:3;6001:20;5998:1;5991:31;6045:4;6042:1;6035:15;6073:4;6070:1;6063:15;5954:134;6106:10;;6102:20;;;;;5840:288;-1:-1:-1;;5840:288:1:o;8184:135::-;8223:3;8244:17;;;8241:43;;8264:18;;:::i;:::-;-1:-1:-1;8311:1:1;8300:13;;8184:135::o;11159:128::-;11226:9;;;11247:11;;;11244:37;;;11261:18;;:::i;11292:125::-;11357:9;;;11378:10;;;11375:36;;;11391:18;;:::i;12138:172::-;12205:10;12235;;;12247;;;12231:27;;12270:11;;;12267:37;;;12284:18;;:::i
Swarm Source
ipfs://b4465250ee74a2b23c9d9bd053adb6c9bddc05e445e48024eac5e74d951ac129
[ Download: CSV Export ]
[ Download: CSV Export ]
A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.