ERC-20
Overview
Max Total Supply
11,559,270.898172911625975272 SSSIP-UNO
Holders
83
Market
Onchain Market Cap
$0.00
Circulating Supply Market Cap
-
Other Info
Token Contract (WITH 18 Decimals)
Balance
6,652.50584 SSSIP-UNOValue
$0.00Loading...
Loading
Loading...
Loading
Loading...
Loading
# | Exchange | Pair | Price | 24H Volume | % Volume |
---|
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x929F5244...f63Cf0Ab1 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
RiskPool
Compiler Version
v0.8.23+commit.f704f362
Optimization Enabled:
Yes with 200 runs
Other Settings:
paris EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: GPL-3.0 pragma solidity =0.8.23; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "./RiskPoolERC20.sol"; import "./interfaces/ISingleSidedReinsurancePool.sol"; import "./interfaces/IRiskPool.sol"; import "./libraries/TransferHelper.sol"; contract RiskPool is IRiskPool, RiskPoolERC20 { // ERC20 attributes string public name; string public symbol; address public SSRP; address public override currency; // for now we should accept only UNO uint256 public override lpPriceUno; uint256 public MIN_LP_CAPITAL = 1e7; event LogCancelWithdrawRequest(address indexed _user, uint256 _amount, uint256 _amountInUno); event LogPolicyClaim(address indexed _user, uint256 _amount); event LogMigrateLP(address indexed _user, address indexed _migrateTo, uint256 _unoAmount); event LogLeaveFromPending(address indexed _user, uint256 _withdrawLpAmount, uint256 _withdrawUnoAmount); constructor(string memory _name, string memory _symbol, address _SSRP, address _currency) { require(_SSRP != address(0), "UnoRe: zero pool address"); name = _name; symbol = _symbol; SSRP = _SSRP; currency = _currency; lpPriceUno = 1e18; if (_currency == address(0)) { MIN_LP_CAPITAL = 7 * 1e15; } } modifier onlySSRP() { require(msg.sender == SSRP, "UnoRe: RiskPool Forbidden"); _; } receive() external payable {} function decimals() external view virtual override returns (uint8) { return IERC20Metadata(currency).decimals(); } /** * @dev Users can stake only through Cohort */ function enter(address _from, uint256 _amount) external override onlySSRP { _mint(_from, (_amount * 1e18) / lpPriceUno); } /** * @param _amount UNO amount to withdraw */ function leaveFromPoolInPending(address _to, uint256 _amount) external override onlySSRP { require(totalSupply() > 0, "UnoRe: There's no remaining in the pool"); uint256 requestAmountInLP = (_amount * 1e18) / lpPriceUno; require( (requestAmountInLP + uint256(withdrawRequestPerUser[_to].pendingAmount)) <= balanceOf(_to), "UnoRe: lp balance overflow" ); _withdrawRequest(_to, requestAmountInLP, _amount); } /** * @dev withdraw from pending, only pool contract can call this function */ function leaveFromPending(address _to, uint256 _amount) external override onlySSRP returns (uint256, uint256) { uint256 cryptoBalance = currency != address(0) ? IERC20(currency).balanceOf(address(this)) : address(this).balance; uint256 pendingAmount = uint256(withdrawRequestPerUser[_to].pendingAmount); require(_amount <= pendingAmount, "Amount should less than pending amount"); require(cryptoBalance > 0, "UnoRe: zero uno balance"); require(balanceOf(_to) >= _amount, "UnoRe: lp balance overflow"); uint256 amountInUno = (_amount * lpPriceUno) / 1e18; if (cryptoBalance - MIN_LP_CAPITAL > amountInUno) { _withdrawImplement(_to); if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, amountInUno); } else { TransferHelper.safeTransferETH(_to, amountInUno); } emit LogLeaveFromPending(_to, pendingAmount, amountInUno); return (pendingAmount, amountInUno); } else { _withdrawImplementIrregular(_to, ((cryptoBalance - MIN_LP_CAPITAL) * 1e18) / lpPriceUno); if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, cryptoBalance - MIN_LP_CAPITAL); } else { TransferHelper.safeTransferETH(_to, cryptoBalance - MIN_LP_CAPITAL); } emit LogLeaveFromPending(_to, ((cryptoBalance - MIN_LP_CAPITAL) * 1e18) / lpPriceUno, cryptoBalance - MIN_LP_CAPITAL); return (((cryptoBalance - MIN_LP_CAPITAL) * 1e18) / lpPriceUno, cryptoBalance - MIN_LP_CAPITAL); } } /** * @dev cancel pending request, only pool contract can call this function */ function cancelWithdrawRequest(address _to) external override onlySSRP returns (uint256, uint256) { uint256 _pendingAmount = uint256(withdrawRequestPerUser[_to].pendingAmount); require(_pendingAmount > 0, "UnoRe: zero amount"); _cancelWithdrawRequest(_to); emit LogCancelWithdrawRequest(_to, _pendingAmount, (_pendingAmount * lpPriceUno) / 1e18); return (_pendingAmount, (_pendingAmount * lpPriceUno) / 1e18); } /** * @dev claim policy to `_to` by `_amount`, only pool contract can call this function */ function policyClaim(address _to, uint256 _amount) external override onlySSRP returns (uint256 realClaimAmount) { uint256 cryptoBalance = currency != address(0) ? IERC20(currency).balanceOf(address(this)) : address(this).balance; require(totalSupply() > 0, "UnoRe: zero lp balance"); require(cryptoBalance > MIN_LP_CAPITAL, "UnoRe: minimum UNO capital underflow"); if (cryptoBalance - MIN_LP_CAPITAL > _amount) { if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, _amount); } else { TransferHelper.safeTransferETH(_to, _amount); } realClaimAmount = _amount; emit LogPolicyClaim(_to, _amount); } else { if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, cryptoBalance - MIN_LP_CAPITAL); } else { TransferHelper.safeTransferETH(_to, cryptoBalance - MIN_LP_CAPITAL); } realClaimAmount = cryptoBalance - MIN_LP_CAPITAL; emit LogPolicyClaim(_to, cryptoBalance - MIN_LP_CAPITAL); } cryptoBalance = currency != address(0) ? IERC20(currency).balanceOf(address(this)) : address(this).balance; lpPriceUno = (cryptoBalance * 1e18) / totalSupply(); // UNO value per lp } /** * @dev emergency withdraw from pool, this will not harvest rewards, only pool contract can call this function */ function emergencyWithdraw(address _to, uint256 _amount) external override onlySSRP returns (bool) { uint256 cryptoBalance = currency != address(0) ? IERC20(currency).balanceOf(address(this)) : address(this).balance; require(cryptoBalance > 0, "UnoRe: zero uno balance"); _emergencyWithdraw(_to); uint256 amount = (_amount * lpPriceUno) / 1e18; if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, amount); } else { TransferHelper.safeTransferETH(_to, amount); } return true; } function migrateLP(address _to, address _migrateTo, bool _isUnLocked) external override onlySSRP returns (uint256) { require(_migrateTo != address(0), "UnoRe: zero address"); uint256 migratedAmount; uint256 cryptoBalance; if (_isUnLocked && withdrawRequestPerUser[_to].pendingAmount > 0) { uint256 pendingAmountInUno = (uint256(withdrawRequestPerUser[_to].pendingAmount) * lpPriceUno) / 1e18; cryptoBalance = currency != address(0) ? IERC20(currency).balanceOf(address(this)) : address(this).balance; if (pendingAmountInUno < cryptoBalance - MIN_LP_CAPITAL) { if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, pendingAmountInUno); } else { TransferHelper.safeTransferETH(_to, pendingAmountInUno); } _withdrawImplement(_to); } else { if (currency != address(0)) { TransferHelper.safeTransfer(currency, _to, cryptoBalance - MIN_LP_CAPITAL); } else { TransferHelper.safeTransferETH(_to, cryptoBalance - MIN_LP_CAPITAL); } _withdrawImplementIrregular(_to, ((cryptoBalance - MIN_LP_CAPITAL) * 1e18) / lpPriceUno); } } else { if (withdrawRequestPerUser[_to].pendingAmount > 0) { _cancelWithdrawRequest(_to); } } cryptoBalance = currency != address(0) ? IERC20(currency).balanceOf(address(this)) : address(this).balance; uint256 unoBalance = (balanceOf(_to) * lpPriceUno) / 1e18; if (unoBalance < cryptoBalance - MIN_LP_CAPITAL) { if (currency != address(0)) { TransferHelper.safeTransfer(currency, _migrateTo, unoBalance); } else { TransferHelper.safeTransferETH(_migrateTo, unoBalance); } migratedAmount += unoBalance; emit LogMigrateLP(_to, _migrateTo, unoBalance); } else { if (currency != address(0)) { TransferHelper.safeTransfer(currency, _migrateTo, cryptoBalance - MIN_LP_CAPITAL); } else { TransferHelper.safeTransferETH(_migrateTo, cryptoBalance - MIN_LP_CAPITAL); } migratedAmount += cryptoBalance - MIN_LP_CAPITAL; emit LogMigrateLP(_to, _migrateTo, cryptoBalance - MIN_LP_CAPITAL); } _burn(_to, balanceOf(_to)); return migratedAmount; } /** * @dev update min lp capital, only pool call this function */ function setMinLPCapital(uint256 _minLPCapital) external override onlySSRP { require(_minLPCapital > 0, "UnoRe: not allow zero value"); MIN_LP_CAPITAL = _minLPCapital; } /** * @dev return user withdraw request amount, amount in uno and time */ function getWithdrawRequest(address _to) external view override onlySSRP returns (uint256, uint256, uint256) { return ( uint256(withdrawRequestPerUser[_to].pendingAmount), uint256(withdrawRequestPerUser[_to].requestTime), withdrawRequestPerUser[_to].pendingUno ); } function getTotalWithdrawRequestAmount() external view override onlySSRP returns (uint256) { return totalWithdrawPending; } function transfer(address recipient, uint256 amount) external override returns (bool) { require( balanceOf(msg.sender) - uint256(withdrawRequestPerUser[msg.sender].pendingAmount) >= amount, "ERC20: transfer amount exceeds balance or pending WR" ); _transfer(msg.sender, recipient, amount); ISingleSidedReinsurancePool(SSRP).lpTransfer(msg.sender, recipient, amount); return true; } function transferFrom(address sender, address recipient, uint256 amount) external override returns (bool) { require( balanceOf(sender) - uint256(withdrawRequestPerUser[sender].pendingAmount) >= amount, "ERC20: transfer amount exceeds balance or pending WR" ); _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][msg.sender]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, msg.sender, currentAllowance - amount); ISingleSidedReinsurancePool(SSRP).lpTransfer(sender, recipient, amount); return true; } function setLpPriceUno(uint256 _lpPriceUno) external onlySSRP { lpPriceUno = _lpPriceUno; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Metadata.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; /** * @dev Interface for the optional metadata functions from the ERC20 standard. */ 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 v5.0.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.20; /** * @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 value of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the value of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves a `value` amount of 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 value) 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 a `value` amount of tokens 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 value) external returns (bool); /** * @dev Moves a `value` amount of tokens from `from` to `to` using the * allowance mechanism. `value` 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 value) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol) pragma solidity ^0.8.20; /** * @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; } }
// SPDX-License-Identifier: GPL-3.0 pragma solidity =0.8.23; interface IRiskPool { function enter(address _from, uint256 _amount) external; function leaveFromPoolInPending(address _to, uint256 _amount) external; function leaveFromPending(address _to, uint256 _amount) external returns (uint256, uint256); function cancelWithdrawRequest(address _to) external returns (uint256, uint256); function policyClaim(address _to, uint256 _amount) external returns (uint256 realClaimAmount); function migrateLP(address _to, address _migrateTo, bool _isUnLocked) external returns (uint256); function setMinLPCapital(uint256 _minLPCapital) external; function currency() external view returns (address); function getTotalWithdrawRequestAmount() external view returns (uint256); function getWithdrawRequest(address _to) external view returns (uint256, uint256, uint256); function lpPriceUno() external view returns (uint256); function emergencyWithdraw(address _to, uint256 _amount) external returns (bool); function setLpPriceUno(uint256 _lpPriceUno) external; }
// SPDX-License-Identifier: MIT pragma solidity =0.8.23; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IRiskPoolERC20 { /** * @dev Returns the decimals places of the token. */ function decimals() external view returns (uint8); /** * @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 `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); }
// SPDX-License-Identifier: GPL-3.0 pragma solidity =0.8.23; interface ISingleSidedReinsurancePool { function updatePool() external; function enterInPool(uint256 _amount) external; function leaveFromPoolInPending(uint256 _amount) external; function leaveFromPending(uint256 _amount) external; function harvest(address _to) external; function lpTransfer(address _from, address _to, uint256 _amount) external; function riskPool() external view returns (address); }
// SPDX-License-Identifier: GPL-3.0-or-later pragma solidity =0.8.23; // from Uniswap TransferHelper library library TransferHelper { function safeApprove(address token, address to, uint256 value) internal { // bytes4(keccak256(bytes('approve(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x095ea7b3, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeApprove: approve failed"); } function safeTransfer(address token, address to, uint256 value) internal { // bytes4(keccak256(bytes('transfer(address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0xa9059cbb, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::safeTransfer: transfer failed"); } function safeTransferFrom(address token, address from, address to, uint256 value) internal { // bytes4(keccak256(bytes('transferFrom(address,address,uint256)'))); (bool success, bytes memory data) = token.call(abi.encodeWithSelector(0x23b872dd, from, to, value)); require(success && (data.length == 0 || abi.decode(data, (bool))), "TransferHelper::transferFrom: transferFrom failed"); } function safeTransferETH(address to, uint256 value) internal { (bool success, ) = to.call{value: value}(new bytes(0)); require(success, "TransferHelper::safeTransferETH: ETH transfer failed"); } }
// SPDX-License-Identifier: MIT pragma solidity =0.8.23; import "@openzeppelin/contracts/utils/Context.sol"; import "./interfaces/IRiskPoolERC20.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.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How * to implement supply mechanisms]. * * We have followed general OpenZeppelin guidelines: functions revert instead * of returning `false` on failure. This behavior is nonetheless conventional * and does not conflict with the expectations of ERC20 applications. * * Additionally, an {Approval} event is emitted on calls to {transferFrom}. * This allows applications to reconstruct the allowance for all accounts just * by listening to said events. Other implementations of the EIP may not emit * these events, as it isn't required by the specification. * * Finally, the non-standard {decreaseAllowance} and {increaseAllowance} * functions have been added to mitigate the well-known issues around setting * allowances. See {IERC20-approve}. */ contract RiskPoolERC20 is Context, IRiskPoolERC20 { mapping(address => uint256) private _balances; mapping(address => mapping(address => uint256)) internal _allowances; struct UserWithdrawRequestInfo { uint256 pendingAmount; uint256 requestTime; uint256 pendingUno; } mapping(address => UserWithdrawRequestInfo) internal withdrawRequestPerUser; uint256 internal totalWithdrawPending; uint256 private _totalSupply; uint256[30] __gap; /** * @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 value {ERC20} uses, unless this function is * 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() external 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: * * - `recipient` cannot be the zero address. * - the caller must have a balance of at least `amount`. */ function transfer(address recipient, uint256 amount) external virtual override returns (bool) { _transfer(_msgSender(), recipient, amount); return true; } /** * @dev See {IERC20-allowance}. */ function allowance(address owner, address spender) external view virtual override returns (uint256) { return _allowances[owner][spender]; } /** * @dev See {IERC20-approve}. * * Requirements: * * - `spender` cannot be the zero address. */ function approve(address spender, uint256 amount) external virtual override returns (bool) { _approve(_msgSender(), 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}. * * Requirements: * * - `sender` and `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. * - the caller must have allowance for ``sender``'s tokens of at least * `amount`. */ function transferFrom(address sender, address recipient, uint256 amount) external virtual override returns (bool) { _transfer(sender, recipient, amount); uint256 currentAllowance = _allowances[sender][_msgSender()]; require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance"); _approve(sender, _msgSender(), currentAllowance - 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) external virtual returns (bool) { _approve(_msgSender(), spender, _allowances[_msgSender()][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) external virtual returns (bool) { uint256 currentAllowance = _allowances[_msgSender()][spender]; require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero"); _approve(_msgSender(), spender, currentAllowance - subtractedValue); return true; } /** * @dev Moves `amount` of tokens from `sender` to `recipient`. * * 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: * * - `sender` cannot be the zero address. * - `recipient` cannot be the zero address. * - `sender` must have a balance of at least `amount`. */ function _transfer(address sender, address recipient, uint256 amount) internal virtual { require(sender != address(0), "ERC20: transfer from the zero address"); require(recipient != address(0), "ERC20: transfer to the zero address"); _beforeTokenTransfer(sender, recipient, amount); uint256 senderBalance = _balances[sender]; require(senderBalance >= amount, "ERC20: transfer amount exceeds balance"); _balances[sender] = senderBalance - amount; _balances[recipient] += amount; emit Transfer(sender, recipient, amount); _afterTokenTransfer(sender, recipient, amount); } /** @dev Creates `amount` tokens and assigns them to `account`, increasing * the total supply. * * Emits a {Transfer} event with `from` set to the zero address. * * Requirements: * * - `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; _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"); _balances[account] = accountBalance - amount; _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 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 {} function _withdrawRequest(address _user, uint256 _amount, uint256 _amountInUno) internal { require(balanceOf(_user) >= _amount, "UnoRe: balance overflow"); require(_amount <= type(uint128).max, "Amount exceeds max uint128"); if (withdrawRequestPerUser[_user].pendingAmount == 0 && withdrawRequestPerUser[_user].requestTime == 0) { withdrawRequestPerUser[_user] = UserWithdrawRequestInfo({ pendingAmount: _amount, requestTime: block.timestamp, pendingUno: _amountInUno }); } else { withdrawRequestPerUser[_user].pendingAmount += _amount; withdrawRequestPerUser[_user].pendingUno += _amountInUno; withdrawRequestPerUser[_user].requestTime = block.timestamp; } totalWithdrawPending += _amount; } function _withdrawImplement(address _user) internal { require(uint256(withdrawRequestPerUser[_user].pendingAmount) > 0, "UnoRe: zero claim amount"); uint256 _pendingAmount = withdrawRequestPerUser[_user].pendingAmount; totalWithdrawPending -= _pendingAmount; _burn(_user, _pendingAmount); delete withdrawRequestPerUser[_user]; } function _withdrawImplementIrregular(address _user, uint256 _amount) internal { require(uint256(withdrawRequestPerUser[_user].pendingAmount) > 0, "UnoRe: zero claim amount"); require(uint256(withdrawRequestPerUser[_user].pendingAmount) >= _amount, "UnoRe: pending amount overflow"); uint256 _pendingAmount = withdrawRequestPerUser[_user].pendingAmount; totalWithdrawPending -= _pendingAmount; _burn(_user, _amount); delete withdrawRequestPerUser[_user]; } function _emergencyWithdraw(address _user) internal { uint256 _pendingAmount = withdrawRequestPerUser[_user].pendingAmount; totalWithdrawPending -= _pendingAmount; if (_pendingAmount > 0) { _burn(_user, _pendingAmount); } delete withdrawRequestPerUser[_user]; } function _cancelWithdrawRequest(address _user) internal { uint256 _pendingAmount = withdrawRequestPerUser[_user].pendingAmount; totalWithdrawPending -= _pendingAmount; delete withdrawRequestPerUser[_user]; } }
{ "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "paris", "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } }, "metadata": { "useLiteralContent": true }, "libraries": {} }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_SSRP","type":"address"},{"internalType":"address","name":"_currency","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_amountInUno","type":"uint256"}],"name":"LogCancelWithdrawRequest","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_withdrawLpAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"_withdrawUnoAmount","type":"uint256"}],"name":"LogLeaveFromPending","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":true,"internalType":"address","name":"_migrateTo","type":"address"},{"indexed":false,"internalType":"uint256","name":"_unoAmount","type":"uint256"}],"name":"LogMigrateLP","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"LogPolicyClaim","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":"MIN_LP_CAPITAL","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SSRP","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"cancelWithdrawRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"currency","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"emergencyWithdraw","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_from","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"enter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getTotalWithdrawRequestAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"getWithdrawRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveFromPending","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"leaveFromPoolInPending","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"lpPriceUno","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"address","name":"_migrateTo","type":"address"},{"internalType":"bool","name":"_isUnLocked","type":"bool"}],"name":"migrateLP","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"policyClaim","outputs":[{"internalType":"uint256","name":"realClaimAmount","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_lpPriceUno","type":"uint256"}],"name":"setLpPriceUno","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minLPCapital","type":"uint256"}],"name":"setMinLPCapital","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]
Contract Creation Code
6080604052629896806028553480156200001857600080fd5b5060405162002db338038062002db38339810160408190526200003b91620001ee565b6001600160a01b038216620000965760405162461bcd60e51b815260206004820152601860248201527f556e6f52653a207a65726f20706f6f6c20616464726573730000000000000000604482015260640160405180910390fd5b6023620000a485826200030e565b506024620000b384826200030e565b50602580546001600160a01b038085166001600160a01b031992831617909255602680549284169290911682179055670de0b6b3a7640000602755620000ff576618de76816d80006028555b50505050620003da565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200013157600080fd5b81516001600160401b03808211156200014e576200014e62000109565b604051601f8301601f19908116603f0116810190828211818310171562000179576200017962000109565b81604052838152602092508660208588010111156200019757600080fd5b600091505b83821015620001bb57858201830151818301840152908201906200019c565b6000602085830101528094505050505092915050565b80516001600160a01b0381168114620001e957600080fd5b919050565b600080600080608085870312156200020557600080fd5b84516001600160401b03808211156200021d57600080fd5b6200022b888389016200011f565b955060208701519150808211156200024257600080fd5b5062000251878288016200011f565b9350506200026260408601620001d1565b91506200027260608601620001d1565b905092959194509250565b600181811c908216806200029257607f821691505b602082108103620002b357634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111562000309576000816000526020600020601f850160051c81016020861015620002e45750805b601f850160051c820191505b818110156200030557828155600101620002f0565b5050505b505050565b81516001600160401b038111156200032a576200032a62000109565b62000342816200033b84546200027d565b84620002b9565b602080601f8311600181146200037a5760008415620003615750858301515b600019600386901b1c1916600185901b17855562000305565b600085815260208120601f198616915b82811015620003ab578886015182559484019460019091019084016200038a565b5085821015620003ca5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6129c980620003ea6000396000f3fe6080604052600436106101855760003560e01c806370a08231116100d1578063a9059cbb1161008a578063e5a6b10f11610064578063e5a6b10f146104cd578063e95aa8d3146104ed578063f3212d2914610502578063f53fb2001461052257600080fd5b8063a9059cbb14610451578063d7e3655a14610471578063dd62ed3e1461048757600080fd5b806370a082311461039c5780637e348b7d146103bc57806393b6b86c146103dc57806395ccea67146103fc57806395d89b411461041c578063a457c2d71461043157600080fd5b80632e4a01421161013e5780633950935111610118578063395093511461030557806347bcdb2a146103255780635d2cd2a7146103475780636ce40c791461037c57600080fd5b80632e4a01421461029e578063313ce567146102be5780633613302f146102e557600080fd5b806306fdde0314610191578063095ea7b3146101bc57806311ca7399146101ec57806318160ddd1461022457806323b872dd146102435780632ccae8961461026357600080fd5b3661018c57005b600080fd5b34801561019d57600080fd5b506101a6610538565b6040516101b39190612669565b60405180910390f35b3480156101c857600080fd5b506101dc6101d73660046126b8565b6105c6565b60405190151581526020016101b3565b3480156101f857600080fd5b5060255461020c906001600160a01b031681565b6040516001600160a01b0390911681526020016101b3565b34801561023057600080fd5b506004545b6040519081526020016101b3565b34801561024f57600080fd5b506101dc61025e3660046126e2565b6105dd565b34801561026f57600080fd5b5061028361027e36600461271e565b61074e565b604080519384526020840192909252908201526060016101b3565b3480156102aa57600080fd5b506102356102b93660046126b8565b6107af565b3480156102ca57600080fd5b506102d3610b07565b60405160ff90911681526020016101b3565b3480156102f157600080fd5b50610235610300366004612751565b610b7a565b34801561031157600080fd5b506101dc6103203660046126b8565b611015565b34801561033157600080fd5b506103456103403660046126b8565b61104c565b005b34801561035357600080fd5b5061036761036236600461271e565b61118c565b604080519283526020830191909152016101b3565b34801561038857600080fd5b506103676103973660046126b8565b6112b0565b3480156103a857600080fd5b506102356103b736600461271e565b61166d565b3480156103c857600080fd5b506103456103d73660046126b8565b611688565b3480156103e857600080fd5b506103456103f7366004612798565b6116e0565b34801561040857600080fd5b506101dc6104173660046126b8565b61175f565b34801561042857600080fd5b506101a66118ce565b34801561043d57600080fd5b506101dc61044c3660046126b8565b6118db565b34801561045d57600080fd5b506101dc61046c3660046126b8565b611976565b34801561047d57600080fd5b5061023560285481565b34801561049357600080fd5b506102356104a23660046127b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156104d957600080fd5b5060265461020c906001600160a01b031681565b3480156104f957600080fd5b50610235611a3b565b34801561050e57600080fd5b5061034561051d366004612798565b611a6f565b34801561052e57600080fd5b5061023560275481565b60238054610545906127e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610571906127e4565b80156105be5780601f10610593576101008083540402835291602001916105be565b820191906000526020600020905b8154815290600101906020018083116105a157829003601f168201915b505050505081565b60006105d3338484611a9e565b5060015b92915050565b6001600160a01b03831660009081526002602052604081205482906106018661166d565b61060b9190612834565b10156106325760405162461bcd60e51b815260040161062990612847565b60405180910390fd5b61063d848484611bc2565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106c25760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610629565b6106d685336106d18685612834565b611a9e565b6025546040516274d72160e51b81526001600160a01b03878116600483015286811660248301526044820186905290911690630e9ae42090606401600060405180830381600087803b15801561072b57600080fd5b505af115801561073f573d6000803e3d6000fd5b50600198975050505050505050565b602554600090819081906001600160a01b0316331461077f5760405162461bcd60e51b81526004016106299061289b565b5050506001600160a01b031660009081526002602081905260409091208054600182015491909201549192909190565b6025546000906001600160a01b031633146107dc5760405162461bcd60e51b81526004016106299061289b565b6026546000906001600160a01b03166107f55747610861565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561083d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086191906128d2565b9050600061086e60045490565b116108b45760405162461bcd60e51b8152602060048201526016602482015275556e6f52653a207a65726f206c702062616c616e636560501b6044820152606401610629565b60285481116109115760405162461bcd60e51b8152602060048201526024808201527f556e6f52653a206d696e696d756d20554e4f206361706974616c20756e646572604482015263666c6f7760e01b6064820152608401610629565b82602854826109209190612834565b11156109a8576026546001600160a01b0316156109535760265461094e906001600160a01b03168585611d9a565b61095d565b61095d8484611ecb565b829150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def3628460405161099b91815260200190565b60405180910390a2610a54565b6026546001600160a01b0316156109e3576026546028546109de916001600160a01b03169086906109d99085612834565b611d9a565b6109fa565b6109fa84602854836109f59190612834565b611ecb565b602854610a079082612834565b9150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def36260285483610a429190612834565b60405190815260200160405180910390a25b6026546001600160a01b0316610a6a5747610ad6565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ab2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad691906128d2565b9050610ae160045490565b610af382670de0b6b3a76400006128eb565b610afd9190612902565b6027555092915050565b6026546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b759190612924565b905090565b6025546000906001600160a01b03163314610ba75760405162461bcd60e51b81526004016106299061289b565b6001600160a01b038316610bf35760405162461bcd60e51b8152602060048201526013602482015272556e6f52653a207a65726f206164647265737360681b6044820152606401610629565b600080838015610c1a57506001600160a01b03861660009081526002602052604090205415155b15610dc0576027546001600160a01b0387166000908152600260205260408120549091670de0b6b3a764000091610c5191906128eb565b610c5b9190612902565b6026549091506001600160a01b0316610c745747610ce0565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce091906128d2565b915060285482610cf09190612834565b811015610d3c576026546001600160a01b031615610d2457602654610d1f906001600160a01b03168883611d9a565b610d2e565b610d2e8782611ecb565b610d3787611fa5565b610dba565b6026546001600160a01b031615610d7257602654602854610d6d916001600160a01b03169089906109d99086612834565b610d84565b610d8487602854846109f59190612834565b610dba8760275460285485610d999190612834565b610dab90670de0b6b3a76400006128eb565b610db59190612902565b612069565b50610de7565b6001600160a01b03861660009081526002602052604090205415610de757610de786612196565b6026546001600160a01b0316610dfd5747610e69565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6991906128d2565b90506000670de0b6b3a7640000602754610e828961166d565b610e8c91906128eb565b610e969190612902565b905060285482610ea69190612834565b811015610f42576026546001600160a01b031615610eda57602654610ed5906001600160a01b03168783611d9a565b610ee4565b610ee48682611ecb565b610eee8184612947565b9250856001600160a01b0316876001600160a01b03167fb644c280a27f46639994a63e4feb334394bfd8ca28bb6b0cda104f57d541981983604051610f3591815260200190565b60405180910390a3610ff8565b6026546001600160a01b031615610f7857602654602854610f73916001600160a01b03169088906109d99086612834565b610f8a565b610f8a86602854846109f59190612834565b602854610f979083612834565b610fa19084612947565b9250856001600160a01b0316876001600160a01b03167fb644c280a27f46639994a63e4feb334394bfd8ca28bb6b0cda104f57d541981960285485610fe69190612834565b60405190815260200160405180910390a35b61100a876110058961166d565b6121ef565b509095945050505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105d39185906106d1908690612947565b6025546001600160a01b031633146110765760405162461bcd60e51b81526004016106299061289b565b600061108160045490565b116110de5760405162461bcd60e51b815260206004820152602760248201527f556e6f52653a2054686572652773206e6f2072656d61696e696e6720696e20746044820152661a19481c1bdbdb60ca1b6064820152608401610629565b6027546000906110f683670de0b6b3a76400006128eb565b6111009190612902565b905061110b8361166d565b6001600160a01b03841660009081526002602052604090205461112e9083612947565b111561117c5760405162461bcd60e51b815260206004820152601a60248201527f556e6f52653a206c702062616c616e6365206f766572666c6f770000000000006044820152606401610629565b611187838284612346565b505050565b60255460009081906001600160a01b031633146111bb5760405162461bcd60e51b81526004016106299061289b565b6001600160a01b038316600090815260026020526040902054806112165760405162461bcd60e51b8152602060048201526012602482015271155b9bd4994e881e995c9bc8185b5bdd5b9d60721b6044820152606401610629565b61121f84612196565b836001600160a01b03167f09c6481cb228ea7f61ceb67c8e708038eb74bbb68cfcc54a9cfca199087ecfb782670de0b6b3a76400006027548561126291906128eb565b61126c9190612902565b6040805192835260208301919091520160405180910390a280670de0b6b3a76400006027548361129c91906128eb565b6112a69190612902565b9250925050915091565b60255460009081906001600160a01b031633146112df5760405162461bcd60e51b81526004016106299061289b565b6026546000906001600160a01b03166112f85747611364565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611340573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136491906128d2565b6001600160a01b038616600090815260026020526040902054909150808511156113df5760405162461bcd60e51b815260206004820152602660248201527f416d6f756e742073686f756c64206c657373207468616e2070656e64696e6720604482015265185b5bdd5b9d60d21b6064820152608401610629565b600082116114295760405162461bcd60e51b8152602060048201526017602482015276556e6f52653a207a65726f20756e6f2062616c616e636560481b6044820152606401610629565b846114338761166d565b10156114815760405162461bcd60e51b815260206004820152601a60248201527f556e6f52653a206c702062616c616e6365206f766572666c6f770000000000006044820152606401610629565b6000670de0b6b3a76400006027548761149a91906128eb565b6114a49190612902565b905080602854846114b59190612834565b111561154b576114c487611fa5565b6026546001600160a01b0316156114f1576026546114ec906001600160a01b03168883611d9a565b6114fb565b6114fb8782611ecb565b60408051838152602081018390526001600160a01b038916917f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea0910160405180910390a290935091506116669050565b6115608760275460285486610d999190612834565b6026546001600160a01b03161561159657602654602854611591916001600160a01b03169089906109d99087612834565b6115a8565b6115a887602854856109f59190612834565b866001600160a01b03167f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea0602754602854866115e49190612834565b6115f690670de0b6b3a76400006128eb565b6116009190612902565b60285461160d9087612834565b6040805192835260208301919091520160405180910390a26027546028546116359085612834565b61164790670de0b6b3a76400006128eb565b6116519190612902565b60285461165e9085612834565b945094505050505b9250929050565b6001600160a01b031660009081526020819052604090205490565b6025546001600160a01b031633146116b25760405162461bcd60e51b81526004016106299061289b565b6116dc8260275483670de0b6b3a76400006116cd91906128eb565b6116d79190612902565b612525565b5050565b6025546001600160a01b0316331461170a5760405162461bcd60e51b81526004016106299061289b565b6000811161175a5760405162461bcd60e51b815260206004820152601b60248201527f556e6f52653a206e6f7420616c6c6f77207a65726f2076616c756500000000006044820152606401610629565b602855565b6025546000906001600160a01b0316331461178c5760405162461bcd60e51b81526004016106299061289b565b6026546000906001600160a01b03166117a55747611811565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156117ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181191906128d2565b90506000811161185d5760405162461bcd60e51b8152602060048201526017602482015276556e6f52653a207a65726f20756e6f2062616c616e636560481b6044820152606401610629565b61186684612604565b6000670de0b6b3a76400006027548561187f91906128eb565b6118899190612902565b6026549091506001600160a01b0316156118b9576026546118b4906001600160a01b03168683611d9a565b6118c3565b6118c38582611ecb565b506001949350505050565b60248054610545906127e4565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561195d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610629565b61196c33856106d18685612834565b5060019392505050565b3360008181526002602052604081205490918391906119949061166d565b61199e9190612834565b10156119bc5760405162461bcd60e51b815260040161062990612847565b6119c7338484611bc2565b6025546040516274d72160e51b81523360048201526001600160a01b0385811660248301526044820185905290911690630e9ae42090606401600060405180830381600087803b158015611a1a57600080fd5b505af1158015611a2e573d6000803e3d6000fd5b5060019695505050505050565b6025546000906001600160a01b03163314611a685760405162461bcd60e51b81526004016106299061289b565b5060035490565b6025546001600160a01b03163314611a995760405162461bcd60e51b81526004016106299061289b565b602755565b6001600160a01b038316611b005760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610629565b6001600160a01b038216611b615760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610629565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611c265760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610629565b6001600160a01b038216611c885760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610629565b6001600160a01b03831660009081526020819052604090205481811015611d005760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610629565b611d0a8282612834565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290611d40908490612947565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d8c91815260200190565b60405180910390a350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611df6919061295a565b6000604051808303816000865af19150503d8060008114611e33576040519150601f19603f3d011682016040523d82523d6000602084013e611e38565b606091505b5091509150818015611e62575080511580611e62575080806020019051810190611e629190612976565b611ec45760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b6064820152608401610629565b5050505050565b604080516000808252602082019092526001600160a01b038416908390604051611ef5919061295a565b60006040518083038185875af1925050503d8060008114611f32576040519150601f19603f3d011682016040523d82523d6000602084013e611f37565b606091505b50509050806111875760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608401610629565b6001600160a01b0381166000908152600260205260409020546120055760405162461bcd60e51b8152602060048201526018602482015277155b9bd4994e881e995c9bc818db185a5b48185b5bdd5b9d60421b6044820152606401610629565b6001600160a01b0381166000908152600260205260408120546003805491928392612031908490612834565b90915550612041905082826121ef565b506001600160a01b031660009081526002602081905260408220828155600181018390550155565b6001600160a01b0382166000908152600260205260409020546120c95760405162461bcd60e51b8152602060048201526018602482015277155b9bd4994e881e995c9bc818db185a5b48185b5bdd5b9d60421b6044820152606401610629565b6001600160a01b0382166000908152600260205260409020548111156121315760405162461bcd60e51b815260206004820152601e60248201527f556e6f52653a2070656e64696e6720616d6f756e74206f766572666c6f7700006044820152606401610629565b6001600160a01b038216600090815260026020526040812054600380549192839261215d908490612834565b9091555061216d905083836121ef565b50506001600160a01b031660009081526002602081905260408220828155600181018390550155565b6001600160a01b03811660009081526002602052604081205460038054919283926121c2908490612834565b9091555050506001600160a01b031660009081526002602081905260408220828155600181018390550155565b6001600160a01b03821661224f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610629565b6001600160a01b038216600090815260208190526040902054818110156122c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610629565b6122cd8282612834565b6001600160a01b038416600090815260208190526040812091909155600480548492906122fb908490612834565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b816123508461166d565b101561239e5760405162461bcd60e51b815260206004820152601760248201527f556e6f52653a2062616c616e6365206f766572666c6f770000000000000000006044820152606401610629565b6fffffffffffffffffffffffffffffffff8211156123fe5760405162461bcd60e51b815260206004820152601a60248201527f416d6f756e742065786365656473206d61782075696e743132380000000000006044820152606401610629565b6001600160a01b03831660009081526002602052604090205415801561243d57506001600160a01b038316600090815260026020526040902060010154155b1561248c57604080516060810182528381524260208083019182528284018581526001600160a01b03881660009081526002928390529490942092518355905160018301559151910155612509565b6001600160a01b038316600090815260026020526040812080548492906124b4908490612947565b90915550506001600160a01b038316600090815260026020819052604082200180548392906124e4908490612947565b90915550506001600160a01b0383166000908152600260205260409020426001909101555b816003600082825461251b9190612947565b9091555050505050565b6001600160a01b03821661257b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610629565b806004600082825461258d9190612947565b90915550506001600160a01b038216600090815260208190526040812080548392906125ba908490612947565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0381166000908152600260205260408120546003805491928392612630908490612834565b909155505080156120415761204182826121ef565b60005b83811015612660578181015183820152602001612648565b50506000910152565b6020815260008251806020840152612688816040850160208701612645565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146126b357600080fd5b919050565b600080604083850312156126cb57600080fd5b6126d48361269c565b946020939093013593505050565b6000806000606084860312156126f757600080fd5b6127008461269c565b925061270e6020850161269c565b9150604084013590509250925092565b60006020828403121561273057600080fd5b6127398261269c565b9392505050565b801515811461274e57600080fd5b50565b60008060006060848603121561276657600080fd5b61276f8461269c565b925061277d6020850161269c565b9150604084013561278d81612740565b809150509250925092565b6000602082840312156127aa57600080fd5b5035919050565b600080604083850312156127c457600080fd5b6127cd8361269c565b91506127db6020840161269c565b90509250929050565b600181811c908216806127f857607f821691505b60208210810361281857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105d7576105d761281e565b60208082526034908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527330b630b731b29037b9103832b73234b733902ba960611b606082015260800190565b60208082526019908201527f556e6f52653a205269736b506f6f6c20466f7262696464656e00000000000000604082015260600190565b6000602082840312156128e457600080fd5b5051919050565b80820281158282048414176105d7576105d761281e565b60008261291f57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561293657600080fd5b815160ff8116811461273957600080fd5b808201808211156105d7576105d761281e565b6000825161296c818460208701612645565b9190910192915050565b60006020828403121561298857600080fd5b81516127398161274056fea2646970667358221220dc8c67b9a67173d0f33b9a79fd7706dcc21efd4e5b806ecaa801190bbbd68d3464736f6c63430008170033000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000e34dbacff7078da18260d9321982e588aa30d4b60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001253796e74686574696320535349502d4554480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000953535349502d4554480000000000000000000000000000000000000000000000
Deployed Bytecode
0x6080604052600436106101855760003560e01c806370a08231116100d1578063a9059cbb1161008a578063e5a6b10f11610064578063e5a6b10f146104cd578063e95aa8d3146104ed578063f3212d2914610502578063f53fb2001461052257600080fd5b8063a9059cbb14610451578063d7e3655a14610471578063dd62ed3e1461048757600080fd5b806370a082311461039c5780637e348b7d146103bc57806393b6b86c146103dc57806395ccea67146103fc57806395d89b411461041c578063a457c2d71461043157600080fd5b80632e4a01421161013e5780633950935111610118578063395093511461030557806347bcdb2a146103255780635d2cd2a7146103475780636ce40c791461037c57600080fd5b80632e4a01421461029e578063313ce567146102be5780633613302f146102e557600080fd5b806306fdde0314610191578063095ea7b3146101bc57806311ca7399146101ec57806318160ddd1461022457806323b872dd146102435780632ccae8961461026357600080fd5b3661018c57005b600080fd5b34801561019d57600080fd5b506101a6610538565b6040516101b39190612669565b60405180910390f35b3480156101c857600080fd5b506101dc6101d73660046126b8565b6105c6565b60405190151581526020016101b3565b3480156101f857600080fd5b5060255461020c906001600160a01b031681565b6040516001600160a01b0390911681526020016101b3565b34801561023057600080fd5b506004545b6040519081526020016101b3565b34801561024f57600080fd5b506101dc61025e3660046126e2565b6105dd565b34801561026f57600080fd5b5061028361027e36600461271e565b61074e565b604080519384526020840192909252908201526060016101b3565b3480156102aa57600080fd5b506102356102b93660046126b8565b6107af565b3480156102ca57600080fd5b506102d3610b07565b60405160ff90911681526020016101b3565b3480156102f157600080fd5b50610235610300366004612751565b610b7a565b34801561031157600080fd5b506101dc6103203660046126b8565b611015565b34801561033157600080fd5b506103456103403660046126b8565b61104c565b005b34801561035357600080fd5b5061036761036236600461271e565b61118c565b604080519283526020830191909152016101b3565b34801561038857600080fd5b506103676103973660046126b8565b6112b0565b3480156103a857600080fd5b506102356103b736600461271e565b61166d565b3480156103c857600080fd5b506103456103d73660046126b8565b611688565b3480156103e857600080fd5b506103456103f7366004612798565b6116e0565b34801561040857600080fd5b506101dc6104173660046126b8565b61175f565b34801561042857600080fd5b506101a66118ce565b34801561043d57600080fd5b506101dc61044c3660046126b8565b6118db565b34801561045d57600080fd5b506101dc61046c3660046126b8565b611976565b34801561047d57600080fd5b5061023560285481565b34801561049357600080fd5b506102356104a23660046127b1565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b3480156104d957600080fd5b5060265461020c906001600160a01b031681565b3480156104f957600080fd5b50610235611a3b565b34801561050e57600080fd5b5061034561051d366004612798565b611a6f565b34801561052e57600080fd5b5061023560275481565b60238054610545906127e4565b80601f0160208091040260200160405190810160405280929190818152602001828054610571906127e4565b80156105be5780601f10610593576101008083540402835291602001916105be565b820191906000526020600020905b8154815290600101906020018083116105a157829003601f168201915b505050505081565b60006105d3338484611a9e565b5060015b92915050565b6001600160a01b03831660009081526002602052604081205482906106018661166d565b61060b9190612834565b10156106325760405162461bcd60e51b815260040161062990612847565b60405180910390fd5b61063d848484611bc2565b6001600160a01b0384166000908152600160209081526040808320338452909152902054828110156106c25760405162461bcd60e51b815260206004820152602860248201527f45524332303a207472616e7366657220616d6f756e74206578636565647320616044820152676c6c6f77616e636560c01b6064820152608401610629565b6106d685336106d18685612834565b611a9e565b6025546040516274d72160e51b81526001600160a01b03878116600483015286811660248301526044820186905290911690630e9ae42090606401600060405180830381600087803b15801561072b57600080fd5b505af115801561073f573d6000803e3d6000fd5b50600198975050505050505050565b602554600090819081906001600160a01b0316331461077f5760405162461bcd60e51b81526004016106299061289b565b5050506001600160a01b031660009081526002602081905260409091208054600182015491909201549192909190565b6025546000906001600160a01b031633146107dc5760405162461bcd60e51b81526004016106299061289b565b6026546000906001600160a01b03166107f55747610861565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa15801561083d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061086191906128d2565b9050600061086e60045490565b116108b45760405162461bcd60e51b8152602060048201526016602482015275556e6f52653a207a65726f206c702062616c616e636560501b6044820152606401610629565b60285481116109115760405162461bcd60e51b8152602060048201526024808201527f556e6f52653a206d696e696d756d20554e4f206361706974616c20756e646572604482015263666c6f7760e01b6064820152608401610629565b82602854826109209190612834565b11156109a8576026546001600160a01b0316156109535760265461094e906001600160a01b03168585611d9a565b61095d565b61095d8484611ecb565b829150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def3628460405161099b91815260200190565b60405180910390a2610a54565b6026546001600160a01b0316156109e3576026546028546109de916001600160a01b03169086906109d99085612834565b611d9a565b6109fa565b6109fa84602854836109f59190612834565b611ecb565b602854610a079082612834565b9150836001600160a01b03167f3eff38a5593bd626ebea5fa8096047f41bed92d9c75cf4a4050216aea6def36260285483610a429190612834565b60405190815260200160405180910390a25b6026546001600160a01b0316610a6a5747610ad6565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610ab2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad691906128d2565b9050610ae160045490565b610af382670de0b6b3a76400006128eb565b610afd9190612902565b6027555092915050565b6026546040805163313ce56760e01b815290516000926001600160a01b03169163313ce5679160048083019260209291908290030181865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b759190612924565b905090565b6025546000906001600160a01b03163314610ba75760405162461bcd60e51b81526004016106299061289b565b6001600160a01b038316610bf35760405162461bcd60e51b8152602060048201526013602482015272556e6f52653a207a65726f206164647265737360681b6044820152606401610629565b600080838015610c1a57506001600160a01b03861660009081526002602052604090205415155b15610dc0576027546001600160a01b0387166000908152600260205260408120549091670de0b6b3a764000091610c5191906128eb565b610c5b9190612902565b6026549091506001600160a01b0316610c745747610ce0565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610cbc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ce091906128d2565b915060285482610cf09190612834565b811015610d3c576026546001600160a01b031615610d2457602654610d1f906001600160a01b03168883611d9a565b610d2e565b610d2e8782611ecb565b610d3787611fa5565b610dba565b6026546001600160a01b031615610d7257602654602854610d6d916001600160a01b03169089906109d99086612834565b610d84565b610d8487602854846109f59190612834565b610dba8760275460285485610d999190612834565b610dab90670de0b6b3a76400006128eb565b610db59190612902565b612069565b50610de7565b6001600160a01b03861660009081526002602052604090205415610de757610de786612196565b6026546001600160a01b0316610dfd5747610e69565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015610e45573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e6991906128d2565b90506000670de0b6b3a7640000602754610e828961166d565b610e8c91906128eb565b610e969190612902565b905060285482610ea69190612834565b811015610f42576026546001600160a01b031615610eda57602654610ed5906001600160a01b03168783611d9a565b610ee4565b610ee48682611ecb565b610eee8184612947565b9250856001600160a01b0316876001600160a01b03167fb644c280a27f46639994a63e4feb334394bfd8ca28bb6b0cda104f57d541981983604051610f3591815260200190565b60405180910390a3610ff8565b6026546001600160a01b031615610f7857602654602854610f73916001600160a01b03169088906109d99086612834565b610f8a565b610f8a86602854846109f59190612834565b602854610f979083612834565b610fa19084612947565b9250856001600160a01b0316876001600160a01b03167fb644c280a27f46639994a63e4feb334394bfd8ca28bb6b0cda104f57d541981960285485610fe69190612834565b60405190815260200160405180910390a35b61100a876110058961166d565b6121ef565b509095945050505050565b3360008181526001602090815260408083206001600160a01b038716845290915281205490916105d39185906106d1908690612947565b6025546001600160a01b031633146110765760405162461bcd60e51b81526004016106299061289b565b600061108160045490565b116110de5760405162461bcd60e51b815260206004820152602760248201527f556e6f52653a2054686572652773206e6f2072656d61696e696e6720696e20746044820152661a19481c1bdbdb60ca1b6064820152608401610629565b6027546000906110f683670de0b6b3a76400006128eb565b6111009190612902565b905061110b8361166d565b6001600160a01b03841660009081526002602052604090205461112e9083612947565b111561117c5760405162461bcd60e51b815260206004820152601a60248201527f556e6f52653a206c702062616c616e6365206f766572666c6f770000000000006044820152606401610629565b611187838284612346565b505050565b60255460009081906001600160a01b031633146111bb5760405162461bcd60e51b81526004016106299061289b565b6001600160a01b038316600090815260026020526040902054806112165760405162461bcd60e51b8152602060048201526012602482015271155b9bd4994e881e995c9bc8185b5bdd5b9d60721b6044820152606401610629565b61121f84612196565b836001600160a01b03167f09c6481cb228ea7f61ceb67c8e708038eb74bbb68cfcc54a9cfca199087ecfb782670de0b6b3a76400006027548561126291906128eb565b61126c9190612902565b6040805192835260208301919091520160405180910390a280670de0b6b3a76400006027548361129c91906128eb565b6112a69190612902565b9250925050915091565b60255460009081906001600160a01b031633146112df5760405162461bcd60e51b81526004016106299061289b565b6026546000906001600160a01b03166112f85747611364565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611340573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136491906128d2565b6001600160a01b038616600090815260026020526040902054909150808511156113df5760405162461bcd60e51b815260206004820152602660248201527f416d6f756e742073686f756c64206c657373207468616e2070656e64696e6720604482015265185b5bdd5b9d60d21b6064820152608401610629565b600082116114295760405162461bcd60e51b8152602060048201526017602482015276556e6f52653a207a65726f20756e6f2062616c616e636560481b6044820152606401610629565b846114338761166d565b10156114815760405162461bcd60e51b815260206004820152601a60248201527f556e6f52653a206c702062616c616e6365206f766572666c6f770000000000006044820152606401610629565b6000670de0b6b3a76400006027548761149a91906128eb565b6114a49190612902565b905080602854846114b59190612834565b111561154b576114c487611fa5565b6026546001600160a01b0316156114f1576026546114ec906001600160a01b03168883611d9a565b6114fb565b6114fb8782611ecb565b60408051838152602081018390526001600160a01b038916917f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea0910160405180910390a290935091506116669050565b6115608760275460285486610d999190612834565b6026546001600160a01b03161561159657602654602854611591916001600160a01b03169089906109d99087612834565b6115a8565b6115a887602854856109f59190612834565b866001600160a01b03167f535c1088af46a351970267b3e201e5a9b53e365fec02e4fe54e6eb22496f1ea0602754602854866115e49190612834565b6115f690670de0b6b3a76400006128eb565b6116009190612902565b60285461160d9087612834565b6040805192835260208301919091520160405180910390a26027546028546116359085612834565b61164790670de0b6b3a76400006128eb565b6116519190612902565b60285461165e9085612834565b945094505050505b9250929050565b6001600160a01b031660009081526020819052604090205490565b6025546001600160a01b031633146116b25760405162461bcd60e51b81526004016106299061289b565b6116dc8260275483670de0b6b3a76400006116cd91906128eb565b6116d79190612902565b612525565b5050565b6025546001600160a01b0316331461170a5760405162461bcd60e51b81526004016106299061289b565b6000811161175a5760405162461bcd60e51b815260206004820152601b60248201527f556e6f52653a206e6f7420616c6c6f77207a65726f2076616c756500000000006044820152606401610629565b602855565b6025546000906001600160a01b0316331461178c5760405162461bcd60e51b81526004016106299061289b565b6026546000906001600160a01b03166117a55747611811565b6026546040516370a0823160e01b81523060048201526001600160a01b03909116906370a0823190602401602060405180830381865afa1580156117ed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061181191906128d2565b90506000811161185d5760405162461bcd60e51b8152602060048201526017602482015276556e6f52653a207a65726f20756e6f2062616c616e636560481b6044820152606401610629565b61186684612604565b6000670de0b6b3a76400006027548561187f91906128eb565b6118899190612902565b6026549091506001600160a01b0316156118b9576026546118b4906001600160a01b03168683611d9a565b6118c3565b6118c38582611ecb565b506001949350505050565b60248054610545906127e4565b3360009081526001602090815260408083206001600160a01b03861684529091528120548281101561195d5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f77604482015264207a65726f60d81b6064820152608401610629565b61196c33856106d18685612834565b5060019392505050565b3360008181526002602052604081205490918391906119949061166d565b61199e9190612834565b10156119bc5760405162461bcd60e51b815260040161062990612847565b6119c7338484611bc2565b6025546040516274d72160e51b81523360048201526001600160a01b0385811660248301526044820185905290911690630e9ae42090606401600060405180830381600087803b158015611a1a57600080fd5b505af1158015611a2e573d6000803e3d6000fd5b5060019695505050505050565b6025546000906001600160a01b03163314611a685760405162461bcd60e51b81526004016106299061289b565b5060035490565b6025546001600160a01b03163314611a995760405162461bcd60e51b81526004016106299061289b565b602755565b6001600160a01b038316611b005760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f206164646044820152637265737360e01b6064820152608401610629565b6001600160a01b038216611b615760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f206164647265604482015261737360f01b6064820152608401610629565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b6001600160a01b038316611c265760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f206164604482015264647265737360d81b6064820152608401610629565b6001600160a01b038216611c885760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201526265737360e81b6064820152608401610629565b6001600160a01b03831660009081526020819052604090205481811015611d005760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e7420657863656564732062604482015265616c616e636560d01b6064820152608401610629565b611d0a8282612834565b6001600160a01b038086166000908152602081905260408082209390935590851681529081208054849290611d40908490612947565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051611d8c91815260200190565b60405180910390a350505050565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092839290871691611df6919061295a565b6000604051808303816000865af19150503d8060008114611e33576040519150601f19603f3d011682016040523d82523d6000602084013e611e38565b606091505b5091509150818015611e62575080511580611e62575080806020019051810190611e629190612976565b611ec45760405162461bcd60e51b815260206004820152602d60248201527f5472616e7366657248656c7065723a3a736166655472616e736665723a20747260448201526c185b9cd9995c8819985a5b1959609a1b6064820152608401610629565b5050505050565b604080516000808252602082019092526001600160a01b038416908390604051611ef5919061295a565b60006040518083038185875af1925050503d8060008114611f32576040519150601f19603f3d011682016040523d82523d6000602084013e611f37565b606091505b50509050806111875760405162461bcd60e51b815260206004820152603460248201527f5472616e7366657248656c7065723a3a736166655472616e736665724554483a60448201527308115512081d1c985b9cd9995c8819985a5b195960621b6064820152608401610629565b6001600160a01b0381166000908152600260205260409020546120055760405162461bcd60e51b8152602060048201526018602482015277155b9bd4994e881e995c9bc818db185a5b48185b5bdd5b9d60421b6044820152606401610629565b6001600160a01b0381166000908152600260205260408120546003805491928392612031908490612834565b90915550612041905082826121ef565b506001600160a01b031660009081526002602081905260408220828155600181018390550155565b6001600160a01b0382166000908152600260205260409020546120c95760405162461bcd60e51b8152602060048201526018602482015277155b9bd4994e881e995c9bc818db185a5b48185b5bdd5b9d60421b6044820152606401610629565b6001600160a01b0382166000908152600260205260409020548111156121315760405162461bcd60e51b815260206004820152601e60248201527f556e6f52653a2070656e64696e6720616d6f756e74206f766572666c6f7700006044820152606401610629565b6001600160a01b038216600090815260026020526040812054600380549192839261215d908490612834565b9091555061216d905083836121ef565b50506001600160a01b031660009081526002602081905260408220828155600181018390550155565b6001600160a01b03811660009081526002602052604081205460038054919283926121c2908490612834565b9091555050506001600160a01b031660009081526002602081905260408220828155600181018390550155565b6001600160a01b03821661224f5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f206164647265736044820152607360f81b6064820152608401610629565b6001600160a01b038216600090815260208190526040902054818110156122c35760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e604482015261636560f01b6064820152608401610629565b6122cd8282612834565b6001600160a01b038416600090815260208190526040812091909155600480548492906122fb908490612834565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a3505050565b816123508461166d565b101561239e5760405162461bcd60e51b815260206004820152601760248201527f556e6f52653a2062616c616e6365206f766572666c6f770000000000000000006044820152606401610629565b6fffffffffffffffffffffffffffffffff8211156123fe5760405162461bcd60e51b815260206004820152601a60248201527f416d6f756e742065786365656473206d61782075696e743132380000000000006044820152606401610629565b6001600160a01b03831660009081526002602052604090205415801561243d57506001600160a01b038316600090815260026020526040902060010154155b1561248c57604080516060810182528381524260208083019182528284018581526001600160a01b03881660009081526002928390529490942092518355905160018301559151910155612509565b6001600160a01b038316600090815260026020526040812080548492906124b4908490612947565b90915550506001600160a01b038316600090815260026020819052604082200180548392906124e4908490612947565b90915550506001600160a01b0383166000908152600260205260409020426001909101555b816003600082825461251b9190612947565b9091555050505050565b6001600160a01b03821661257b5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f2061646472657373006044820152606401610629565b806004600082825461258d9190612947565b90915550506001600160a01b038216600090815260208190526040812080548392906125ba908490612947565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b0381166000908152600260205260408120546003805491928392612630908490612834565b909155505080156120415761204182826121ef565b60005b83811015612660578181015183820152602001612648565b50506000910152565b6020815260008251806020840152612688816040850160208701612645565b601f01601f19169190910160400192915050565b80356001600160a01b03811681146126b357600080fd5b919050565b600080604083850312156126cb57600080fd5b6126d48361269c565b946020939093013593505050565b6000806000606084860312156126f757600080fd5b6127008461269c565b925061270e6020850161269c565b9150604084013590509250925092565b60006020828403121561273057600080fd5b6127398261269c565b9392505050565b801515811461274e57600080fd5b50565b60008060006060848603121561276657600080fd5b61276f8461269c565b925061277d6020850161269c565b9150604084013561278d81612740565b809150509250925092565b6000602082840312156127aa57600080fd5b5035919050565b600080604083850312156127c457600080fd5b6127cd8361269c565b91506127db6020840161269c565b90509250929050565b600181811c908216806127f857607f821691505b60208210810361281857634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b818103818111156105d7576105d761281e565b60208082526034908201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260408201527330b630b731b29037b9103832b73234b733902ba960611b606082015260800190565b60208082526019908201527f556e6f52653a205269736b506f6f6c20466f7262696464656e00000000000000604082015260600190565b6000602082840312156128e457600080fd5b5051919050565b80820281158282048414176105d7576105d761281e565b60008261291f57634e487b7160e01b600052601260045260246000fd5b500490565b60006020828403121561293657600080fd5b815160ff8116811461273957600080fd5b808201808211156105d7576105d761281e565b6000825161296c818460208701612645565b9190910192915050565b60006020828403121561298857600080fd5b81516127398161274056fea2646970667358221220dc8c67b9a67173d0f33b9a79fd7706dcc21efd4e5b806ecaa801190bbbd68d3464736f6c63430008170033
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.