Feature Tip: Add private address tag to any address under My Name Tag !
Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 7 from a total of 7 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Accept Mint | 20154035 | 59 days ago | IN | 0 ETH | 0.00031336 | ||||
Request Mint | 20154032 | 59 days ago | IN | 0 ETH | 0.00053242 | ||||
Accept Mint | 20153956 | 59 days ago | IN | 0 ETH | 0.00029998 | ||||
Request Mint | 20153944 | 59 days ago | IN | 0 ETH | 0.00059057 | ||||
Accept Mint | 20140036 | 61 days ago | IN | 0 ETH | 0.00080366 | ||||
Request Mint | 20140018 | 61 days ago | IN | 0 ETH | 0.00102693 | ||||
0x60806040 | 20139674 | 61 days ago | IN | 0 ETH | 0.01749116 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Contract Source Code Verified (Exact Match)
Contract Name:
Minter
Compiler Version
v0.8.25+commit.b61c2a91
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.25; import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "./interfaces/ISTBL.sol"; import "./interfaces/IWalletFactory.sol"; import "./interfaces/IMinter.sol"; import "./interfaces/IDepositWallet.sol"; import "./interfaces/IBurnWallet.sol"; import "./utils/Errors.sol"; import "@openzeppelin/contracts/access/IAccessControl.sol"; // import "hardhat/console.sol"; ///@dev this contract is used for minting and burning STBL tokens by minters and burners contract Minter is IMinter { using SafeERC20 for IERC20Metadata; uint256 public constant HUNDRED_PERCENT = 10_000; bytes32 public constant ADMIN_ROLE = keccak256("ADMIN_ROLE"); bytes32 public constant BACKEND_ROLE = keccak256("BACKEND_ROLE"); // orders mapping(address => mapping(bytes32 => MintOrder)) public orders; mapping(address => mapping(bytes32 => BurnOrder)) public claimableBurned; // caps mapping(address => uint256) private _userNonce; // (user => nonce) // tokenPrice uint256 private _tokenPrice = 10_000; IWalletFactory private _walletFactory; ///@dev emitted when minting order is created event MintRequested( address user, address stable, uint256 amount, address wallet, bytes32 orderHash ); ///@dev emitted when minting order is fulfilled event Minted(address user, address stable, uint256 amount, bytes32 orderHash); ///@dev emitted when minting order is rejected event MintRejected(address user, address stable, uint256 amount, bytes32 orderHash); ///@dev emitted when rejected minting order is claimed event MintClaimed(address user, address stable, uint256 amount, bytes32 orderHash); ///@dev emitted when burning order is created event BurnRequested( address user, uint256 amount, address stable, uint256 stblAmount, bytes32 orderHash ); ///@dev emitted when burning order is fulfilled event Burned(address user, address stable, uint256 amount, bytes32 orderHash); ///@dev emitted when new token price is set event TokenPriceSet(uint256 tokenPrice); ///@dev emitted when wallet factory is set event WalletFactorySet(address walletFactory); ///@dev check whether user is in the whitelist or blocked modifier checkAccess(address from) { IWalletFactory.UserWallet memory fromWallet = _walletFactory.userWallets(from); if (fromWallet.status == IWalletFactory.UserStatus.BLOCKED) revert RoleControl(); if (!_walletFactory.globalAccess()) { if (!(fromWallet.partner && fromWallet.status == IWalletFactory.UserStatus.ACTIVE)) revert RoleControl(); } _; } ///@param walletFactory address of walletFactory smart contract constructor(IWalletFactory walletFactory) { _walletFactory = walletFactory; } //=====================================================MINTING===================================================== ///@dev allows a user to request minting of a specific amount of a STBL token for a certain amount of stablecoins ///@param target the address where tokens will be minted to ///@param stable the address of the deposit stablecoin ///@param amount the amount of stablecoins to be deposited function requestMint( address target, address stable, uint256 amount ) external override checkAccess(msg.sender) { // STBL is allowed if (!_walletFactory.allowedTokens(stable)) revert InvalidToken(); IWalletFactory.UserWallet memory userWallet = _walletFactory.processMintRequest( msg.sender, stable, amount ); // deposit wallet exists and isn't blocked // IWalletFactory.UserWallet memory userWallet = _walletFactory.userWallets(msg.sender); address depositWallet = userWallet.depositAddress; if (userWallet.minter != true) revert RoleControl(); if (_walletFactory.depositWallets(depositWallet) != true) revert DepositAddressBlocked(); // transfer IERC20Metadata(stable).safeTransferFrom(msg.sender, depositWallet, amount); // createOrder bytes32 orderHash = keccak256( abi.encode(msg.sender, stable, amount, _userNonce[msg.sender]) ); orders[msg.sender][orderHash] = MintOrder({ target: target, stable: stable, investedAmount: amount, rejected: false, withFee: false, processed: false, depositWallet: depositWallet }); _userNonce[msg.sender] += 1; emit MintRequested(msg.sender, stable, amount, depositWallet, orderHash); } ///@dev used by backend/admin/multisig depending on the limits to accept minting order, process tokens and mint STBL ///@param user the user who requested minting ///@param coldWallet the address where deposited stablecoins will be sent ///@param orderHash the hash of the minting order function acceptMint(address user, address coldWallet, bytes32 orderHash) external override { IWalletFactory walletFactory_ = _walletFactory; if (orders[user][orderHash].processed) revert AlreadyProcessed(); address depositWallet = orders[user][orderHash].depositWallet; uint256 amount = orders[user][orderHash].investedAmount; address stable = orders[user][orderHash].stable; (uint256 adminThreshold, uint256 multisigThreshold) = _walletFactory.getThresholds(); uint256 fee = (amount * walletFactory_.mintFee()) / HUNDRED_PERCENT; // in USDT orders[user][orderHash].investedAmount = 0; uint256 mintedAmount = ((((amount - fee) * _tokenPrice) / HUNDRED_PERCENT) * 10 ** IERC20Metadata(walletFactory_.stblAddress()).decimals()) / 10 ** IERC20Metadata(stable).decimals(); if (mintedAmount > multisigThreshold) { if (msg.sender != walletFactory_.multisigAddress()) revert RoleControl(); } if (mintedAmount < multisigThreshold && mintedAmount > adminThreshold) { if (!IAccessControl(address(walletFactory_)).hasRole(ADMIN_ROLE, msg.sender)) revert RoleControl(); } if (mintedAmount < adminThreshold) { if (!IAccessControl(address(walletFactory_)).hasRole(BACKEND_ROLE, msg.sender)) revert RoleControl(); } orders[user][orderHash].processed = true; ISTBL(_walletFactory.stblAddress()).mint(orders[user][orderHash].target, mintedAmount); IDepositWallet(depositWallet).processTokens(stable, coldWallet, amount - fee, fee); emit Minted(user, stable, mintedAmount, orderHash); } ///@dev used by backend to reject minting order ///@param user the user who requested minting ///@param orderHash the hash of the minting order ///@param withFee if true, fee will be deducted from the returned stablecoins function rejectMint(address user, bytes32 orderHash, bool withFee) external override { if ( !(IAccessControl(address(_walletFactory)).hasRole(ADMIN_ROLE, msg.sender) || IAccessControl(address(_walletFactory)).hasRole(BACKEND_ROLE, msg.sender)) ) { revert RoleControl(); } if (orders[user][orderHash].processed) revert AlreadyProcessed(); uint256 amount = orders[user][orderHash].investedAmount; address stable = orders[user][orderHash].stable; orders[user][orderHash].rejected = true; orders[user][orderHash].withFee = withFee; orders[user][orderHash].processed = true; _walletFactory.rejectMintRequest(user, stable, amount); emit MintRejected(user, stable, amount, orderHash); } ///@dev used by user to claim rejected funds ///@param orderHash the hash of the minting order function claimRejected(bytes32 orderHash) external override { if (!orders[msg.sender][orderHash].rejected) { revert NotRejected(); } address depositWallet = orders[msg.sender][orderHash].depositWallet; address stable = orders[msg.sender][orderHash].stable; uint256 amount = orders[msg.sender][orderHash].investedAmount; orders[msg.sender][orderHash].investedAmount = 0; uint256 fee = (orders[msg.sender][orderHash].withFee && _walletFactory.depositWallets(depositWallet)) ? (amount * _walletFactory.burnFee()) / HUNDRED_PERCENT : 0; IDepositWallet(depositWallet).processTokens(stable, msg.sender, amount - fee, fee); emit MintClaimed(msg.sender, stable, amount - fee, orderHash); } //=====================================================BURNING===================================================== ///@dev allows a user to request burning of a specific amount of a STBL token ///@param stable the address of the returned stablecoin ///@param amount the amount of STBL to be burned function requestBurn(address stable, uint256 amount) external override checkAccess(msg.sender) { if (!_walletFactory.allowedTokens(stable)) { revert InvalidToken(); } IWalletFactory.UserWallet memory userWallet = _walletFactory.processBurnRequest( msg.sender, amount ); if (userWallet.burner != true) revert RoleControl(); ISTBL(_walletFactory.stblAddress()).burn(msg.sender, amount); bytes32 orderHash = keccak256( abi.encode(msg.sender, stable, amount, _userNonce[msg.sender]) ); uint256 stableAmount = (((amount * HUNDRED_PERCENT) / _tokenPrice) * 10 ** IERC20Metadata(stable).decimals()) / 10 ** IERC20Metadata(_walletFactory.stblAddress()).decimals(); claimableBurned[msg.sender][orderHash] = BurnOrder({ stable: stable, amount: stableAmount, processed: false }); _userNonce[msg.sender] += 1; emit BurnRequested(msg.sender, amount, stable, stableAmount, orderHash); } ///@dev used by backend to process burn requests ///@param user the user who requested burning function processBurned(address user, bytes32 orderHash) external override { if (!IAccessControl(address(_walletFactory)).hasRole(BACKEND_ROLE, msg.sender)) { revert RoleControl(); } if (claimableBurned[user][orderHash].processed) revert AlreadyProcessed(); uint256 amount = claimableBurned[user][orderHash].amount; address stable = claimableBurned[user][orderHash].stable; uint256 fee = (amount * _walletFactory.burnFee()) / HUNDRED_PERCENT; claimableBurned[user][orderHash].processed = true; IBurnWallet(IWalletFactory(_walletFactory).burnWallet()).processTokens( stable, user, amount - fee, fee ); emit Burned(user, stable, amount - fee, orderHash); } //=====================================================ADMIN===================================================== ///@dev set token price ///@param tokenPrice the new token price function setTokenPrice(uint256 tokenPrice) external override { if (msg.sender != _walletFactory.multisigAddress()) revert RoleControl(); _tokenPrice = tokenPrice; emit TokenPriceSet(tokenPrice); } ///@dev set wallet factory ///@param walletFactory the new wallet factory function setWalletFactory(address walletFactory) external override { if (msg.sender != _walletFactory.multisigAddress()) revert RoleControl(); _walletFactory = IWalletFactory(walletFactory); emit WalletFactorySet(walletFactory); } ///@dev returns the token price function tokenPrice() external view override returns (uint256) { return _tokenPrice; } /// @return the nonce of the user function userNonce(address user) external view override returns (uint256) { return _userNonce[user]; } /// @return wallet factory function walletFactory() external view override returns (address) { return address(_walletFactory); } /// @dev returns the amount of STBL that will be minted for a certain amount of stablecoins /// @param stable address of stable coin /// @param amount amount is stablecoins /// @return amount of STBL with fee function mintedAmount(address stable, uint256 amount) external view override returns (uint256) { IWalletFactory walletFactory_ = _walletFactory; uint256 fee = (amount * walletFactory_.mintFee()) / HUNDRED_PERCENT; // in USDT return ((((amount - fee) * _tokenPrice) / HUNDRED_PERCENT) * 10 ** IERC20Metadata(walletFactory_.stblAddress()).decimals()) / 10 ** IERC20Metadata(stable).decimals(); } /// @dev returns the amount of stablecoins that will be burned for a certain amount of STBL /// @param stable address of stable coin /// @param amount amount is STBL /// @return amount of stablecoins /// @return fee /// @return amount of stablecoins-fee function burnedAmount( address stable, uint256 amount ) external view override returns (uint256, uint256, uint256) { uint256 stableAmount = (((amount * HUNDRED_PERCENT) / _tokenPrice) * 10 ** IERC20Metadata(stable).decimals()) / 10 ** IERC20Metadata(_walletFactory.stblAddress()).decimals(); uint256 fee = (stableAmount * _walletFactory.burnFee()) / HUNDRED_PERCENT; return (stableAmount, fee, stableAmount - fee); } /// @dev returns current limits for a user /// @param user address of the user /// @param stable address of the stable token /// @return mintAvailable mint limit /// @return burnAvailable burning limit function getUserAmountsAvailable( address user, address stable ) external view override returns (uint256 mintAvailable, uint256 burnAvailable) { // get global limit in STBL uint256 globalAvailable; globalAvailable = _walletFactory.cryptoHardcap(stable) - _walletFactory.cryptoDeposited(stable); // get user personal limit in STBL IWalletFactory.UserWallet memory userWallet = _walletFactory.userWallets(user); uint256 userAvailable = userWallet.mintLimit; userAvailable -= userWallet.minted; mintAvailable = globalAvailable > userAvailable ? userAvailable : globalAvailable; mintAvailable = ((((mintAvailable) * _tokenPrice) / HUNDRED_PERCENT) * 10 ** IERC20Metadata(stable).decimals()) / 10 ** IERC20Metadata(_walletFactory.stblAddress()).decimals(); mintAvailable = (mintAvailable / (HUNDRED_PERCENT - _walletFactory.mintFee())) * HUNDRED_PERCENT; uint256 burningLimit = userWallet.burnLimit; burnAvailable = ((burningLimit - userWallet.burned) / (HUNDRED_PERCENT - _walletFactory.mintFee())) * HUNDRED_PERCENT; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (access/IAccessControl.sol) pragma solidity ^0.8.20; /** * @dev External interface of AccessControl declared to support ERC165 detection. */ interface IAccessControl { /** * @dev The `account` is missing a role. */ error AccessControlUnauthorizedAccount(address account, bytes32 neededRole); /** * @dev The caller of a function is not the expected one. * * NOTE: Don't confuse with {AccessControlUnauthorizedAccount}. */ error AccessControlBadConfirmation(); /** * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` * * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite * {RoleAdminChanged} not being emitted signaling this. */ event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole); /** * @dev Emitted when `account` is granted `role`. * * `sender` is the account that originated the contract call, an admin role * bearer except when using {AccessControl-_setupRole}. */ event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Emitted when `account` is revoked `role`. * * `sender` is the account that originated the contract call: * - if using `revokeRole`, it is the admin role bearer * - if using `renounceRole`, it is the role bearer (i.e. `account`) */ event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender); /** * @dev Returns `true` if `account` has been granted `role`. */ function hasRole(bytes32 role, address account) external view returns (bool); /** * @dev Returns the admin role that controls `role`. See {grantRole} and * {revokeRole}. * * To change a role's admin, use {AccessControl-_setRoleAdmin}. */ function getRoleAdmin(bytes32 role) external view returns (bytes32); /** * @dev Grants `role` to `account`. * * If `account` had not been already granted `role`, emits a {RoleGranted} * event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function grantRole(bytes32 role, address account) external; /** * @dev Revokes `role` from `account`. * * If `account` had been granted `role`, emits a {RoleRevoked} event. * * Requirements: * * - the caller must have ``role``'s admin role. */ function revokeRole(bytes32 role, address account) external; /** * @dev Revokes `role` from the calling account. * * Roles are often managed via {grantRole} and {revokeRole}: this function's * purpose is to provide a mechanism for accounts to lose their privileges * if they are compromised (such as when a trusted device is misplaced). * * If the calling account had been granted `role`, emits a {RoleRevoked} * event. * * Requirements: * * - the caller must be `callerConfirmation`. */ function renounceRole(bytes32 role, address callerConfirmation) external; }
// 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/extensions/IERC20Permit.sol) pragma solidity ^0.8.20; /** * @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 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.0) (token/ERC20/utils/SafeERC20.sol) pragma solidity ^0.8.20; import {IERC20} from "../IERC20.sol"; import {IERC20Permit} from "../extensions/IERC20Permit.sol"; import {Address} from "../../../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 An operation with an ERC20 token failed. */ error SafeERC20FailedOperation(address token); /** * @dev Indicates a failed `decreaseAllowance` request. */ error SafeERC20FailedDecreaseAllowance(address spender, uint256 currentAllowance, uint256 requestedDecrease); /** * @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.encodeCall(token.transfer, (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.encodeCall(token.transferFrom, (from, to, 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); forceApprove(token, spender, oldAllowance + value); } /** * @dev Decrease the calling contract's allowance toward `spender` by `requestedDecrease`. If `token` returns no * value, non-reverting calls are assumed to be successful. */ function safeDecreaseAllowance(IERC20 token, address spender, uint256 requestedDecrease) internal { unchecked { uint256 currentAllowance = token.allowance(address(this), spender); if (currentAllowance < requestedDecrease) { revert SafeERC20FailedDecreaseAllowance(spender, currentAllowance, requestedDecrease); } forceApprove(token, spender, currentAllowance - requestedDecrease); } } /** * @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.encodeCall(token.approve, (spender, value)); if (!_callOptionalReturnBool(token, approvalCall)) { _callOptionalReturn(token, abi.encodeCall(token.approve, (spender, 0))); _callOptionalReturn(token, approvalCall); } } /** * @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); if (returndata.length != 0 && !abi.decode(returndata, (bool))) { revert SafeERC20FailedOperation(address(token)); } } /** * @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(token).code.length > 0; } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol) pragma solidity ^0.8.20; /** * @dev Collection of functions related to the address type */ library Address { /** * @dev The ETH balance of the account is not enough to perform the operation. */ error AddressInsufficientBalance(address account); /** * @dev There's no code at `target` (it is not a contract). */ error AddressEmptyCode(address target); /** * @dev A call to an address target failed. The target may have reverted. */ error FailedInnerCall(); /** * @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.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern]. */ function sendValue(address payable recipient, uint256 amount) internal { if (address(this).balance < amount) { revert AddressInsufficientBalance(address(this)); } (bool success, ) = recipient.call{value: amount}(""); if (!success) { revert FailedInnerCall(); } } /** * @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 or custom error, it is bubbled * up by this function (like regular Solidity function calls). However, if * the call reverted with no returned reason, this function reverts with a * {FailedInnerCall} error. * * 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. */ function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCallWithValue(target, data, 0); } /** * @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`. */ function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) { if (address(this).balance < value) { revert AddressInsufficientBalance(address(this)); } (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a static call. */ function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], * but performing a delegate call. */ function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResultFromTarget(target, success, returndata); } /** * @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target * was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an * unsuccessful call. */ function verifyCallResultFromTarget( address target, bool success, bytes memory returndata ) internal view returns (bytes memory) { if (!success) { _revert(returndata); } else { // only check if target is a contract if the call was successful and the return data is empty // otherwise we already know that it was a contract if (returndata.length == 0 && target.code.length == 0) { revert AddressEmptyCode(target); } return returndata; } } /** * @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the * revert reason or with a default {FailedInnerCall} error. */ function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) { if (!success) { _revert(returndata); } else { return returndata; } } /** * @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}. */ function _revert(bytes memory returndata) 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 FailedInnerCall(); } } }
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.8.25; interface IBurnWallet { function processTokens( address stable, address coldWallet, uint256 amount, uint256 fee ) external; function retrieveTokens(address stable, address to, uint256 amount) external; function initialize() external; function walletFactory() external view returns (address); }
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.8.25; interface IDepositWallet { function processTokens( address stable, address coldWallet, uint256 amount, uint256 fee ) external; function initialize(address userAddress) external; function userAddress() external view returns (address); function walletFactory() external view returns (address); }
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.8.25; interface IMinter { struct MintOrder { address target; bool processed; address stable; bool withFee; address depositWallet; bool rejected; uint256 investedAmount; } struct BurnOrder { bool processed; address stable; uint256 amount; } function requestMint(address target, address stable, uint256 amount) external; function acceptMint(address user, address coldWallet, bytes32 orderHash) external; function rejectMint(address user, bytes32 orderHash, bool withFee) external; function claimRejected(bytes32 orderHash) external; function requestBurn(address stable, uint256 amount) external; function processBurned(address user, bytes32 orderHash) external; function setTokenPrice(uint256 tokenPrice) external; function setWalletFactory(address walletFactory) external; function tokenPrice() external view returns (uint256); function userNonce(address user) external view returns (uint256); function walletFactory() external view returns (address); function mintedAmount(address stable, uint256 amount) external view returns (uint256); function burnedAmount( address stable, uint256 amount ) external view returns (uint256, uint256, uint256); function getUserAmountsAvailable( address user, address stable ) external view returns (uint256 mintAvailable, uint256 burnAvailable); }
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.8.25; interface ISTBL { function mint(address to, uint256 amount) external; function burn(address from, uint256 amount) external; function setWalletFactory(address walletFactory) external; function disableMinting() external; function enableMinting() external; function disableBurn() external; function enableBurn() external; function mintable() external view returns (bool); function burnable() external view returns (bool); function walletFactory() external view returns (address); }
// SPDX-License-Identifier: UNLICENSED pragma solidity =0.8.25; interface IWalletFactory { enum UserStatus { INACTIVE, PENDING, ACTIVE, REJECTED, BLOCKED } struct UserWallet { UserStatus status; bool partner; bool burner; bool minter; address depositAddress; bool business; uint256 minted; uint256 mintLimit; uint256 burned; uint256 burnLimit; } function processMintRequest( address user, address stable, uint256 amount ) external returns (UserWallet memory); function rejectMintRequest(address user, address stable, uint256 amount) external; function processBurnRequest(address user, uint256 amount) external returns (UserWallet memory); function register(bool partner, bool burner, bool minter, bool business) external; function acceptUser(address userAddress) external; function rejectUser(address userAddress) external; function createDepositWallet(address userAddress) external; function setUserCaps(address user, uint256 mintLimit, uint256 burnLimit) external; function setGlobalAccess(bool value) external; function setDepositWalletStatus(address[] calldata addresses, bool[] calldata values) external; function setUserStatus(address[] calldata addresses, UserStatus[] calldata values) external; function setColdWallets(address[] calldata addresses, bool[] calldata values) external; function setMultisigAddress(address multisigAddress) external; function setDepositWalletImplementation(address implementation) external; function setBurnWalletImplementation(address implementation) external; function setDepositAddress(address userAddress, address depositAddress) external; function setTokens( address[] calldata addresses, bool[] calldata values, uint256[] calldata cryptoHardcaps ) external; function setFeeAddress(address feeAddress) external; function setFee(uint256 mintFee, uint256 burnFee, uint256 transferFee) external; function setSoftCaps( uint256 minMintSoftcap, uint256 maxMintSoftcap, uint256 minBurnSoftcap, uint256 maxBurnSoftcap ) external; function setGlobalUserCaps( uint256 businessMinterCap, uint256 personalMinterCap, uint256 businessBurnerCap, uint256 personalBurnerCap ) external; function setCryptoHardcap(address stable, uint256 cryptoHardcap) external; function setFiatHardcap(uint256 fiatHardcap) external; function setThresholds(uint256 adminThreshold, uint256 multisigThreshold) external; function setDAO(address daoAddress) external; function setMinters(address[] calldata addresses, bool[] calldata values) external; function setSTBLAddress(address stblAddress) external; function setBurnWallet() external; function transferFee() external view returns (uint256); function mintFee() external view returns (uint256); function burnFee() external view returns (uint256); function globalAccess() external view returns (bool); function feeAddress() external view returns (address); function multisigAddress() external view returns (address); function daoAddress() external view returns (address); function userWallets(address user) external view returns (UserWallet memory); function depositWallets(address user) external view returns (bool); function stblAddress() external view returns (address); function minterAddresses(address) external view returns (bool); function allowedTokens(address token) external view returns (bool); function coldWallets(address wallet) external view returns (bool); function adminThreshold() external view returns (uint256); function multisigThreshold() external view returns (uint256); function getThresholds() external view returns (uint256, uint256); function fiatHardcap() external view returns (uint256); function fiatDeposited() external view returns (uint256); function cryptoDeposited(address stable) external view returns (uint256); function cryptoHardcap(address stable) external view returns (uint256); function minMintSoftcap() external view returns (uint256); function maxMintSoftcap() external view returns (uint256); function maxBurnSoftcap() external view returns (uint256); function minBurnSoftcap() external view returns (uint256); function personalMinterCap() external view returns (uint256); function businessMinterCap() external view returns (uint256); function personalBurnerCap() external view returns (uint256); function businessBurnerCap() external view returns (uint256); function depositWalletImplementation() external view returns (address); function burnWalletImplementation() external view returns (address); function burnWallet() external view returns (address); function getLimits() external view returns (uint256, uint256, uint256, uint256, uint256, uint256); // function getUserAmountsAvailable( // address user, // address stable, // bool fiat // ) external view returns (uint256 mintAvailable, uint256 burningAvailable); }
pragma solidity =0.8.25; error UserInactive(); // 0x3310e691 error InvalidToken(); // 0xc1ab6dc1 error ZeroAddress(); // 0xd92e233d error DepositAddressBlocked(); // 0x24c07dff error RoleControl(); // 0x38a097a3 error NotRejected(); // 0x954443dc error NotMintable(); // 0x12a59152 error NotBurnable(); // 0xda38f010 error InvalidInput(); // 0xb4fa3fb3 error InternalError(); // 0xfe835e35 error CapReached(); // 0xd7e991d2 error AlreadyProcessed(); // 0x57eee766
{ "optimizer": { "enabled": true, "runs": 1000 }, "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":"contract IWalletFactory","name":"walletFactory","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"target","type":"address"}],"name":"AddressEmptyCode","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"AddressInsufficientBalance","type":"error"},{"inputs":[],"name":"AlreadyProcessed","type":"error"},{"inputs":[],"name":"DepositAddressBlocked","type":"error"},{"inputs":[],"name":"FailedInnerCall","type":"error"},{"inputs":[],"name":"InvalidToken","type":"error"},{"inputs":[],"name":"NotRejected","type":"error"},{"inputs":[],"name":"RoleControl","type":"error"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"SafeERC20FailedOperation","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"stable","type":"address"},{"indexed":false,"internalType":"uint256","name":"stblAmount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"BurnRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"stable","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"Burned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"stable","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"MintClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"stable","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"MintRejected","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"stable","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"MintRequested","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"user","type":"address"},{"indexed":false,"internalType":"address","name":"stable","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"TokenPriceSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"walletFactory","type":"address"}],"name":"WalletFactorySet","type":"event"},{"inputs":[],"name":"ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"BACKEND_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HUNDRED_PERCENT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"coldWallet","type":"address"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"acceptMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"claimRejected","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"claimableBurned","outputs":[{"internalType":"bool","name":"processed","type":"bool"},{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"address","name":"stable","type":"address"}],"name":"getUserAmountsAvailable","outputs":[{"internalType":"uint256","name":"mintAvailable","type":"uint256"},{"internalType":"uint256","name":"burnAvailable","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintedAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"orders","outputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"processed","type":"bool"},{"internalType":"address","name":"stable","type":"address"},{"internalType":"bool","name":"withFee","type":"bool"},{"internalType":"address","name":"depositWallet","type":"address"},{"internalType":"bool","name":"rejected","type":"bool"},{"internalType":"uint256","name":"investedAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"}],"name":"processBurned","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"bytes32","name":"orderHash","type":"bytes32"},{"internalType":"bool","name":"withFee","type":"bool"}],"name":"rejectMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"requestBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"target","type":"address"},{"internalType":"address","name":"stable","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"requestMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenPrice","type":"uint256"}],"name":"setTokenPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"walletFactory","type":"address"}],"name":"setWalletFactory","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"userNonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"walletFactory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
6080604052612710600355348015601557600080fd5b5060405161339e38038061339e8339810160408190526032916056565b600480546001600160a01b0319166001600160a01b03929092169190911790556084565b600060208284031215606757600080fd5b81516001600160a01b0381168114607d57600080fd5b9392505050565b61330b806100936000396000f3fe608060405234801561001057600080fd5b50600436106101515760003560e01c80637ebf879c116100cd578063bb5f462911610081578063c5c0369911610066578063c5c03699146103d1578063dd88aabf146103ec578063fbf5d4dd146103ff57600080fd5b8063bb5f46291461030e578063bdbaaff0146103be57600080fd5b806392c2becc116100b257806392c2becc1461026c578063abf99ba114610293578063b1d31147146102fb57600080fd5b80637ebf879c146102515780637ff9b5961461026457600080fd5b806337947ca3116101245780636ed93dd0116101095780636ed93dd01461020e578063745787191461021757806375b238fc1461022a57600080fd5b806337947ca3146101cd5780636a61e5fc146101fb57600080fd5b806311840a821461015657806316f184061461016b5780631d0d5f1e1461017e5780632e04b8e714610191575b600080fd5b610169610164366004612e52565b610427565b005b610169610179366004612e7e565b610794565b61016961018c366004612e97565b610a49565b6101ba61019f366004612ed8565b6001600160a01b031660009081526002602052604090205490565b6040519081526020015b60405180910390f35b6101e06101db366004612e52565b611027565b604080519384526020840192909252908201526060016101c4565b610169610209366004612e7e565b611259565b6101ba61271081565b6101ba610225366004612e52565b611331565b6101ba7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61016961025f366004612ed8565b611548565b6003546101ba565b6101ba7f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f81565b6102d66102a1366004612e52565b60016020818152600093845260408085209091529183529120805491015460ff82169161010090046001600160a01b03169083565b6040805193151584526001600160a01b039092166020840152908201526060016101c4565b610169610309366004612f03565b61164a565b61037361031c366004612e52565b600060208181529281526040808220909352908152208054600182015460028301546003909301546001600160a01b038084169460ff600160a01b9586900481169585841695819004821694938316939204169087565b604080516001600160a01b0398891681529615156020880152948716948601949094529115156060850152909316608083015291151560a082015260c081019190915260e0016101c4565b6101696103cc366004612e52565b61190f565b6004546040516001600160a01b0390911681526020016101c4565b6101696103fa366004612e97565b611f7c565b61041261040d366004612f45565b612701565b604080519283526020830191909152016101c4565b60048054604051632474521560e21b81527f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f928101929092523360248301526001600160a01b0316906391d1485490604401602060405180830381865afa158015610496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ba9190612f8e565b6104d7576040516338a097a360e01b815260040160405180910390fd5b6001600160a01b038216600090815260016020908152604080832084845290915290205460ff161561051c57604051632bf773b360e11b815260040160405180910390fd5b6001600160a01b03828116600090815260016020818152604080842086855282528084209283015492546004805483517ffce589d8000000000000000000000000000000000000000000000000000000008152935195976101009093048316969561271095919093169363fce589d8938184019390918290030181865afa1580156105ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cf9190612fab565b6105d99085612fda565b6105e39190612ff1565b6001600160a01b0380871660009081526001602081815260408084208a8552825292839020805460ff19169092179091556004805483517f06228749000000000000000000000000000000000000000000000000000000008152935195965090931693630622874993838101938290030181865afa158015610669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068d919061301e565b6001600160a01b031663ee11638a83876106a7858861303b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b039384166004820152929091166024830152604482015260648101849052608401600060405180830381600087803b15801561071557600080fd5b505af1158015610729573d6000803e3d6000fd5b505050507f48977aac0b960a545fa87c55456220f79843e875d804c9b7a2f23072420e11568583838661075c919061303b565b604080516001600160a01b03948516815293909216602084015290820152606081018690526080015b60405180910390a15050505050565b33600090815260208181526040808320848452909152902060020154600160a01b900460ff166107f0576040517f954443dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526020818152604080832084845290915281206002810154600182015460039092018054908490556001600160a01b039182169391831692909190600160a01b900460ff1680156108b15750600480546040516323685ad360e21b81526001600160a01b0387811693820193909352911690638da16b4c90602401602060405180830381865afa15801561088d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b19190612f8e565b6108bc57600061094a565b612710600460009054906101000a90046001600160a01b03166001600160a01b031663fce589d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610912573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109369190612fab565b6109409084612fda565b61094a9190612ff1565b90506001600160a01b03841663ee11638a8433610967858761303b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b039384166004820152929091166024830152604482015260648101849052608401600060405180830381600087803b1580156109d557600080fd5b505af11580156109e9573d6000803e3d6000fd5b505050507f8a7b597bc986b6e0c19859b822f13fc49de28e540c11d460d8708447d502aa1733848385610a1c919061303b565b604080516001600160a01b0394851681529390921660208401529082015260608101879052608001610785565b600480546040516363e6ffdd60e01b8152339281018390526000916001600160a01b0316906363e6ffdd9060240161014060405180830381865afa158015610a95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab99190613095565b9050600481516004811115610ad057610ad0613143565b03610aee576040516338a097a360e01b815260040160405180910390fd5b60048054604080516302ff59ed60e41b815290516001600160a01b0390921692632ff59ed09282820192602092908290030181865afa158015610b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b599190612f8e565b610b9d5780602001518015610b805750600281516004811115610b7e57610b7e613143565b145b610b9d576040516338a097a360e01b815260040160405180910390fd5b600480546040516373a2049760e11b81526001600160a01b038781169382019390935291169063e744092e90602401602060405180830381865afa158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190612f8e565b610c2a5760405163c1ab6dc160e01b815260040160405180910390fd5b600480546040517f93b2f62600000000000000000000000000000000000000000000000000000000815233928101929092526001600160a01b038681166024840152604483018690526000929116906393b2f62690606401610140604051808303816000875af1158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190613095565b60808101516060820151919250901515600114610cf6576040516338a097a360e01b815260040160405180910390fd5b600480546040516323685ad360e21b81526001600160a01b0384811693820193909352911690638da16b4c90602401602060405180830381865afa158015610d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d669190612f8e565b1515600114610da1576040517f24c07dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610db66001600160a01b038716338388612ba4565b336000818152600260209081526040808320548151928301949094526001600160a01b038a16908201526060810188905260808101929092529060a0016040516020818303038152906040528051906020012090506040518060e00160405280896001600160a01b03168152602001600015158152602001886001600160a01b03168152602001600015158152602001836001600160a01b0316815260200160001515815260200187815250600080336001600160a01b03166001600160a01b03168152602001908152602001600020600083815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160010160146101000a81548160ff02191690831515021790555060808201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060a08201518160020160146101000a81548160ff02191690831515021790555060c08201518160030155905050600160026000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254610fc19190613159565b9091555050604080513381526001600160a01b038981166020830152818301899052841660608201526080810183905290517ff84c357cbb1affb098f1be5e7edd1184f8f7eff7fe91a382baaa9c3d6d31a71f9181900360a00190a15050505050505050565b600080600080600460009054906101000a90046001600160a01b03166001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa158015611080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a4919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611105919061316c565b61111090600a613273565b866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561114e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611172919061316c565b61117d90600a613273565b60035461118c61271089612fda565b6111969190612ff1565b6111a09190612fda565b6111aa9190612ff1565b90506000612710600460009054906101000a90046001600160a01b03166001600160a01b031663fce589d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611204573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112289190612fab565b6112329084612fda565b61123c9190612ff1565b9050818161124a818361303b565b94509450945050509250925092565b6004805460408051635462870d60e01b815290516001600160a01b0390921692635462870d9282820192602092908290030181865afa1580156112a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c4919061301e565b6001600160a01b0316336001600160a01b0316146112f5576040516338a097a360e01b815260040160405180910390fd5b60038190556040518181527f4b59d61d9ffdc3db926d0ce7e06ebabb6bd1bf9dcdae262667e48be368227216906020015b60405180910390a150565b600080600460009054906101000a90046001600160a01b031690506000612710826001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b39190612fab565b6113bd9086612fda565b6113c79190612ff1565b9050846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611407573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142b919061316c565b61143690600a613273565b826001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa158015611474573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611498919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f9919061316c565b61150490600a613273565b60035461271090611515858961303b565b61151f9190612fda565b6115299190612ff1565b6115339190612fda565b61153d9190612ff1565b925050505b92915050565b6004805460408051635462870d60e01b815290516001600160a01b0390921692635462870d9282820192602092908290030181865afa15801561158f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b3919061301e565b6001600160a01b0316336001600160a01b0316146115e4576040516338a097a360e01b815260040160405180910390fd5b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f9c328e9ae4d6a4d717998e8ae5ef66c5ac4313ea99500c5ea0661438aeef28e690602001611326565b60048054604051632474521560e21b81527fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775928101929092523360248301526001600160a01b0316906391d1485490604401602060405180830381865afa1580156116b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116dd9190612f8e565b80611776575060048054604051632474521560e21b81527f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f928101929092523360248301526001600160a01b0316906391d1485490604401602060405180830381865afa158015611752573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117769190612f8e565b611793576040516338a097a360e01b815260040160405180910390fd5b6001600160a01b038316600090815260208181526040808320858452909152902054600160a01b900460ff16156117dd57604051632bf773b360e11b815260040160405180910390fd5b6001600160a01b03838116600081815260208181526040808320878452909152908190206003810154600182018054600284018054600160a01b60ff60a01b1991821681179092558083168a151583021790935584549092169091179092556004805493517f355ef3b60000000000000000000000000000000000000000000000000000000081529081019490945290841660248401819052604484018290529093909291169063355ef3b690606401600060405180830381600087803b1580156118a757600080fd5b505af11580156118bb573d6000803e3d6000fd5b5050604080516001600160a01b03808a16825285166020820152908101859052606081018790527f05affc7f9e5fe8078348200a241b57a8b55824b25382a30db2dbe6870cb9971692506080019050610785565b600480546040516363e6ffdd60e01b8152339281018390526000916001600160a01b0316906363e6ffdd9060240161014060405180830381865afa15801561195b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197f9190613095565b905060048151600481111561199657611996613143565b036119b4576040516338a097a360e01b815260040160405180910390fd5b60048054604080516302ff59ed60e41b815290516001600160a01b0390921692632ff59ed09282820192602092908290030181865afa1580156119fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1f9190612f8e565b611a635780602001518015611a465750600281516004811115611a4457611a44613143565b145b611a63576040516338a097a360e01b815260040160405180910390fd5b600480546040516373a2049760e11b81526001600160a01b038781169382019390935291169063e744092e90602401602060405180830381865afa158015611aaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad39190612f8e565b611af05760405163c1ab6dc160e01b815260040160405180910390fd5b600480546040517f06b35d750000000000000000000000000000000000000000000000000000000081523392810192909252602482018590526000916001600160a01b03909116906306b35d7590604401610140604051808303816000875af1158015611b61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b859190613095565b9050806040015115156001151514611bb0576040516338a097a360e01b815260040160405180910390fd5b6004805460408051630309ac6b60e11b815290516001600160a01b039092169263061358d69282820192602092908290030181865afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b919061301e565b6040517f9dc29fac000000000000000000000000000000000000000000000000000000008152336004820152602481018690526001600160a01b039190911690639dc29fac90604401600060405180830381600087803b158015611c7e57600080fd5b505af1158015611c92573d6000803e3d6000fd5b5050336000818152600260209081526040808320548151808401959095526001600160a01b038c811686840152606086018c90526080808701929092528251808703909201825260a08601808452825192850192909220600454630309ac6b60e11b90935292519297509395509092169263061358d69260a480830193928290030181865afa158015611d29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d4d919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dae919061316c565b611db990600a613273565b876001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1b919061316c565b611e2690600a613273565b600354611e356127108a612fda565b611e3f9190612ff1565b611e499190612fda565b611e539190612ff1565b6040805160608101825260008082526001600160a01b038b811660208085019182528486018781523380865260018084528887208c885284528887209751885495517fffffffffffffffffffffff0000000000000000000000000000000000000000009096169015157fffffffffffffffffffffff0000000000000000000000000000000000000000ff161761010095909616949094029490941786555194820194909455908252600290925291822080549394509092909190611f18908490613159565b909155505060408051338152602081018890526001600160a01b03891681830152606081018390526080810184905290517f7d2ea91f475ef022d666f30feab9c454498120725b08ca17efe5e54f698b8f409181900360a00190a150505050505050565b6004546001600160a01b03848116600090815260208181526040808320868452909152902054911690600160a01b900460ff1615611fcd57604051632bf773b360e11b815260040160405180910390fd5b6001600160a01b03848116600090815260208181526040808320868452909152808220600281015460038201546001909201546004805485517f9c3977b500000000000000000000000000000000000000000000000000000000815286519489169895979386169693958695921693639c3977b5938281019391928290030181865afa158015612061573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120859190613282565b915091506000612710876001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f09190612fab565b6120fa9087612fda565b6121049190612ff1565b6001600160a01b03808c166000908152602081815260408083208d8452825280832060030183905580517f313ce567000000000000000000000000000000000000000000000000000000008152905194955091939288169263313ce5679260048082019392918290030181865afa158015612183573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a7919061316c565b6121b290600a613273565b886001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612214919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015612251573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612275919061316c565b61228090600a613273565b60035461271090612291868b61303b565b61229b9190612fda565b6122a59190612ff1565b6122af9190612fda565b6122b99190612ff1565b90508281111561235657876001600160a01b0316635462870d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612301573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612325919061301e565b6001600160a01b0316336001600160a01b031614612356576040516338a097a360e01b815260040160405180910390fd5b828110801561236457508381115b1561241457604051632474521560e21b81527fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177560048201523360248201526001600160a01b038916906391d1485490604401602060405180830381865afa1580156123d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f79190612f8e565b612414576040516338a097a360e01b815260040160405180910390fd5b838110156124c757604051632474521560e21b81527f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f60048201523360248201526001600160a01b038916906391d1485490604401602060405180830381865afa158015612486573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124aa9190612f8e565b6124c7576040516338a097a360e01b815260040160405180910390fd5b6001600160a01b03808c166000908152602081815260408083208d8452825291829020805460ff60a01b1916600160a01b179055600480548351630309ac6b60e11b8152935194169363061358d6938083019392908290030181865afa158015612535573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612559919061301e565b6001600160a01b038c81166000908152602081815260408083208e8452909152908190205490517f40c10f190000000000000000000000000000000000000000000000000000000081529082166004820152602481018490529116906340c10f1990604401600060405180830381600087803b1580156125d857600080fd5b505af11580156125ec573d6000803e3d6000fd5b50505050866001600160a01b031663ee11638a868c858a61260d919061303b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b039384166004820152929091166024830152604482015260648101859052608401600060405180830381600087803b15801561267b57600080fd5b505af115801561268f573d6000803e3d6000fd5b505050507f794f771c64c4db2f318b4519d7ddc0ccbe03f9a239852dbe286e32a140c188ce8b86838c6040516126ec94939291906001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b60405180910390a15050505050505050505050565b600480546040517fae6ae0c90000000000000000000000000000000000000000000000000000000081526001600160a01b03848116938201939093526000928392839291169063ae6ae0c990602401602060405180830381865afa15801561276d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127919190612fab565b600480546040517fcf9260ba0000000000000000000000000000000000000000000000000000000081526001600160a01b038881169382019390935291169063cf9260ba90602401602060405180830381865afa1580156127f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061281a9190612fab565b612824919061303b565b600480546040516363e6ffdd60e01b81526001600160a01b03898116938201939093529293506000929116906363e6ffdd9060240161014060405180830381865afa158015612877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289b9190613095565b60e081015160c0820151919250906128b3908261303b565b90508083116128c257826128c4565b805b9450600460009054906101000a90046001600160a01b03166001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa158015612919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293d919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561297a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299e919061316c565b6129a990600a613273565b866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0b919061316c565b612a1690600a613273565b61271060035488612a279190612fda565b612a319190612ff1565b612a3b9190612fda565b612a459190612ff1565b9450612710600460009054906101000a90046001600160a01b03166001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac19190612fab565b612acd9061271061303b565b612ad79087612ff1565b612ae19190612fda565b945060008261012001519050612710600460009054906101000a90046001600160a01b03166001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b679190612fab565b612b739061271061303b565b610100850151612b83908461303b565b612b8d9190612ff1565b612b979190612fda565b9450505050509250929050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052612c2c908590612c32565b50505050565b6000612c476001600160a01b03841683612cb8565b90508051600014158015612c6c575080806020019051810190612c6a9190612f8e565b155b15612cb3576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024015b60405180910390fd5b505050565b6060612cc683836000612ccd565b9392505050565b606081471015612d0b576040517fcd786059000000000000000000000000000000000000000000000000000000008152306004820152602401612caa565b600080856001600160a01b03168486604051612d2791906132a6565b60006040518083038185875af1925050503d8060008114612d64576040519150601f19603f3d011682016040523d82523d6000602084013e612d69565b606091505b5091509150612d79868383612d83565b9695505050505050565b606082612d9857612d9382612df8565b612cc6565b8151158015612daf57506001600160a01b0384163b155b15612df1576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401612caa565b5080612cc6565b805115612e085780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6001600160a01b0381168114612e3a57600080fd5b60008060408385031215612e6557600080fd5b8235612e7081612e3d565b946020939093013593505050565b600060208284031215612e9057600080fd5b5035919050565b600080600060608486031215612eac57600080fd5b8335612eb781612e3d565b92506020840135612ec781612e3d565b929592945050506040919091013590565b600060208284031215612eea57600080fd5b8135612cc681612e3d565b8015158114612e3a57600080fd5b600080600060608486031215612f1857600080fd5b8335612f2381612e3d565b9250602084013591506040840135612f3a81612ef5565b809150509250925092565b60008060408385031215612f5857600080fd5b8235612f6381612e3d565b91506020830135612f7381612e3d565b809150509250929050565b8051612f8981612ef5565b919050565b600060208284031215612fa057600080fd5b8151612cc681612ef5565b600060208284031215612fbd57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761154257611542612fc4565b60008261300e57634e487b7160e01b600052601260045260246000fd5b500490565b8051612f8981612e3d565b60006020828403121561303057600080fd5b8151612cc681612e3d565b8181038181111561154257611542612fc4565b604051610140810167ffffffffffffffff8111828210171561308057634e487b7160e01b600052604160045260246000fd5b60405290565b805160058110612f8957600080fd5b600061014082840312156130a857600080fd5b6130b061304e565b6130b983613086565b81526130c760208401612f7e565b60208201526130d860408401612f7e565b60408201526130e960608401612f7e565b60608201526130fa60808401613013565b608082015261310b60a08401612f7e565b60a082015260c0838101519082015260e080840151908201526101008084015190820152610120928301519281019290925250919050565b634e487b7160e01b600052602160045260246000fd5b8082018082111561154257611542612fc4565b60006020828403121561317e57600080fd5b815160ff81168114612cc657600080fd5b600181815b808511156131ca5781600019048211156131b0576131b0612fc4565b808516156131bd57918102915b93841c9390800290613194565b509250929050565b6000826131e157506001611542565b816131ee57506000611542565b8160018114613204576002811461320e5761322a565b6001915050611542565b60ff84111561321f5761321f612fc4565b50506001821b611542565b5060208310610133831016604e8410600b841016171561324d575081810a611542565b613257838361318f565b806000190482111561326b5761326b612fc4565b029392505050565b6000612cc660ff8416836131d2565b6000806040838503121561329557600080fd5b505080516020909101519092909150565b6000825160005b818110156132c757602081860181015185830152016132ad565b50600092019182525091905056fea26469706673582212201fd134fd26b53b26b688b87af115dde96e74dc929601031ab1be7c65a7b0fa8764736f6c63430008190033000000000000000000000000b4da86c460f37ac82e0c6dece633f61d61b74eaa
Deployed Bytecode
0x608060405234801561001057600080fd5b50600436106101515760003560e01c80637ebf879c116100cd578063bb5f462911610081578063c5c0369911610066578063c5c03699146103d1578063dd88aabf146103ec578063fbf5d4dd146103ff57600080fd5b8063bb5f46291461030e578063bdbaaff0146103be57600080fd5b806392c2becc116100b257806392c2becc1461026c578063abf99ba114610293578063b1d31147146102fb57600080fd5b80637ebf879c146102515780637ff9b5961461026457600080fd5b806337947ca3116101245780636ed93dd0116101095780636ed93dd01461020e578063745787191461021757806375b238fc1461022a57600080fd5b806337947ca3146101cd5780636a61e5fc146101fb57600080fd5b806311840a821461015657806316f184061461016b5780631d0d5f1e1461017e5780632e04b8e714610191575b600080fd5b610169610164366004612e52565b610427565b005b610169610179366004612e7e565b610794565b61016961018c366004612e97565b610a49565b6101ba61019f366004612ed8565b6001600160a01b031660009081526002602052604090205490565b6040519081526020015b60405180910390f35b6101e06101db366004612e52565b611027565b604080519384526020840192909252908201526060016101c4565b610169610209366004612e7e565b611259565b6101ba61271081565b6101ba610225366004612e52565b611331565b6101ba7fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177581565b61016961025f366004612ed8565b611548565b6003546101ba565b6101ba7f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f81565b6102d66102a1366004612e52565b60016020818152600093845260408085209091529183529120805491015460ff82169161010090046001600160a01b03169083565b6040805193151584526001600160a01b039092166020840152908201526060016101c4565b610169610309366004612f03565b61164a565b61037361031c366004612e52565b600060208181529281526040808220909352908152208054600182015460028301546003909301546001600160a01b038084169460ff600160a01b9586900481169585841695819004821694938316939204169087565b604080516001600160a01b0398891681529615156020880152948716948601949094529115156060850152909316608083015291151560a082015260c081019190915260e0016101c4565b6101696103cc366004612e52565b61190f565b6004546040516001600160a01b0390911681526020016101c4565b6101696103fa366004612e97565b611f7c565b61041261040d366004612f45565b612701565b604080519283526020830191909152016101c4565b60048054604051632474521560e21b81527f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f928101929092523360248301526001600160a01b0316906391d1485490604401602060405180830381865afa158015610496573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104ba9190612f8e565b6104d7576040516338a097a360e01b815260040160405180910390fd5b6001600160a01b038216600090815260016020908152604080832084845290915290205460ff161561051c57604051632bf773b360e11b815260040160405180910390fd5b6001600160a01b03828116600090815260016020818152604080842086855282528084209283015492546004805483517ffce589d8000000000000000000000000000000000000000000000000000000008152935195976101009093048316969561271095919093169363fce589d8938184019390918290030181865afa1580156105ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105cf9190612fab565b6105d99085612fda565b6105e39190612ff1565b6001600160a01b0380871660009081526001602081815260408084208a8552825292839020805460ff19169092179091556004805483517f06228749000000000000000000000000000000000000000000000000000000008152935195965090931693630622874993838101938290030181865afa158015610669573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061068d919061301e565b6001600160a01b031663ee11638a83876106a7858861303b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b039384166004820152929091166024830152604482015260648101849052608401600060405180830381600087803b15801561071557600080fd5b505af1158015610729573d6000803e3d6000fd5b505050507f48977aac0b960a545fa87c55456220f79843e875d804c9b7a2f23072420e11568583838661075c919061303b565b604080516001600160a01b03948516815293909216602084015290820152606081018690526080015b60405180910390a15050505050565b33600090815260208181526040808320848452909152902060020154600160a01b900460ff166107f0576040517f954443dc00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526020818152604080832084845290915281206002810154600182015460039092018054908490556001600160a01b039182169391831692909190600160a01b900460ff1680156108b15750600480546040516323685ad360e21b81526001600160a01b0387811693820193909352911690638da16b4c90602401602060405180830381865afa15801561088d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108b19190612f8e565b6108bc57600061094a565b612710600460009054906101000a90046001600160a01b03166001600160a01b031663fce589d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015610912573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109369190612fab565b6109409084612fda565b61094a9190612ff1565b90506001600160a01b03841663ee11638a8433610967858761303b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b039384166004820152929091166024830152604482015260648101849052608401600060405180830381600087803b1580156109d557600080fd5b505af11580156109e9573d6000803e3d6000fd5b505050507f8a7b597bc986b6e0c19859b822f13fc49de28e540c11d460d8708447d502aa1733848385610a1c919061303b565b604080516001600160a01b0394851681529390921660208401529082015260608101879052608001610785565b600480546040516363e6ffdd60e01b8152339281018390526000916001600160a01b0316906363e6ffdd9060240161014060405180830381865afa158015610a95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab99190613095565b9050600481516004811115610ad057610ad0613143565b03610aee576040516338a097a360e01b815260040160405180910390fd5b60048054604080516302ff59ed60e41b815290516001600160a01b0390921692632ff59ed09282820192602092908290030181865afa158015610b35573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b599190612f8e565b610b9d5780602001518015610b805750600281516004811115610b7e57610b7e613143565b145b610b9d576040516338a097a360e01b815260040160405180910390fd5b600480546040516373a2049760e11b81526001600160a01b038781169382019390935291169063e744092e90602401602060405180830381865afa158015610be9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c0d9190612f8e565b610c2a5760405163c1ab6dc160e01b815260040160405180910390fd5b600480546040517f93b2f62600000000000000000000000000000000000000000000000000000000815233928101929092526001600160a01b038681166024840152604483018690526000929116906393b2f62690606401610140604051808303816000875af1158015610ca2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cc69190613095565b60808101516060820151919250901515600114610cf6576040516338a097a360e01b815260040160405180910390fd5b600480546040516323685ad360e21b81526001600160a01b0384811693820193909352911690638da16b4c90602401602060405180830381865afa158015610d42573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d669190612f8e565b1515600114610da1576040517f24c07dff00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610db66001600160a01b038716338388612ba4565b336000818152600260209081526040808320548151928301949094526001600160a01b038a16908201526060810188905260808101929092529060a0016040516020818303038152906040528051906020012090506040518060e00160405280896001600160a01b03168152602001600015158152602001886001600160a01b03168152602001600015158152602001836001600160a01b0316815260200160001515815260200187815250600080336001600160a01b03166001600160a01b03168152602001908152602001600020600083815260200190815260200160002060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060208201518160000160146101000a81548160ff02191690831515021790555060408201518160010160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060608201518160010160146101000a81548160ff02191690831515021790555060808201518160020160006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060a08201518160020160146101000a81548160ff02191690831515021790555060c08201518160030155905050600160026000336001600160a01b03166001600160a01b031681526020019081526020016000206000828254610fc19190613159565b9091555050604080513381526001600160a01b038981166020830152818301899052841660608201526080810183905290517ff84c357cbb1affb098f1be5e7edd1184f8f7eff7fe91a382baaa9c3d6d31a71f9181900360a00190a15050505050505050565b600080600080600460009054906101000a90046001600160a01b03166001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa158015611080573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110a4919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156110e1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611105919061316c565b61111090600a613273565b866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561114e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611172919061316c565b61117d90600a613273565b60035461118c61271089612fda565b6111969190612ff1565b6111a09190612fda565b6111aa9190612ff1565b90506000612710600460009054906101000a90046001600160a01b03166001600160a01b031663fce589d86040518163ffffffff1660e01b8152600401602060405180830381865afa158015611204573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112289190612fab565b6112329084612fda565b61123c9190612ff1565b9050818161124a818361303b565b94509450945050509250925092565b6004805460408051635462870d60e01b815290516001600160a01b0390921692635462870d9282820192602092908290030181865afa1580156112a0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112c4919061301e565b6001600160a01b0316336001600160a01b0316146112f5576040516338a097a360e01b815260040160405180910390fd5b60038190556040518181527f4b59d61d9ffdc3db926d0ce7e06ebabb6bd1bf9dcdae262667e48be368227216906020015b60405180910390a150565b600080600460009054906101000a90046001600160a01b031690506000612710826001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa15801561138f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113b39190612fab565b6113bd9086612fda565b6113c79190612ff1565b9050846001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611407573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061142b919061316c565b61143690600a613273565b826001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa158015611474573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611498919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156114d5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114f9919061316c565b61150490600a613273565b60035461271090611515858961303b565b61151f9190612fda565b6115299190612ff1565b6115339190612fda565b61153d9190612ff1565b925050505b92915050565b6004805460408051635462870d60e01b815290516001600160a01b0390921692635462870d9282820192602092908290030181865afa15801561158f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b3919061301e565b6001600160a01b0316336001600160a01b0316146115e4576040516338a097a360e01b815260040160405180910390fd5b600480547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0383169081179091556040519081527f9c328e9ae4d6a4d717998e8ae5ef66c5ac4313ea99500c5ea0661438aeef28e690602001611326565b60048054604051632474521560e21b81527fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c21775928101929092523360248301526001600160a01b0316906391d1485490604401602060405180830381865afa1580156116b9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116dd9190612f8e565b80611776575060048054604051632474521560e21b81527f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f928101929092523360248301526001600160a01b0316906391d1485490604401602060405180830381865afa158015611752573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117769190612f8e565b611793576040516338a097a360e01b815260040160405180910390fd5b6001600160a01b038316600090815260208181526040808320858452909152902054600160a01b900460ff16156117dd57604051632bf773b360e11b815260040160405180910390fd5b6001600160a01b03838116600081815260208181526040808320878452909152908190206003810154600182018054600284018054600160a01b60ff60a01b1991821681179092558083168a151583021790935584549092169091179092556004805493517f355ef3b60000000000000000000000000000000000000000000000000000000081529081019490945290841660248401819052604484018290529093909291169063355ef3b690606401600060405180830381600087803b1580156118a757600080fd5b505af11580156118bb573d6000803e3d6000fd5b5050604080516001600160a01b03808a16825285166020820152908101859052606081018790527f05affc7f9e5fe8078348200a241b57a8b55824b25382a30db2dbe6870cb9971692506080019050610785565b600480546040516363e6ffdd60e01b8152339281018390526000916001600160a01b0316906363e6ffdd9060240161014060405180830381865afa15801561195b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061197f9190613095565b905060048151600481111561199657611996613143565b036119b4576040516338a097a360e01b815260040160405180910390fd5b60048054604080516302ff59ed60e41b815290516001600160a01b0390921692632ff59ed09282820192602092908290030181865afa1580156119fb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a1f9190612f8e565b611a635780602001518015611a465750600281516004811115611a4457611a44613143565b145b611a63576040516338a097a360e01b815260040160405180910390fd5b600480546040516373a2049760e11b81526001600160a01b038781169382019390935291169063e744092e90602401602060405180830381865afa158015611aaf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ad39190612f8e565b611af05760405163c1ab6dc160e01b815260040160405180910390fd5b600480546040517f06b35d750000000000000000000000000000000000000000000000000000000081523392810192909252602482018590526000916001600160a01b03909116906306b35d7590604401610140604051808303816000875af1158015611b61573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b859190613095565b9050806040015115156001151514611bb0576040516338a097a360e01b815260040160405180910390fd5b6004805460408051630309ac6b60e11b815290516001600160a01b039092169263061358d69282820192602092908290030181865afa158015611bf7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c1b919061301e565b6040517f9dc29fac000000000000000000000000000000000000000000000000000000008152336004820152602481018690526001600160a01b039190911690639dc29fac90604401600060405180830381600087803b158015611c7e57600080fd5b505af1158015611c92573d6000803e3d6000fd5b5050336000818152600260209081526040808320548151808401959095526001600160a01b038c811686840152606086018c90526080808701929092528251808703909201825260a08601808452825192850192909220600454630309ac6b60e11b90935292519297509395509092169263061358d69260a480830193928290030181865afa158015611d29573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d4d919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611d8a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dae919061316c565b611db990600a613273565b876001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015611df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1b919061316c565b611e2690600a613273565b600354611e356127108a612fda565b611e3f9190612ff1565b611e499190612fda565b611e539190612ff1565b6040805160608101825260008082526001600160a01b038b811660208085019182528486018781523380865260018084528887208c885284528887209751885495517fffffffffffffffffffffff0000000000000000000000000000000000000000009096169015157fffffffffffffffffffffff0000000000000000000000000000000000000000ff161761010095909616949094029490941786555194820194909455908252600290925291822080549394509092909190611f18908490613159565b909155505060408051338152602081018890526001600160a01b03891681830152606081018390526080810184905290517f7d2ea91f475ef022d666f30feab9c454498120725b08ca17efe5e54f698b8f409181900360a00190a150505050505050565b6004546001600160a01b03848116600090815260208181526040808320868452909152902054911690600160a01b900460ff1615611fcd57604051632bf773b360e11b815260040160405180910390fd5b6001600160a01b03848116600090815260208181526040808320868452909152808220600281015460038201546001909201546004805485517f9c3977b500000000000000000000000000000000000000000000000000000000815286519489169895979386169693958695921693639c3977b5938281019391928290030181865afa158015612061573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120859190613282565b915091506000612710876001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120cc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120f09190612fab565b6120fa9087612fda565b6121049190612ff1565b6001600160a01b03808c166000908152602081815260408083208d8452825280832060030183905580517f313ce567000000000000000000000000000000000000000000000000000000008152905194955091939288169263313ce5679260048082019392918290030181865afa158015612183573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121a7919061316c565b6121b290600a613273565b886001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa1580156121f0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612214919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015612251573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612275919061316c565b61228090600a613273565b60035461271090612291868b61303b565b61229b9190612fda565b6122a59190612ff1565b6122af9190612fda565b6122b99190612ff1565b90508281111561235657876001600160a01b0316635462870d6040518163ffffffff1660e01b8152600401602060405180830381865afa158015612301573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612325919061301e565b6001600160a01b0316336001600160a01b031614612356576040516338a097a360e01b815260040160405180910390fd5b828110801561236457508381115b1561241457604051632474521560e21b81527fa49807205ce4d355092ef5a8a18f56e8913cf4a201fbe287825b095693c2177560048201523360248201526001600160a01b038916906391d1485490604401602060405180830381865afa1580156123d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123f79190612f8e565b612414576040516338a097a360e01b815260040160405180910390fd5b838110156124c757604051632474521560e21b81527f25cf2b509f2a7f322675b2a5322b182f44ad2c03ac941a0af17c9b178f5d5d5f60048201523360248201526001600160a01b038916906391d1485490604401602060405180830381865afa158015612486573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124aa9190612f8e565b6124c7576040516338a097a360e01b815260040160405180910390fd5b6001600160a01b03808c166000908152602081815260408083208d8452825291829020805460ff60a01b1916600160a01b179055600480548351630309ac6b60e11b8152935194169363061358d6938083019392908290030181865afa158015612535573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612559919061301e565b6001600160a01b038c81166000908152602081815260408083208e8452909152908190205490517f40c10f190000000000000000000000000000000000000000000000000000000081529082166004820152602481018490529116906340c10f1990604401600060405180830381600087803b1580156125d857600080fd5b505af11580156125ec573d6000803e3d6000fd5b50505050866001600160a01b031663ee11638a868c858a61260d919061303b565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e086901b1681526001600160a01b039384166004820152929091166024830152604482015260648101859052608401600060405180830381600087803b15801561267b57600080fd5b505af115801561268f573d6000803e3d6000fd5b505050507f794f771c64c4db2f318b4519d7ddc0ccbe03f9a239852dbe286e32a140c188ce8b86838c6040516126ec94939291906001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b60405180910390a15050505050505050505050565b600480546040517fae6ae0c90000000000000000000000000000000000000000000000000000000081526001600160a01b03848116938201939093526000928392839291169063ae6ae0c990602401602060405180830381865afa15801561276d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127919190612fab565b600480546040517fcf9260ba0000000000000000000000000000000000000000000000000000000081526001600160a01b038881169382019390935291169063cf9260ba90602401602060405180830381865afa1580156127f6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061281a9190612fab565b612824919061303b565b600480546040516363e6ffdd60e01b81526001600160a01b03898116938201939093529293506000929116906363e6ffdd9060240161014060405180830381865afa158015612877573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061289b9190613095565b60e081015160c0820151919250906128b3908261303b565b90508083116128c257826128c4565b805b9450600460009054906101000a90046001600160a01b03166001600160a01b031663061358d66040518163ffffffff1660e01b8152600401602060405180830381865afa158015612919573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061293d919061301e565b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa15801561297a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061299e919061316c565b6129a990600a613273565b866001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156129e7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a0b919061316c565b612a1690600a613273565b61271060035488612a279190612fda565b612a319190612ff1565b612a3b9190612fda565b612a459190612ff1565b9450612710600460009054906101000a90046001600160a01b03166001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa158015612a9d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612ac19190612fab565b612acd9061271061303b565b612ad79087612ff1565b612ae19190612fda565b945060008261012001519050612710600460009054906101000a90046001600160a01b03166001600160a01b03166313966db56040518163ffffffff1660e01b8152600401602060405180830381865afa158015612b43573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b679190612fab565b612b739061271061303b565b610100850151612b83908461303b565b612b8d9190612ff1565b612b979190612fda565b9450505050509250929050565b604080516001600160a01b0385811660248301528416604482015260648082018490528251808303909101815260849091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f23b872dd00000000000000000000000000000000000000000000000000000000179052612c2c908590612c32565b50505050565b6000612c476001600160a01b03841683612cb8565b90508051600014158015612c6c575080806020019051810190612c6a9190612f8e565b155b15612cb3576040517f5274afe70000000000000000000000000000000000000000000000000000000081526001600160a01b03841660048201526024015b60405180910390fd5b505050565b6060612cc683836000612ccd565b9392505050565b606081471015612d0b576040517fcd786059000000000000000000000000000000000000000000000000000000008152306004820152602401612caa565b600080856001600160a01b03168486604051612d2791906132a6565b60006040518083038185875af1925050503d8060008114612d64576040519150601f19603f3d011682016040523d82523d6000602084013e612d69565b606091505b5091509150612d79868383612d83565b9695505050505050565b606082612d9857612d9382612df8565b612cc6565b8151158015612daf57506001600160a01b0384163b155b15612df1576040517f9996b3150000000000000000000000000000000000000000000000000000000081526001600160a01b0385166004820152602401612caa565b5080612cc6565b805115612e085780518082602001fd5b6040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b6001600160a01b0381168114612e3a57600080fd5b60008060408385031215612e6557600080fd5b8235612e7081612e3d565b946020939093013593505050565b600060208284031215612e9057600080fd5b5035919050565b600080600060608486031215612eac57600080fd5b8335612eb781612e3d565b92506020840135612ec781612e3d565b929592945050506040919091013590565b600060208284031215612eea57600080fd5b8135612cc681612e3d565b8015158114612e3a57600080fd5b600080600060608486031215612f1857600080fd5b8335612f2381612e3d565b9250602084013591506040840135612f3a81612ef5565b809150509250925092565b60008060408385031215612f5857600080fd5b8235612f6381612e3d565b91506020830135612f7381612e3d565b809150509250929050565b8051612f8981612ef5565b919050565b600060208284031215612fa057600080fd5b8151612cc681612ef5565b600060208284031215612fbd57600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b808202811582820484141761154257611542612fc4565b60008261300e57634e487b7160e01b600052601260045260246000fd5b500490565b8051612f8981612e3d565b60006020828403121561303057600080fd5b8151612cc681612e3d565b8181038181111561154257611542612fc4565b604051610140810167ffffffffffffffff8111828210171561308057634e487b7160e01b600052604160045260246000fd5b60405290565b805160058110612f8957600080fd5b600061014082840312156130a857600080fd5b6130b061304e565b6130b983613086565b81526130c760208401612f7e565b60208201526130d860408401612f7e565b60408201526130e960608401612f7e565b60608201526130fa60808401613013565b608082015261310b60a08401612f7e565b60a082015260c0838101519082015260e080840151908201526101008084015190820152610120928301519281019290925250919050565b634e487b7160e01b600052602160045260246000fd5b8082018082111561154257611542612fc4565b60006020828403121561317e57600080fd5b815160ff81168114612cc657600080fd5b600181815b808511156131ca5781600019048211156131b0576131b0612fc4565b808516156131bd57918102915b93841c9390800290613194565b509250929050565b6000826131e157506001611542565b816131ee57506000611542565b8160018114613204576002811461320e5761322a565b6001915050611542565b60ff84111561321f5761321f612fc4565b50506001821b611542565b5060208310610133831016604e8410600b841016171561324d575081810a611542565b613257838361318f565b806000190482111561326b5761326b612fc4565b029392505050565b6000612cc660ff8416836131d2565b6000806040838503121561329557600080fd5b505080516020909101519092909150565b6000825160005b818110156132c757602081860181015185830152016132ad565b50600092019182525091905056fea26469706673582212201fd134fd26b53b26b688b87af115dde96e74dc929601031ab1be7c65a7b0fa8764736f6c63430008190033
Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)
000000000000000000000000b4da86c460f37ac82e0c6dece633f61d61b74eaa
-----Decoded View---------------
Arg [0] : walletFactory (address): 0xb4da86c460F37ac82E0C6dECE633F61D61b74EaA
-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000b4da86c460f37ac82e0c6dece633f61d61b74eaa
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 26 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.