Feature Tip: Add private address tag to any address under My Name Tag !
ERC-20
Liquid staking
Overview
Max Total Supply
2,016.441677948184331895 kUSD
Holders
16 (0.00%)
Market
Price
$0.99 @ 0.000285 ETH
Onchain Market Cap
$2,005.31
Circulating Supply Market Cap
$0.00
Other Info
Token Contract (WITH 18 Decimals)
Balance
3.988352323672714349 kUSDValue
$3.97 ( ~0.00113758824392229 Eth) [0.1978%]Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Contract Name:
kUSD
Compiler Version
v0.8.20+commit.a1b79de6
Optimization Enabled:
Yes with 1000 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.20; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/access/Ownable2Step.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; interface IRateProvider { function kUSDPerToken() external view returns (uint256); function tokenPerkUSD() external view returns (uint256); } interface IVaultSupervisor { function deposit(address vault, uint256 amount, uint256 minSharesOut) external returns (uint256 shares); function gimmieShares(address vault, uint256 shares) external; } contract kUSD is ERC20, Ownable2Step { /// DEPENDENCIES /// using SafeERC20 for IERC20; /// STRUCTS /// struct Token { address vaultToken; address rateProvider; uint256 cap; uint256 deposited; bool paused; } /// STATE VARIABLES /// /// @notice Address of Karak vault supervisor address public immutable vaultSupervisor = 0x54e44DbB92dBA848ACe27F44c0CB4268981eF1CC; /// @notice Address of fee address address public feeAddress; /// @notice Array of approved tokens address[] public approvedTokens; /// @notice Bool if address is approved token mapping(address => bool) public approvedToken; /// @notice Bool if address is vault token mapping(address => bool) public vaultToken; /// @notice Bool is address is approved protector mapping(address => bool) public approvedProtector; /// @notice Token struct for token mapping(address => Token) public tokens; /// @notice Bool if deposits are open bool public depositsOpen; /// @notice Number of approved tokens uint256 public numApprovedTokens; /// @notice Mint fee percent - 100 = 1% uint256 public mintFee; /// @notice Redeem fee percent - 100 = 1% uint256 public redeemFee; /// @notice Fee denom uint256 public constant FEE_DENOM = 10_000; /// @notice Mint amount out uint256 public constant MIN_MINT = 1 ether; /// @notice Mint amount to redeem uint256 public constant MIN_REDEEM = 1 ether; /// EVENTS /// event Deposit(address indexed staker, uint256 kUSDReceived); event Redeemed(address indexed staker, uint256 kUSDBurned); event TokenBalanceUpdated(address indexed token, uint256 newBalance); event TokenAdded(address tokenAdded); event RateProviderUpdated(address indexed token, address indexed newProvider); event TokenRemoved(address tokenRemoved); event ProtectorAdded(address indexed protectorAdded); event ProtectorRemoved(address indexed protectorRemoved); event DepositsOpened(); event DepositsClosed(); event DepositPaused(address indexed token); event DepositUnpaused(address indexed token); event CapIncrease(address indexed token, uint256 oldCap, uint256 newCap); event MintFeeSet(uint256 oldFee, uint256 newFee); event RedeemFeeSet(uint256 oldFee, uint256 newFee); event FeeAddressSet(address oldAddress, address newAddress); /// CONSTRUCTOR /// constructor() ERC20("Kernel USD", "kUSD") Ownable2Step() { feeAddress = owner(); mintFee = 10; redeemFee = 25; } /// MUTATIVE FUNCTIONS /// /// @notice Deposit `_approvedToken` to receive kUSD /// @param _approvedToken Token to deposit /// @param _to Address to send minted kUSD to /// @param _amount Amount of `_approvedToken` to deposit /// @param _receipt Bool if to deposit receipt token function deposit(address _approvedToken, address _to, uint256 _amount, bool _receipt) external { if (!depositsOpen) require(msg.sender == owner(), "Deposits not open"); Token memory token = tokens[_approvedToken]; require(approvedToken[_approvedToken] && !token.paused, "Deposits not open for token"); require(_amount > 0, "Can not deposit 0"); require(token.deposited + _amount <= token.cap, "Exceeds cap"); uint256 _rate = IRateProvider(token.rateProvider).kUSDPerToken(); address _vaultToken = token.vaultToken; if (!_receipt) { IERC20(_approvedToken).safeTransferFrom(msg.sender, address(this), _amount); IERC20(_approvedToken).forceApprove(_vaultToken, _amount); uint256 _min = _amount * 99 / 100; _amount = IVaultSupervisor(vaultSupervisor).deposit(_vaultToken, _amount, _min); IVaultSupervisor(vaultSupervisor).gimmieShares(_vaultToken, _amount); } else { IERC20(_vaultToken).safeTransferFrom(msg.sender, address(this), _amount); } uint256 _amountToMint = (_rate * _amount) / (10 ** IERC20Metadata(_vaultToken).decimals()); require(_amountToMint >= MIN_MINT, "Less than min mint"); if (msg.sender != owner() && msg.sender != feeAddress && mintFee > 0) { uint256 _fee = _amountToMint * mintFee / FEE_DENOM; _amountToMint -= _fee; _mint(feeAddress, _fee); } tokens[_approvedToken].deposited += _amount; _mint(_to, _amountToMint); emit Deposit(_to, _amountToMint); } /// @notice Redeem kUSD to receive `_approvedTokenToReceive` /// @param _approvedTokenToReceive Token to receieve receipt for /// @param _to Address to send receive redeemed `_approvedTokenToReceive` /// @param _kUSDToRedeem Amount of kUSD to redeem function redeem(address _approvedTokenToReceive, address _to, uint256 _kUSDToRedeem) external { require(approvedToken[_approvedTokenToReceive], "Not token"); require(_kUSDToRedeem >= MIN_REDEEM, "Less than min redeem"); Token memory token = tokens[_approvedTokenToReceive]; uint256 _rate = IRateProvider(token.rateProvider).tokenPerkUSD(); if (msg.sender != owner() && msg.sender != feeAddress && redeemFee > 0) { uint256 _fee = _kUSDToRedeem * redeemFee / FEE_DENOM; _kUSDToRedeem -= _fee; _transfer(msg.sender, feeAddress, _fee); } uint256 _toSend = _rate * _kUSDToRedeem / (10 ** decimals()); require(token.deposited >= _toSend, "Not enough funds to redeem token"); tokens[_approvedTokenToReceive].deposited -= _toSend; _burn(msg.sender, _kUSDToRedeem); address _vaultToken = token.vaultToken; IERC20(_vaultToken).safeTransfer(_to, _toSend); emit Redeemed(_to, _kUSDToRedeem); } /// OWNER FUNCTION /// /// @notice Set mint fee to `_fee` function setMintFee(uint256 _fee) external onlyOwner { require(_fee <= 50, "Mint fee > 0.50%"); uint256 _oldFee = mintFee; mintFee = _fee; emit MintFeeSet(_oldFee, _fee); } /// @notice Set redeem fee to `_fee` function setRedeemFee(uint256 _fee) external onlyOwner { require(_fee <= 50, "Redeem fee > 0.50%"); uint256 _oldFee = redeemFee; redeemFee = _fee; emit RedeemFeeSet(_oldFee, _fee); } /// @notice Set fee address to `_address` function setFeeAddress(address _address) external onlyOwner { require(_address != address(0), "Can not be zero address"); address _oldAddress = feeAddress; feeAddress = _address; emit FeeAddressSet(_oldAddress, _address); } /// @notice Add approved token /// @param _approvedToken Address of approved token to add /// @param _vaultToken Address of karak vault /// @param _rateProvider Address of rate provider /// @param _cap Cap of `_approvedToken` function addToken(address _approvedToken, address _vaultToken, address _rateProvider, uint256 _cap) external onlyOwner { require(!approvedToken[_approvedToken], "Already added"); Token storage token = tokens[_approvedToken]; approvedToken[_approvedToken] = true; vaultToken[_vaultToken] = true; token.vaultToken = _vaultToken; token.rateProvider = _rateProvider; setCap(_approvedToken, _cap); approvedTokens.push(_approvedToken); ++numApprovedTokens; emit TokenAdded(_approvedToken); emit RateProviderUpdated(_approvedToken, _rateProvider); } /// @notice Remove `_approvedToken` /// @param _approvedToken Address of approved token to remove function removeToken(address _approvedToken) external onlyOwner { require(approvedToken[_approvedToken], "Not approved token"); Token memory token = tokens[_approvedToken]; approvedToken[_approvedToken] = false; vaultToken[token.vaultToken] = false; tokens[_approvedToken].rateProvider = address(0); tokens[_approvedToken].vaultToken = address(0); uint256 _arrLength = approvedTokens.length; for (uint256 i; i < _arrLength; ++i) { if (approvedTokens[i] == _approvedToken) { approvedTokens[i] = approvedTokens[_arrLength - 1]; approvedTokens.pop(); break; } } --numApprovedTokens; emit TokenRemoved(_approvedToken); emit RateProviderUpdated(_approvedToken, address(0)); } /// @notice Update rate provider to `_rateProvider` for `_token` function updateRateProvider(address _token, address _rateProvider) external onlyOwner { require(approvedToken[_token], "Not approved token"); tokens[_token].rateProvider = _rateProvider; emit RateProviderUpdated(_token, _rateProvider); } /// @notice Unpause deposits of `_token` function unpauseDeposits(address _token) external onlyOwner { require(approvedToken[_token], "Not approved token"); require(tokens[_token].paused, "Token not paused"); tokens[_token].paused = false; emit DepositUnpaused(_token); } /// @notice Set `_newCap` for `_token` function setCap(address _token, uint256 _newCap) public onlyOwner { require(approvedToken[_token], "Not approved token"); uint256 _oldCap = tokens[_token].cap; require(_newCap > _oldCap, "Cannot lower cap"); tokens[_token].cap = _newCap; emit CapIncrease(_token, _oldCap, _newCap); } /// @notice Recover tokens /// @param _to Address to send recovered tokens /// @param _token Address of token to recover /// @param _amount Amount of token to recover function recoverTokens(address _to, address _token, uint256 _amount) external onlyOwner { require(!vaultToken[_token], "Can Not transfer vault token"); IERC20(_token).safeTransfer(_to, _amount); } /// @notice Add protector function addProtector(address _protector) external onlyOwner { require(!approvedProtector[_protector], "Already Protector"); approvedProtector[_protector] = true; emit ProtectorAdded(_protector); } /// @notice Remove protector function removeProtector(address _protector) external onlyOwner { require(approvedProtector[_protector], "Not Protector"); approvedProtector[_protector] = false; emit ProtectorRemoved(_protector); } /// @notice Open deposits function openDeposits() external onlyOwner { require(!depositsOpen, "Deposits already opened"); depositsOpen = true; emit DepositsOpened(); } /// PROTECTOR FUNCTIONS /// /// @notice Pause deposits of `_token` function pauseDeposits(address _token) external { require(approvedProtector[msg.sender] || msg.sender == owner(), "Not approved protector"); require(approvedToken[_token], "Not approved token"); require(!tokens[_token].paused, "Token already paused"); tokens[_token].paused = true; emit DepositPaused(_token); } /// @notice Close deposits function closeDeposits() external { require(approvedProtector[msg.sender] || msg.sender == owner(), "Not approved protector"); require(depositsOpen, "Deposits already closed"); depositsOpen = false; emit DepositsClosed(); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby disabling any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable2Step.sol) pragma solidity ^0.8.0; import "./Ownable.sol"; /** * @dev Contract module which provides access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership} and {acceptOwnership}. * * This module is used through inheritance. It will make available all functions * from parent (Ownable). */ abstract contract Ownable2Step is Ownable { address private _pendingOwner; event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner); /** * @dev Returns the address of the pending owner. */ function pendingOwner() public view virtual returns (address) { return _pendingOwner; } /** * @dev Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual override onlyOwner { _pendingOwner = newOwner; emit OwnershipTransferStarted(owner(), newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`) and deletes any pending owner. * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual override { delete _pendingOwner; super._transferOwnership(newOwner); } /** * @dev The new owner accepts the ownership transfer. */ function acceptOwnership() public virtual { address sender = _msgSender(); require(pendingOwner() == sender, "Ownable2Step: caller is not the new owner"); _transferOwnership(sender); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/ERC20.sol) pragma solidity ^0.8.0; import "./IERC20.sol"; import "./extensions/IERC20Metadata.sol"; import "../../utils/Context.sol"; /** * @dev Implementation of the {IERC20} interface. * * This implementation is agnostic to the way tokens are created. This means * that a supply mechanism has to be added in a derived contract using {_mint}. * For a generic mechanism see {ERC20PresetMinterPauser}. * * TIP: For a detailed writeup see our guide * https://forum.openzeppelin.com/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * The default value of {decimals} is 18. To change this, you should override * this function so it returns a different value. * * We have followed general OpenZeppelin Contracts guidelines: functions revert * instead returning `false` on failure. This behavior is nonetheless * conventional and does not conflict with the expectations of ERC20 * applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract ERC20 is Context, IERC20, IERC20Metadata { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) private _allowances; uint256 private _totalSupply; string private _name; string private _symbol; /** * @dev Sets the values for {name} and {symbol}. * * All two of these values are immutable: they can only be set once during * construction. */ constructor(string memory name_, string memory symbol_) { _name = name_; _symbol = symbol_; } /** * @dev Returns the name of the token. */ function name() public view virtual override returns (string memory) { return _name; } /** * @dev Returns the symbol of the token, usually a shorter version of the * name. */ function symbol() public view virtual override returns (string memory) { return _symbol; } /** * @dev Returns the number of decimals used to get its user representation. * For example, if `decimals` equals `2`, a balance of `505` tokens should * be displayed to a user as `5.05` (`505 / 10 ** 2`). * * Tokens usually opt for a value of 18, imitating the relationship between * Ether and Wei. This is the default value returned by this function, unless * it's overridden. * * NOTE: This information is only used for _display_ purposes: it in * no way affects any of the arithmetic of the contract, including * {IERC20-balanceOf} and {IERC20-transfer}. */ function decimals() public view virtual override returns (uint8) { return 18; } /** * @dev See {IERC20-totalSupply}. */ function totalSupply() public view virtual override returns (uint256) { return _totalSupply; } /** * @dev See {IERC20-balanceOf}. */ function balanceOf(address account) public view virtual override returns (uint256) { return _balances[account]; } /** * @dev See {IERC20-transfer}. * * Requirements: * * - `to` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address to, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _transfer(owner, to, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) public view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on * `transferFrom`. This is semantically equivalent to an infinite approval. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) public virtual override returns (bool) { address owner = _msgSender(); _approve(owner, spender, amount); return true; } /** * @dev See {IERC20-transferFrom}. * * Emits an {Approval} event indicating the updated allowance. This is not * required by the EIP. See the note at the beginning of {ERC20}. * * NOTE: Does not update the allowance if the current allowance * is the maximum `uint256`. * * Requirements: * * - `from` and `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. * - the caller must have allowance for ``from``'s tokens of at least * `amount`. */ function transferFrom(address from, address to, uint256 amount) public virtual override returns (bool) { address spender = _msgSender(); _spendAllowance(from, spender, amount); _transfer(from, to, amount); return true; } /** * @dev Atomically increases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. */ function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) { address owner = _msgSender(); _approve(owner, spender, allowance(owner, spender) + addedValue); return true; } /** * @dev Atomically decreases the allowance granted to `spender` by the caller. * * This is an alternative to {approve} that can be used as a mitigation for * problems described in {IERC20-approve}. * * Emits an {Approval} event indicating the updated allowance. * * Requirements: * * - `spender` cannot be the zero address. * - `spender` must have allowance for the caller of at least * `subtractedValue`. */ function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) { address owner = _msgSender(); uint256 currentAllowance = allowance(owner, spender); require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); unchecked { _approve(owner, spender, currentAllowance - subtractedValue); } return true; } /** * @dev Moves `amount` of tokens from `from` to `to`. * * This internal function is equivalent to {transfer}, and can be used to * e.g. implement automatic token fees, slashing mechanisms, etc. * * Emits a {Transfer} event. * * Requirements: * * - `from` cannot be the zero address. * - `to` cannot be the zero address. * - `from` must have a balance of at least `amount`. */ function _transfer(address from, address to, uint256 amount) internal virtual { require(from != address(0), "ERC20: transfer from the zero address"); require(to != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(from, to, amount); uint256 fromBalance = _balances[from]; require(fromBalance >= amount, "ERC20: transfer amount exceeds balance"); unchecked { _balances[from] = fromBalance - amount; // Overflow not possible: the sum of all balances is capped by totalSupply, and the sum is preserved by // decrementing then incrementing. _balances[to] += amount; } emit Transfer(from, to, amount); _afterTokenTransfer(from, to, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. */ function _mint(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: mint to the zero address"); _beforeTokenTransfer(address(0), account, amount); _totalSupply += amount; unchecked { // Overflow not possible: balance + amount is at most totalSupply + amount, which is checked above. _balances[account] += amount; } emit Transfer(address(0), account, amount); _afterTokenTransfer(address(0), account, amount); } /** * @dev Destroys `amount` tokens from `account`, reducing the * total supply. * * Emits a {Transfer} event with `to` set to the zero address. * * Requirements: * * - `account` cannot be the zero address. * - `account` must have at least `amount` tokens. */ function _burn(address account, uint256 amount) internal virtual { require(account != address(0), "ERC20: burn from the zero address"); _beforeTokenTransfer(account, address(0), amount); uint256 accountBalance = _balances[account]; require(accountBalance >= amount, "ERC20: burn amount exceeds balance"); unchecked { _balances[account] = accountBalance - amount; // Overflow not possible: amount <= accountBalance <= totalSupply. _totalSupply -= amount; } emit Transfer(account, address(0), amount); _afterTokenTransfer(account, address(0), amount); } /** * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens. * * This internal function is equivalent to `approve`, and can be used to * e.g. set automatic allowances for certain subsystems, etc. * * Emits an {Approval} event. * * Requirements: * * - `owner` cannot be the zero address. * - `spender` cannot be the zero address. */ function _approve(address owner, address spender, uint256 amount) internal virtual { require(owner != address(0), "ERC20: approve from the zero address"); require(spender != address(0), "ERC20: approve to the zero address"); _allowances[owner][spender] = amount; emit Approval(owner, spender, amount); } /** * @dev Updates `owner` s allowance for `spender` based on spent `amount`. * * Does not update the allowance amount in case of infinite allowance. * Revert if not enough allowance is available. * * Might emit an {Approval} event. */ function _spendAllowance(address owner, address spender, uint256 amount) internal virtual { uint256 currentAllowance = allowance(owner, spender); if (currentAllowance != type(uint256).max) { require(currentAllowance >= amount, "ERC20: insufficient allowance"); unchecked { _approve(owner, spender, currentAllowance - amount); } } } /** * @dev Hook that is called before any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * will be transferred to `to`. * - when `from` is zero, `amount` tokens will be minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens will be burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {} /** * @dev Hook that is called after any transfer of tokens. This includes * minting and burning. * * Calling conditions: * * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens * has been transferred to `to`. * - when `from` is zero, `amount` tokens have been minted for `to`. * - when `to` is zero, `amount` of ``from``'s tokens have been burned. * - `from` and `to` are never both zero. * * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks]. */ function _afterTokenTransfer(address from, address to, uint256 amount) internal virtual {} }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. * * _Available since v4.1._ */ interface IERC20Metadata is IERC20 { /** * @dev Returns the name of the token. */ function name() external view returns (string memory); /** * @dev Returns the symbol of the token. */ function symbol() external view returns (string memory); /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (token/ERC20/extensions/IERC20Permit.sol) pragma solidity ^0.8.0; /** * @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. * * ==== Security Considerations * * There are two important considerations concerning the use of `permit`. The first is that a valid permit signature * expresses an allowance, and it should not be assumed to convey additional meaning. In particular, it should not be * considered as an intention to spend the allowance in any specific way. The second is that because permits have * built-in replay protection and can be submitted by anyone, they can be frontrun. A protocol that uses permits should * take this into consideration and allow a `permit` call to fail. Combining these two aspects, a pattern that may be * generally recommended is: * * ```solidity * function doThingWithPermit(..., uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) public { * try token.permit(msg.sender, address(this), value, deadline, v, r, s) {} catch {} * doThing(..., value); * } * * function doThing(..., uint256 value) public { * token.safeTransferFrom(msg.sender, address(this), value); * ... * } * ``` * * Observe that: 1) `msg.sender` is used as the owner, leaving no ambiguity as to the signer intent, and 2) the use of * `try/catch` allows the permit to fail and makes the code tolerant to frontrunning. (See also * {SafeERC20-safeTransferFrom}). * * Additionally, note that smart contract wallets (such as Argent or Safe) are not able to produce permit signatures, so * contracts should have entry points that don't rely on permit. */ interface IERC20Permit { /** * @dev Sets `value` as the 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]. * * CAUTION: See Security Considerations above. */ 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: MIT // OpenZeppelin Contracts (last updated v4.9.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address from, address to, uint256 amount) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.3) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.0; import "../IERC20.sol"; import "../extensions/IERC20Permit.sol"; import "../../../utils/Address.sol"; /** * @title SafeERC20 * @dev Wrappers around ERC20 operations that throw on failure (when the token * contract returns false). Tokens that return no value (and instead revert or * throw on failure) are also supported, non-reverting calls are assumed to be * successful. * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract, * which allows you to call the safe operations as `token.safeTransfer(...)`, etc. */ library SafeERC20 { using Address for address; /** * @dev Transfer `value` amount of `token` from the calling contract to `to`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeTransfer(IERC20 token, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } /** * @dev Transfer `value` amount of `token` from `from` to `to`, spending the approval given by `from` to the * calling contract. If `token` returns no value, non-reverting calls are assumed to be successful. */ function safeTransferFrom(IERC20 token, address from, address to, uint256 value) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } /** * @dev Deprecated. This function has issues similar to the ones found in * {IERC20-approve}, and its usage is discouraged. * * Whenever possible, use {safeIncreaseAllowance} and * {safeDecreaseAllowance} instead. */ function safeApprove(IERC20 token, address spender, uint256 value) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } /** * @dev Increase the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeIncreaseAllowance(IERC20 token, address spender, uint256 value) internal { uint256 oldAllowance = token.allowance(address(this), spender); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance + value)); } /** * @dev Decrease the calling contract's allowance toward `spender` by `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 value) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, oldAllowance - value)); } } /** * @dev Set the calling contract's allowance toward `spender` to `value`. If `token` returns no value, * non-reverting calls are assumed to be successful. Meant to be used with tokens that require the approval * to be set to zero before setting it to a non-zero value, such as USDT. */ function forceApprove(IERC20 token, address spender, uint256 value) internal { bytes memory approvalCall = abi.encodeWithSelector(token.approve.selector, spender, value); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, 0)); _callOptionalReturn(token, approvalCall); } } /** * @dev Use a ERC-2612 signature to set the `owner` approval toward `spender` on `token`. * Revert on invalid signature. */ function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). */ function _callOptionalReturn(IERC20 token, bytes memory data) private { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that // the target address contains contract code and also asserts for success in the low-level call. bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); require(returndata.length == 0 || abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } /** * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement * on the return value: the return value is optional (but if data is returned, it must not be false). * @param token The token targeted by the call. * @param data The call data (encoded using abi.encode or one of its variants). * * This is a variant of {_callOptionalReturn} that silents catches all reverts and returns a bool instead. */ function _callOptionalReturnBool(IERC20 token, bytes memory data) private returns (bool) { // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since // we're implementing it ourselves. We cannot use {Address-functionCall} here since this should return false // and not revert is the subcall reverts. (bool success, bytes memory returndata) = address(token).call(data); return success && (returndata.length == 0 || abi.decode(returndata, (bool))) && Address.isContract(address(token)); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol) pragma solidity ^0.8.1; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among others, `isContract` will return false for the following * types of addresses: * * - an externally-owned account * - a contract in construction * - an address where a contract will be created * - an address where a contract lived, but was destroyed * * Furthermore, `isContract` will also return true if the target contract within * the same transaction is already scheduled for destruction by `SELFDESTRUCT`, * which only has an effect at the end of a transaction. * ==== * * [IMPORTANT] * ==== * You shouldn't rely on `isContract` to protect against flash loan attacks! * * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract * constructor. * ==== */ function isContract(address account) internal view returns (bool) { // This method relies on extcodesize/address.code.length, which returns 0 // for contracts in construction, since the code is only stored at the end // of the constructor execution. return account.code.length > 0; } /** * @dev Replacement for Solidity's `transfer`: sends `amount` wei to * `recipient`, forwarding all available gas and reverting on errors. * * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost * of certain opcodes, possibly making contracts go over the 2300 gas limit * imposed by `transfer`, making them unable to receive funds via * `transfer`. {sendValue} removes this limitation. * * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more]. * * IMPORTANT: because control is transferred to `recipient`, care must be * taken to not create reentrancy vulnerabilities. Consider using * {ReentrancyGuard} or the * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } /** * @dev Performs a Solidity function call using a low level `call`. A * plain `call` is an unsafe replacement for a function call: use this * function instead. * * If `target` reverts with a revert reason, it is bubbled up by this * function (like regular Solidity function calls). * * Returns the raw returned data. To convert to the expected return value, * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`]. * * Requirements: * * - `target` must be a contract. * - calling `target` with `data` must not revert. * * _Available since v3.1._ */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, "Address: low-level call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with * `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but also transferring `value` wei to `target`. * * Requirements: * * - the calling contract must have an ETH balance of at least `value`. * - the called Solidity function must be `payable`. * * _Available since v3.1._ */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } /** * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but * with `errorMessage` as a fallback revert reason when `target` reverts. * * _Available since v3.1._ */ function functionCallWithValue( address target, bytes memory data, uint256 value, string memory errorMessage ) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a static call. * * _Available since v3.3._ */ function functionStaticCall( address target, bytes memory data, string memory errorMessage ) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } /** * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`], * but performing a delegate call. * * _Available since v3.4._ */ function functionDelegateCall( address target, bytes memory data, string memory errorMessage ) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata, errorMessage); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract. * * _Available since v4.8._ */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata, string memory errorMessage ) internal view returns (bytes memory) { if (success) { if (returndata.length == 0) { // only check isContract if the call was successful and the return data is empty // otherwise we already know that it was a contract require(isContract(target), "Address: call to non-contract"); } return returndata; } else { _revert(returndata, errorMessage); } } /** * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the * revert reason or using the provided one. * * _Available since v4.3._ */ function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { _revert(returndata, errorMessage); } } function _revert(bytes memory returndata, string memory errorMessage) private pure { // Look for revert reason and bubble it up if present if (returndata.length > 0) { // The easiest way to bubble the revert reason is using memory via assembly /// @solidity memory-safe-assembly assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } function _contextSuffixLength() internal view virtual returns (uint256) { return 0; } }
{ "optimizer": { "enabled": true, "runs": 1000 }, "evmVersion": "paris", "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":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"oldCap","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newCap","type":"uint256"}],"name":"CapIncrease","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"kUSDReceived","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"DepositPaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"DepositUnpaused","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositsClosed","type":"event"},{"anonymous":false,"inputs":[],"name":"DepositsOpened","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"oldAddress","type":"address"},{"indexed":false,"internalType":"address","name":"newAddress","type":"address"}],"name":"FeeAddressSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"MintFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferStarted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"protectorAdded","type":"address"}],"name":"ProtectorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"protectorRemoved","type":"address"}],"name":"ProtectorRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":true,"internalType":"address","name":"newProvider","type":"address"}],"name":"RateProviderUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"oldFee","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newFee","type":"uint256"}],"name":"RedeemFeeSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"staker","type":"address"},{"indexed":false,"internalType":"uint256","name":"kUSDBurned","type":"uint256"}],"name":"Redeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenAdded","type":"address"}],"name":"TokenAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"newBalance","type":"uint256"}],"name":"TokenBalanceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"tokenRemoved","type":"address"}],"name":"TokenRemoved","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":"FEE_DENOM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MIN_REDEEM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"acceptOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_protector","type":"address"}],"name":"addProtector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approvedToken","type":"address"},{"internalType":"address","name":"_vaultToken","type":"address"},{"internalType":"address","name":"_rateProvider","type":"address"},{"internalType":"uint256","name":"_cap","type":"uint256"}],"name":"addToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedProtector","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"approvedToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"approvedTokens","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"closeDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approvedToken","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_receipt","type":"bool"}],"name":"deposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"depositsOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"feeAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"mintFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numApprovedTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"pauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"pendingOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"recoverTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approvedTokenToReceive","type":"address"},{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_kUSDToRedeem","type":"uint256"}],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_protector","type":"address"}],"name":"removeProtector","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_approvedToken","type":"address"}],"name":"removeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"uint256","name":"_newCap","type":"uint256"}],"name":"setCap","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"setFeeAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setMintFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_fee","type":"uint256"}],"name":"setRedeemFee","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"tokens","outputs":[{"internalType":"address","name":"vaultToken","type":"address"},{"internalType":"address","name":"rateProvider","type":"address"},{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"deposited","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"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":"amount","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":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"name":"unpauseDeposits","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_token","type":"address"},{"internalType":"address","name":"_rateProvider","type":"address"}],"name":"updateRateProvider","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"vaultSupervisor","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"vaultToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
60a06040527354e44dbb92dba848ace27f44c0cb4268981ef1cc6080523480156200002957600080fd5b506040518060400160405280600a81526020016912d95c9b995b081554d160b21b815250604051806040016040528060048152602001631ad554d160e21b81525081600390816200007b9190620001f2565b5060046200008a8282620001f2565b505050620000a7620000a1620000d960201b60201c565b620000dd565b600554600780546001600160a01b0319166001600160a01b03909216919091179055600a600f556019601055620002be565b3390565b600680546001600160a01b0319169055620000f881620000fb565b50565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200017857607f821691505b6020821081036200019957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001ed57600081815260208120601f850160051c81016020861015620001c85750805b601f850160051c820191505b81811015620001e957828155600101620001d4565b5050505b505050565b81516001600160401b038111156200020e576200020e6200014d565b62000226816200021f845462000163565b846200019f565b602080601f8311600181146200025e5760008415620002455750858301515b600019600386901b1c1916600185901b178555620001e9565b600085815260208120601f198616915b828110156200028f578886015182559484019460019091019084016200026e565b5085821015620002ae5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516131ea620002e86000396000818161050a01528181611eb20152611f6301526131ea6000f3fe608060405234801561001057600080fd5b506004361061030a5760003560e01c80637235200e1161019c578063a9059cbb116100ee578063e30c397811610097578063f2fde38b11610071578063f2fde38b146106f5578063f4d770e414610708578063f8690117146103e857600080fd5b8063e30c397814610650578063e486033914610661578063eddd0d9c146106e257600080fd5b8063d0a8f24c116100c8578063d0a8f24c146105fb578063dbea37b814610604578063dd62ed3e1461061757600080fd5b8063a9059cbb146105bd578063b2b83111146105d0578063c3f81cc5146105f357600080fd5b80638da5cb5b1161015057806395d89b411161012a57806395d89b4114610599578063965fa21e146105a1578063a457c2d7146105aa57600080fd5b80638da5cb5b1461056d57806391f809631461057e5780639496fd1c1461059157600080fd5b806380ad2cf31161018157806380ad2cf31461053457806385184db7146105475780638705fcd41461055a57600080fd5b80637235200e1461050557806379ba50971461052c57600080fd5b806339509351116102605780635d841af51161020957806370a08231116101e357806370a08231146104c1578063711c8876146104ea578063715018a6146104fd57600080fd5b80635d841af5146104885780635f3e849f1461049b5780635fa7b584146104ae57600080fd5b80634df87c091161023a5780634df87c0914610435578063510985c014610458578063549c46271461047b57600080fd5b8063395093511461040657806341275358146104195780634886c6751461042c57600080fd5b806318160ddd116102c257806327c71b501161029c57806327c71b50146103d55780632a0c42a1146103e8578063313ce567146103f757600080fd5b806318160ddd1461038f5780631dafede01461039757806323b872dd146103c257600080fd5b8063095ea7b3116102f3578063095ea7b3146103425780630e6dfcd51461036557806313966db51461037857600080fd5b80630351b22b1461030f57806306fdde0314610324575b600080fd5b61032261031d366004612d6e565b61071b565b005b61032c6107dd565b6040516103399190612db4565b60405180910390f35b610355610350366004612de7565b61086f565b6040519015158152602001610339565b610322610373366004612e11565b610889565b610381600f5481565b604051908152602001610339565b600254610381565b6103aa6103a5366004612e4d565b610bc6565b6040516001600160a01b039091168152602001610339565b6103556103d0366004612e11565b610bf0565b6103226103e3366004612d6e565b610c14565b610381670de0b6b3a764000081565b60405160128152602001610339565b610355610414366004612de7565b610da0565b6007546103aa906001600160a01b031681565b61038161271081565b610355610443366004612d6e565b60096020526000908152604090205460ff1681565b610355610466366004612d6e565b600b6020526000908152604090205460ff1681565b600d546103559060ff1681565b610322610496366004612e4d565b610ddf565b6103226104a9366004612e11565b610e7e565b6103226104bc366004612d6e565b610f08565b6103816104cf366004612d6e565b6001600160a01b031660009081526020819052604090205490565b6103226104f8366004612d6e565b61119b565b610322611254565b6103aa7f000000000000000000000000000000000000000000000000000000000000000081565b610322611268565b610322610542366004612de7565b6112f6565b610322610555366004612e66565b611423565b610322610568366004612d6e565b6114e2565b6005546001600160a01b03166103aa565b61032261058c366004612e99565b61159a565b610322611766565b61032c611861565b61038160105481565b6103556105b8366004612de7565b611870565b6103556105cb366004612de7565b61191a565b6103556105de366004612d6e565b600a6020526000908152604090205460ff1681565b610322611928565b610381600e5481565b610322610612366004612d6e565b6119bb565b610381610625366004612e66565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6006546001600160a01b03166103aa565b6106ad61066f366004612d6e565b600c60205260009081526040902080546001820154600283015460038401546004909401546001600160a01b03938416949390921692909160ff1685565b604080516001600160a01b0396871681529590941660208601529284019190915260608301521515608082015260a001610339565b6103226106f0366004612e4d565b611ad7565b610322610703366004612d6e565b611b6e565b610322610716366004612ef2565b611bdf565b6107236121be565b6001600160a01b0381166000908152600b602052604090205460ff16156107915760405162461bcd60e51b815260206004820152601160248201527f416c72656164792050726f746563746f7200000000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166000818152600b6020526040808220805460ff19166001179055517ff13867159a6367ba345985a484e0a7618ca52cc88dd1e31406499f89287ba9009190a250565b6060600380546107ec90612f41565b80601f016020809104026020016040519081016040528092919081815260200182805461081890612f41565b80156108655780601f1061083a57610100808354040283529160200191610865565b820191906000526020600020905b81548152906001019060200180831161084857829003601f168201915b5050505050905090565b60003361087d818585612218565b60019150505b92915050565b6001600160a01b03831660009081526009602052604090205460ff166108f15760405162461bcd60e51b815260206004820152600960248201527f4e6f7420746f6b656e00000000000000000000000000000000000000000000006044820152606401610788565b670de0b6b3a76400008110156109495760405162461bcd60e51b815260206004820152601460248201527f4c657373207468616e206d696e2072656465656d0000000000000000000000006044820152606401610788565b6001600160a01b038084166000908152600c60209081526040808320815160a08101835281548616815260018201549095168584018190526002820154868401526003820154606087015260049182015460ff161515608087015282517f62321e8e000000000000000000000000000000000000000000000000000000008152925190936362321e8e9380840193919291908290030181865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a189190612f7b565b9050610a2c6005546001600160a01b031690565b6001600160a01b0316336001600160a01b031614158015610a5857506007546001600160a01b03163314155b8015610a6657506000601054115b15610ab157600061271060105485610a7e9190612faa565b610a889190612fc1565b9050610a948185612fe3565b600754909450610aaf9033906001600160a01b031683612370565b505b6000610abf6012600a6130da565b610ac98584612faa565b610ad39190612fc1565b90508083606001511015610b295760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682066756e647320746f2072656465656d20746f6b656e6044820152606401610788565b6001600160a01b0386166000908152600c602052604081206003018054839290610b54908490612fe3565b90915550610b649050338561255f565b8251610b7a6001600160a01b03821687846126c8565b856001600160a01b03167f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b936986604051610bb591815260200190565b60405180910390a250505050505050565b60088181548110610bd657600080fd5b6000918252602090912001546001600160a01b0316905081565b600033610bfe858285612771565b610c09858585612370565b506001949350505050565b336000908152600b602052604090205460ff1680610c3c57506005546001600160a01b031633145b610c885760405162461bcd60e51b815260206004820152601660248201527f4e6f7420617070726f7665642070726f746563746f72000000000000000000006044820152606401610788565b6001600160a01b03811660009081526009602052604090205460ff16610ce55760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b0381166000908152600c602052604090206004015460ff1615610d515760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c7265616479207061757365640000000000000000000000006044820152606401610788565b6001600160a01b0381166000818152600c6020526040808220600401805460ff19166001179055517f278126b2e1991e1ba19609bfc354c3308c2c71ca4e545c3171b68b1c0abba4209190a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061087d9082908690610dda9087906130e9565b612218565b610de76121be565b6032811115610e385760405162461bcd60e51b815260206004820152601260248201527f52656465656d20666565203e20302e35302500000000000000000000000000006044820152606401610788565b601080549082905560408051828152602081018490527fffec246ec3cd6013aa24cef90073be16c9fdfd36228cd46e72c9eea216a836ad91015b60405180910390a15050565b610e866121be565b6001600160a01b0382166000908152600a602052604090205460ff1615610eef5760405162461bcd60e51b815260206004820152601c60248201527f43616e204e6f74207472616e73666572207661756c7420746f6b656e000000006044820152606401610788565b610f036001600160a01b03831684836126c8565b505050565b610f106121be565b6001600160a01b03811660009081526009602052604090205460ff16610f6d5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b038082166000818152600c60208181526040808420815160a08101835281548816815260018201805489168286015260028301548285015260038301546060830152600483015460ff161515608083015287875260098552838720805460ff1990811690915582519099168752600a8552928620805490981690975594845291905280546001600160a01b0319908116909155825416909155600854905b8181101561111057836001600160a01b031660088281548110611037576110376130fc565b6000918252602090912001546001600160a01b03160361110057600861105e600184612fe3565b8154811061106e5761106e6130fc565b600091825260209091200154600880546001600160a01b03909216918390811061109a5761109a6130fc565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060088054806110d9576110d9613112565b600082815260209020810160001990810180546001600160a01b0319169055019055611110565b61110981613128565b9050611012565b50600e6000815461112090613141565b909155506040516001600160a01b03841681527f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd39060200160405180910390a16040516000906001600160a01b038516907f198f904b16806dad4efbe8f4ee9e422ab7e99c4a2a968c07684fa1fcf76d9e68908390a3505050565b6111a36121be565b6001600160a01b0381166000908152600b602052604090205460ff1661120b5760405162461bcd60e51b815260206004820152600d60248201527f4e6f742050726f746563746f72000000000000000000000000000000000000006044820152606401610788565b6001600160a01b0381166000818152600b6020526040808220805460ff19169055517fb9e541e39407dbb821dd624b82f5f06228d92ffe3ce830971cfd44f293c91a919190a250565b61125c6121be565b61126660006127fd565b565b60065433906001600160a01b031681146112ea5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610788565b6112f3816127fd565b50565b6112fe6121be565b6001600160a01b03821660009081526009602052604090205460ff1661135b5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b0382166000908152600c60205260409020600201548082116113c65760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f74206c6f77657220636170000000000000000000000000000000006044820152606401610788565b6001600160a01b0383166000818152600c602090815260409182902060020185905581518481529081018590527ff7eb57dc8fcd93bcdf9b13023381fa59ac731b50c479570ceaff0974bca022ba910160405180910390a2505050565b61142b6121be565b6001600160a01b03821660009081526009602052604090205460ff166114885760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b038281166000818152600c602052604080822060010180546001600160a01b0319169486169485179055517f198f904b16806dad4efbe8f4ee9e422ab7e99c4a2a968c07684fa1fcf76d9e689190a35050565b6114ea6121be565b6001600160a01b0381166115405760405162461bcd60e51b815260206004820152601760248201527f43616e206e6f74206265207a65726f20616464726573730000000000000000006044820152606401610788565b600780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f32c7f8c60f86ae20e5414c27c3d06e25fa775321683e23c95456c83d0ce0a6529101610e72565b6115a26121be565b6001600160a01b03841660009081526009602052604090205460ff161561160b5760405162461bcd60e51b815260206004820152600d60248201527f416c7265616479206164646564000000000000000000000000000000000000006044820152606401610788565b6001600160a01b038481166000908152600c60209081526040808320600983528184208054600160ff199182168117909255898716808752600a909552929094208054909216841790915580546001600160a01b0319908116909217815591820180549091169285169290921790915561168585836112f6565b6008805460018101825560009182527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b038816179055600e80549091906116df90613128565b909155506040516001600160a01b03861681527f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a49060200160405180910390a1826001600160a01b0316856001600160a01b03167f198f904b16806dad4efbe8f4ee9e422ab7e99c4a2a968c07684fa1fcf76d9e6860405160405180910390a35050505050565b336000908152600b602052604090205460ff168061178e57506005546001600160a01b031633145b6117da5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420617070726f7665642070726f746563746f72000000000000000000006044820152606401610788565b600d5460ff1661182c5760405162461bcd60e51b815260206004820152601760248201527f4465706f7369747320616c726561647920636c6f7365640000000000000000006044820152606401610788565b600d805460ff191690556040517f1a8ade30f60946b8fb7b4d1cf93dc594fa0e441eca24e1b9b88cfa375e3488b190600090a1565b6060600480546107ec90612f41565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561190d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610788565b610c098286868403612218565b60003361087d818585612370565b6119306121be565b600d5460ff16156119835760405162461bcd60e51b815260206004820152601760248201527f4465706f7369747320616c7265616479206f70656e65640000000000000000006044820152606401610788565b600d805460ff191660011790556040517fbd0d1cedfd4b96931ddded2368f63c090b88e5e313b383f6f95480bd4835acde90600090a1565b6119c36121be565b6001600160a01b03811660009081526009602052604090205460ff16611a205760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b0381166000908152600c602052604090206004015460ff16611a8b5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f7420706175736564000000000000000000000000000000006044820152606401610788565b6001600160a01b0381166000818152600c6020526040808220600401805460ff19169055517f060c47e20dcfff848b570ffc777cf30c3e518c1c3c52058f05564fbb880aeba49190a250565b611adf6121be565b6032811115611b305760405162461bcd60e51b815260206004820152601060248201527f4d696e7420666565203e20302e353025000000000000000000000000000000006044820152606401610788565b600f80549082905560408051828152602081018490527f387269377ae17304805d5f88cea4252e5ca47346783c279aeb9e8627335a49ac9101610e72565b611b766121be565b600680546001600160a01b0383166001600160a01b03199091168117909155611ba76005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600d5460ff16611c43576005546001600160a01b03163314611c435760405162461bcd60e51b815260206004820152601160248201527f4465706f73697473206e6f74206f70656e0000000000000000000000000000006044820152606401610788565b6001600160a01b038085166000818152600c60209081526040808320815160a081018352815487168152600182015490961686840152600281015486830152600381015460608701526004015460ff908116151560808701529383526009909152902054168015611cb657508060800151155b611d025760405162461bcd60e51b815260206004820152601b60248201527f4465706f73697473206e6f74206f70656e20666f7220746f6b656e00000000006044820152606401610788565b60008311611d525760405162461bcd60e51b815260206004820152601160248201527f43616e206e6f74206465706f73697420300000000000000000000000000000006044820152606401610788565b8060400151838260600151611d6791906130e9565b1115611db55760405162461bcd60e51b815260206004820152600b60248201527f45786365656473206361700000000000000000000000000000000000000000006044820152606401610788565b600081602001516001600160a01b03166333891fb76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1d9190612f7b565b825190915083611fc757611e3c6001600160a01b038816333088612816565b611e506001600160a01b0388168287612867565b60006064611e5f876063612faa565b611e699190612fc1565b6040517f0efe6a8b0000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260248201899052604482018390529192507f000000000000000000000000000000000000000000000000000000000000000090911690630efe6a8b906064016020604051808303816000875af1158015611efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f219190612f7b565b6040517f7fb2a0a10000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390529197507f000000000000000000000000000000000000000000000000000000000000000090911690637fb2a0a190604401600060405180830381600087803b158015611fa957600080fd5b505af1158015611fbd573d6000803e3d6000fd5b5050505050611fdc565b611fdc6001600160a01b038216333088612816565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120409190613158565b61204b90600a6130da565b6120558785612faa565b61205f9190612fc1565b9050670de0b6b3a76400008110156120b95760405162461bcd60e51b815260206004820152601260248201527f4c657373207468616e206d696e206d696e7400000000000000000000000000006044820152606401610788565b6005546001600160a01b031633148015906120df57506007546001600160a01b03163314155b80156120ed57506000600f54115b15612136576000612710600f54836121059190612faa565b61210f9190612fc1565b905061211b8183612fe3565b600754909250612134906001600160a01b03168261290b565b505b6001600160a01b0388166000908152600c6020526040812060030180548892906121619084906130e9565b909155506121719050878261290b565b866001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c826040516121ac91815260200190565b60405180910390a25050505050505050565b6005546001600160a01b031633146112665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610788565b6001600160a01b0383166122935760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b03821661230f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166123ec5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0382166124685760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b038316600090815260208190526040902054818110156124f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b50505050565b6001600160a01b0382166125db5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0382166000908152602081905260409020548181101561266a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052610f039084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526129ca565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461255957818110156127f05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610788565b6125598484848403612218565b600680546001600160a01b03191690556112f381612ab2565b6040516001600160a01b03808516602483015283166044820152606481018290526125599085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161270d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663095ea7b360e01b1790526128cd8482612b04565b612559576040516001600160a01b03841660248201526000604482015261290190859063095ea7b360e01b9060640161270d565b61255984826129ca565b6001600160a01b0382166129615760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610788565b806002600082825461297391906130e9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000612a1f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612bab9092919063ffffffff16565b9050805160001480612a40575080806020019051810190612a40919061317b565b610f035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610788565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000846001600160a01b031684604051612b219190613198565b6000604051808303816000865af19150503d8060008114612b5e576040519150601f19603f3d011682016040523d82523d6000602084013e612b63565b606091505b5091509150818015612b8d575080511580612b8d575080806020019051810190612b8d919061317b565b8015612ba257506001600160a01b0385163b15155b95945050505050565b6060612bba8484600085612bc2565b949350505050565b606082471015612c3a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610788565b600080866001600160a01b03168587604051612c569190613198565b60006040518083038185875af1925050503d8060008114612c93576040519150601f19603f3d011682016040523d82523d6000602084013e612c98565b606091505b5091509150612ca987838387612cb4565b979650505050505050565b60608315612d23578251600003612d1c576001600160a01b0385163b612d1c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610788565b5081612bba565b612bba8383815115612d385781518083602001fd5b8060405162461bcd60e51b81526004016107889190612db4565b80356001600160a01b0381168114612d6957600080fd5b919050565b600060208284031215612d8057600080fd5b612d8982612d52565b9392505050565b60005b83811015612dab578181015183820152602001612d93565b50506000910152565b6020815260008251806020840152612dd3816040850160208701612d90565b601f01601f19169190910160400192915050565b60008060408385031215612dfa57600080fd5b612e0383612d52565b946020939093013593505050565b600080600060608486031215612e2657600080fd5b612e2f84612d52565b9250612e3d60208501612d52565b9150604084013590509250925092565b600060208284031215612e5f57600080fd5b5035919050565b60008060408385031215612e7957600080fd5b612e8283612d52565b9150612e9060208401612d52565b90509250929050565b60008060008060808587031215612eaf57600080fd5b612eb885612d52565b9350612ec660208601612d52565b9250612ed460408601612d52565b9396929550929360600135925050565b80151581146112f357600080fd5b60008060008060808587031215612f0857600080fd5b612f1185612d52565b9350612f1f60208601612d52565b9250604085013591506060850135612f3681612ee4565b939692955090935050565b600181811c90821680612f5557607f821691505b602082108103612f7557634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612f8d57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761088357610883612f94565b600082612fde57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561088357610883612f94565b600181815b8085111561303157816000190482111561301757613017612f94565b8085161561302457918102915b93841c9390800290612ffb565b509250929050565b60008261304857506001610883565b8161305557506000610883565b816001811461306b576002811461307557613091565b6001915050610883565b60ff84111561308657613086612f94565b50506001821b610883565b5060208310610133831016604e8410600b84101617156130b4575081810a610883565b6130be8383612ff6565b80600019048211156130d2576130d2612f94565b029392505050565b6000612d8960ff841683613039565b8082018082111561088357610883612f94565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006001820161313a5761313a612f94565b5060010190565b60008161315057613150612f94565b506000190190565b60006020828403121561316a57600080fd5b815160ff81168114612d8957600080fd5b60006020828403121561318d57600080fd5b8151612d8981612ee4565b600082516131aa818460208701612d90565b919091019291505056fea2646970667358221220e7eb0ea33035540100abfda4a0d60687a63d4b2afb40e4f94176093358d7a69c64736f6c63430008140033
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061030a5760003560e01c80637235200e1161019c578063a9059cbb116100ee578063e30c397811610097578063f2fde38b11610071578063f2fde38b146106f5578063f4d770e414610708578063f8690117146103e857600080fd5b8063e30c397814610650578063e486033914610661578063eddd0d9c146106e257600080fd5b8063d0a8f24c116100c8578063d0a8f24c146105fb578063dbea37b814610604578063dd62ed3e1461061757600080fd5b8063a9059cbb146105bd578063b2b83111146105d0578063c3f81cc5146105f357600080fd5b80638da5cb5b1161015057806395d89b411161012a57806395d89b4114610599578063965fa21e146105a1578063a457c2d7146105aa57600080fd5b80638da5cb5b1461056d57806391f809631461057e5780639496fd1c1461059157600080fd5b806380ad2cf31161018157806380ad2cf31461053457806385184db7146105475780638705fcd41461055a57600080fd5b80637235200e1461050557806379ba50971461052c57600080fd5b806339509351116102605780635d841af51161020957806370a08231116101e357806370a08231146104c1578063711c8876146104ea578063715018a6146104fd57600080fd5b80635d841af5146104885780635f3e849f1461049b5780635fa7b584146104ae57600080fd5b80634df87c091161023a5780634df87c0914610435578063510985c014610458578063549c46271461047b57600080fd5b8063395093511461040657806341275358146104195780634886c6751461042c57600080fd5b806318160ddd116102c257806327c71b501161029c57806327c71b50146103d55780632a0c42a1146103e8578063313ce567146103f757600080fd5b806318160ddd1461038f5780631dafede01461039757806323b872dd146103c257600080fd5b8063095ea7b3116102f3578063095ea7b3146103425780630e6dfcd51461036557806313966db51461037857600080fd5b80630351b22b1461030f57806306fdde0314610324575b600080fd5b61032261031d366004612d6e565b61071b565b005b61032c6107dd565b6040516103399190612db4565b60405180910390f35b610355610350366004612de7565b61086f565b6040519015158152602001610339565b610322610373366004612e11565b610889565b610381600f5481565b604051908152602001610339565b600254610381565b6103aa6103a5366004612e4d565b610bc6565b6040516001600160a01b039091168152602001610339565b6103556103d0366004612e11565b610bf0565b6103226103e3366004612d6e565b610c14565b610381670de0b6b3a764000081565b60405160128152602001610339565b610355610414366004612de7565b610da0565b6007546103aa906001600160a01b031681565b61038161271081565b610355610443366004612d6e565b60096020526000908152604090205460ff1681565b610355610466366004612d6e565b600b6020526000908152604090205460ff1681565b600d546103559060ff1681565b610322610496366004612e4d565b610ddf565b6103226104a9366004612e11565b610e7e565b6103226104bc366004612d6e565b610f08565b6103816104cf366004612d6e565b6001600160a01b031660009081526020819052604090205490565b6103226104f8366004612d6e565b61119b565b610322611254565b6103aa7f00000000000000000000000054e44dbb92dba848ace27f44c0cb4268981ef1cc81565b610322611268565b610322610542366004612de7565b6112f6565b610322610555366004612e66565b611423565b610322610568366004612d6e565b6114e2565b6005546001600160a01b03166103aa565b61032261058c366004612e99565b61159a565b610322611766565b61032c611861565b61038160105481565b6103556105b8366004612de7565b611870565b6103556105cb366004612de7565b61191a565b6103556105de366004612d6e565b600a6020526000908152604090205460ff1681565b610322611928565b610381600e5481565b610322610612366004612d6e565b6119bb565b610381610625366004612e66565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6006546001600160a01b03166103aa565b6106ad61066f366004612d6e565b600c60205260009081526040902080546001820154600283015460038401546004909401546001600160a01b03938416949390921692909160ff1685565b604080516001600160a01b0396871681529590941660208601529284019190915260608301521515608082015260a001610339565b6103226106f0366004612e4d565b611ad7565b610322610703366004612d6e565b611b6e565b610322610716366004612ef2565b611bdf565b6107236121be565b6001600160a01b0381166000908152600b602052604090205460ff16156107915760405162461bcd60e51b815260206004820152601160248201527f416c72656164792050726f746563746f7200000000000000000000000000000060448201526064015b60405180910390fd5b6001600160a01b0381166000818152600b6020526040808220805460ff19166001179055517ff13867159a6367ba345985a484e0a7618ca52cc88dd1e31406499f89287ba9009190a250565b6060600380546107ec90612f41565b80601f016020809104026020016040519081016040528092919081815260200182805461081890612f41565b80156108655780601f1061083a57610100808354040283529160200191610865565b820191906000526020600020905b81548152906001019060200180831161084857829003601f168201915b5050505050905090565b60003361087d818585612218565b60019150505b92915050565b6001600160a01b03831660009081526009602052604090205460ff166108f15760405162461bcd60e51b815260206004820152600960248201527f4e6f7420746f6b656e00000000000000000000000000000000000000000000006044820152606401610788565b670de0b6b3a76400008110156109495760405162461bcd60e51b815260206004820152601460248201527f4c657373207468616e206d696e2072656465656d0000000000000000000000006044820152606401610788565b6001600160a01b038084166000908152600c60209081526040808320815160a08101835281548616815260018201549095168584018190526002820154868401526003820154606087015260049182015460ff161515608087015282517f62321e8e000000000000000000000000000000000000000000000000000000008152925190936362321e8e9380840193919291908290030181865afa1580156109f4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a189190612f7b565b9050610a2c6005546001600160a01b031690565b6001600160a01b0316336001600160a01b031614158015610a5857506007546001600160a01b03163314155b8015610a6657506000601054115b15610ab157600061271060105485610a7e9190612faa565b610a889190612fc1565b9050610a948185612fe3565b600754909450610aaf9033906001600160a01b031683612370565b505b6000610abf6012600a6130da565b610ac98584612faa565b610ad39190612fc1565b90508083606001511015610b295760405162461bcd60e51b815260206004820181905260248201527f4e6f7420656e6f7567682066756e647320746f2072656465656d20746f6b656e6044820152606401610788565b6001600160a01b0386166000908152600c602052604081206003018054839290610b54908490612fe3565b90915550610b649050338561255f565b8251610b7a6001600160a01b03821687846126c8565b856001600160a01b03167f4896181ff8f4543cc00db9fe9b6fb7e6f032b7eb772c72ab1ec1b4d2e03b936986604051610bb591815260200190565b60405180910390a250505050505050565b60088181548110610bd657600080fd5b6000918252602090912001546001600160a01b0316905081565b600033610bfe858285612771565b610c09858585612370565b506001949350505050565b336000908152600b602052604090205460ff1680610c3c57506005546001600160a01b031633145b610c885760405162461bcd60e51b815260206004820152601660248201527f4e6f7420617070726f7665642070726f746563746f72000000000000000000006044820152606401610788565b6001600160a01b03811660009081526009602052604090205460ff16610ce55760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b0381166000908152600c602052604090206004015460ff1615610d515760405162461bcd60e51b815260206004820152601460248201527f546f6b656e20616c7265616479207061757365640000000000000000000000006044820152606401610788565b6001600160a01b0381166000818152600c6020526040808220600401805460ff19166001179055517f278126b2e1991e1ba19609bfc354c3308c2c71ca4e545c3171b68b1c0abba4209190a250565b3360008181526001602090815260408083206001600160a01b038716845290915281205490919061087d9082908690610dda9087906130e9565b612218565b610de76121be565b6032811115610e385760405162461bcd60e51b815260206004820152601260248201527f52656465656d20666565203e20302e35302500000000000000000000000000006044820152606401610788565b601080549082905560408051828152602081018490527fffec246ec3cd6013aa24cef90073be16c9fdfd36228cd46e72c9eea216a836ad91015b60405180910390a15050565b610e866121be565b6001600160a01b0382166000908152600a602052604090205460ff1615610eef5760405162461bcd60e51b815260206004820152601c60248201527f43616e204e6f74207472616e73666572207661756c7420746f6b656e000000006044820152606401610788565b610f036001600160a01b03831684836126c8565b505050565b610f106121be565b6001600160a01b03811660009081526009602052604090205460ff16610f6d5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b038082166000818152600c60208181526040808420815160a08101835281548816815260018201805489168286015260028301548285015260038301546060830152600483015460ff161515608083015287875260098552838720805460ff1990811690915582519099168752600a8552928620805490981690975594845291905280546001600160a01b0319908116909155825416909155600854905b8181101561111057836001600160a01b031660088281548110611037576110376130fc565b6000918252602090912001546001600160a01b03160361110057600861105e600184612fe3565b8154811061106e5761106e6130fc565b600091825260209091200154600880546001600160a01b03909216918390811061109a5761109a6130fc565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060088054806110d9576110d9613112565b600082815260209020810160001990810180546001600160a01b0319169055019055611110565b61110981613128565b9050611012565b50600e6000815461112090613141565b909155506040516001600160a01b03841681527f4c910b69fe65a61f7531b9c5042b2329ca7179c77290aa7e2eb3afa3c8511fd39060200160405180910390a16040516000906001600160a01b038516907f198f904b16806dad4efbe8f4ee9e422ab7e99c4a2a968c07684fa1fcf76d9e68908390a3505050565b6111a36121be565b6001600160a01b0381166000908152600b602052604090205460ff1661120b5760405162461bcd60e51b815260206004820152600d60248201527f4e6f742050726f746563746f72000000000000000000000000000000000000006044820152606401610788565b6001600160a01b0381166000818152600b6020526040808220805460ff19169055517fb9e541e39407dbb821dd624b82f5f06228d92ffe3ce830971cfd44f293c91a919190a250565b61125c6121be565b61126660006127fd565b565b60065433906001600160a01b031681146112ea5760405162461bcd60e51b815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e657200000000000000000000000000000000000000000000006064820152608401610788565b6112f3816127fd565b50565b6112fe6121be565b6001600160a01b03821660009081526009602052604090205460ff1661135b5760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b0382166000908152600c60205260409020600201548082116113c65760405162461bcd60e51b815260206004820152601060248201527f43616e6e6f74206c6f77657220636170000000000000000000000000000000006044820152606401610788565b6001600160a01b0383166000818152600c602090815260409182902060020185905581518481529081018590527ff7eb57dc8fcd93bcdf9b13023381fa59ac731b50c479570ceaff0974bca022ba910160405180910390a2505050565b61142b6121be565b6001600160a01b03821660009081526009602052604090205460ff166114885760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b038281166000818152600c602052604080822060010180546001600160a01b0319169486169485179055517f198f904b16806dad4efbe8f4ee9e422ab7e99c4a2a968c07684fa1fcf76d9e689190a35050565b6114ea6121be565b6001600160a01b0381166115405760405162461bcd60e51b815260206004820152601760248201527f43616e206e6f74206265207a65726f20616464726573730000000000000000006044820152606401610788565b600780546001600160a01b038381166001600160a01b031983168117909355604080519190921680825260208201939093527f32c7f8c60f86ae20e5414c27c3d06e25fa775321683e23c95456c83d0ce0a6529101610e72565b6115a26121be565b6001600160a01b03841660009081526009602052604090205460ff161561160b5760405162461bcd60e51b815260206004820152600d60248201527f416c7265616479206164646564000000000000000000000000000000000000006044820152606401610788565b6001600160a01b038481166000908152600c60209081526040808320600983528184208054600160ff199182168117909255898716808752600a909552929094208054909216841790915580546001600160a01b0319908116909217815591820180549091169285169290921790915561168585836112f6565b6008805460018101825560009182527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30180546001600160a01b0319166001600160a01b038816179055600e80549091906116df90613128565b909155506040516001600160a01b03861681527f784c8f4dbf0ffedd6e72c76501c545a70f8b203b30a26ce542bf92ba87c248a49060200160405180910390a1826001600160a01b0316856001600160a01b03167f198f904b16806dad4efbe8f4ee9e422ab7e99c4a2a968c07684fa1fcf76d9e6860405160405180910390a35050505050565b336000908152600b602052604090205460ff168061178e57506005546001600160a01b031633145b6117da5760405162461bcd60e51b815260206004820152601660248201527f4e6f7420617070726f7665642070726f746563746f72000000000000000000006044820152606401610788565b600d5460ff1661182c5760405162461bcd60e51b815260206004820152601760248201527f4465706f7369747320616c726561647920636c6f7365640000000000000000006044820152606401610788565b600d805460ff191690556040517f1a8ade30f60946b8fb7b4d1cf93dc594fa0e441eca24e1b9b88cfa375e3488b190600090a1565b6060600480546107ec90612f41565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561190d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f0000000000000000000000000000000000000000000000000000006064820152608401610788565b610c098286868403612218565b60003361087d818585612370565b6119306121be565b600d5460ff16156119835760405162461bcd60e51b815260206004820152601760248201527f4465706f7369747320616c7265616479206f70656e65640000000000000000006044820152606401610788565b600d805460ff191660011790556040517fbd0d1cedfd4b96931ddded2368f63c090b88e5e313b383f6f95480bd4835acde90600090a1565b6119c36121be565b6001600160a01b03811660009081526009602052604090205460ff16611a205760405162461bcd60e51b81526020600482015260126024820152712737ba1030b8383937bb32b2103a37b5b2b760711b6044820152606401610788565b6001600160a01b0381166000908152600c602052604090206004015460ff16611a8b5760405162461bcd60e51b815260206004820152601060248201527f546f6b656e206e6f7420706175736564000000000000000000000000000000006044820152606401610788565b6001600160a01b0381166000818152600c6020526040808220600401805460ff19169055517f060c47e20dcfff848b570ffc777cf30c3e518c1c3c52058f05564fbb880aeba49190a250565b611adf6121be565b6032811115611b305760405162461bcd60e51b815260206004820152601060248201527f4d696e7420666565203e20302e353025000000000000000000000000000000006044820152606401610788565b600f80549082905560408051828152602081018490527f387269377ae17304805d5f88cea4252e5ca47346783c279aeb9e8627335a49ac9101610e72565b611b766121be565b600680546001600160a01b0383166001600160a01b03199091168117909155611ba76005546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b600d5460ff16611c43576005546001600160a01b03163314611c435760405162461bcd60e51b815260206004820152601160248201527f4465706f73697473206e6f74206f70656e0000000000000000000000000000006044820152606401610788565b6001600160a01b038085166000818152600c60209081526040808320815160a081018352815487168152600182015490961686840152600281015486830152600381015460608701526004015460ff908116151560808701529383526009909152902054168015611cb657508060800151155b611d025760405162461bcd60e51b815260206004820152601b60248201527f4465706f73697473206e6f74206f70656e20666f7220746f6b656e00000000006044820152606401610788565b60008311611d525760405162461bcd60e51b815260206004820152601160248201527f43616e206e6f74206465706f73697420300000000000000000000000000000006044820152606401610788565b8060400151838260600151611d6791906130e9565b1115611db55760405162461bcd60e51b815260206004820152600b60248201527f45786365656473206361700000000000000000000000000000000000000000006044820152606401610788565b600081602001516001600160a01b03166333891fb76040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1d9190612f7b565b825190915083611fc757611e3c6001600160a01b038816333088612816565b611e506001600160a01b0388168287612867565b60006064611e5f876063612faa565b611e699190612fc1565b6040517f0efe6a8b0000000000000000000000000000000000000000000000000000000081526001600160a01b03848116600483015260248201899052604482018390529192507f00000000000000000000000054e44dbb92dba848ace27f44c0cb4268981ef1cc90911690630efe6a8b906064016020604051808303816000875af1158015611efd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f219190612f7b565b6040517f7fb2a0a10000000000000000000000000000000000000000000000000000000081526001600160a01b038481166004830152602482018390529197507f00000000000000000000000054e44dbb92dba848ace27f44c0cb4268981ef1cc90911690637fb2a0a190604401600060405180830381600087803b158015611fa957600080fd5b505af1158015611fbd573d6000803e3d6000fd5b5050505050611fdc565b611fdc6001600160a01b038216333088612816565b6000816001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561201c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120409190613158565b61204b90600a6130da565b6120558785612faa565b61205f9190612fc1565b9050670de0b6b3a76400008110156120b95760405162461bcd60e51b815260206004820152601260248201527f4c657373207468616e206d696e206d696e7400000000000000000000000000006044820152606401610788565b6005546001600160a01b031633148015906120df57506007546001600160a01b03163314155b80156120ed57506000600f54115b15612136576000612710600f54836121059190612faa565b61210f9190612fc1565b905061211b8183612fe3565b600754909250612134906001600160a01b03168261290b565b505b6001600160a01b0388166000908152600c6020526040812060030180548892906121619084906130e9565b909155506121719050878261290b565b866001600160a01b03167fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c826040516121ac91815260200190565b60405180910390a25050505050505050565b6005546001600160a01b031633146112665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610788565b6001600160a01b0383166122935760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b03821661230f5760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f73730000000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b0383166123ec5760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f64726573730000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0382166124685760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f65737300000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b038316600090815260208190526040902054818110156124f75760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e636500000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b03848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35b50505050565b6001600160a01b0382166125db5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f73000000000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0382166000908152602081905260409020548181101561266a5760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f63650000000000000000000000000000000000000000000000000000000000006064820152608401610788565b6001600160a01b0383166000818152602081815260408083208686039055600280548790039055518581529192917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3505050565b6040516001600160a01b038316602482015260448101829052610f039084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526129ca565b6001600160a01b03838116600090815260016020908152604080832093861683529290522054600019811461255957818110156127f05760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e63650000006044820152606401610788565b6125598484848403612218565b600680546001600160a01b03191690556112f381612ab2565b6040516001600160a01b03808516602483015283166044820152606481018290526125599085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161270d565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1663095ea7b360e01b1790526128cd8482612b04565b612559576040516001600160a01b03841660248201526000604482015261290190859063095ea7b360e01b9060640161270d565b61255984826129ca565b6001600160a01b0382166129615760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610788565b806002600082825461297391906130e9565b90915550506001600160a01b038216600081815260208181526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a35050565b6000612a1f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316612bab9092919063ffffffff16565b9050805160001480612a40575080806020019051810190612a40919061317b565b610f035760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610788565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000806000846001600160a01b031684604051612b219190613198565b6000604051808303816000865af19150503d8060008114612b5e576040519150601f19603f3d011682016040523d82523d6000602084013e612b63565b606091505b5091509150818015612b8d575080511580612b8d575080806020019051810190612b8d919061317b565b8015612ba257506001600160a01b0385163b15155b95945050505050565b6060612bba8484600085612bc2565b949350505050565b606082471015612c3a5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610788565b600080866001600160a01b03168587604051612c569190613198565b60006040518083038185875af1925050503d8060008114612c93576040519150601f19603f3d011682016040523d82523d6000602084013e612c98565b606091505b5091509150612ca987838387612cb4565b979650505050505050565b60608315612d23578251600003612d1c576001600160a01b0385163b612d1c5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610788565b5081612bba565b612bba8383815115612d385781518083602001fd5b8060405162461bcd60e51b81526004016107889190612db4565b80356001600160a01b0381168114612d6957600080fd5b919050565b600060208284031215612d8057600080fd5b612d8982612d52565b9392505050565b60005b83811015612dab578181015183820152602001612d93565b50506000910152565b6020815260008251806020840152612dd3816040850160208701612d90565b601f01601f19169190910160400192915050565b60008060408385031215612dfa57600080fd5b612e0383612d52565b946020939093013593505050565b600080600060608486031215612e2657600080fd5b612e2f84612d52565b9250612e3d60208501612d52565b9150604084013590509250925092565b600060208284031215612e5f57600080fd5b5035919050565b60008060408385031215612e7957600080fd5b612e8283612d52565b9150612e9060208401612d52565b90509250929050565b60008060008060808587031215612eaf57600080fd5b612eb885612d52565b9350612ec660208601612d52565b9250612ed460408601612d52565b9396929550929360600135925050565b80151581146112f357600080fd5b60008060008060808587031215612f0857600080fd5b612f1185612d52565b9350612f1f60208601612d52565b9250604085013591506060850135612f3681612ee4565b939692955090935050565b600181811c90821680612f5557607f821691505b602082108103612f7557634e487b7160e01b600052602260045260246000fd5b50919050565b600060208284031215612f8d57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761088357610883612f94565b600082612fde57634e487b7160e01b600052601260045260246000fd5b500490565b8181038181111561088357610883612f94565b600181815b8085111561303157816000190482111561301757613017612f94565b8085161561302457918102915b93841c9390800290612ffb565b509250929050565b60008261304857506001610883565b8161305557506000610883565b816001811461306b576002811461307557613091565b6001915050610883565b60ff84111561308657613086612f94565b50506001821b610883565b5060208310610133831016604e8410600b84101617156130b4575081810a610883565b6130be8383612ff6565b80600019048211156130d2576130d2612f94565b029392505050565b6000612d8960ff841683613039565b8082018082111561088357610883612f94565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052603160045260246000fd5b60006001820161313a5761313a612f94565b5060010190565b60008161315057613150612f94565b506000190190565b60006020828403121561316a57600080fd5b815160ff81168114612d8957600080fd5b60006020828403121561318d57600080fd5b8151612d8981612ee4565b600082516131aa818460208701612d90565b919091019291505056fea2646970667358221220e7eb0ea33035540100abfda4a0d60687a63d4b2afb40e4f94176093358d7a69c64736f6c63430008140033
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.