Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
DeFi
Overview
Max Total Supply
141,454,701.840218159202748628 HIFI
Holders
2,569 ( -0.039%)
Market
Price
$0.69 @ 0.000207 ETH (+7.06%)
Onchain Market Cap
$97,389,016.03
Circulating Supply Market Cap
$96,194,632.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
0.2149149944 HIFIValue
$0.15 ( ~4.50896822711855E-05 Eth) [0.0000%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
Hifi
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 800 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: BSD-3-Clause pragma solidity ^0.8.15; import "@prb/contracts/token/erc20/IERC20.sol"; contract Hifi { /// @notice EIP-20 token name for this token string public constant name = "Hifi Finance"; /// @notice EIP-20 token symbol for this token string public constant symbol = "HIFI"; /// @notice EIP-20 token decimals for this token uint8 public constant decimals = 18; /// @notice The MFT token contract IERC20 public constant mft = IERC20(0xDF2C7238198Ad8B389666574f2d8bc411A4b7428); /// @notice Hifi to MFT token swap ratio uint8 public constant swapRatio = 100; /// @notice Total number of tokens in circulation uint256 public totalSupply = 26_250_000e18; // 26.25 million Hifi /// @notice Address which may mint new tokens address public minter; /// @notice Allowance amounts on behalf of others mapping(address => mapping(address => uint96)) internal allowances; /// @notice Official record of token balances for each account mapping(address => uint96) internal balances; /// @notice A record of each accounts delegate mapping(address => address) public delegates; /// @notice A checkpoint for marking number of votes from a given block struct Checkpoint { uint32 fromBlock; uint96 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 The EIP-712 typehash for the permit struct used by the contract bytes32 public constant PERMIT_TYPEHASH = keccak256("Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)"); /// @notice A record of states for signing / validating signatures mapping(address => uint256) public nonces; /// @notice An event thats emitted when the minter address is changed event MinterChanged(address minter, address newMinter); /// @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, uint256 previousBalance, uint256 newBalance); /// @notice An event thats emitted when an MFT token is swapped for HIFI event Swap(address indexed sender, uint256 mftAmount, uint256 hifiAmount); /// @notice The standard EIP-20 transfer event event Transfer(address indexed from, address indexed to, uint256 amount); /// @notice The standard EIP-20 approval event event Approval(address indexed owner, address indexed spender, uint256 amount); /** * @notice Construct a new Hifi token * @param account The initial account to grant all the tokens * @param minter_ The account with minting ability */ constructor(address account, address minter_) { balances[account] = uint96(totalSupply); emit Transfer(address(0), account, totalSupply); minter = minter_; emit MinterChanged(address(0), minter); } /** * @notice Change the minter address * @param minter_ The address of the new minter */ function setMinter(address minter_) external { require(msg.sender == minter, "Hifi::setMinter: only the minter can change the minter address"); emit MinterChanged(minter, minter_); minter = minter_; } /** * @notice Mint new tokens * @param dst The address of the destination account * @param rawAmount The number of tokens to be minted */ function mint(address dst, uint256 rawAmount) external { require(msg.sender == minter, "Hifi::mint: only the minter can mint"); uint96 amount = safe96(rawAmount, "Hifi::mint: rawAmount exceeds 96 bits"); _mint(dst, amount); } /** * @notice Mints `amount` tokens to `account`, increasing the total supply * @param account The address of the account to mint to * @param amount The number of tokens to mint */ function _mint(address account, uint96 amount) internal { require(account != address(0), "Hifi::_mint: mint to the zero address"); uint96 supply = safe96(totalSupply, "Hifi::_mint: old supply exceeds 96 bits"); totalSupply = supply + amount; balances[account] = balances[account] + amount; emit Transfer(address(0), account, amount); // move delegates _moveDelegates(address(0), delegates[account], amount); } /** * @notice Get the number of tokens `spender` is approved to spend on behalf of `account` * @param account The address of the account holding the funds * @param spender The address of the account spending the funds * @return The number of tokens approved */ function allowance(address account, address spender) external view returns (uint256) { return allowances[account][spender]; } /** * @notice Approve `spender` to transfer up to `amount` from `src` * @dev This will overwrite the approval amount for `spender` * and is subject to issues noted [here](https://eips.ethereum.org/EIPS/eip-20#approve) * @param spender The address of the account which may transfer tokens * @param rawAmount The number of tokens that are approved (2^256-1 means infinite) * @return Whether or not the approval succeeded */ function approve(address spender, uint256 rawAmount) external returns (bool) { uint96 amount; if (rawAmount == type(uint256).max) { amount = type(uint96).max; } else { amount = safe96(rawAmount, "Hifi::approve: amount exceeds 96 bits"); } allowances[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } /** * @notice Destroys `amount` tokens from the caller * @param rawAmount The number of tokens to burn */ function burn(uint256 rawAmount) external { uint96 amount = safe96(rawAmount, "Hifi::burn: rawAmount exceeds 96 bits"); _burn(msg.sender, amount); } /** * @notice Destroys `amount` tokens from `account`, deducting from the caller's allowance * @param account The address of the account to burn from * @param rawAmount The number of tokens to burn */ function burnFrom(address account, uint256 rawAmount) external { uint96 amount = safe96(rawAmount, "Hifi::burnFrom: rawAmount exceeds 96 bits"); uint96 decreasedAllowance = allowances[account][msg.sender] - amount; allowances[account][msg.sender] = decreasedAllowance; emit Approval(account, msg.sender, decreasedAllowance); _burn(account, amount); } /** * @notice Destroys `amount` tokens from `account`, reducing the total supply * @param account The address of the account to burn from * @param amount The number of tokens to burn */ function _burn(address account, uint96 amount) internal { require(account != address(0), "Hifi::_burn: burn from the zero address"); uint96 supply = safe96(totalSupply, "Hifi::_burn: old supply exceeds 96 bits"); totalSupply = supply - amount; balances[account] = balances[account] - amount; emit Transfer(account, address(0), amount); // move delegates _moveDelegates(delegates[account], address(0), amount); } /** * @notice Triggers an approval from owner to spends * @param owner The address to approve from * @param spender The address to be approved * @param rawAmount The number of tokens that are approved (2^256-1 means infinite) * @param deadline 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 permit( address owner, address spender, uint256 rawAmount, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) external { uint96 amount; if (rawAmount == type(uint256).max) { amount = type(uint96).max; } else { amount = safe96(rawAmount, "Hifi::permit: amount exceeds 96 bits"); } bytes32 domainSeparator = keccak256( abi.encode(DOMAIN_TYPEHASH, keccak256(bytes(name)), getChainId(), address(this)) ); bytes32 structHash = keccak256( abi.encode(PERMIT_TYPEHASH, owner, spender, rawAmount, nonces[owner]++, deadline) ); bytes32 digest = keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash)); address signatory = ecrecover(digest, v, r, s); require(signatory != address(0), "Hifi::permit: invalid signature"); require(signatory == owner, "Hifi::permit: unauthorized"); require(block.timestamp <= deadline, "Hifi::permit: signature expired"); allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @notice Get the number of tokens held by the `account` * @param account The address of the account to get the balance of * @return The number of tokens held */ function balanceOf(address account) external view returns (uint256) { return balances[account]; } /** * @notice Transfer `amount` tokens from `msg.sender` to `dst` * @param dst The address of the destination account * @param rawAmount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transfer(address dst, uint256 rawAmount) external returns (bool) { uint96 amount = safe96(rawAmount, "Hifi::transfer: amount exceeds 96 bits"); _transferTokens(msg.sender, dst, amount); return true; } /** * @notice Transfer `amount` tokens from `src` to `dst` * @param src The address of the source account * @param dst The address of the destination account * @param rawAmount The number of tokens to transfer * @return Whether or not the transfer succeeded */ function transferFrom( address src, address dst, uint256 rawAmount ) external returns (bool) { address spender = msg.sender; uint96 spenderAllowance = allowances[src][spender]; uint96 amount = safe96(rawAmount, "Hifi::approve: amount exceeds 96 bits"); if (spender != src && spenderAllowance != type(uint96).max) { uint96 newAllowance = spenderAllowance - amount; allowances[src][spender] = newAllowance; emit Approval(src, spender, newAllowance); } _transferTokens(src, dst, amount); return true; } /** * @notice Delegate votes from `msg.sender` to `delegatee` * @param delegatee The address to delegate votes to */ function delegate(address delegatee) public { 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, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) public { 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), "Hifi::delegateBySig: invalid signature"); require(nonce == nonces[signatory]++, "Hifi::delegateBySig: invalid nonce"); require(block.timestamp <= expiry, "Hifi::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 (uint96) { 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, uint256 blockNumber) public view returns (uint96) { require(blockNumber < block.number, "Hifi::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 swap(uint256 mftAmount) external { require(mftAmount != 0, "Hifi::swap: swap amount can't be zero"); require(mft.transferFrom(msg.sender, address(1), mftAmount)); uint256 rawHifiAmount = mftAmount / swapRatio; uint96 hifiAmount = safe96(rawHifiAmount, "Hifi::swap: swap exceeds 96 bits"); _mint(msg.sender, hifiAmount); emit Swap(msg.sender, mftAmount, hifiAmount); } function _delegate(address delegator, address delegatee) internal { address currentDelegate = delegates[delegator]; uint96 delegatorBalance = balances[delegator]; delegates[delegator] = delegatee; emit DelegateChanged(delegator, currentDelegate, delegatee); _moveDelegates(currentDelegate, delegatee, delegatorBalance); } function _transferTokens( address src, address dst, uint96 amount ) internal { require(src != address(0), "Hifi::_transferTokens: cannot transfer from the zero address"); require(dst != address(0), "Hifi::_transferTokens: cannot transfer to the zero address"); balances[src] = balances[src] - amount; balances[dst] = balances[dst] + amount; emit Transfer(src, dst, amount); _moveDelegates(delegates[src], delegates[dst], amount); } function _moveDelegates( address srcRep, address dstRep, uint96 amount ) internal { if (srcRep != dstRep && amount > 0) { if (srcRep != address(0)) { uint32 srcRepNum = numCheckpoints[srcRep]; uint96 srcRepOld = srcRepNum > 0 ? checkpoints[srcRep][srcRepNum - 1].votes : 0; uint96 srcRepNew = srcRepOld - amount; _writeCheckpoint(srcRep, srcRepNum, srcRepOld, srcRepNew); } if (dstRep != address(0)) { uint32 dstRepNum = numCheckpoints[dstRep]; uint96 dstRepOld = dstRepNum > 0 ? checkpoints[dstRep][dstRepNum - 1].votes : 0; uint96 dstRepNew = dstRepOld + amount; _writeCheckpoint(dstRep, dstRepNum, dstRepOld, dstRepNew); } } } function _writeCheckpoint( address delegatee, uint32 nCheckpoints, uint96 oldVotes, uint96 newVotes ) internal { uint32 blockNumber = safe32(block.number, "Hifi::_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(uint256 n, string memory errorMessage) internal pure returns (uint32) { require(n < 2**32, errorMessage); return uint32(n); } function safe96(uint256 n, string memory errorMessage) internal pure returns (uint96) { require(n < 2**96, errorMessage); return uint96(n); } function getChainId() internal view returns (uint256) { uint256 chainId; assembly { chainId := chainid() } return chainId; } }
// SPDX-License-Identifier: Unlicense pragma solidity >=0.8.4; /// @title IERC20 /// @author Paul Razvan Berg /// @notice Implementation for the ERC-20 standard. /// /// 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 with the expectations of ERC-20 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 ERC 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. /// /// @dev Forked from OpenZeppelin /// https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v3.4.0/contracts/token/ERC20/ERC20.sol interface IERC20 { /// CUSTOM ERRORS /// /// @notice Emitted when the owner is the zero address. error ERC20__ApproveOwnerZeroAddress(); /// @notice Emitted when the spender is the zero address. error ERC20__ApproveSpenderZeroAddress(); /// @notice Emitted when burning more tokens than are in the account. error ERC20__BurnUnderflow(uint256 accountBalance, uint256 burnAmount); /// @notice Emitted when the holder is the zero address. error ERC20__BurnZeroAddress(); /// @notice Emitted when the owner did not give the spender sufficient allowance. error ERC20__InsufficientAllowance(uint256 allowance, uint256 amount); /// @notice Emitted when tranferring more tokens than there are in the account. error ERC20__InsufficientBalance(uint256 senderBalance, uint256 amount); /// @notice Emitted when the beneficiary is the zero address. error ERC20__MintZeroAddress(); /// @notice Emitted when the sender is the zero address. error ERC20__TransferSenderZeroAddress(); /// @notice Emitted when the recipient is the zero address. error ERC20__TransferRecipientZeroAddress(); /// EVENTS /// /// @notice Emitted when an approval happens. /// @param owner The address of the owner of the tokens. /// @param spender The address of the spender. /// @param amount The maximum amount that can be spent. event Approval(address indexed owner, address indexed spender, uint256 amount); /// @notice Emitted when a transfer happens. /// @param from The account sending the tokens. /// @param to The account receiving the tokens. /// @param amount The amount of tokens transferred. event Transfer(address indexed from, address indexed to, uint256 amount); /// CONSTANT FUNCTIONS /// /// @notice Returns the remaining number of tokens that `spender` will be allowed to spend /// on behalf of `owner` through {transferFrom}. This is zero by default. /// /// @dev This value changes when {approve} or {transferFrom} are called. function allowance(address owner, address spender) external view returns (uint256); /// @notice Returns the amount of tokens owned by `account`. function balanceOf(address account) external view returns (uint256); /// @notice Returns the number of decimals used to get its user representation. function decimals() external view returns (uint8); /// @notice Returns the name of the token. function name() external view returns (string memory); /// @notice Returns the symbol of the token, usually a shorter version of the name. function symbol() external view returns (string memory); /// @notice Returns the amount of tokens in existence. function totalSupply() external view returns (uint256); /// NON-CONSTANT FUNCTIONS /// /// @notice Sets `amount` as the allowance of `spender` over the caller's tokens. /// /// @dev Emits an {Approval} event. /// /// 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 /// /// Requirements: /// /// - `spender` cannot be the zero address. /// /// @return a boolean value indicating whether the operation succeeded. function approve(address spender, uint256 amount) external returns (bool); /// @notice Atomically decreases the allowance granted to `spender` by the caller. /// /// @dev Emits an {Approval} event indicating the updated allowance. /// /// This is an alternative to {approve} that can be used as a mitigation for problems described /// in {IERC20-approve}. /// /// Requirements: /// /// - `spender` cannot be the zero address. /// - `spender` must have allowance for the caller of at least `subtractedAmount`. function decreaseAllowance(address spender, uint256 subtractedAmount) external returns (bool); /// @notice Atomically increases the allowance granted to `spender` by the caller. /// /// @dev Emits an {Approval} event indicating the updated allowance. /// /// This is an alternative to {approve} that can be used as a mitigation for the problems described above. /// /// Requirements: /// /// - `spender` cannot be the zero address. function increaseAllowance(address spender, uint256 addedAmount) external returns (bool); /// @notice Moves `amount` tokens from the caller's account to `recipient`. /// /// @dev Emits a {Transfer} event. /// /// Requirements: /// /// - `recipient` cannot be the zero address. /// - The caller must have a balance of at least `amount`. /// /// @return a boolean value indicating whether the operation succeeded. function transfer(address recipient, uint256 amount) external returns (bool); /// @notice Moves `amount` tokens from `sender` to `recipient` using the allowance mechanism. `amount` /// `is then deducted from the caller's allowance. /// /// @dev Emits a {Transfer} event and an {Approval} event indicating the updated allowance. This is /// not required by the ERC. See the note at the beginning of {ERC-20}. /// /// Requirements: /// /// - `sender` and `recipient` cannot be the zero address. /// - `sender` must have a balance of at least `amount`. /// - The caller must have approed `sender` to spent at least `amount` tokens. /// /// @return a boolean value indicating whether the operation succeeded. function transferFrom( address sender, address recipient, uint256 amount ) external returns (bool); }
{ "metadata": { "bytecodeHash": "none" }, "optimizer": { "enabled": true, "runs": 800 }, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"address","name":"minter_","type":"address"}],"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":"amount","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":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"address","name":"newMinter","type":"address"}],"name":"MinterChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"mftAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"hifiAmount","type":"uint256"}],"name":"Swap","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":"amount","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":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","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":"rawAmount","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":"uint256","name":"rawAmount","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"burnFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint32","name":"","type":"uint32"}],"name":"checkpoints","outputs":[{"internalType":"uint32","name":"fromBlock","type":"uint32"},{"internalType":"uint96","name":"votes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":"","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":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint256","name":"blockNumber","type":"uint256"}],"name":"getPriorVotes","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mft","outputs":[{"internalType":"contract IERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","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":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"rawAmount","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":"address","name":"minter_","type":"address"}],"name":"setMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"mftAmount","type":"uint256"}],"name":"swap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"swapRatio","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","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":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"src","type":"address"},{"internalType":"address","name":"dst","type":"address"},{"internalType":"uint256","name":"rawAmount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"}]
Contract Creation Code
60806040526a15b6a759f4835dc24000006000553480156200002057600080fd5b506040516200263c3803806200263c833981016040819052620000439162000131565b600080546001600160a01b03841680835260036020908152604080852080546001600160601b0319166001600160601b0390951694909417909355835492519283529092917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3600180546001600160a01b0319166001600160a01b038316908117909155604080516000815260208101929092527f3b0007eb941cf645526cbb3a4fdaecda9d28ce4843167d9263b536a1f1edc0f6910160405180910390a1505062000169565b80516001600160a01b03811681146200012c57600080fd5b919050565b600080604083850312156200014557600080fd5b620001508362000114565b9150620001606020840162000114565b90509250929050565b6124c380620001796000396000f3fe608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636fcfff4511610104578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e146104c9578063e7a324dc1461050b578063f1127ed814610532578063fca3b5aa1461059a57600080fd5b8063a9059cbb1461047d578063b4b5ea5714610490578063c3cda520146104a3578063d505accf146104b657600080fd5b806379cc6790116100de57806379cc6790146104145780637ecebe001461042757806394b918de1461044757806395d89b411461045a57600080fd5b80636fcfff451461037c57806370a08231146103b7578063782d6fe1146103e957600080fd5b806323b872dd1161017157806340c10f191161014b57806340c10f191461031857806342966c681461032d578063587cde1e146103405780635c19a95c1461036957600080fd5b806323b872dd146102d657806330adf81f146102e9578063313ce5671461031057600080fd5b80630d1589c5116101ad5780630d1589c5146102635780630e0bfb491461027e57806318160ddd1461029857806320606b70146102af57600080fd5b806306fdde03146101d45780630754617214610215578063095ea7b314610240575b600080fd5b6101ff6040518060400160405280600c81526020016b486966692046696e616e636560a01b81525081565b60405161020c9190611fd4565b60405180910390f35b600154610228906001600160a01b031681565b6040516001600160a01b03909116815260200161020c565b61025361024e366004612045565b6105ad565b604051901515815260200161020c565b61022873df2c7238198ad8b389666574f2d8bc411a4b742881565b610286606481565b60405160ff909116815260200161020c565b6102a160005481565b60405190815260200161020c565b6102a17f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102536102e436600461206f565b610672565b6102a17f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610286601281565b61032b610326366004612045565b6107a3565b005b61032b61033b3660046120ab565b610843565b61022861034e3660046120c4565b6004602052600090815260409020546001600160a01b031681565b61032b6103773660046120c4565b610877565b6103a261038a3660046120c4565b60066020526000908152604090205463ffffffff1681565b60405163ffffffff909116815260200161020c565b6102a16103c53660046120c4565b6001600160a01b03166000908152600360205260409020546001600160601b031690565b6103fc6103f7366004612045565b610884565b6040516001600160601b03909116815260200161020c565b61032b610422366004612045565b610b27565b6102a16104353660046120c4565b60076020526000908152604090205481565b61032b6104553660046120ab565b610c13565b6101ff604051806040016040528060048152602001634849464960e01b81525081565b61025361048b366004612045565b610db9565b6103fc61049e3660046120c4565b610df5565b61032b6104b13660046120f0565b610e74565b61032b6104c4366004612148565b611192565b6102a16104d73660046121b2565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220546001600160601b031690565b6102a17fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6105766105403660046121e5565b600560209081526000928352604080842090915290825290205463ffffffff81169064010000000090046001600160601b031682565b6040805163ffffffff90931683526001600160601b0390911660208301520161020c565b61032b6105a83660046120c4565b611585565b60008060001983036105c757506001600160601b036105ec565b6105e9836040518060600160405280602581526020016124696025913961167b565b90505b3360008181526002602090815260408083206001600160a01b0389168085529083529281902080546bffffffffffffffffffffffff19166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b6001600160a01b03831660009081526002602090815260408083203380855290835281842054825160608101909352602580845291936001600160601b039091169285926106ca92889291906124699083013961167b565b9050866001600160a01b0316836001600160a01b0316141580156106f757506001600160601b0382811614155b1561078b576000610708828461223b565b6001600160a01b038981166000818152600260209081526040808320948a168084529482529182902080546bffffffffffffffffffffffff19166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6107968787836116b3565b5060019695505050505050565b6001546001600160a01b0316331461080e5760405162461bcd60e51b8152602060048201526024808201527f486966693a3a6d696e743a206f6e6c7920746865206d696e7465722063616e206044820152631b5a5b9d60e21b60648201526084015b60405180910390fd5b60006108328260405180606001604052806025815260200161237a6025913961167b565b905061083e83826118ca565b505050565b6000610867826040518060600160405280602581526020016123c56025913961167b565b90506108733382611a3e565b5050565b6108813382611bb1565b50565b60004382106108fb5760405162461bcd60e51b815260206004820152602760248201527f486966693a3a6765745072696f72566f7465733a206e6f74207965742064657460448201527f65726d696e6564000000000000000000000000000000000000000000000000006064820152608401610805565b6001600160a01b03831660009081526006602052604081205463ffffffff169081900361092c57600091505061066c565b6001600160a01b03841660009081526005602052604081208491610951600185612263565b63ffffffff908116825260208201929092526040016000205416116109c5576001600160a01b038416600090815260056020526040812090610994600184612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b0316915061066c9050565b6001600160a01b038416600090815260056020908152604080832083805290915290205463ffffffff16831015610a0057600091505061066c565b600080610a0e600184612263565b90505b8163ffffffff168163ffffffff161115610ae15760006002610a338484612263565b610a3d9190612296565b610a479083612263565b6001600160a01b038816600090815260056020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046001600160601b031691810191909152919250879003610ab55760200151945061066c9350505050565b805163ffffffff16871115610acc57819350610ada565b610ad7600183612263565b92505b5050610a11565b506001600160a01b038516600090815260056020908152604080832063ffffffff909416835292905220546001600160601b036401000000009091041691505092915050565b6000610b4b8260405180606001604052806029815260200161248e6029913961167b565b6001600160a01b038416600090815260026020908152604080832033845290915281205491925090610b879083906001600160601b031661223b565b6001600160a01b0385166000818152600260209081526040808320338085529083529281902080546bffffffffffffffffffffffff19166001600160601b038716908117909155905190815293945090927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3610c0d8483611a3e565b50505050565b80600003610c895760405162461bcd60e51b815260206004820152602560248201527f486966693a3a737761703a207377617020616d6f756e742063616e277420626560448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610805565b6040516323b872dd60e01b8152336004820152600160248201526044810182905273df2c7238198ad8b389666574f2d8bc411a4b7428906323b872dd906064016020604051808303816000875af1158015610ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0c91906122b9565b610d1557600080fd5b6000610d226064836122db565b90506000610d65826040518060400160405280602081526020017f486966693a3a737761703a20737761702065786365656473203936206269747381525061167b565b9050610d7133826118ca565b604080518481526001600160601b038316602082015233917f77f92a1b6a1a11de8ca49515ad4c1fad45632dd3442167d74b90b304a3c7a758910160405180910390a2505050565b600080610dde8360405180606001604052806026815260200161239f6026913961167b565b9050610deb3385836116b3565b5060019392505050565b6001600160a01b03811660009081526006602052604081205463ffffffff1680610e20576000610e6d565b6001600160a01b038316600090815260056020526040812090610e44600184612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b9392505050565b604080518082018252600c81526b486966692046696e616e636560a01b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f637d65daa3c37e1b3d5637d73b47c451abb3fcc22decd1a9ecc244eecd2ebdcc81840152466060820152306080808301919091528351808303909101815260a0820184528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08301526001600160a01b038a1660e083015261010082018990526101208083018990528451808403909101815261014083019094528351939092019290922061190160f01b6101608401526101628301829052610182830181905290916000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610ffb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110845760405162461bcd60e51b815260206004820152602660248201527f486966693a3a64656c656761746542795369673a20696e76616c69642073696760448201527f6e617475726500000000000000000000000000000000000000000000000000006064820152608401610805565b6001600160a01b03811660009081526007602052604081208054916110a8836122ef565b9190505589146111055760405162461bcd60e51b815260206004820152602260248201527f486966693a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b6064820152608401610805565b8742111561117b5760405162461bcd60e51b815260206004820152602660248201527f486966693a3a64656c656761746542795369673a207369676e6174757265206560448201527f78706972656400000000000000000000000000000000000000000000000000006064820152608401610805565b611185818b611bb1565b505050505b505050505050565b600060001986036111ab57506001600160601b036111d0565b6111cd8660405180606001604052806024815260200161241e6024913961167b565b90505b604080518082018252600c81526b486966692046696e616e636560a01b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f637d65daa3c37e1b3d5637d73b47c451abb3fcc22decd1a9ecc244eecd2ebdcc81840152466060820152306080808301919091528351808303909101815260a090910183528051908201206001600160a01b038b166000908152600790925291812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c9190866112b2836122ef565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e0016040516020818303038152906040528051906020012090506000828260405160200161133192919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa15801561139c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113ff5760405162461bcd60e51b815260206004820152601f60248201527f486966693a3a7065726d69743a20696e76616c6964207369676e6174757265006044820152606401610805565b8b6001600160a01b0316816001600160a01b0316146114605760405162461bcd60e51b815260206004820152601a60248201527f486966693a3a7065726d69743a20756e617574686f72697a65640000000000006044820152606401610805565b884211156114b05760405162461bcd60e51b815260206004820152601f60248201527f486966693a3a7065726d69743a207369676e61747572652065787069726564006044820152606401610805565b84600260008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161156f91906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b6001546001600160a01b031633146116055760405162461bcd60e51b815260206004820152603e60248201527f486966693a3a7365744d696e7465723a206f6e6c7920746865206d696e74657260448201527f2063616e206368616e676520746865206d696e746572206164647265737300006064820152608401610805565b600154604080516001600160a01b03928316815291831660208301527f3b0007eb941cf645526cbb3a4fdaecda9d28ce4843167d9263b536a1f1edc0f6910160405180910390a16001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000816c0100000000000000000000000084106116ab5760405162461bcd60e51b81526004016108059190611fd4565b509192915050565b6001600160a01b03831661172f5760405162461bcd60e51b815260206004820152603c60248201527f486966693a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e736665722066726f6d20746865207a65726f2061646472657373000000006064820152608401610805565b6001600160a01b0382166117ab5760405162461bcd60e51b815260206004820152603a60248201527f486966693a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e7366657220746f20746865207a65726f20616464726573730000000000006064820152608401610805565b6001600160a01b0383166000908152600360205260409020546117d89082906001600160601b031661223b565b6001600160a01b0384811660009081526003602052604080822080546bffffffffffffffffffffffff19166001600160601b039586161790559185168152205461182491839116612308565b6001600160a01b0383811660008181526003602090815260409182902080546bffffffffffffffffffffffff19166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526004602052604080822054858416835291205461083e92918216911683611c3e565b6001600160a01b0382166119465760405162461bcd60e51b815260206004820152602560248201527f486966693a3a5f6d696e743a206d696e7420746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610805565b600061196c6000546040518060600160405280602781526020016123536027913961167b565b90506119788282612308565b6001600160601b0390811660009081556001600160a01b0385168152600360205260409020546119aa91849116612308565b6001600160a01b038416600081815260036020908152604080832080546bffffffffffffffffffffffff19166001600160601b03968716179055519386168452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526004602052604081205461083e921684611c3e565b6001600160a01b038216611aba5760405162461bcd60e51b815260206004820152602760248201527f486966693a3a5f6275726e3a206275726e2066726f6d20746865207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610805565b6000611ae06000546040518060600160405280602781526020016124426027913961167b565b9050611aec828261223b565b6001600160601b0390811660009081556001600160a01b038516815260036020526040902054611b1e9184911661223b565b6001600160a01b038416600081815260036020908152604080832080546bffffffffffffffffffffffff19166001600160601b0396871617905551938616845290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526004602052604081205461083e92169084611c3e565b6001600160a01b038083166000818152600460208181526040808420805460038452828620549490935287871673ffffffffffffffffffffffffffffffffffffffff1984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610c0d8284835b816001600160a01b0316836001600160a01b031614158015611c6957506000816001600160601b0316115b1561083e576001600160a01b03831615611d16576001600160a01b03831660009081526006602052604081205463ffffffff169081611ca9576000611cf6565b6001600160a01b038516600090815260056020526040812090611ccd600185612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000611d04848361223b565b9050611d1286848484611db6565b5050505b6001600160a01b0382161561083e576001600160a01b03821660009081526006602052604081205463ffffffff169081611d51576000611d9e565b6001600160a01b038416600090815260056020526040812090611d75600185612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000611dac8483612308565b905061118a858484845b6000611dda436040518060600160405280603481526020016123ea60349139611fb0565b905060008463ffffffff16118015611e3457506001600160a01b038516600090815260056020526040812063ffffffff831691611e18600188612263565b63ffffffff908116825260208201929092526040016000205416145b15611ea9576001600160a01b03851660009081526005602052604081208391611e5e600188612263565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216640100000000026fffffffffffffffffffffffff0000000019909216919091179055611f5b565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600582528681208b8616825290915294909420925183549451909116640100000000026fffffffffffffffffffffffffffffffff19909416911617919091179055611f2a846001612333565b6001600160a01b0386166000908152600660205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106116ab5760405162461bcd60e51b815260040161080591905b600060208083528351808285015260005b8181101561200157858101830151858201604001528201611fe5565b81811115612013576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461204057600080fd5b919050565b6000806040838503121561205857600080fd5b61206183612029565b946020939093013593505050565b60008060006060848603121561208457600080fd5b61208d84612029565b925061209b60208501612029565b9150604084013590509250925092565b6000602082840312156120bd57600080fd5b5035919050565b6000602082840312156120d657600080fd5b610e6d82612029565b803560ff8116811461204057600080fd5b60008060008060008060c0878903121561210957600080fd5b61211287612029565b9550602087013594506040870135935061212e606088016120df565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561216357600080fd5b61216c88612029565b965061217a60208901612029565b95506040880135945060608801359350612196608089016120df565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156121c557600080fd5b6121ce83612029565b91506121dc60208401612029565b90509250929050565b600080604083850312156121f857600080fd5b61220183612029565b9150602083013563ffffffff8116811461221a57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b038381169083168181101561225b5761225b612225565b039392505050565b600063ffffffff8381169083168181101561225b5761225b612225565b634e487b7160e01b600052601260045260246000fd5b600063ffffffff808416806122ad576122ad612280565b92169190910492915050565b6000602082840312156122cb57600080fd5b81518015158114610e6d57600080fd5b6000826122ea576122ea612280565b500490565b60006001820161230157612301612225565b5060010190565b60006001600160601b0380831681851680830382111561232a5761232a612225565b01949350505050565b600063ffffffff80831681851680830382111561232a5761232a61222556fe486966693a3a5f6d696e743a206f6c6420737570706c7920657863656564732039362062697473486966693a3a6d696e743a20726177416d6f756e7420657863656564732039362062697473486966693a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473486966693a3a6275726e3a20726177416d6f756e7420657863656564732039362062697473486966693a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473486966693a3a7065726d69743a20616d6f756e7420657863656564732039362062697473486966693a3a5f6275726e3a206f6c6420737570706c7920657863656564732039362062697473486966693a3a617070726f76653a20616d6f756e7420657863656564732039362062697473486966693a3a6275726e46726f6d3a20726177416d6f756e7420657863656564732039362062697473a164736f6c634300080f000a000000000000000000000000d3297c6ab8b7c2d9175a38e3e7f669b286a3296f000000000000000000000000d3297c6ab8b7c2d9175a38e3e7f669b286a3296f
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101cf5760003560e01c80636fcfff4511610104578063a9059cbb116100a2578063dd62ed3e11610071578063dd62ed3e146104c9578063e7a324dc1461050b578063f1127ed814610532578063fca3b5aa1461059a57600080fd5b8063a9059cbb1461047d578063b4b5ea5714610490578063c3cda520146104a3578063d505accf146104b657600080fd5b806379cc6790116100de57806379cc6790146104145780637ecebe001461042757806394b918de1461044757806395d89b411461045a57600080fd5b80636fcfff451461037c57806370a08231146103b7578063782d6fe1146103e957600080fd5b806323b872dd1161017157806340c10f191161014b57806340c10f191461031857806342966c681461032d578063587cde1e146103405780635c19a95c1461036957600080fd5b806323b872dd146102d657806330adf81f146102e9578063313ce5671461031057600080fd5b80630d1589c5116101ad5780630d1589c5146102635780630e0bfb491461027e57806318160ddd1461029857806320606b70146102af57600080fd5b806306fdde03146101d45780630754617214610215578063095ea7b314610240575b600080fd5b6101ff6040518060400160405280600c81526020016b486966692046696e616e636560a01b81525081565b60405161020c9190611fd4565b60405180910390f35b600154610228906001600160a01b031681565b6040516001600160a01b03909116815260200161020c565b61025361024e366004612045565b6105ad565b604051901515815260200161020c565b61022873df2c7238198ad8b389666574f2d8bc411a4b742881565b610286606481565b60405160ff909116815260200161020c565b6102a160005481565b60405190815260200161020c565b6102a17f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a86681565b6102536102e436600461206f565b610672565b6102a17f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b610286601281565b61032b610326366004612045565b6107a3565b005b61032b61033b3660046120ab565b610843565b61022861034e3660046120c4565b6004602052600090815260409020546001600160a01b031681565b61032b6103773660046120c4565b610877565b6103a261038a3660046120c4565b60066020526000908152604090205463ffffffff1681565b60405163ffffffff909116815260200161020c565b6102a16103c53660046120c4565b6001600160a01b03166000908152600360205260409020546001600160601b031690565b6103fc6103f7366004612045565b610884565b6040516001600160601b03909116815260200161020c565b61032b610422366004612045565b610b27565b6102a16104353660046120c4565b60076020526000908152604090205481565b61032b6104553660046120ab565b610c13565b6101ff604051806040016040528060048152602001634849464960e01b81525081565b61025361048b366004612045565b610db9565b6103fc61049e3660046120c4565b610df5565b61032b6104b13660046120f0565b610e74565b61032b6104c4366004612148565b611192565b6102a16104d73660046121b2565b6001600160a01b0391821660009081526002602090815260408083209390941682529190915220546001600160601b031690565b6102a17fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf81565b6105766105403660046121e5565b600560209081526000928352604080842090915290825290205463ffffffff81169064010000000090046001600160601b031682565b6040805163ffffffff90931683526001600160601b0390911660208301520161020c565b61032b6105a83660046120c4565b611585565b60008060001983036105c757506001600160601b036105ec565b6105e9836040518060600160405280602581526020016124696025913961167b565b90505b3360008181526002602090815260408083206001600160a01b0389168085529083529281902080546bffffffffffffffffffffffff19166001600160601b03871690811790915590519081529192917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a360019150505b92915050565b6001600160a01b03831660009081526002602090815260408083203380855290835281842054825160608101909352602580845291936001600160601b039091169285926106ca92889291906124699083013961167b565b9050866001600160a01b0316836001600160a01b0316141580156106f757506001600160601b0382811614155b1561078b576000610708828461223b565b6001600160a01b038981166000818152600260209081526040808320948a168084529482529182902080546bffffffffffffffffffffffff19166001600160601b0387169081179091559151918252939450919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505b6107968787836116b3565b5060019695505050505050565b6001546001600160a01b0316331461080e5760405162461bcd60e51b8152602060048201526024808201527f486966693a3a6d696e743a206f6e6c7920746865206d696e7465722063616e206044820152631b5a5b9d60e21b60648201526084015b60405180910390fd5b60006108328260405180606001604052806025815260200161237a6025913961167b565b905061083e83826118ca565b505050565b6000610867826040518060600160405280602581526020016123c56025913961167b565b90506108733382611a3e565b5050565b6108813382611bb1565b50565b60004382106108fb5760405162461bcd60e51b815260206004820152602760248201527f486966693a3a6765745072696f72566f7465733a206e6f74207965742064657460448201527f65726d696e6564000000000000000000000000000000000000000000000000006064820152608401610805565b6001600160a01b03831660009081526006602052604081205463ffffffff169081900361092c57600091505061066c565b6001600160a01b03841660009081526005602052604081208491610951600185612263565b63ffffffff908116825260208201929092526040016000205416116109c5576001600160a01b038416600090815260056020526040812090610994600184612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b0316915061066c9050565b6001600160a01b038416600090815260056020908152604080832083805290915290205463ffffffff16831015610a0057600091505061066c565b600080610a0e600184612263565b90505b8163ffffffff168163ffffffff161115610ae15760006002610a338484612263565b610a3d9190612296565b610a479083612263565b6001600160a01b038816600090815260056020908152604080832063ffffffff8581168552908352928190208151808301909252549283168082526401000000009093046001600160601b031691810191909152919250879003610ab55760200151945061066c9350505050565b805163ffffffff16871115610acc57819350610ada565b610ad7600183612263565b92505b5050610a11565b506001600160a01b038516600090815260056020908152604080832063ffffffff909416835292905220546001600160601b036401000000009091041691505092915050565b6000610b4b8260405180606001604052806029815260200161248e6029913961167b565b6001600160a01b038416600090815260026020908152604080832033845290915281205491925090610b879083906001600160601b031661223b565b6001600160a01b0385166000818152600260209081526040808320338085529083529281902080546bffffffffffffffffffffffff19166001600160601b038716908117909155905190815293945090927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3610c0d8483611a3e565b50505050565b80600003610c895760405162461bcd60e51b815260206004820152602560248201527f486966693a3a737761703a207377617020616d6f756e742063616e277420626560448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610805565b6040516323b872dd60e01b8152336004820152600160248201526044810182905273df2c7238198ad8b389666574f2d8bc411a4b7428906323b872dd906064016020604051808303816000875af1158015610ce8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d0c91906122b9565b610d1557600080fd5b6000610d226064836122db565b90506000610d65826040518060400160405280602081526020017f486966693a3a737761703a20737761702065786365656473203936206269747381525061167b565b9050610d7133826118ca565b604080518481526001600160601b038316602082015233917f77f92a1b6a1a11de8ca49515ad4c1fad45632dd3442167d74b90b304a3c7a758910160405180910390a2505050565b600080610dde8360405180606001604052806026815260200161239f6026913961167b565b9050610deb3385836116b3565b5060019392505050565b6001600160a01b03811660009081526006602052604081205463ffffffff1680610e20576000610e6d565b6001600160a01b038316600090815260056020526040812090610e44600184612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b9392505050565b604080518082018252600c81526b486966692046696e616e636560a01b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f637d65daa3c37e1b3d5637d73b47c451abb3fcc22decd1a9ecc244eecd2ebdcc81840152466060820152306080808301919091528351808303909101815260a0820184528051908301207fe48329057bfd03d55e49b547132e39cffd9c1820ad7b9d4c5307691425d15adf60c08301526001600160a01b038a1660e083015261010082018990526101208083018990528451808403909101815261014083019094528351939092019290922061190160f01b6101608401526101628301829052610182830181905290916000906101a20160408051601f198184030181528282528051602091820120600080855291840180845281905260ff8a169284019290925260608301889052608083018790529092509060019060a0016020604051602081039080840390855afa158015610ffb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166110845760405162461bcd60e51b815260206004820152602660248201527f486966693a3a64656c656761746542795369673a20696e76616c69642073696760448201527f6e617475726500000000000000000000000000000000000000000000000000006064820152608401610805565b6001600160a01b03811660009081526007602052604081208054916110a8836122ef565b9190505589146111055760405162461bcd60e51b815260206004820152602260248201527f486966693a3a64656c656761746542795369673a20696e76616c6964206e6f6e604482015261636560f01b6064820152608401610805565b8742111561117b5760405162461bcd60e51b815260206004820152602660248201527f486966693a3a64656c656761746542795369673a207369676e6174757265206560448201527f78706972656400000000000000000000000000000000000000000000000000006064820152608401610805565b611185818b611bb1565b505050505b505050505050565b600060001986036111ab57506001600160601b036111d0565b6111cd8660405180606001604052806024815260200161241e6024913961167b565b90505b604080518082018252600c81526b486966692046696e616e636560a01b60209182015281517f8cad95687ba82c2ce50e74f7b754645e5117c3a5bec8151c0726d5857980a866818301527f637d65daa3c37e1b3d5637d73b47c451abb3fcc22decd1a9ecc244eecd2ebdcc81840152466060820152306080808301919091528351808303909101815260a090910183528051908201206001600160a01b038b166000908152600790925291812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918c918c918c9190866112b2836122ef565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810188905260e0016040516020818303038152906040528051906020012090506000828260405160200161133192919061190160f01b81526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600080855291840180845281905260ff8b169284019290925260608301899052608083018890529092509060019060a0016020604051602081039080840390855afa15801561139c573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166113ff5760405162461bcd60e51b815260206004820152601f60248201527f486966693a3a7065726d69743a20696e76616c6964207369676e6174757265006044820152606401610805565b8b6001600160a01b0316816001600160a01b0316146114605760405162461bcd60e51b815260206004820152601a60248201527f486966693a3a7065726d69743a20756e617574686f72697a65640000000000006044820152606401610805565b884211156114b05760405162461bcd60e51b815260206004820152601f60248201527f486966693a3a7065726d69743a207369676e61747572652065787069726564006044820152606401610805565b84600260008e6001600160a01b03166001600160a01b0316815260200190815260200160002060008d6001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b031602179055508a6001600160a01b03168c6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9258760405161156f91906001600160601b0391909116815260200190565b60405180910390a3505050505050505050505050565b6001546001600160a01b031633146116055760405162461bcd60e51b815260206004820152603e60248201527f486966693a3a7365744d696e7465723a206f6e6c7920746865206d696e74657260448201527f2063616e206368616e676520746865206d696e746572206164647265737300006064820152608401610805565b600154604080516001600160a01b03928316815291831660208301527f3b0007eb941cf645526cbb3a4fdaecda9d28ce4843167d9263b536a1f1edc0f6910160405180910390a16001805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6000816c0100000000000000000000000084106116ab5760405162461bcd60e51b81526004016108059190611fd4565b509192915050565b6001600160a01b03831661172f5760405162461bcd60e51b815260206004820152603c60248201527f486966693a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e736665722066726f6d20746865207a65726f2061646472657373000000006064820152608401610805565b6001600160a01b0382166117ab5760405162461bcd60e51b815260206004820152603a60248201527f486966693a3a5f7472616e73666572546f6b656e733a2063616e6e6f7420747260448201527f616e7366657220746f20746865207a65726f20616464726573730000000000006064820152608401610805565b6001600160a01b0383166000908152600360205260409020546117d89082906001600160601b031661223b565b6001600160a01b0384811660009081526003602052604080822080546bffffffffffffffffffffffff19166001600160601b039586161790559185168152205461182491839116612308565b6001600160a01b0383811660008181526003602090815260409182902080546bffffffffffffffffffffffff19166001600160601b03968716179055905193851684529092918616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526004602052604080822054858416835291205461083e92918216911683611c3e565b6001600160a01b0382166119465760405162461bcd60e51b815260206004820152602560248201527f486966693a3a5f6d696e743a206d696e7420746f20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610805565b600061196c6000546040518060600160405280602781526020016123536027913961167b565b90506119788282612308565b6001600160601b0390811660009081556001600160a01b0385168152600360205260409020546119aa91849116612308565b6001600160a01b038416600081815260036020908152604080832080546bffffffffffffffffffffffff19166001600160601b03968716179055519386168452919290917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526004602052604081205461083e921684611c3e565b6001600160a01b038216611aba5760405162461bcd60e51b815260206004820152602760248201527f486966693a3a5f6275726e3a206275726e2066726f6d20746865207a65726f2060448201527f61646472657373000000000000000000000000000000000000000000000000006064820152608401610805565b6000611ae06000546040518060600160405280602781526020016124426027913961167b565b9050611aec828261223b565b6001600160601b0390811660009081556001600160a01b038516815260036020526040902054611b1e9184911661223b565b6001600160a01b038416600081815260036020908152604080832080546bffffffffffffffffffffffff19166001600160601b0396871617905551938616845290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a36001600160a01b0380841660009081526004602052604081205461083e92169084611c3e565b6001600160a01b038083166000818152600460208181526040808420805460038452828620549490935287871673ffffffffffffffffffffffffffffffffffffffff1984168117909155905191909516946001600160601b039092169391928592917f3134e8a2e6d97e929a7e54011ea5485d7d196dd5f0ba4d4ef95803e8e3fc257f9190a4610c0d8284835b816001600160a01b0316836001600160a01b031614158015611c6957506000816001600160601b0316115b1561083e576001600160a01b03831615611d16576001600160a01b03831660009081526006602052604081205463ffffffff169081611ca9576000611cf6565b6001600160a01b038516600090815260056020526040812090611ccd600185612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000611d04848361223b565b9050611d1286848484611db6565b5050505b6001600160a01b0382161561083e576001600160a01b03821660009081526006602052604081205463ffffffff169081611d51576000611d9e565b6001600160a01b038416600090815260056020526040812090611d75600185612263565b63ffffffff16815260208101919091526040016000205464010000000090046001600160601b03165b90506000611dac8483612308565b905061118a858484845b6000611dda436040518060600160405280603481526020016123ea60349139611fb0565b905060008463ffffffff16118015611e3457506001600160a01b038516600090815260056020526040812063ffffffff831691611e18600188612263565b63ffffffff908116825260208201929092526040016000205416145b15611ea9576001600160a01b03851660009081526005602052604081208391611e5e600188612263565b63ffffffff168152602081019190915260400160002080546001600160601b0392909216640100000000026fffffffffffffffffffffffff0000000019909216919091179055611f5b565b60408051808201825263ffffffff80841682526001600160601b0380861660208085019182526001600160a01b038b166000908152600582528681208b8616825290915294909420925183549451909116640100000000026fffffffffffffffffffffffffffffffff19909416911617919091179055611f2a846001612333565b6001600160a01b0386166000908152600660205260409020805463ffffffff191663ffffffff929092169190911790555b604080516001600160601b038086168252841660208201526001600160a01b038716917fdec2bacdd2f05b59de34da9b523dff8be42e5e38e818c82fdb0bae774387a724910160405180910390a25050505050565b60008164010000000084106116ab5760405162461bcd60e51b815260040161080591905b600060208083528351808285015260005b8181101561200157858101830151858201604001528201611fe5565b81811115612013576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461204057600080fd5b919050565b6000806040838503121561205857600080fd5b61206183612029565b946020939093013593505050565b60008060006060848603121561208457600080fd5b61208d84612029565b925061209b60208501612029565b9150604084013590509250925092565b6000602082840312156120bd57600080fd5b5035919050565b6000602082840312156120d657600080fd5b610e6d82612029565b803560ff8116811461204057600080fd5b60008060008060008060c0878903121561210957600080fd5b61211287612029565b9550602087013594506040870135935061212e606088016120df565b92506080870135915060a087013590509295509295509295565b600080600080600080600060e0888a03121561216357600080fd5b61216c88612029565b965061217a60208901612029565b95506040880135945060608801359350612196608089016120df565b925060a0880135915060c0880135905092959891949750929550565b600080604083850312156121c557600080fd5b6121ce83612029565b91506121dc60208401612029565b90509250929050565b600080604083850312156121f857600080fd5b61220183612029565b9150602083013563ffffffff8116811461221a57600080fd5b809150509250929050565b634e487b7160e01b600052601160045260246000fd5b60006001600160601b038381169083168181101561225b5761225b612225565b039392505050565b600063ffffffff8381169083168181101561225b5761225b612225565b634e487b7160e01b600052601260045260246000fd5b600063ffffffff808416806122ad576122ad612280565b92169190910492915050565b6000602082840312156122cb57600080fd5b81518015158114610e6d57600080fd5b6000826122ea576122ea612280565b500490565b60006001820161230157612301612225565b5060010190565b60006001600160601b0380831681851680830382111561232a5761232a612225565b01949350505050565b600063ffffffff80831681851680830382111561232a5761232a61222556fe486966693a3a5f6d696e743a206f6c6420737570706c7920657863656564732039362062697473486966693a3a6d696e743a20726177416d6f756e7420657863656564732039362062697473486966693a3a7472616e736665723a20616d6f756e7420657863656564732039362062697473486966693a3a6275726e3a20726177416d6f756e7420657863656564732039362062697473486966693a3a5f7772697465436865636b706f696e743a20626c6f636b206e756d62657220657863656564732033322062697473486966693a3a7065726d69743a20616d6f756e7420657863656564732039362062697473486966693a3a5f6275726e3a206f6c6420737570706c7920657863656564732039362062697473486966693a3a617070726f76653a20616d6f756e7420657863656564732039362062697473486966693a3a6275726e46726f6d3a20726177416d6f756e7420657863656564732039362062697473a164736f6c634300080f000a
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000d3297c6ab8b7c2d9175a38e3e7f669b286a3296f000000000000000000000000d3297c6ab8b7c2d9175a38e3e7f669b286a3296f
-----Decoded View---------------
Arg [0] : account (address): 0xD3297C6AB8B7C2D9175A38E3e7F669b286A3296f
Arg [1] : minter_ (address): 0xD3297C6AB8B7C2D9175A38E3e7F669b286A3296f
-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d3297c6ab8b7c2d9175a38e3e7f669b286a3296f
Arg [1] : 000000000000000000000000d3297c6ab8b7c2d9175a38e3e7f669b286a3296f
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.