ERC-20
Overview
Max Total Supply
7,253,325.020323083 sUTD
Holders
63
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 9 Decimals)
Balance
1.450683016 sUTDValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Sutd
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 80 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; import "./ISutd.sol"; import "./IAutd.sol"; import "./IStaking.sol"; import "../ERC20/ERC20Permit.sol"; contract Sutd is ISutd, ERC20Permit { /* ========== DEPENDENCIES ========== */ using SafeMath for uint256; /* ========== EVENTS ========== */ event LogSupply(uint256 indexed epoch, uint256 totalSupply); event LogRebase(uint256 indexed epoch, uint256 rebase, uint256 index); event LogStakingContractUpdated(address stakingContract); /* ========== MODIFIERS ========== */ modifier onlyStakingContract() { require(msg.sender == stakingContract, "StakingContract: call is not staking contract"); _; } /* ========== DATA STRUCTURES ========== */ struct Rebase { uint256 epoch; uint256 rebase; // 18 decimals uint256 totalStakedBefore; uint256 totalStakedAfter; uint256 amountRebased; uint256 index; uint256 blockNumberOccured; } /* ========== STATE VARIABLES ========== */ address internal initializer; uint256 internal INDEX; // Index Gons - tracks rebase growth address public stakingContract; // balance used to calc rebase IAutd public aUTD; // additional staked supply (governance token) Rebase[] public rebases; // past rebase data uint256 private constant MAX_UINT256 = type(uint256).max; uint256 private constant INITIAL_FRAGMENTS_SUPPLY = 5_000_000 * 10**9; // TOTAL_GONS is a multiple of INITIAL_FRAGMENTS_SUPPLY so that _gonsPerFragment is an integer. // Use the highest value that fits in a uint256 for max granularity. uint256 private constant TOTAL_GONS = MAX_UINT256 - (MAX_UINT256 % INITIAL_FRAGMENTS_SUPPLY); // MAX_SUPPLY = maximum integer < (sqrt(4*TOTAL_GONS + 1) - 1) / 2 uint256 private constant MAX_SUPPLY = ~uint128(0); // (2^128) - 1 uint256 private _gonsPerFragment; mapping(address => uint256) private _gonBalances; mapping(address => mapping(address => uint256)) private _allowedValue; address public treasury; mapping(address => uint256) public override debtBalances; /* ========== CONSTRUCTOR ========== */ constructor() ERC20("Staked UTD", "sUTD", 9) ERC20Permit("Staked UTD") { initializer = msg.sender; _totalSupply = INITIAL_FRAGMENTS_SUPPLY; _gonsPerFragment = TOTAL_GONS.div(_totalSupply); } /* ========== INITIALIZATION ========== */ function setIndex(uint256 _index) external { require(msg.sender == initializer, "Initializer: caller is not initializer"); require(INDEX == 0, "Cannot set INDEX again"); INDEX = gonsForBalance(_index); } function setaUTD(address _aUTD) external { require(msg.sender == initializer, "Initializer: caller is not initializer"); require(address(aUTD) == address(0), "aUTD: aUTD already set"); require(_aUTD != address(0), "aUTD: aUTD is not a valid contract"); aUTD = IAutd(_aUTD); } // do this last function initialize(address _stakingContract, address _treasury) external { require(msg.sender == initializer, "Initializer: caller is not initializer"); require(_stakingContract != address(0), "Staking"); stakingContract = _stakingContract; _gonBalances[stakingContract] = TOTAL_GONS; require(_treasury != address(0), "Zero address: Treasury"); treasury = _treasury; emit Transfer(address(0x0), stakingContract, _totalSupply); emit LogStakingContractUpdated(stakingContract); initializer = address(0); } /* ========== REBASE ========== */ /** @notice increases sUTD supply to increase staking balances relative to profit_ @param profit_ uint256 @return uint256 */ function rebase(uint256 profit_, uint256 epoch_) public override onlyStakingContract returns (uint256) { uint256 rebaseAmount; uint256 circulatingSupply_ = circulatingSupply(); if (profit_ == 0) { emit LogSupply(epoch_, _totalSupply); emit LogRebase(epoch_, 0, index()); return _totalSupply; } else if (circulatingSupply_ > 0) { rebaseAmount = profit_.mul(_totalSupply).div(circulatingSupply_); } else { rebaseAmount = profit_; } _totalSupply = _totalSupply.add(rebaseAmount); if (_totalSupply > MAX_SUPPLY) { _totalSupply = MAX_SUPPLY; } _gonsPerFragment = TOTAL_GONS.div(_totalSupply); _storeRebase(circulatingSupply_, profit_, epoch_); return _totalSupply; } /** @notice emits event with data about rebase @param previousCirculating_ uint @param profit_ uint @param epoch_ uint */ function _storeRebase( uint256 previousCirculating_, uint256 profit_, uint256 epoch_ ) internal { uint256 rebasePercent = previousCirculating_ == 0 ? 0 : profit_.mul(1e18).div(previousCirculating_); rebases.push( Rebase({ epoch: epoch_, rebase: rebasePercent, // 18 decimals totalStakedBefore: previousCirculating_, totalStakedAfter: circulatingSupply(), amountRebased: profit_, index: index(), blockNumberOccured: block.number }) ); emit LogSupply(epoch_, _totalSupply); emit LogRebase(epoch_, rebasePercent, index()); } /* ========== MUTATIVE FUNCTIONS =========== */ function transfer(address to, uint256 value) public override(IERC20, ERC20) returns (bool) { uint256 gonValue = value.mul(_gonsPerFragment); _gonBalances[msg.sender] = _gonBalances[msg.sender].sub(gonValue); _gonBalances[to] = _gonBalances[to].add(gonValue); require(balanceOf(msg.sender) >= debtBalances[msg.sender], "Debt: cannot transfer amount"); emit Transfer(msg.sender, to, value); return true; } function transferFrom( address from, address to, uint256 value ) public override(IERC20, ERC20) returns (bool) { // Staking contract has permissions to transfer all sUTD for wrapping // Check if it is other senders if (msg.sender != stakingContract) { // Note: Next line checks (via underflow error) that there is non-negative allowance remaining _allowedValue[from][msg.sender] = _allowedValue[from][msg.sender].sub(value); emit Approval(from, msg.sender, _allowedValue[from][msg.sender]); } uint256 gonValue = gonsForBalance(value); _gonBalances[from] = _gonBalances[from].sub(gonValue); _gonBalances[to] = _gonBalances[to].add(gonValue); require(balanceOf(from) >= debtBalances[from], "Debt: cannot transfer amount"); emit Transfer(from, to, value); return true; } function approve(address spender, uint256 value) public override(IERC20, ERC20) returns (bool) { _approve(msg.sender, spender, value); return true; } function increaseAllowance(address spender, uint256 addedValue) public override returns (bool) { _approve(msg.sender, spender, _allowedValue[msg.sender][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public override returns (bool) { uint256 oldValue = _allowedValue[msg.sender][spender]; if (subtractedValue >= oldValue) { _approve(msg.sender, spender, 0); } else { _approve(msg.sender, spender, oldValue.sub(subtractedValue)); } return true; } // this function is called by the treasury, and informs sUTD of changes to debt. // note that addresses with debt balances cannot transfer collateralized sUTD // until the debt has been repaid. function changeDebt( uint256 amount, address debtor, bool add ) external override { require(msg.sender == treasury, "Only treasury"); if (add) { debtBalances[debtor] = debtBalances[debtor].add(amount); } else { debtBalances[debtor] = debtBalances[debtor].sub(amount); } require(debtBalances[debtor] <= balanceOf(debtor), "sUTD: insufficient balance"); } /* ========== INTERNAL FUNCTIONS ========== */ function _approve( address owner, address spender, uint256 value ) internal virtual override { _allowedValue[owner][spender] = value; emit Approval(owner, spender, value); } /* ========== VIEW FUNCTIONS ========== */ function balanceOf(address who) public view override(IERC20, ERC20) returns (uint256) { return _gonBalances[who].div(_gonsPerFragment); } function gonsForBalance(uint256 amount) public view override returns (uint256) { return amount.mul(_gonsPerFragment); } function balanceForGons(uint256 gons) public view override returns (uint256) { return gons.div(_gonsPerFragment); } // toG converts an sUTD balance to aUTD terms. aUTD is an 18 decimal token. balance given is in 18 decimal format. function toG(uint256 amount) external view override returns (uint256) { return aUTD.balanceTo(amount); } // fromG converts a aUTD balance to sUTD terms. sUTD is a 9 decimal token. balance given is in 9 decimal format. function fromG(uint256 amount) external view override returns (uint256) { return aUTD.balanceFrom(amount); } // Staking contract holds excess sUTD function circulatingSupply() public view override returns (uint256) { return _totalSupply.sub(balanceOf(stakingContract)).add(aUTD.balanceFrom(IERC20(address(aUTD)).totalSupply())).add( IStaking(stakingContract).supplyInWarmup() ); } function index() public view override returns (uint256) { return balanceForGons(INDEX); } function allowance(address owner_, address spender) public view override(IERC20, ERC20) returns (uint256) { return _allowedValue[owner_][spender]; } }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.9; import "../ERC20/IERC20.sol"; interface ISutd is IERC20 { function rebase(uint256 utdProfit_, uint256 epoch_) external returns (uint256); function circulatingSupply() external view returns (uint256); function gonsForBalance(uint256 amount) external view returns (uint256); function balanceForGons(uint256 gons) external view returns (uint256); function index() external view returns (uint256); function toG(uint256 amount) external view returns (uint256); function fromG(uint256 amount) external view returns (uint256); function changeDebt( uint256 amount, address debtor, bool add ) external; function debtBalances(address _address) external view returns (uint256); }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.9; import "../ERC20/IERC20.sol"; interface IAutd is IERC20 { function mint(address _to, uint256 _amount) external; function burn(address _from, uint256 _amount) external; function index() external view returns (uint256); function balanceFrom(uint256 _amount) external view returns (uint256); function balanceTo(uint256 _amount) external view returns (uint256); }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity >=0.8.9; interface IStaking { function stake( address _to, uint256 _amount, bool _rebasing, bool _claim ) external returns (uint256); function claim(address _recipient, bool _rebasing) external returns (uint256); function forfeit() external returns (uint256); function toggleLock() external; function unstake( address _to, uint256 _amount, bool _trigger, bool _rebasing ) external returns (uint256); function wrap(address _to, uint256 _amount) external returns (uint256 gBalance_); function unwrap(address _to, uint256 _amount) external returns (uint256 sBalance_); function rebase() external; function index() external view returns (uint256); function contractBalance() external view returns (uint256); function totalStaked() external view returns (uint256); function supplyInWarmup() external view returns (uint256); }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9; import "./IERC20Permit.sol"; import "./ERC20.sol"; import "../cryptography/EIP712.sol"; import "../cryptography/ECDSA.sol"; import "../Counters.sol"; /** * @dev Implementation of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on `{IERC20-approve}`, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. * * _Available since v3.4._ */ abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 { using Counters for Counters.Counter; mapping(address => Counters.Counter) private _nonces; // solhint-disable-next-line var-name-mixedcase bytes32 private immutable _PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /** * @dev Initializes the {EIP712} domain separator using the `name` parameter, and setting `version` to `"1"`. * * It's a good idea to use the same `name` that is defined as the ERC20 token name. */ constructor(string memory name) EIP712(name, "1") {} /** * @dev See {IERC20Permit-permit}. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual override { require(block.timestamp <= deadline, "ERC20Permit: expired deadline"); bytes32 structHash = keccak256(abi.encode(_PERMIT_TYPEHASH, owner, spender, value, _useNonce(owner), deadline)); bytes32 hash = _hashTypedDataV4(structHash); address signer = ECDSA.recover(hash, v, r, s); require(signer == owner, "ERC20Permit: invalid signature"); _approve(owner, spender, value); } /** * @dev See {IERC20Permit-nonces}. */ function nonces(address owner) public view virtual override returns (uint256) { return _nonces[owner].current(); } /** * @dev See {IERC20Permit-DOMAIN_SEPARATOR}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view override returns (bytes32) { return _domainSeparatorV4(); } /** * @dev "Consume a nonce": return the current value and increment. * * _Available since v4.1._ */ function _useNonce(address owner) internal virtual returns (uint256 current) { Counters.Counter storage nonce = _nonces[owner]; current = nonce.current(); nonce.increment(); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity >=0.8.9; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.9; /** * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612]. * * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't * need to send a transaction, and thus is not required to hold Ether at all. */ interface IERC20Permit { /** * @dev Sets `value` as th xe allowance of `spender` over ``owner``'s tokens, * given ``owner``'s signed approval. * * IMPORTANT: The same issues {IERC20-approve} has related to transaction * ordering also apply here. * * Emits an {Approval} event. * * Requirements: * * - `spender` cannot be the zero address. * - `deadline` must be a timestamp in the future. * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` * over the EIP712-formatted function arguments. * - the signature must use ``owner``'s current nonce (see {nonces}). * * For more information on the signature format, see the * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP * section]. */ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external; /** * @dev Returns the current nonce for `owner`. This value must be * included whenever a signature is generated for {permit}. * * Every successful call to {permit} increases ``owner``'s nonce by one. This * prevents a signature from being used multiple times. */ function nonces(address owner) external view returns (uint256); /** * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}. */ // solhint-disable-next-line func-name-mixedcase function DOMAIN_SEPARATOR() external view returns (bytes32); }
// SPDX-License-Identifier: AGPL-3.0-or-later pragma solidity >=0.8.9; import "../SafeMath.sol"; import "./IERC20.sol"; abstract contract ERC20 is IERC20 { using SafeMath for uint256; // TODO comment actual hash value. bytes32 constant private ERC20TOKEN_ERC1820_INTERFACE_ID = keccak256( "ERC20Token" ); mapping (address => uint256) internal _balances; mapping (address => mapping (address => uint256)) internal _allowances; uint256 internal _totalSupply; string internal _name; string internal _symbol; uint8 internal immutable _decimals; constructor (string memory name_, string memory symbol_, uint8 decimals_) { _name = name_; _symbol = symbol_; _decimals = decimals_; } function name() public view returns (string memory) { return _name; } function symbol() public view returns (string memory) { return _symbol; } function decimals() public view virtual returns (uint8) { return _decimals; } function totalSupply() public view override returns (uint256) { return _totalSupply; } function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } function transfer(address recipient, uint256 amount) public virtual override returns (bool) { _transfer(msg.sender, recipient, amount); return true; } function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } function approve(address spender, uint256 amount) public virtual override returns (bool) { _approve(msg.sender, spender, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, msg.sender, _allowances[sender][msg.sender].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].add(addedValue)); return true; } function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { _approve(msg.sender, spender, _allowances[msg.sender][spender].sub(subtractedValue, "ERC20: decreased allowance below zero")); return true; } 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); _afterTokenTransfer(sender, recipient, amount); } 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); _afterTokenTransfer(address(0), account, amount); } 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); _afterTokenTransfer(account, address(0), amount); } 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); } function _beforeTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual { } function _afterTokenTransfer( address from_, address to_, uint256 amount_ ) internal virtual { } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; import "./ECDSA.sol"; /** * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data. * * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible, * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding * they need in their contracts using a combination of `abi.encode` and `keccak256`. * * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA * ({_hashTypedDataV4}). * * The implementation of the domain separator was designed to be as efficient as possible while still properly updating * the chain id to protect against replay attacks on an eventual fork of the chain. * * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. * * _Available since v3.4._ */ abstract contract EIP712 { /* solhint-disable var-name-mixedcase */ // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to // invalidate the cached domain separator if the chain id changes. bytes32 private immutable _CACHED_DOMAIN_SEPARATOR; uint256 private immutable _CACHED_CHAIN_ID; bytes32 private immutable _HASHED_NAME; bytes32 private immutable _HASHED_VERSION; bytes32 private immutable _TYPE_HASH; /* solhint-enable var-name-mixedcase */ /** * @dev Initializes the domain separator and parameter caches. * * The meaning of `name` and `version` is specified in * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]: * * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. * - `version`: the current major version of the signing domain. * * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart * contract upgrade]. */ constructor(string memory name, string memory version) { uint256 chainID; assembly { chainID := chainid() } bytes32 hashedName = keccak256(bytes(name)); bytes32 hashedVersion = keccak256(bytes(version)); bytes32 typeHash = keccak256( "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)" ); _HASHED_NAME = hashedName; _HASHED_VERSION = hashedVersion; _CACHED_CHAIN_ID = chainID; _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion); _TYPE_HASH = typeHash; } /** * @dev Returns the domain separator for the current chain. */ function _domainSeparatorV4() internal view returns (bytes32) { uint256 chainID; assembly { chainID := chainid() } if (chainID == _CACHED_CHAIN_ID) { return _CACHED_DOMAIN_SEPARATOR; } else { return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION); } } function _buildDomainSeparator( bytes32 typeHash, bytes32 nameHash, bytes32 versionHash ) private view returns (bytes32) { uint256 chainID; assembly { chainID := chainid() } return keccak256(abi.encode(typeHash, nameHash, versionHash, chainID, address(this))); } /** * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this * function returns the hash of the fully encoded EIP712 message for this domain. * * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example: * * ```solidity * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode( * keccak256("Mail(address to,string contents)"), * mailTo, * keccak256(bytes(mailContents)) * ))); * address signer = ECDSA.recover(digest, signature); * ``` */ function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) { return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.9; /** * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations. * * These functions can be used to verify that a message was signed by the holder * of the private keys of a given address. */ library ECDSA { enum RecoverError { NoError, InvalidSignature, InvalidSignatureLength, InvalidSignatureS, InvalidSignatureV } function _throwError(RecoverError error) private pure { if (error == RecoverError.NoError) { return; // no error: do nothing } else if (error == RecoverError.InvalidSignature) { revert("ECDSA: invalid signature"); } else if (error == RecoverError.InvalidSignatureLength) { revert("ECDSA: invalid signature length"); } else if (error == RecoverError.InvalidSignatureS) { revert("ECDSA: invalid signature 's' value"); } else if (error == RecoverError.InvalidSignatureV) { revert("ECDSA: invalid signature 'v' value"); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature` or error string. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. * * Documentation for signature generation: * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js] * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers] * * _Available since v4.3._ */ function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) { // Check the signature length // - case 65: r,s,v signature (standard) // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._ if (signature.length == 65) { bytes32 r; bytes32 s; uint8 v; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) s := mload(add(signature, 0x40)) v := byte(0, mload(add(signature, 0x60))) } return tryRecover(hash, v, r, s); } else if (signature.length == 64) { bytes32 r; bytes32 vs; // ecrecover takes the signature parameters, and the only way to get them // currently is to use assembly. assembly { r := mload(add(signature, 0x20)) vs := mload(add(signature, 0x40)) } return tryRecover(hash, r, vs); } else { return (address(0), RecoverError.InvalidSignatureLength); } } /** * @dev Returns the address that signed a hashed message (`hash`) with * `signature`. This address can then be used for verification purposes. * * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures: * this function rejects them by requiring the `s` value to be in the lower * half order, and the `v` value to be either 27 or 28. * * IMPORTANT: `hash` _must_ be the result of a hash operation for the * verification to be secure: it is possible to craft signatures that * recover to arbitrary addresses for non-hashed data. A safe way to ensure * this is by receiving a hash of the original message (which may otherwise * be too long), and then calling {toEthSignedMessageHash} on it. */ function recover(bytes32 hash, bytes memory signature) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, signature); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately. * * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures] * * _Available since v4.3._ */ function tryRecover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address, RecoverError) { bytes32 s; uint8 v; assembly { s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff) v := add(shr(255, vs), 27) } return tryRecover(hash, v, r, s); } /** * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately. * * _Available since v4.2._ */ function recover( bytes32 hash, bytes32 r, bytes32 vs ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, r, vs); _throwError(error); return recovered; } /** * @dev Overload of {ECDSA-tryRecover} that receives the `v`, * `r` and `s` signature fields separately. * * _Available since v4.3._ */ function tryRecover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address, RecoverError) { // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most // signatures from current libraries generate a unique signature with an s-value in the lower half order. // // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept // these malleable signatures as well. if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) { return (address(0), RecoverError.InvalidSignatureS); } if (v != 27 && v != 28) { return (address(0), RecoverError.InvalidSignatureV); } // If the signature is valid (and not malleable), return the signer address address signer = ecrecover(hash, v, r, s); if (signer == address(0)) { return (address(0), RecoverError.InvalidSignature); } return (signer, RecoverError.NoError); } /** * @dev Overload of {ECDSA-recover} that receives the `v`, * `r` and `s` signature fields separately. */ function recover( bytes32 hash, uint8 v, bytes32 r, bytes32 s ) internal pure returns (address) { (address recovered, RecoverError error) = tryRecover(hash, v, r, s); _throwError(error); return recovered; } /** * @dev Returns an Ethereum Signed Message, created from a `hash`. This * produces hash corresponding to the one signed with the * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] * JSON-RPC method as part of EIP-191. * * See {recover}. */ function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) { // 32 is the length in bytes of hash, // enforced by the type signature above return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)); } /** * @dev Returns an Ethereum Signed Typed Data, created from a * `domainSeparator` and a `structHash`. This produces hash corresponding * to the one signed with the * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] * JSON-RPC method as part of EIP-712. * * See {recover}. */ function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) { return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); } }
// SPDX-License-Identifier: AGPL-3.0 pragma solidity ^0.8.9; import "./SafeMath.sol"; library Counters { using SafeMath for uint256; struct Counter { // This variable should never be directly accessed by users of the library: interactions must be restricted to // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add // this feature: see https://github.com/ethereum/solidity/issues/4637 uint256 _value; // default: 0 } function current(Counter storage counter) internal view returns (uint256) { return counter._value; } function increment(Counter storage counter) internal { // The {SafeMath} overflow check can be skipped here, see the comment at the top counter._value += 1; } function decrement(Counter storage counter) internal { counter._value = counter._value.sub(1); } }
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.9; // TODO(zx): Replace all instances of SafeMath with OZ implementation library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns (uint256) { return sub(a, b, "SafeMath: subtraction overflow"); } function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) { require(b <= a, errorMessage); uint256 c = a - b; return c; } function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 c = a * b; require(c / a == b, "SafeMath: multiplication overflow"); return c; } function div(uint256 a, uint256 b) internal pure returns (uint256) { return div(a, b, "SafeMath: division by 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; } // Only used in the BondingCalculator.sol function sqrrt(uint256 a) internal pure returns (uint c) { if (a > 3) { c = a; uint b = add( div( a, 2), 1 ); while (b < c) { c = b; b = div( add( div( a, b ), b), 2 ); } } else if (a != 0) { c = 1; } } }
{ "optimizer": { "enabled": true, "runs": 80 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"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":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"rebase","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"LogRebase","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"stakingContract","type":"address"}],"name":"LogStakingContractUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"epoch","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"totalSupply","type":"uint256"}],"name":"LogSupply","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":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"aUTD","outputs":[{"internalType":"contract IAutd","name":"","type":"address"}],"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":"value","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gons","type":"uint256"}],"name":"balanceForGons","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"who","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"address","name":"debtor","type":"address"},{"internalType":"bool","name":"add","type":"bool"}],"name":"changeDebt","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"circulatingSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"debtBalances","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":"uint256","name":"amount","type":"uint256"}],"name":"fromG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"gonsForBalance","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":[],"name":"index","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_stakingContract","type":"address"},{"internalType":"address","name":"_treasury","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"nonces","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"profit_","type":"uint256"},{"internalType":"uint256","name":"epoch_","type":"uint256"}],"name":"rebase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rebases","outputs":[{"internalType":"uint256","name":"epoch","type":"uint256"},{"internalType":"uint256","name":"rebase","type":"uint256"},{"internalType":"uint256","name":"totalStakedBefore","type":"uint256"},{"internalType":"uint256","name":"totalStakedAfter","type":"uint256"},{"internalType":"uint256","name":"amountRebased","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"blockNumberOccured","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_index","type":"uint256"}],"name":"setIndex","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_aUTD","type":"address"}],"name":"setaUTD","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"toG","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"treasury","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6101606040527f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9610140523480156200003757600080fd5b506040518060400160405280600a81526020016914dd185ad9590815551160b21b81525080604051806040016040528060018152602001603160f81b8152506040518060400160405280600a81526020016914dd185ad9590815551160b21b815250604051806040016040528060048152602001631cd5551160e21b81525060098260039080519060200190620000d0929190620002a7565b508151620000e6906004906020850190620002a7565b5060ff166080908152845160209586012084519486019490942060e08590526101008190524660c0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f818b01819052818301999099526060810194909452938301919091523060a08084019190915283518084038201815292909101909252805195019490942090935250610120525050600680546001600160a01b031916331790556611c37937e080006002819055620001d290620001b08160001962000363565b620001be9060001962000390565b620001db60201b620012b71790919060201c565b600b55620004a9565b60006200022583836040518060400160405280601a81526020017f536166654d6174683a206469766973696f6e206279207a65726f0000000000008152506200022c60201b60201c565b9392505050565b60008183620002595760405162461bcd60e51b8152600401620002509190620003aa565b60405180910390fd5b50600062000268848662000402565b905062000276848662000363565b62000282828662000419565b6200028e91906200043b565b85146200029f576200029f62000456565b949350505050565b828054620002b5906200046c565b90600052602060002090601f016020900481019282620002d9576000855562000324565b82601f10620002f457805160ff191683800117855562000324565b8280016001018555821562000324579182015b828111156200032457825182559160200191906001019062000307565b506200033292915062000336565b5090565b5b8082111562000332576000815560010162000337565b634e487b7160e01b600052601260045260246000fd5b6000826200037557620003756200034d565b500690565b634e487b7160e01b600052601160045260246000fd5b600082821015620003a557620003a56200037a565b500390565b600060208083528351808285015260005b81811015620003d957858101830151858201604001528201620003bb565b81811115620003ec576000604083870101525b50601f01601f1916929092016040019392505050565b6000826200041457620004146200034d565b500490565b60008160001904831182151516156200043657620004366200037a565b500290565b600082198211156200045157620004516200037a565b500190565b634e487b7160e01b600052600160045260246000fd5b600181811c908216806200048157607f821691505b60208210811415620004a357634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051611ec06200050460003960006111a701526000611624015260006116730152600061164e015260006115cf015260006115f7015260006102780152611ec06000f3fe608060405234801561001057600080fd5b506004361061019a5760003560e01c806370a08231116100e4578063a457c2d711610092578063a457c2d71461039c578063a9059cbb146103af578063ae5c6cd3146103c2578063b8fbd533146103d5578063c4ef1c4c146103e8578063d505accf14610408578063dd62ed3e1461041b578063ee99205c1461045457600080fd5b806370a08231146102f857806373c69eb71461030b5780637965d56d146103535780637ecebe00146103665780639358928b1461037957806395d89b4114610381578063965bbc291461038957600080fd5b806323b872dd1161014c57806323b872dd146102565780632986c0e514610269578063313ce567146102715780633644e515146102a257806339509351146102aa57806340a5737f146102bd578063485cc955146102d257806361d027b3146102e557600080fd5b806303ad77da1461019f578063058ecdb4146101cf57806306fdde03146101f0578063095be81814610205578063095ea7b31461021857806318160ddd1461023b5780631bd3967414610243575b600080fd5b6009546101b2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101e26101dd366004611ab8565b610467565b6040519081526020016101c6565b6101f861061c565b6040516101c69190611ada565b6101e2610213366004611b2f565b6106ae565b61022b610226366004611b64565b61071d565b60405190151581526020016101c6565b6002546101e2565b6101e2610251366004611b2f565b610733565b61022b610264366004611b8e565b61074a565b6101e26108e1565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101c6565b6101e26108f3565b61022b6102b8366004611b64565b6108fd565b6102d06102cb366004611b2f565b610938565b005b6102d06102e0366004611bca565b6109ba565b600e546101b2906001600160a01b031681565b6101e2610306366004611bfd565b610b66565b61031e610319366004611b2f565b610b8e565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016101c6565b6101e2610361366004611b2f565b610be0565b6101e2610374366004611bfd565b610bf7565b6101e2610c15565b6101f8610d8f565b6102d0610397366004611bfd565b610d9e565b61022b6103aa366004611b64565b610e9f565b61022b6103bd366004611b64565b610ef4565b6102d06103d0366004611c18565b610fe1565b6101e26103e3366004611b2f565b611121565b6101e26103f6366004611bfd565b600f6020526000908152604090205481565b6102d0610416366004611c5d565b611153565b6101e2610429366004611bca565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b6008546101b2906001600160a01b031681565b6008546000906001600160a01b031633146104e05760405162461bcd60e51b815260206004820152602e60248201527f5374616b696e67436f6e74726163743a202063616c6c206973206e6f7420737460448201526d185ada5b99c818dbdb9d1c9858dd60921b60648201526084015b60405180910390fd5b6000806104eb610c15565b90508461057e57837f0417b340e646d4be71f9b2da63b5c3c69bc9cfa069f0e0db4756271886130bf460025460405161052691815260200190565b60405180910390a2837f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb2600061055a6108e1565b6040805192835260208301919091520160405180910390a260025492505050610616565b80156105aa576105a38161059d600254886112fd90919063ffffffff16565b906112b7565b91506105ae565b8491505b6002546105bb908361137c565b60028190556001600160801b0310156105da576001600160801b036002555b600254610600906105f46611c37937e08000600019611ce6565b61059d90600019611d10565b600b5561060e8186866113db565b600254925050505b92915050565b60606003805461062b90611d27565b80601f016020809104026020016040519081016040528092919081815260200182805461065790611d27565b80156106a45780601f10610679576101008083540402835291602001916106a4565b820191906000526020600020905b81548152906001019060200180831161068757829003601f168201915b5050505050905090565b6009546040516319a948db60e21b8152600481018390526000916001600160a01b0316906366a5236c906024015b602060405180830381865afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106169190611d5c565b600061072a338484611527565b50600192915050565b6000610616600b54836112fd90919063ffffffff16565b6008546000906001600160a01b031633146107e8576001600160a01b0384166000908152600d6020908152604080832033845290915290205461078d9083611588565b6001600160a01b0385166000818152600d6020908152604080832033808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b60006107f383610733565b6001600160a01b0386166000908152600c60205260409020549091506108199082611588565b6001600160a01b038087166000908152600c60205260408082209390935590861681522054610848908261137c565b6001600160a01b038086166000908152600c60209081526040808320949094559188168152600f909152205461087d86610b66565b101561089b5760405162461bcd60e51b81526004016104d790611d75565b836001600160a01b0316856001600160a01b0316600080516020611e6b833981519152856040516108ce91815260200190565b60405180910390a3506001949350505050565b60006108ee600754610be0565b905090565b60006108ee6115ca565b336000818152600d602090815260408083206001600160a01b0387168452909152812054909161072a918590610933908661137c565b611527565b6006546001600160a01b031633146109625760405162461bcd60e51b81526004016104d790611dac565b600754156109ab5760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba1039b2ba1024a72222ac1030b3b0b4b760511b60448201526064016104d7565b6109b481610733565b60075550565b6006546001600160a01b031633146109e45760405162461bcd60e51b81526004016104d790611dac565b6001600160a01b038216610a245760405162461bcd60e51b81526020600482015260076024820152665374616b696e6760c81b60448201526064016104d7565b600880546001600160a01b0319166001600160a01b038416179055610a526611c37937e08000600019611ce6565b610a5e90600019611d10565b6008546001600160a01b039081166000908152600c60205260409020919091558116610ac55760405162461bcd60e51b81526020600482015260166024820152755a65726f20616464726573733a20547265617375727960501b60448201526064016104d7565b600e80546001600160a01b0319166001600160a01b0383811691909117909155600854600254604051908152911690600090600080516020611e6b8339815191529060200160405180910390a36008546040516001600160a01b0390911681527f817c653428858ed536dc085c5d8273734c517b55de44b55f5c5877a75e3373a19060200160405180910390a15050600680546001600160a01b0319169055565b600b546001600160a01b0382166000908152600c6020526040812054909161061691906112b7565b600a8181548110610b9e57600080fd5b90600052602060002090600702016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b6000610616600b54836112b790919063ffffffff16565b6001600160a01b038116600090815260056020526040812054610616565b60006108ee600860009054906101000a90046001600160a01b03166001600160a01b031663201386416040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c919190611d5c565b600954604080516318160ddd60e01b81529051610d89926001600160a01b03169163a82487689183916318160ddd9160048083019260209291908290030181865afa158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d089190611d5c565b6040518263ffffffff1660e01b8152600401610d2691815260200190565b602060405180830381865afa158015610d43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d679190611d5c565b600854610d8990610d80906001600160a01b0316610b66565b60025490611588565b9061137c565b60606004805461062b90611d27565b6006546001600160a01b03163314610dc85760405162461bcd60e51b81526004016104d790611dac565b6009546001600160a01b031615610e1b5760405162461bcd60e51b8152602060048201526017602482015276185555110e88081855551108185b1c9958591e481cd95d604a1b60448201526064016104d7565b6001600160a01b038116610e7d5760405162461bcd60e51b815260206004820152602360248201527f615554443a202061555444206973206e6f7420612076616c696420636f6e74726044820152621858dd60ea1b60648201526084016104d7565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600d602090815260408083206001600160a01b0386168452909152812054808310610edb57610ed633856000611527565b610eea565b610eea33856109338487611588565b5060019392505050565b600080610f0c600b54846112fd90919063ffffffff16565b336000908152600c6020526040902054909150610f299082611588565b336000908152600c6020526040808220929092556001600160a01b03861681522054610f55908261137c565b6001600160a01b0385166000908152600c602090815260408083209390935533808352600f9091529190205490610f8b90610b66565b1015610fa95760405162461bcd60e51b81526004016104d790611d75565b6040518381526001600160a01b038516903390600080516020611e6b8339815191529060200160405180910390a35060019392505050565b600e546001600160a01b0316331461102b5760405162461bcd60e51b815260206004820152600d60248201526c4f6e6c7920747265617375727960981b60448201526064016104d7565b8015611072576001600160a01b0382166000908152600f6020526040902054611054908461137c565b6001600160a01b0383166000908152600f60205260409020556110af565b6001600160a01b0382166000908152600f60205260409020546110959084611588565b6001600160a01b0383166000908152600f60205260409020555b6110b882610b66565b6001600160a01b0383166000908152600f6020526040902054111561111c5760405162461bcd60e51b815260206004820152601a602482015279735554443a20696e73756666696369656e742062616c616e636560301b60448201526064016104d7565b505050565b60095460405163150490ed60e31b8152600481018390526000916001600160a01b03169063a8248768906024016106dc565b834211156111a35760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016104d7565b60007f00000000000000000000000000000000000000000000000000000000000000008888886111d28c6116c1565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061122d826116eb565b9050600061123d82878787611739565b9050896001600160a01b0316816001600160a01b0316146112a05760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016104d7565b6112ab8a8a8a611527565b50505050505050505050565b60006112f683836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250611761565b9392505050565b60008261130c57506000610616565b60006113188385611df3565b9050826113258583611e12565b146112f65760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016104d7565b6000806113898385611e26565b9050838110156112f65760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016104d7565b600083156113fe576113f98461059d85670de0b6b3a76400006112fd565b611401565b60005b9050600a6040518060e0016040528084815260200183815260200186815260200161142a610c15565b815260200185815260200161143d6108e1565b81524360209182015282546001808201855560009485529382902083516007909202019081558282015193810193909355604080830151600280860191909155606084015160038601556080840151600486015560a0840151600586015560c0909301516006909401939093559054915191825283917f0417b340e646d4be71f9b2da63b5c3c69bc9cfa069f0e0db4756271886130bf4910160405180910390a2817f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb2826115096108e1565b6040805192835260208301919091520160405180910390a250505050565b6001600160a01b038381166000818152600d602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006112f683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117c5565b6000467f000000000000000000000000000000000000000000000000000000000000000081141561161c577f000000000000000000000000000000000000000000000000000000000000000091505090565b5050604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b03811660009081526005602052604090208054906116e5816117ff565b50919050565b60006106166116f86115ca565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061174a8787878761181c565b91509150611757816118ff565b5095945050505050565b600081836117825760405162461bcd60e51b81526004016104d79190611ada565b50600061178f8486611e12565b905061179b8486611ce6565b6117a58286611df3565b6117af9190611e26565b85146117bd576117bd611e3e565b949350505050565b600081848411156117e95760405162461bcd60e51b81526004016104d79190611ada565b5060006117f68486611d10565b95945050505050565b60018160000160008282546118149190611e26565b909155505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561184957506000905060036118f6565b8460ff16601b1415801561186157508460ff16601c14155b1561187257506000905060046118f6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156118c6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166118ef576000600192509250506118f6565b9150600090505b94509492505050565b600081600481111561191357611913611e54565b141561191c5750565b600181600481111561193057611930611e54565b14156119795760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016104d7565b600281600481111561198d5761198d611e54565b14156119db5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104d7565b60038160048111156119ef576119ef611e54565b1415611a485760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104d7565b6004816004811115611a5c57611a5c611e54565b1415611ab55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104d7565b50565b60008060408385031215611acb57600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015611b0757858101830151858201604001528201611aeb565b81811115611b19576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611b4157600080fd5b5035919050565b80356001600160a01b0381168114611b5f57600080fd5b919050565b60008060408385031215611b7757600080fd5b611b8083611b48565b946020939093013593505050565b600080600060608486031215611ba357600080fd5b611bac84611b48565b9250611bba60208501611b48565b9150604084013590509250925092565b60008060408385031215611bdd57600080fd5b611be683611b48565b9150611bf460208401611b48565b90509250929050565b600060208284031215611c0f57600080fd5b6112f682611b48565b600080600060608486031215611c2d57600080fd5b83359250611c3d60208501611b48565b915060408401358015158114611c5257600080fd5b809150509250925092565b600080600080600080600060e0888a031215611c7857600080fd5b611c8188611b48565b9650611c8f60208901611b48565b95506040880135945060608801359350608088013560ff81168114611cb357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b634e487b7160e01b600052601260045260246000fd5b600082611cf557611cf5611cd0565b500690565b634e487b7160e01b600052601160045260246000fd5b600082821015611d2257611d22611cfa565b500390565b600181811c90821680611d3b57607f821691505b602082108114156116e557634e487b7160e01b600052602260045260246000fd5b600060208284031215611d6e57600080fd5b5051919050565b6020808252601c908201527f446562743a2063616e6e6f74207472616e7366657220616d6f756e7400000000604082015260600190565b60208082526027908201527f496e697469616c697a65723a202063616c6c6572206973206e6f7420696e697460408201526634b0b634bd32b960c91b606082015260800190565b6000816000190483118215151615611e0d57611e0d611cfa565b500290565b600082611e2157611e21611cd0565b500490565b60008219821115611e3957611e39611cfa565b500190565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220f8bafd33f04d141f17f35159870fc166aa7c79f654127cfca3fa017740ad20ea64736f6c634300080a0033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061019a5760003560e01c806370a08231116100e4578063a457c2d711610092578063a457c2d71461039c578063a9059cbb146103af578063ae5c6cd3146103c2578063b8fbd533146103d5578063c4ef1c4c146103e8578063d505accf14610408578063dd62ed3e1461041b578063ee99205c1461045457600080fd5b806370a08231146102f857806373c69eb71461030b5780637965d56d146103535780637ecebe00146103665780639358928b1461037957806395d89b4114610381578063965bbc291461038957600080fd5b806323b872dd1161014c57806323b872dd146102565780632986c0e514610269578063313ce567146102715780633644e515146102a257806339509351146102aa57806340a5737f146102bd578063485cc955146102d257806361d027b3146102e557600080fd5b806303ad77da1461019f578063058ecdb4146101cf57806306fdde03146101f0578063095be81814610205578063095ea7b31461021857806318160ddd1461023b5780631bd3967414610243575b600080fd5b6009546101b2906001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6101e26101dd366004611ab8565b610467565b6040519081526020016101c6565b6101f861061c565b6040516101c69190611ada565b6101e2610213366004611b2f565b6106ae565b61022b610226366004611b64565b61071d565b60405190151581526020016101c6565b6002546101e2565b6101e2610251366004611b2f565b610733565b61022b610264366004611b8e565b61074a565b6101e26108e1565b60405160ff7f00000000000000000000000000000000000000000000000000000000000000091681526020016101c6565b6101e26108f3565b61022b6102b8366004611b64565b6108fd565b6102d06102cb366004611b2f565b610938565b005b6102d06102e0366004611bca565b6109ba565b600e546101b2906001600160a01b031681565b6101e2610306366004611bfd565b610b66565b61031e610319366004611b2f565b610b8e565b604080519788526020880196909652948601939093526060850191909152608084015260a083015260c082015260e0016101c6565b6101e2610361366004611b2f565b610be0565b6101e2610374366004611bfd565b610bf7565b6101e2610c15565b6101f8610d8f565b6102d0610397366004611bfd565b610d9e565b61022b6103aa366004611b64565b610e9f565b61022b6103bd366004611b64565b610ef4565b6102d06103d0366004611c18565b610fe1565b6101e26103e3366004611b2f565b611121565b6101e26103f6366004611bfd565b600f6020526000908152604090205481565b6102d0610416366004611c5d565b611153565b6101e2610429366004611bca565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b6008546101b2906001600160a01b031681565b6008546000906001600160a01b031633146104e05760405162461bcd60e51b815260206004820152602e60248201527f5374616b696e67436f6e74726163743a202063616c6c206973206e6f7420737460448201526d185ada5b99c818dbdb9d1c9858dd60921b60648201526084015b60405180910390fd5b6000806104eb610c15565b90508461057e57837f0417b340e646d4be71f9b2da63b5c3c69bc9cfa069f0e0db4756271886130bf460025460405161052691815260200190565b60405180910390a2837f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb2600061055a6108e1565b6040805192835260208301919091520160405180910390a260025492505050610616565b80156105aa576105a38161059d600254886112fd90919063ffffffff16565b906112b7565b91506105ae565b8491505b6002546105bb908361137c565b60028190556001600160801b0310156105da576001600160801b036002555b600254610600906105f46611c37937e08000600019611ce6565b61059d90600019611d10565b600b5561060e8186866113db565b600254925050505b92915050565b60606003805461062b90611d27565b80601f016020809104026020016040519081016040528092919081815260200182805461065790611d27565b80156106a45780601f10610679576101008083540402835291602001916106a4565b820191906000526020600020905b81548152906001019060200180831161068757829003601f168201915b5050505050905090565b6009546040516319a948db60e21b8152600481018390526000916001600160a01b0316906366a5236c906024015b602060405180830381865afa1580156106f9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106169190611d5c565b600061072a338484611527565b50600192915050565b6000610616600b54836112fd90919063ffffffff16565b6008546000906001600160a01b031633146107e8576001600160a01b0384166000908152600d6020908152604080832033845290915290205461078d9083611588565b6001600160a01b0385166000818152600d6020908152604080832033808552908352928190208590555193845290927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35b60006107f383610733565b6001600160a01b0386166000908152600c60205260409020549091506108199082611588565b6001600160a01b038087166000908152600c60205260408082209390935590861681522054610848908261137c565b6001600160a01b038086166000908152600c60209081526040808320949094559188168152600f909152205461087d86610b66565b101561089b5760405162461bcd60e51b81526004016104d790611d75565b836001600160a01b0316856001600160a01b0316600080516020611e6b833981519152856040516108ce91815260200190565b60405180910390a3506001949350505050565b60006108ee600754610be0565b905090565b60006108ee6115ca565b336000818152600d602090815260408083206001600160a01b0387168452909152812054909161072a918590610933908661137c565b611527565b6006546001600160a01b031633146109625760405162461bcd60e51b81526004016104d790611dac565b600754156109ab5760405162461bcd60e51b815260206004820152601660248201527521b0b73737ba1039b2ba1024a72222ac1030b3b0b4b760511b60448201526064016104d7565b6109b481610733565b60075550565b6006546001600160a01b031633146109e45760405162461bcd60e51b81526004016104d790611dac565b6001600160a01b038216610a245760405162461bcd60e51b81526020600482015260076024820152665374616b696e6760c81b60448201526064016104d7565b600880546001600160a01b0319166001600160a01b038416179055610a526611c37937e08000600019611ce6565b610a5e90600019611d10565b6008546001600160a01b039081166000908152600c60205260409020919091558116610ac55760405162461bcd60e51b81526020600482015260166024820152755a65726f20616464726573733a20547265617375727960501b60448201526064016104d7565b600e80546001600160a01b0319166001600160a01b0383811691909117909155600854600254604051908152911690600090600080516020611e6b8339815191529060200160405180910390a36008546040516001600160a01b0390911681527f817c653428858ed536dc085c5d8273734c517b55de44b55f5c5877a75e3373a19060200160405180910390a15050600680546001600160a01b0319169055565b600b546001600160a01b0382166000908152600c6020526040812054909161061691906112b7565b600a8181548110610b9e57600080fd5b90600052602060002090600702016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154905087565b6000610616600b54836112b790919063ffffffff16565b6001600160a01b038116600090815260056020526040812054610616565b60006108ee600860009054906101000a90046001600160a01b03166001600160a01b031663201386416040518163ffffffff1660e01b8152600401602060405180830381865afa158015610c6d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c919190611d5c565b600954604080516318160ddd60e01b81529051610d89926001600160a01b03169163a82487689183916318160ddd9160048083019260209291908290030181865afa158015610ce4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d089190611d5c565b6040518263ffffffff1660e01b8152600401610d2691815260200190565b602060405180830381865afa158015610d43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d679190611d5c565b600854610d8990610d80906001600160a01b0316610b66565b60025490611588565b9061137c565b60606004805461062b90611d27565b6006546001600160a01b03163314610dc85760405162461bcd60e51b81526004016104d790611dac565b6009546001600160a01b031615610e1b5760405162461bcd60e51b8152602060048201526017602482015276185555110e88081855551108185b1c9958591e481cd95d604a1b60448201526064016104d7565b6001600160a01b038116610e7d5760405162461bcd60e51b815260206004820152602360248201527f615554443a202061555444206973206e6f7420612076616c696420636f6e74726044820152621858dd60ea1b60648201526084016104d7565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b336000908152600d602090815260408083206001600160a01b0386168452909152812054808310610edb57610ed633856000611527565b610eea565b610eea33856109338487611588565b5060019392505050565b600080610f0c600b54846112fd90919063ffffffff16565b336000908152600c6020526040902054909150610f299082611588565b336000908152600c6020526040808220929092556001600160a01b03861681522054610f55908261137c565b6001600160a01b0385166000908152600c602090815260408083209390935533808352600f9091529190205490610f8b90610b66565b1015610fa95760405162461bcd60e51b81526004016104d790611d75565b6040518381526001600160a01b038516903390600080516020611e6b8339815191529060200160405180910390a35060019392505050565b600e546001600160a01b0316331461102b5760405162461bcd60e51b815260206004820152600d60248201526c4f6e6c7920747265617375727960981b60448201526064016104d7565b8015611072576001600160a01b0382166000908152600f6020526040902054611054908461137c565b6001600160a01b0383166000908152600f60205260409020556110af565b6001600160a01b0382166000908152600f60205260409020546110959084611588565b6001600160a01b0383166000908152600f60205260409020555b6110b882610b66565b6001600160a01b0383166000908152600f6020526040902054111561111c5760405162461bcd60e51b815260206004820152601a602482015279735554443a20696e73756666696369656e742062616c616e636560301b60448201526064016104d7565b505050565b60095460405163150490ed60e31b8152600481018390526000916001600160a01b03169063a8248768906024016106dc565b834211156111a35760405162461bcd60e51b815260206004820152601d60248201527f45524332305065726d69743a206578706972656420646561646c696e6500000060448201526064016104d7565b60007f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98888886111d28c6116c1565b6040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061122d826116eb565b9050600061123d82878787611739565b9050896001600160a01b0316816001600160a01b0316146112a05760405162461bcd60e51b815260206004820152601e60248201527f45524332305065726d69743a20696e76616c6964207369676e6174757265000060448201526064016104d7565b6112ab8a8a8a611527565b50505050505050505050565b60006112f683836040518060400160405280601a815260200179536166654d6174683a206469766973696f6e206279207a65726f60301b815250611761565b9392505050565b60008261130c57506000610616565b60006113188385611df3565b9050826113258583611e12565b146112f65760405162461bcd60e51b815260206004820152602160248201527f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f6044820152607760f81b60648201526084016104d7565b6000806113898385611e26565b9050838110156112f65760405162461bcd60e51b815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f77000000000060448201526064016104d7565b600083156113fe576113f98461059d85670de0b6b3a76400006112fd565b611401565b60005b9050600a6040518060e0016040528084815260200183815260200186815260200161142a610c15565b815260200185815260200161143d6108e1565b81524360209182015282546001808201855560009485529382902083516007909202019081558282015193810193909355604080830151600280860191909155606084015160038601556080840151600486015560a0840151600586015560c0909301516006909401939093559054915191825283917f0417b340e646d4be71f9b2da63b5c3c69bc9cfa069f0e0db4756271886130bf4910160405180910390a2817f6012dbce857565c4a40974aa5de8373a761fc429077ef0c8c8611d1e20d63fb2826115096108e1565b6040805192835260208301919091520160405180910390a250505050565b6001600160a01b038381166000818152600d602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b60006112f683836040518060400160405280601e81526020017f536166654d6174683a207375627472616374696f6e206f766572666c6f7700008152506117c5565b6000467f000000000000000000000000000000000000000000000000000000000000000181141561161c577f109a23dc06f3a087340845303fa88884d143033a76c4b2b38a3f3313087b9be491505090565b5050604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527fc98ae08cac37ede45bf8139ab0b2b988f39ca579c94f8b834a94d3d305d6756f828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b6001600160a01b03811660009081526005602052604090208054906116e5816117ff565b50919050565b60006106166116f86115ca565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b600080600061174a8787878761181c565b91509150611757816118ff565b5095945050505050565b600081836117825760405162461bcd60e51b81526004016104d79190611ada565b50600061178f8486611e12565b905061179b8486611ce6565b6117a58286611df3565b6117af9190611e26565b85146117bd576117bd611e3e565b949350505050565b600081848411156117e95760405162461bcd60e51b81526004016104d79190611ada565b5060006117f68486611d10565b95945050505050565b60018160000160008282546118149190611e26565b909155505050565b6000806fa2a8918ca85bafe22016d0b997e4df60600160ff1b0383111561184957506000905060036118f6565b8460ff16601b1415801561186157508460ff16601c14155b1561187257506000905060046118f6565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156118c6573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166118ef576000600192509250506118f6565b9150600090505b94509492505050565b600081600481111561191357611913611e54565b141561191c5750565b600181600481111561193057611930611e54565b14156119795760405162461bcd60e51b815260206004820152601860248201527745434453413a20696e76616c6964207369676e617475726560401b60448201526064016104d7565b600281600481111561198d5761198d611e54565b14156119db5760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016104d7565b60038160048111156119ef576119ef611e54565b1415611a485760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016104d7565b6004816004811115611a5c57611a5c611e54565b1415611ab55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016104d7565b50565b60008060408385031215611acb57600080fd5b50508035926020909101359150565b600060208083528351808285015260005b81811015611b0757858101830151858201604001528201611aeb565b81811115611b19576000604083870101525b50601f01601f1916929092016040019392505050565b600060208284031215611b4157600080fd5b5035919050565b80356001600160a01b0381168114611b5f57600080fd5b919050565b60008060408385031215611b7757600080fd5b611b8083611b48565b946020939093013593505050565b600080600060608486031215611ba357600080fd5b611bac84611b48565b9250611bba60208501611b48565b9150604084013590509250925092565b60008060408385031215611bdd57600080fd5b611be683611b48565b9150611bf460208401611b48565b90509250929050565b600060208284031215611c0f57600080fd5b6112f682611b48565b600080600060608486031215611c2d57600080fd5b83359250611c3d60208501611b48565b915060408401358015158114611c5257600080fd5b809150509250925092565b600080600080600080600060e0888a031215611c7857600080fd5b611c8188611b48565b9650611c8f60208901611b48565b95506040880135945060608801359350608088013560ff81168114611cb357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b634e487b7160e01b600052601260045260246000fd5b600082611cf557611cf5611cd0565b500690565b634e487b7160e01b600052601160045260246000fd5b600082821015611d2257611d22611cfa565b500390565b600181811c90821680611d3b57607f821691505b602082108114156116e557634e487b7160e01b600052602260045260246000fd5b600060208284031215611d6e57600080fd5b5051919050565b6020808252601c908201527f446562743a2063616e6e6f74207472616e7366657220616d6f756e7400000000604082015260600190565b60208082526027908201527f496e697469616c697a65723a202063616c6c6572206973206e6f7420696e697460408201526634b0b634bd32b960c91b606082015260800190565b6000816000190483118215151615611e0d57611e0d611cfa565b500290565b600082611e2157611e21611cd0565b500490565b60008219821115611e3957611e39611cfa565b500190565b634e487b7160e01b600052600160045260246000fd5b634e487b7160e01b600052602160045260246000fdfeddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220f8bafd33f04d141f17f35159870fc166aa7c79f654127cfca3fa017740ad20ea64736f6c634300080a0033
Loading...
Loading
Loading...
Loading
[ 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.