Overview
ETH Balance
0 ETH
Eth Value
$0.00More Info
Private Name Tags
ContractCreator
Latest 2 internal transactions
Advanced mode:
Parent Transaction Hash | Block | From | To | |||
---|---|---|---|---|---|---|
15050278 | 876 days ago | Contract Creation | 0 ETH | |||
15049891 | 877 days ago | Contract Creation | 0 ETH |
Loading...
Loading
Contract Name:
DeploymentFactory
Compiler Version
v0.8.15+commit.e14f2714
Optimization Enabled:
Yes with 1000000 runs
Other Settings:
default evmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/utils/Create2.sol"; import "./OLAS.sol"; import "./veOLAS.sol"; /// @dev Only `owner` has a privilege, but the `sender` was provided. /// @param sender Sender address. /// @param owner Required sender address as an owner. error OwnerOnly(address sender, address owner); contract DeploymentFactory { event OwnerUpdated(address indexed owner); // OLAS deployed address address public olasAddress; // veOLAS deployed address address public veOLASAddress; // Owner address address public owner; /// @dev Changes the owner address. /// @param newOwner Address of a new owner. function changeOwner(address newOwner) external { if (msg.sender != owner) { revert OwnerOnly(msg.sender, owner); } if (newOwner == address(0)) { revert ZeroAddress(); } owner = newOwner; emit OwnerUpdated(newOwner); } constructor() { owner = msg.sender; } /// @dev Deploys `OLAS` contract via the `create2` method. /// @param salt Specified salt. function deployOLAS(bytes32 salt) external { // Check for the ownership if (owner != msg.sender) { revert OwnerOnly(msg.sender, owner); } // Deploy OLAS contract olasAddress = Create2.deploy(0, salt, abi.encodePacked(type(OLAS).creationCode)); // Change minter and owner of the OLAS contract to the msg.sender OLAS(olasAddress).changeMinter(msg.sender); OLAS(olasAddress).changeOwner(msg.sender); } /// @dev Computes `OLAS` contract address. /// @param salt Specified salt. /// @return Computed token address. function computeOLASAddress(bytes32 salt) external view returns (address){ return Create2.computeAddress(salt, keccak256(abi.encodePacked(type(OLAS).creationCode))); } /// @dev Deploys `veOLAS` contract via the `create2` method. /// @param salt Specified salt. function deployVeOLAS(bytes32 salt, address token) external { // Check for the ownership if (owner != msg.sender) { revert OwnerOnly(msg.sender, owner); } veOLASAddress = Create2.deploy(0, salt, abi.encodePacked(type(veOLAS).creationCode, abi.encode(token, "Voting Escrow OLAS", "veOLAS"))); } /// @dev Computes `veOLAS` contract address. /// @param salt Specified salt. /// @return Computed token address. function computeVeOLASAddress(bytes32 salt, address token) external view returns (address){ return Create2.computeAddress(salt, keccak256(abi.encodePacked(type(veOLAS).creationCode, abi.encode(token, "Voting Escrow OLAS", "veOLAS")))); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Create2.sol) pragma solidity ^0.8.0; /** * @dev Helper to make usage of the `CREATE2` EVM opcode easier and safer. * `CREATE2` can be used to compute in advance the address where a smart * contract will be deployed, which allows for interesting new mechanisms known * as 'counterfactual interactions'. * * See the https://eips.ethereum.org/EIPS/eip-1014#motivation[EIP] for more * information. */ library Create2 { /** * @dev Deploys a contract using `CREATE2`. The address where the contract * will be deployed can be known in advance via {computeAddress}. * * The bytecode for a contract can be obtained from Solidity with * `type(contractName).creationCode`. * * Requirements: * * - `bytecode` must not be empty. * - `salt` must have not been used for `bytecode` already. * - the factory must have a balance of at least `amount`. * - if `amount` is non-zero, `bytecode` must have a `payable` constructor. */ function deploy( uint256 amount, bytes32 salt, bytes memory bytecode ) internal returns (address) { address addr; require(address(this).balance >= amount, "Create2: insufficient balance"); require(bytecode.length != 0, "Create2: bytecode length is zero"); assembly { addr := create2(amount, add(bytecode, 0x20), mload(bytecode), salt) } require(addr != address(0), "Create2: Failed on deploy"); return addr; } /** * @dev Returns the address where a contract will be stored if deployed via {deploy}. Any change in the * `bytecodeHash` or `salt` will result in a new destination address. */ function computeAddress(bytes32 salt, bytes32 bytecodeHash) internal view returns (address) { return computeAddress(salt, bytecodeHash, address(this)); } /** * @dev Returns the address where a contract will be stored if deployed via {deploy} from a contract located at * `deployer`. If `deployer` is this contract's address, returns the same value as {computeAddress}. */ function computeAddress( bytes32 salt, bytes32 bytecodeHash, address deployer ) internal pure returns (address) { bytes32 _data = keccak256(abi.encodePacked(bytes1(0xff), deployer, salt, bytecodeHash)); return address(uint160(uint256(_data))); } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "../lib/solmate/src/tokens/ERC20.sol"; /// @dev Only `manager` has a privilege, but the `sender` was provided. /// @param sender Sender address. /// @param manager Required sender address as a manager. error ManagerOnly(address sender, address manager); /// @dev Provided zero address. error ZeroAddress(); /// @title OLAS - Smart contract for the OLAS token. /// @author AL /// @author Aleksandr Kuperman - <[email protected]> contract OLAS is ERC20 { event MinterUpdated(address indexed minter); event OwnerUpdated(address indexed owner); // One year interval uint256 public constant oneYear = 1 days * 365; // Total supply cap for the first ten years (one billion OLAS tokens) uint256 public constant tenYearSupplyCap = 1_000_000_000e18; // Maximum annual inflation after first ten years uint256 public constant maxMintCapFraction = 2; // Initial timestamp of the token deployment uint256 public immutable timeLaunch; // Owner address address public owner; // Minter address address public minter; constructor() ERC20("Autonolas", "OLAS", 18) { owner = msg.sender; minter = msg.sender; timeLaunch = block.timestamp; } /// @dev Changes the owner address. /// @param newOwner Address of a new owner. function changeOwner(address newOwner) external { if (msg.sender != owner) { revert ManagerOnly(msg.sender, owner); } if (newOwner == address(0)) { revert ZeroAddress(); } owner = newOwner; emit OwnerUpdated(newOwner); } /// @dev Changes the minter address. /// @param newMinter Address of a new minter. function changeMinter(address newMinter) external { if (msg.sender != owner) { revert ManagerOnly(msg.sender, owner); } if (newMinter == address(0)) { revert ZeroAddress(); } minter = newMinter; emit MinterUpdated(newMinter); } /// @dev Mints OLAS tokens. /// @param account Account address. /// @param amount OLAS token amount. function mint(address account, uint256 amount) external { // Access control if (msg.sender != minter) { revert ManagerOnly(msg.sender, minter); } // Check the inflation schedule and mint if (inflationControl(amount)) { _mint(account, amount); } } /// @dev Provides various checks for the inflation control. /// @param amount Amount of OLAS to mint. /// @return True if the amount request is within inflation boundaries. function inflationControl(uint256 amount) public view returns (bool) { uint256 remainder = inflationRemainder(); return (amount <= remainder); } /// @dev Gets the reminder of OLAS possible for the mint. /// @return remainder OLAS token remainder. function inflationRemainder() public view returns (uint256 remainder) { uint256 _totalSupply = totalSupply; // Current year uint256 numYears = (block.timestamp - timeLaunch) / oneYear; // Calculate maximum mint amount to date uint256 supplyCap = tenYearSupplyCap; // After 10 years, adjust supplyCap according to the yearly inflation % set in maxMintCapFraction if (numYears > 9) { // Number of years after ten years have passed (including ongoing ones) numYears -= 9; for (uint256 i = 0; i < numYears; ++i) { supplyCap += (supplyCap * maxMintCapFraction) / 100; } } // Check for the requested mint overflow remainder = supplyCap - _totalSupply; } /// @dev Burns OLAS tokens. /// @param amount OLAS token amount to burn. function burn(uint256 amount) external { _burn(msg.sender, amount); } /// @dev Decreases the allowance of another account over their tokens. /// @param spender Account that tokens are approved for. /// @param amount Amount to decrease approval by. /// @return True if the operation succeeded. function decreaseAllowance(address spender, uint256 amount) external returns (bool) { uint256 spenderAllowance = allowance[msg.sender][spender]; if (spenderAllowance != type(uint256).max) { spenderAllowance -= amount; allowance[msg.sender][spender] = spenderAllowance; emit Approval(msg.sender, spender, spenderAllowance); } return true; } /// @dev Increases the allowance of another account over their tokens. /// @param spender Account that tokens are approved for. /// @param amount Amount to increase approval by. /// @return True if the operation succeeded. function increaseAllowance(address spender, uint256 amount) external returns (bool) { uint256 spenderAllowance = allowance[msg.sender][spender]; spenderAllowance += amount; allowance[msg.sender][spender] = spenderAllowance; emit Approval(msg.sender, spender, spenderAllowance); return true; } }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "@openzeppelin/contracts/governance/utils/IVotes.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; import "@openzeppelin/contracts/utils/introspection/IERC165.sol"; import "./interfaces/IErrors.sol"; /** Votes have a weight depending on time, so that users are committed to the future of (whatever they are voting for). Vote weight decays linearly over time. Lock time cannot be more than `MAXTIME` (4 years). Voting escrow has time-weighted votes derived from the amount of tokens locked. The maximum voting power can be achieved with the longest lock possible. This way the users are incentivized to lock tokens for more time. # w ^ = amount * time_locked / MAXTIME # 1 + / # | / # | / # | / # |/ # 0 +--------+------> time # maxtime (4 years?) We cannot really do block numbers per se because slope is per time, not per block, and per block could be fairly bad because Ethereum changes its block times. What we can do is to extrapolate ***At functions. */ /// @title Voting Escrow OLAS - the workflow is ported from Curve Finance Vyper implementation /// @author Aleksandr Kuperman - <[email protected]> /// Code ported from: https://github.com/curvefi/curve-dao-contracts/blob/master/contracts/VotingEscrow.vy /// and: https://github.com/solidlyexchange/solidly/blob/master/contracts/ve.sol /* This VotingEscrow is based on the OLAS token that has the following specifications: * - For the first 10 years there will be the cap of 1 billion (1e27) tokens; * - After 10 years, the inflation rate is 2% per year. * The maximum number of tokens for each year then can be calculated from the formula: 2^n = 1e27 * (1.02)^x, * where n is the specified number of bits that is sufficient to store and not overflow the total supply, * and x is the number of years. We limit n by 128, thus it would take 1340+ years to reach that total supply. * The amount for each locker is eventually cannot overcome this number as well, and thus uint128 is sufficient. * * We then limit the time in seconds to last until the value of 2^64 - 1, or for the next 583+ billion years. * The number of blocks is essentially cannot be bigger than the number of seconds, and thus it is safe to assume * that uint64 for the number of blocks is also sufficient. * * We also limit the individual deposit amount to be no bigger than 2^96 - 1, or the value of total supply in 220+ years. * This limitation is dictated by the fact that there will be at least several accounts with locked tokens, and the * sum of all of them cannot be bigger than the total supply. Checking the limit of deposited / increased amount * allows us to perform the unchecked operation on adding the amounts. * * The rest of calculations throughout the contract do not go beyond specified limitations. The contract was checked * by echidna and the results can be found in the audit section of the repository. * * These specified limits allowed us to have storage-added structs to be bound by 2*256 and 1*256 bit sizes * respectively, thus limiting the gas amount compared to using bigger variable sizes. * * Note that after 220 years it is no longer possible to deposit / increase the locked amount to be bigger than 2^96 - 1. * It is going to be not safe to use this contract for governance after 1340 years. */ // Struct for storing balance and unlock time // The struct size is one storage slot of uint256 (128 + 64 + padding) struct LockedBalance { // Token amount. It will never practically be bigger. Initial OLAS cap is 1 bn tokens, or 1e27. // After 10 years, the inflation rate is 2% per year. It would take 1340+ years to reach 2^128 - 1 uint128 amount; // Unlock time. It will never practically be bigger uint64 endTime; } // Structure for voting escrow points // The struct size is two storage slots of 2 * uint256 (128 + 128 + 64 + 64 + 128) struct PointVoting { // w(i) = at + b (bias) int128 bias; // dw / dt = a (slope) int128 slope; // Timestamp. It will never practically be bigger than 2^64 - 1 uint64 ts; // Block number. It will not be bigger than the timestamp uint64 blockNumber; // Token amount. It will never practically be bigger. Initial OLAS cap is 1 bn tokens, or 1e27. // After 10 years, the inflation rate is 2% per year. It would take 1340+ years to reach 2^128 - 1 uint128 balance; } /// @notice This token supports the ERC20 interface specifications except for transfers and approvals. contract veOLAS is IErrors, IVotes, IERC20, IERC165 { enum DepositType { DEPOSIT_FOR_TYPE, CREATE_LOCK_TYPE, INCREASE_LOCK_AMOUNT, INCREASE_UNLOCK_TIME } event Deposit(address indexed account, uint256 amount, uint256 locktime, DepositType depositType, uint256 ts); event Withdraw(address indexed account, uint256 amount, uint256 ts); event Supply(uint256 previousSupply, uint256 currentSupply); // 1 week time uint64 internal constant WEEK = 1 weeks; // Maximum lock time (4 years) uint256 internal constant MAXTIME = 4 * 365 * 86400; // Maximum lock time (4 years) in int128 int128 internal constant IMAXTIME = 4 * 365 * 86400; // Number of decimals uint8 public constant decimals = 18; // Token address address public immutable token; // Total token supply uint256 public supply; // Mapping of account address => LockedBalance mapping(address => LockedBalance) public mapLockedBalances; // Total number of economical checkpoints (starting from zero) uint256 public totalNumPoints; // Mapping of point Id => point mapping(uint256 => PointVoting) public mapSupplyPoints; // Mapping of account address => PointVoting[point Id] mapping(address => PointVoting[]) public mapUserPoints; // Mapping of time => signed slope change mapping(uint64 => int128) public mapSlopeChanges; // Voting token name string public name; // Voting token symbol string public symbol; /// @dev Contract constructor /// @param _token Token address. /// @param _name Token name. /// @param _symbol Token symbol. constructor(address _token, string memory _name, string memory _symbol) { token = _token; name = _name; symbol = _symbol; // Create initial point such that default timestamp and block number are not zero // See cast specification in the PointVoting structure mapSupplyPoints[0] = PointVoting(0, 0, uint64(block.timestamp), uint64(block.number), 0); } /// @dev Gets the most recently recorded user point for `account`. /// @param account Account address. /// @return pv Last checkpoint. function getLastUserPoint(address account) external view returns (PointVoting memory pv) { uint256 lastPointNumber = mapUserPoints[account].length; if (lastPointNumber > 0) { pv = mapUserPoints[account][lastPointNumber - 1]; } } /// @dev Gets the number of user points. /// @param account Account address. /// @return accountNumPoints Number of user points. function getNumUserPoints(address account) external view returns (uint256 accountNumPoints) { accountNumPoints = mapUserPoints[account].length; } /// @dev Gets the checkpoint structure at number `idx` for `account`. /// @param account User wallet address. /// @param idx User point number. /// @return The requested checkpoint. function getUserPoint(address account, uint256 idx) external view returns (PointVoting memory) { return mapUserPoints[account][idx]; } /// @dev Record global and per-user data to checkpoint. /// @param account Account address. User checkpoint is skipped if the address is zero. /// @param oldLocked Previous locked amount / end lock time for the user. /// @param newLocked New locked amount / end lock time for the user. /// @param curSupply Current total supply (to avoid using a storage total supply variable) function _checkpoint( address account, LockedBalance memory oldLocked, LockedBalance memory newLocked, uint128 curSupply ) internal { PointVoting memory uOld; PointVoting memory uNew; int128 oldDSlope; int128 newDSlope; uint256 curNumPoint = totalNumPoints; if (account != address(0)) { // Calculate slopes and biases // Kept at zero when they have to if (oldLocked.endTime > block.timestamp && oldLocked.amount > 0) { uOld.slope = int128(oldLocked.amount) / IMAXTIME; uOld.bias = uOld.slope * int128(uint128(oldLocked.endTime - uint64(block.timestamp))); } if (newLocked.endTime > block.timestamp && newLocked.amount > 0) { uNew.slope = int128(newLocked.amount) / IMAXTIME; uNew.bias = uNew.slope * int128(uint128(newLocked.endTime - uint64(block.timestamp))); } // Reads values of scheduled changes in the slope // oldLocked.endTime can be in the past and in the future // newLocked.endTime can ONLY be in the FUTURE unless everything is expired: then zeros oldDSlope = mapSlopeChanges[oldLocked.endTime]; if (newLocked.endTime > 0) { if (newLocked.endTime == oldLocked.endTime) { newDSlope = oldDSlope; } else { newDSlope = mapSlopeChanges[newLocked.endTime]; } } } PointVoting memory lastPoint; if (curNumPoint > 0) { lastPoint = mapSupplyPoints[curNumPoint]; } else { // If no point is created yet, we take the actual time and block parameters lastPoint = PointVoting(0, 0, uint64(block.timestamp), uint64(block.number), 0); } uint64 lastCheckpoint = lastPoint.ts; // initialPoint is used for extrapolation to calculate the block number and save them // as we cannot figure that out in exact values from inside of the contract PointVoting memory initialPoint = lastPoint; uint256 block_slope; // dblock/dt if (block.timestamp > lastPoint.ts) { // This 1e18 multiplier is needed for the numerator to be bigger than the denominator // We need to calculate this in > uint64 size (1e18 is > 2^59 multiplied by 2^64). block_slope = (1e18 * uint256(block.number - lastPoint.blockNumber)) / uint256(block.timestamp - lastPoint.ts); } // If last point is already recorded in this block, slope == 0, but we know the block already in this case // Go over weeks to fill in the history and (or) calculate what the current point is { // The timestamp is rounded and < 2^64-1 uint64 tStep = (lastCheckpoint / WEEK) * WEEK; for (uint256 i = 0; i < 255; ++i) { // Hopefully it won't happen that this won't get used in 5 years! // If it does, users will be able to withdraw but vote weight will be broken // This is always practically < 2^64-1 unchecked { tStep += WEEK; } int128 dSlope; if (tStep > block.timestamp) { tStep = uint64(block.timestamp); } else { dSlope = mapSlopeChanges[tStep]; } lastPoint.bias -= lastPoint.slope * int128(int64(tStep - lastCheckpoint)); lastPoint.slope += dSlope; if (lastPoint.bias < 0) { // This could potentially happen, but fuzzer didn't find available "real" combinations lastPoint.bias = 0; } if (lastPoint.slope < 0) { // This cannot happen - just in case. Again, fuzzer didn't reach this lastPoint.slope = 0; } lastCheckpoint = tStep; lastPoint.ts = tStep; // After division by 1e18 the uint64 size can be reclaimed lastPoint.blockNumber = initialPoint.blockNumber + uint64((block_slope * uint256(tStep - initialPoint.ts)) / 1e18); lastPoint.balance = initialPoint.balance; // In order for the overflow of total number of economical checkpoints (starting from zero) // The _checkpoint() call must happen n >(2^256 -1)/255 or n > ~1e77/255 > ~1e74 times unchecked { curNumPoint += 1; } if (tStep == block.timestamp) { lastPoint.blockNumber = uint64(block.number); lastPoint.balance = curSupply; break; } else { mapSupplyPoints[curNumPoint] = lastPoint; } } } totalNumPoints = curNumPoint; // Now mapSupplyPoints is filled until current time if (account != address(0)) { // If last point was in this block, the slope change has been already applied. In such case we have 0 slope(s) lastPoint.slope += (uNew.slope - uOld.slope); lastPoint.bias += (uNew.bias - uOld.bias); if (lastPoint.slope < 0) { lastPoint.slope = 0; } if (lastPoint.bias < 0) { lastPoint.bias = 0; } } // Record the last updated point mapSupplyPoints[curNumPoint] = lastPoint; if (account != address(0)) { // Schedule the slope changes (slope is going down) // We subtract new_user_slope from [newLocked.endTime] // and add old_user_slope to [oldLocked.endTime] if (oldLocked.endTime > block.timestamp) { // oldDSlope was <something> - uOld.slope, so we cancel that oldDSlope += uOld.slope; if (newLocked.endTime == oldLocked.endTime) { oldDSlope -= uNew.slope; // It was a new deposit, not extension } mapSlopeChanges[oldLocked.endTime] = oldDSlope; } if (newLocked.endTime > block.timestamp && newLocked.endTime > oldLocked.endTime) { newDSlope -= uNew.slope; // old slope disappeared at this point mapSlopeChanges[newLocked.endTime] = newDSlope; // else: we recorded it already in oldDSlope } // Now handle user history uNew.ts = uint64(block.timestamp); uNew.blockNumber = uint64(block.number); uNew.balance = newLocked.amount; mapUserPoints[account].push(uNew); } } /// @dev Record global data to checkpoint. function checkpoint() external { _checkpoint(address(0), LockedBalance(0, 0), LockedBalance(0, 0), uint128(supply)); } /// @dev Deposits and locks tokens for a specified account. /// @param account Target address for the locked amount. /// @param amount Amount to deposit. /// @param unlockTime New time when to unlock the tokens, or 0 if unchanged. /// @param lockedBalance Previous locked amount / end time. /// @param depositType Deposit type. function _depositFor( address account, uint256 amount, uint256 unlockTime, LockedBalance memory lockedBalance, DepositType depositType ) internal { uint256 supplyBefore = supply; uint256 supplyAfter; // Cannot overflow because the total supply << 2^128-1 unchecked { supplyAfter = supplyBefore + amount; supply = supplyAfter; } // Get the old locked data LockedBalance memory oldLocked; (oldLocked.amount, oldLocked.endTime) = (lockedBalance.amount, lockedBalance.endTime); // Adding to the existing lock, or if a lock is expired - creating a new one // This cannot be larger than the total supply unchecked { lockedBalance.amount += uint128(amount); } if (unlockTime > 0) { lockedBalance.endTime = uint64(unlockTime); } mapLockedBalances[account] = lockedBalance; // Possibilities: // Both oldLocked.endTime could be current or expired (>/< block.timestamp) // amount == 0 (extend lock) or amount > 0 (add to lock or extend lock) // lockedBalance.endTime > block.timestamp (always) _checkpoint(account, oldLocked, lockedBalance, uint128(supplyAfter)); if (amount > 0) { // OLAS is a solmate-based ERC20 token with optimized transferFrom() that either returns true or reverts IERC20(token).transferFrom(msg.sender, address(this), amount); } emit Deposit(account, amount, lockedBalance.endTime, depositType, block.timestamp); emit Supply(supplyBefore, supplyAfter); } /// @dev Deposits `amount` tokens for `account` and adds to the lock. /// @dev Anyone (even a smart contract) can deposit for someone else, but /// cannot extend their locktime and deposit for a brand new user. /// @param account Account address. /// @param amount Amount to add. function depositFor(address account, uint256 amount) external { LockedBalance memory lockedBalance = mapLockedBalances[account]; // Check if the amount is zero if (amount == 0) { revert ZeroValue(); } // The locked balance must already exist if (lockedBalance.amount == 0) { revert NoValueLocked(account); } // Check the lock expiry if (lockedBalance.endTime < (block.timestamp + 1)) { revert LockExpired(msg.sender, lockedBalance.endTime, block.timestamp); } // Since in the _depositFor() we have the unchecked sum of amounts, this is needed to prevent unsafe behavior. // After 10 years, the inflation rate is 2% per year. It would take 220+ years to reach 2^96 - 1 total supply if (amount > type(uint96).max) { revert Overflow(amount, type(uint96).max); } _depositFor(account, amount, 0, lockedBalance, DepositType.DEPOSIT_FOR_TYPE); } /// @dev Deposits `amount` tokens for `msg.sender` and locks for `unlockTime`. /// @param amount Amount to deposit. /// @param unlockTime Time when tokens unlock, rounded down to a whole week. function createLock(uint256 amount, uint256 unlockTime) external { _createLockFor(msg.sender, amount, unlockTime); } /// @dev Deposits `amount` tokens for `account` and locks for `unlockTime`. /// @notice Tokens are taken from `msg.sender`'s balance. /// @param account Account address. /// @param amount Amount to deposit. /// @param unlockTime Time when tokens unlock, rounded down to a whole week. function createLockFor(address account, uint256 amount, uint256 unlockTime) external { // Check if the account address is zero if (account == address(0)) { revert ZeroAddress(); } _createLockFor(account, amount, unlockTime); } /// @dev Deposits `amount` tokens for `account` and locks for `unlockTime`. /// @notice Tokens are taken from `msg.sender`'s balance. /// @param account Account address. /// @param amount Amount to deposit. /// @param unlockTime Time when tokens unlock, rounded down to a whole week. function _createLockFor(address account, uint256 amount, uint256 unlockTime) private { // Check if the amount is zero if (amount == 0) { revert ZeroValue(); } // Lock time is rounded down to weeks // Cannot practically overflow because block.timestamp + unlockTime (max 4 years) << 2^64-1 unchecked { unlockTime = ((block.timestamp + unlockTime) / WEEK) * WEEK; } LockedBalance memory lockedBalance = mapLockedBalances[account]; // The locked balance must be zero in order to start the lock if (lockedBalance.amount > 0) { revert LockedValueNotZero(account, uint256(lockedBalance.amount)); } // Check for the lock time correctness if (unlockTime < (block.timestamp + 1)) { revert UnlockTimeIncorrect(account, block.timestamp, unlockTime); } // Check for the lock time not to exceed the MAXTIME if (unlockTime > block.timestamp + MAXTIME) { revert MaxUnlockTimeReached(account, block.timestamp + MAXTIME, unlockTime); } // After 10 years, the inflation rate is 2% per year. It would take 220+ years to reach 2^96 - 1 total supply if (amount > type(uint96).max) { revert Overflow(amount, type(uint96).max); } _depositFor(account, amount, unlockTime, lockedBalance, DepositType.CREATE_LOCK_TYPE); } /// @dev Deposits `amount` additional tokens for `msg.sender` without modifying the unlock time. /// @param amount Amount of tokens to deposit and add to the lock. function increaseAmount(uint256 amount) external { LockedBalance memory lockedBalance = mapLockedBalances[msg.sender]; // Check if the amount is zero if (amount == 0) { revert ZeroValue(); } // The locked balance must already exist if (lockedBalance.amount == 0) { revert NoValueLocked(msg.sender); } // Check the lock expiry if (lockedBalance.endTime < (block.timestamp + 1)) { revert LockExpired(msg.sender, lockedBalance.endTime, block.timestamp); } // Check the max possible amount to add, that must be less than the total supply // After 10 years, the inflation rate is 2% per year. It would take 220+ years to reach 2^96 - 1 total supply if (amount > type(uint96).max) { revert Overflow(amount, type(uint96).max); } _depositFor(msg.sender, amount, 0, lockedBalance, DepositType.INCREASE_LOCK_AMOUNT); } /// @dev Extends the unlock time. /// @param unlockTime New tokens unlock time. function increaseUnlockTime(uint256 unlockTime) external { LockedBalance memory lockedBalance = mapLockedBalances[msg.sender]; // Cannot practically overflow because block.timestamp + unlockTime (max 4 years) << 2^64-1 unchecked { unlockTime = ((block.timestamp + unlockTime) / WEEK) * WEEK; } // The locked balance must already exist if (lockedBalance.amount == 0) { revert NoValueLocked(msg.sender); } // Check the lock expiry if (lockedBalance.endTime < (block.timestamp + 1)) { revert LockExpired(msg.sender, lockedBalance.endTime, block.timestamp); } // Check for the lock time correctness if (unlockTime < (lockedBalance.endTime + 1)) { revert UnlockTimeIncorrect(msg.sender, lockedBalance.endTime, unlockTime); } // Check for the lock time not to exceed the MAXTIME if (unlockTime > block.timestamp + MAXTIME) { revert MaxUnlockTimeReached(msg.sender, block.timestamp + MAXTIME, unlockTime); } _depositFor(msg.sender, 0, unlockTime, lockedBalance, DepositType.INCREASE_UNLOCK_TIME); } /// @dev Withdraws all tokens for `msg.sender`. Only possible if the lock has expired. function withdraw() external { LockedBalance memory lockedBalance = mapLockedBalances[msg.sender]; if (lockedBalance.endTime > block.timestamp) { revert LockNotExpired(msg.sender, lockedBalance.endTime, block.timestamp); } uint256 amount = uint256(lockedBalance.amount); mapLockedBalances[msg.sender] = LockedBalance(0, 0); uint256 supplyBefore = supply; uint256 supplyAfter; // The amount cannot be less than the total supply unchecked { supplyAfter = supplyBefore - amount; supply = supplyAfter; } // oldLocked can have either expired <= timestamp or zero end // lockedBalance has only 0 end // Both can have >= 0 amount _checkpoint(msg.sender, lockedBalance, LockedBalance(0, 0), uint128(supplyAfter)); emit Withdraw(msg.sender, amount, block.timestamp); emit Supply(supplyBefore, supplyAfter); // OLAS is a solmate-based ERC20 token with optimized transfer() that either returns true or reverts IERC20(token).transfer(msg.sender, amount); } /// @dev Finds a closest point that has a specified block number. /// @param blockNumber Block to find. /// @param account Account address for user points. /// @return point Point with the approximate index number for the specified block. /// @return minPointNumber Point number. function _findPointByBlock(uint256 blockNumber, address account) internal view returns (PointVoting memory point, uint256 minPointNumber) { // Get the last available point number uint256 maxPointNumber; if (account == address(0)) { maxPointNumber = totalNumPoints; } else { maxPointNumber = mapUserPoints[account].length; if (maxPointNumber == 0) { return (point, minPointNumber); } // Already checked for > 0 in this case unchecked { maxPointNumber -= 1; } } // Binary search that will be always enough for 128-bit numbers for (uint256 i = 0; i < 128; ++i) { if ((minPointNumber + 1) > maxPointNumber) { break; } uint256 mid = (minPointNumber + maxPointNumber + 1) / 2; // Choose the source of points if (account == address(0)) { point = mapSupplyPoints[mid]; } else { point = mapUserPoints[account][mid]; } if (point.blockNumber < (blockNumber + 1)) { minPointNumber = mid; } else { maxPointNumber = mid - 1; } } // Get the found point if (account == address(0)) { point = mapSupplyPoints[minPointNumber]; } else { point = mapUserPoints[account][minPointNumber]; } } /// @dev Gets the voting power for an `account` at time `ts`. /// @param account Account address. /// @param ts Time to get voting power at. /// @return vBalance Account voting power. function _balanceOfLocked(address account, uint64 ts) internal view returns (uint256 vBalance) { uint256 pointNumber = mapUserPoints[account].length; if (pointNumber > 0) { PointVoting memory uPoint = mapUserPoints[account][pointNumber - 1]; uPoint.bias -= uPoint.slope * int128(int64(ts) - int64(uPoint.ts)); if (uPoint.bias > 0) { vBalance = uint256(int256(uPoint.bias)); } } } /// @dev Gets the account balance in native token. /// @param account Account address. /// @return balance Account balance. function balanceOf(address account) public view override returns (uint256 balance) { balance = uint256(mapLockedBalances[account].amount); } /// @dev Gets the `account`'s lock end time. /// @param account Account address. /// @return unlockTime Lock end time. function lockedEnd(address account) external view returns (uint256 unlockTime) { unlockTime = uint256(mapLockedBalances[account].endTime); } /// @dev Gets the account balance at a specific block number. /// @param account Account address. /// @param blockNumber Block number. /// @return balance Account balance. function balanceOfAt(address account, uint256 blockNumber) external view returns (uint256 balance) { // Find point with the closest block number to the provided one (PointVoting memory uPoint, ) = _findPointByBlock(blockNumber, account); // If the block number at the point index is bigger than the specified block number, the balance was zero if (uPoint.blockNumber < (blockNumber + 1)) { balance = uint256(uPoint.balance); } } /// @dev Gets the voting power. /// @param account Account address. function getVotes(address account) public view override returns (uint256) { return _balanceOfLocked(account, uint64(block.timestamp)); } /// @dev Gets the block time adjustment for two neighboring points. /// @param blockNumber Block number. /// @return point Point with the specified block number (or closest to it). /// @return blockTime Adjusted block time of the neighboring point. function _getBlockTime(uint256 blockNumber) internal view returns (PointVoting memory point, uint256 blockTime) { // Check the block number to be in the past or equal to the current block if (blockNumber > block.number) { revert WrongBlockNumber(blockNumber, block.number); } // Get the minimum historical point with the provided block number uint256 minPointNumber; (point, minPointNumber) = _findPointByBlock(blockNumber, address(0)); uint256 dBlock; uint256 dt; if (minPointNumber < totalNumPoints) { PointVoting memory pointNext = mapSupplyPoints[minPointNumber + 1]; dBlock = pointNext.blockNumber - point.blockNumber; dt = pointNext.ts - point.ts; } else { dBlock = block.number - point.blockNumber; dt = block.timestamp - point.ts; } blockTime = point.ts; if (dBlock > 0) { blockTime += (dt * (blockNumber - point.blockNumber)) / dBlock; } } /// @dev Gets voting power at a specific block number. /// @param account Account address. /// @param blockNumber Block number. /// @return balance Voting balance / power. function getPastVotes(address account, uint256 blockNumber) public view override returns (uint256 balance) { // Find the user point for the provided block number (PointVoting memory uPoint, ) = _findPointByBlock(blockNumber, account); // Get block time adjustment. (, uint256 blockTime) = _getBlockTime(blockNumber); // Calculate bias based on a block time uPoint.bias -= uPoint.slope * int128(int64(uint64(blockTime)) - int64(uPoint.ts)); if (uPoint.bias > 0) { balance = uint256(uint128(uPoint.bias)); } } /// @dev Calculate total voting power at some point in the past. /// @param lastPoint The point (bias/slope) to start the search from. /// @param ts Time to calculate the total voting power at. /// @return vSupply Total voting power at that time. function _supplyLockedAt(PointVoting memory lastPoint, uint64 ts) internal view returns (uint256 vSupply) { // The timestamp is rounded and < 2^64-1 uint64 tStep = (lastPoint.ts / WEEK) * WEEK; for (uint256 i = 0; i < 255; ++i) { // This is always practically < 2^64-1 unchecked { tStep += WEEK; } int128 dSlope; if (tStep > ts) { tStep = ts; } else { dSlope = mapSlopeChanges[tStep]; } lastPoint.bias -= lastPoint.slope * int128(int64(tStep) - int64(lastPoint.ts)); if (tStep == ts) { break; } lastPoint.slope += dSlope; lastPoint.ts = tStep; } if (lastPoint.bias > 0) { vSupply = uint256(uint128(lastPoint.bias)); } } /// @dev Gets total token supply. /// @return Total token supply. function totalSupply() public view override returns (uint256) { return supply; } /// @dev Gets total token supply at a specific block number. /// @param blockNumber Block number. /// @return supplyAt Supply at the specified block number. function totalSupplyAt(uint256 blockNumber) external view returns (uint256 supplyAt) { // Find point with the closest block number to the provided one (PointVoting memory sPoint, ) = _findPointByBlock(blockNumber, address(0)); // If the block number at the point index is bigger than the specified block number, the balance was zero if (sPoint.blockNumber < (blockNumber + 1)) { supplyAt = uint256(sPoint.balance); } } /// @dev Calculates total voting power at time `ts`. /// @param ts Time to get total voting power at. /// @return Total voting power. function totalSupplyLockedAtT(uint256 ts) public view returns (uint256) { PointVoting memory lastPoint = mapSupplyPoints[totalNumPoints]; return _supplyLockedAt(lastPoint, uint64(ts)); } /// @dev Calculates current total voting power. /// @return Total voting power. function totalSupplyLocked() public view returns (uint256) { return totalSupplyLockedAtT(block.timestamp); } /// @dev Calculate total voting power at some point in the past. /// @param blockNumber Block number to calculate the total voting power at. /// @return Total voting power. function getPastTotalSupply(uint256 blockNumber) public view override returns (uint256) { (PointVoting memory sPoint, uint256 blockTime) = _getBlockTime(blockNumber); // Now dt contains info on how far are we beyond the point return _supplyLockedAt(sPoint, uint64(blockTime)); } /// @dev Gets information about the interface support. /// @param interfaceId A specified interface Id. /// @return True if this contract implements the interface defined by interfaceId. function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(IERC20).interfaceId || interfaceId == type(IVotes).interfaceId || interfaceId == type(IERC165).interfaceId; } /// @dev Reverts the transfer of this token. function transfer(address to, uint256 amount) external virtual override returns (bool) { revert NonTransferable(address(this)); } /// @dev Reverts the approval of this token. function approve(address spender, uint256 amount) external virtual override returns (bool) { revert NonTransferable(address(this)); } /// @dev Reverts the transferFrom of this token. function transferFrom(address from, address to, uint256 amount) external virtual override returns (bool) { revert NonTransferable(address(this)); } /// @dev Reverts the allowance of this token. function allowance(address owner, address spender) external view virtual override returns (uint256) { revert NonTransferable(address(this)); } /// @dev Reverts delegates of this token. function delegates(address account) external view virtual override returns (address) { revert NonDelegatable(address(this)); } /// @dev Reverts delegate for this token. function delegate(address delegatee) external virtual override { revert NonDelegatable(address(this)); } /// @dev Reverts delegateBySig for this token. function delegateBySig(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s) external virtual override { revert NonDelegatable(address(this)); } }
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0; /// @notice Modern and gas efficient ERC20 + EIP-2612 implementation. /// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC20.sol) /// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol) /// @dev Do not manually set balances without updating totalSupply, as the sum of all user balances must not exceed it. abstract contract ERC20 { /*////////////////////////////////////////////////////////////// EVENTS //////////////////////////////////////////////////////////////*/ event Transfer(address indexed from, address indexed to, uint256 amount); event Approval(address indexed owner, address indexed spender, uint256 amount); /*////////////////////////////////////////////////////////////// METADATA STORAGE //////////////////////////////////////////////////////////////*/ string public name; string public symbol; uint8 public immutable decimals; /*////////////////////////////////////////////////////////////// ERC20 STORAGE //////////////////////////////////////////////////////////////*/ uint256 public totalSupply; mapping(address => uint256) public balanceOf; mapping(address => mapping(address => uint256)) public allowance; /*////////////////////////////////////////////////////////////// EIP-2612 STORAGE //////////////////////////////////////////////////////////////*/ uint256 internal immutable INITIAL_CHAIN_ID; bytes32 internal immutable INITIAL_DOMAIN_SEPARATOR; mapping(address => uint256) public nonces; /*////////////////////////////////////////////////////////////// CONSTRUCTOR //////////////////////////////////////////////////////////////*/ constructor( string memory _name, string memory _symbol, uint8 _decimals ) { name = _name; symbol = _symbol; decimals = _decimals; INITIAL_CHAIN_ID = block.chainid; INITIAL_DOMAIN_SEPARATOR = computeDomainSeparator(); } /*////////////////////////////////////////////////////////////// ERC20 LOGIC //////////////////////////////////////////////////////////////*/ function approve(address spender, uint256 amount) public virtual returns (bool) { allowance[msg.sender][spender] = amount; emit Approval(msg.sender, spender, amount); return true; } function transfer(address to, uint256 amount) public virtual returns (bool) { balanceOf[msg.sender] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(msg.sender, to, amount); return true; } function transferFrom( address from, address to, uint256 amount ) public virtual returns (bool) { uint256 allowed = allowance[from][msg.sender]; // Saves gas for limited approvals. if (allowed != type(uint256).max) allowance[from][msg.sender] = allowed - amount; balanceOf[from] -= amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(from, to, amount); return true; } /*////////////////////////////////////////////////////////////// EIP-2612 LOGIC //////////////////////////////////////////////////////////////*/ function permit( address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) public virtual { require(deadline >= block.timestamp, "PERMIT_DEADLINE_EXPIRED"); // Unchecked because the only math done is incrementing // the owner's nonce which cannot realistically overflow. unchecked { address recoveredAddress = ecrecover( keccak256( abi.encodePacked( "\x19\x01", DOMAIN_SEPARATOR(), keccak256( abi.encode( keccak256( "Permit(address owner,address spender,uint256 value,uint256 nonce,uint256 deadline)" ), owner, spender, value, nonces[owner]++, deadline ) ) ) ), v, r, s ); require(recoveredAddress != address(0) && recoveredAddress == owner, "INVALID_SIGNER"); allowance[recoveredAddress][spender] = value; } emit Approval(owner, spender, value); } function DOMAIN_SEPARATOR() public view virtual returns (bytes32) { return block.chainid == INITIAL_CHAIN_ID ? INITIAL_DOMAIN_SEPARATOR : computeDomainSeparator(); } function computeDomainSeparator() internal view virtual returns (bytes32) { return keccak256( abi.encode( keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"), keccak256(bytes(name)), keccak256("1"), block.chainid, address(this) ) ); } /*////////////////////////////////////////////////////////////// INTERNAL MINT/BURN LOGIC //////////////////////////////////////////////////////////////*/ function _mint(address to, uint256 amount) internal virtual { totalSupply += amount; // Cannot overflow because the sum of all user // balances can't exceed the max uint256 value. unchecked { balanceOf[to] += amount; } emit Transfer(address(0), to, amount); } function _burn(address from, uint256 amount) internal virtual { balanceOf[from] -= amount; // Cannot underflow because a user's balance // will never be larger than the total supply. unchecked { totalSupply -= amount; } emit Transfer(from, address(0), amount); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.5.0) (governance/utils/IVotes.sol) pragma solidity ^0.8.0; /** * @dev Common interface for {ERC20Votes}, {ERC721Votes}, and other {Votes}-enabled contracts. * * _Available since v4.5._ */ interface IVotes { /** * @dev Emitted when an account changes their delegate. */ event DelegateChanged(address indexed delegator, address indexed fromDelegate, address indexed toDelegate); /** * @dev Emitted when a token transfer or delegate change results in changes to a delegate's number of votes. */ event DelegateVotesChanged(address indexed delegate, uint256 previousBalance, uint256 newBalance); /** * @dev Returns the current amount of votes that `account` has. */ function getVotes(address account) external view returns (uint256); /** * @dev Returns the amount of votes that `account` had at the end of a past block (`blockNumber`). */ function getPastVotes(address account, uint256 blockNumber) external view returns (uint256); /** * @dev Returns the total supply of votes available at the end of a past block (`blockNumber`). * * NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes. * Votes that have not been delegated are still part of total supply, even though they would not participate in a * vote. */ function getPastTotalSupply(uint256 blockNumber) external view returns (uint256); /** * @dev Returns the delegate that `account` has chosen. */ function delegates(address account) external view returns (address); /** * @dev Delegates votes from the sender to `delegatee`. */ function delegate(address delegatee) external; /** * @dev Delegates votes from signer to `delegatee`. */ function delegateBySig( address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s ) external; }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `to`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address to, uint256 amount) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `from` to `to` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom( address from, address to, uint256 amount ) external returns (bool); }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * queried by others ({ERC165Checker}). * * For an implementation, see {ERC165}. */ interface IERC165 { /** * @dev Returns true if this contract implements the interface defined by * `interfaceId`. See the corresponding * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] * to learn more about how these ids are created. * * This function call must use less than 30 000 gas. */ function supportsInterface(bytes4 interfaceId) external view returns (bool); }
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; /// @dev Errors. interface IErrors { /// @dev Only `owner` has a privilege, but the `sender` was provided. /// @param sender Sender address. /// @param owner Required sender address as an owner. error OwnerOnly(address sender, address owner); /// @dev Provided zero address. error ZeroAddress(); /// @dev Zero value when it has to be different from zero. error ZeroValue(); /// @dev Non-zero value when it has to be zero. error NonZeroValue(); /// @dev Wrong length of two arrays. /// @param numValues1 Number of values in a first array. /// @param numValues2 Numberf of values in a second array. error WrongArrayLength(uint256 numValues1, uint256 numValues2); /// @dev Value overflow. /// @param provided Overflow value. /// @param max Maximum possible value. error Overflow(uint256 provided, uint256 max); /// @dev Token is non-transferable. /// @param account Token address. error NonTransferable(address account); /// @dev Token is non-delegatable. /// @param account Token address. error NonDelegatable(address account); /// @dev Insufficient token allowance. /// @param provided Provided amount. /// @param expected Minimum expected amount. error InsufficientAllowance(uint256 provided, uint256 expected); /// @dev No existing lock value is found. /// @param account Address that is checked for the locked value. error NoValueLocked(address account); /// @dev Locked value is not zero. /// @param account Address that is checked for the locked value. /// @param amount Locked amount. error LockedValueNotZero(address account, uint256 amount); /// @dev Value lock is expired. /// @param account Address that is checked for the locked value. /// @param deadline The lock expiration deadline. /// @param curTime Current timestamp. error LockExpired(address account, uint256 deadline, uint256 curTime); /// @dev Value lock is not expired. /// @param account Address that is checked for the locked value. /// @param deadline The lock expiration deadline. /// @param curTime Current timestamp. error LockNotExpired(address account, uint256 deadline, uint256 curTime); /// @dev Provided unlock time is incorrect. /// @param account Address that is checked for the locked value. /// @param minUnlockTime Minimal unlock time that can be set. /// @param providedUnlockTime Provided unlock time. error UnlockTimeIncorrect(address account, uint256 minUnlockTime, uint256 providedUnlockTime); /// @dev Provided unlock time is bigger than the maximum allowed. /// @param account Address that is checked for the locked value. /// @param maxUnlockTime Max unlock time that can be set. /// @param providedUnlockTime Provided unlock time. error MaxUnlockTimeReached(address account, uint256 maxUnlockTime, uint256 providedUnlockTime); /// @dev Provided block number is incorrect (has not been processed yet). /// @param providedBlockNumber Provided block number. /// @param actualBlockNumber Actual block number. error WrongBlockNumber(uint256 providedBlockNumber, uint256 actualBlockNumber); }
{ "optimizer": { "enabled": true, "runs": 1000000 }, "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":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"owner","type":"address"}],"name":"OwnerOnly","type":"error"},{"inputs":[],"name":"ZeroAddress","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"}],"name":"OwnerUpdated","type":"event"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"computeOLASAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"address","name":"token","type":"address"}],"name":"computeVeOLASAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"}],"name":"deployOLAS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"address","name":"token","type":"address"}],"name":"deployVeOLAS","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"olasAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"veOLASAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]
Contract Creation Code
608060405234801561001057600080fd5b50600280546001600160a01b03191633179055615f33806100326000396000f3fe60806040523480156200001157600080fd5b5060043610620000935760003560e01c80638da5cb5b11620000625780638da5cb5b14620001335780639f1bc7771462000154578063a6f9dae1146200016b578063b06aefaa146200018257600080fd5b80632890bab014620000985780633e2a135814620000d857806345064dee14620000f95780635cf18f4e1462000112575b600080fd5b620000af620000a936600462000a8f565b62000199565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b600154620000af9073ffffffffffffffffffffffffffffffffffffffff1681565b620001106200010a36600462000abe565b620002d0565b005b600054620000af9073ffffffffffffffffffffffffffffffffffffffff1681565b600254620000af9073ffffffffffffffffffffffffffffffffffffffff1681565b620001106200016536600462000a8f565b620004ee565b620001106200017c36600462000ad8565b620006c0565b620000af6200019336600462000abe565b620007f2565b6000620002c98360405180602001620001b29062000a49565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f90910116604081815273ffffffffffffffffffffffffffffffffffffffff871660208301526060908201819052601260808301527f566f74696e6720457363726f77204f4c4153000000000000000000000000000060a08084019190915290820152600660c08201527f76654f4c4153000000000000000000000000000000000000000000000000000060e082015261010001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620002ad929160200162000b34565b6040516020818303038152906040528051906020012062000853565b9392505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000349576002546040517fa43d6ada00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044015b60405180910390fd5b620003b960008260405180602001620003629062000a57565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620003a4919060200162000b4d565b604051602081830303815290604052620008db565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691821790556040517f2c4d4d18000000000000000000000000000000000000000000000000000000008152336004820152632c4d4d1890602401600060405180830381600087803b1580156200044d57600080fd5b505af115801562000462573d6000803e3d6000fd5b50506000546040517fa6f9dae100000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116925063a6f9dae19150602401600060405180830381600087803b158015620004d257600080fd5b505af1158015620004e7573d6000803e3d6000fd5b5050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000563576002546040517fa43d6ada00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116602482015260440162000340565b62000677600083604051806020016200057c9062000a49565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f90910116604081815273ffffffffffffffffffffffffffffffffffffffff871660208301526060908201819052601260808301527f566f74696e6720457363726f77204f4c4153000000000000000000000000000060a08084019190915290820152600660c08201527f76654f4c4153000000000000000000000000000000000000000000000000000060e082015261010001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620003a4929160200162000b34565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790555050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000735576002546040517fa43d6ada00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116602482015260440162000340565b73ffffffffffffffffffffffffffffffffffffffff811662000783576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f4ffd725fc4a22075e9ec71c59edf9c38cdeb588a91b24fc5b61388c5be41282b90600090a250565b60006200084d82604051806020016200080b9062000a57565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620002ad919060200162000b4d565b92915050565b604080517fff000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003060601b1660218301526035820185905260558083018590528351808403909101815260759092019092528051910120600090620002c9565b600080844710156200094a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640162000340565b8251600003620009b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640162000340565b8383516020850187f5905073ffffffffffffffffffffffffffffffffffffffff811662000a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640162000340565b949350505050565b613ab38062000b5c83390190565b6118ef806200460f83390190565b803573ffffffffffffffffffffffffffffffffffffffff8116811462000a8a57600080fd5b919050565b6000806040838503121562000aa357600080fd5b8235915062000ab56020840162000a65565b90509250929050565b60006020828403121562000ad157600080fd5b5035919050565b60006020828403121562000aeb57600080fd5b620002c98262000a65565b6000815160005b8181101562000b19576020818501810151868301520162000afd565b8181111562000b29576000828601525b509290920192915050565b600062000a4162000b46838662000af6565b8462000af6565b6000620002c9828462000af656fe60a06040523480156200001157600080fd5b5060405162003ab338038062003ab3833981016040819052620000349162000210565b6001600160a01b03831660805260066200004f838262000329565b5060076200005e828262000329565b50506040805160a081018252600080825260208083018281526001600160401b0342811695850195865243811660608601908152608086018581529480526003909352935190516001600160801b03908116600160801b908102928216929092177f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5594517f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92f00805493519451871690920293851668010000000000000000026001600160801b0319939093169416939093171790921691909117905550620003f59050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200016b57600080fd5b81516001600160401b038082111562000188576200018862000143565b604051601f8301601f19908116603f01168101908282118183101715620001b357620001b362000143565b81604052838152602092508683858801011115620001d057600080fd5b600091505b83821015620001f45785820183015181830184015290820190620001d5565b83821115620002065760008385830101525b9695505050505050565b6000806000606084860312156200022657600080fd5b83516001600160a01b03811681146200023e57600080fd5b60208501519093506001600160401b03808211156200025c57600080fd5b6200026a8783880162000159565b935060408601519150808211156200028157600080fd5b50620002908682870162000159565b9150509250925092565b600181811c90821680620002af57607f821691505b602082108103620002d057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032457600081815260208120601f850160051c81016020861015620002ff5750805b601f850160051c820191505b8181101562000320578281556001016200030b565b5050505b505050565b81516001600160401b0381111562000345576200034562000143565b6200035d816200035684546200029a565b84620002d6565b602080601f8311600181146200039557600084156200037c5750858301515b600019600386901b1c1916600185901b17855562000320565b600085815260208120601f198616915b82811015620003c657888601518255948401946001909101908401620003a5565b5085821015620003e55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516136946200041f6000396000818161078901528181610fe2015261181001526136946000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c8063587cde1e116101605780639ab24eb0116100d8578063c2c4c5c11161008c578063c4698ee511610071578063c4698ee514610763578063dd62ed3e14610776578063fc0c546a1461078457600080fd5b8063c2c4c5c11461074d578063c3cda5201461075557600080fd5b8063b0a34fdd116100bd578063b0a34fdd146106aa578063b18f270214610727578063b52c05fe1461073a57600080fd5b80639ab24eb014610697578063a9059cbb146103b057600080fd5b806378888dbf1161012f5780638e539e8c116101145780638e539e8c1461066957806395d89b411461067c578063981b24d01461068457600080fd5b806378888dbf146106205780637c616fe61461065657600080fd5b8063587cde1e1461057a5780635c19a95c146105b257806370a08231146105c557806370ab0a841461060d57600080fd5b806329b55ca71161020e578063474177ec116101c25780634ee2cd7e116101a75780634ee2cd7e1461052957806353acfabd1461053c578063583419221461057257600080fd5b8063474177ec146104cc5780634deafcae146104d557600080fd5b8063313ce567116101f3578063313ce567146104975780633a46b1a8146104b15780633ccfd60b146104c457600080fd5b806329b55ca7146104715780632f4f21e21461048457600080fd5b8063095ea7b31161026557806318160ddd1161024a57806318160ddd146103d857806318b21348146103e057806323b872dd1461046357600080fd5b8063095ea7b3146103b057806315456eba146103c357600080fd5b806301ffc9a714610297578063025fc7d8146102bf578063047fc9aa1461038457806306fdde031461039b575b600080fd5b6102aa6102a5366004612eaa565b6107ab565b60405190151581526020015b60405180910390f35b6103366102cd366004612eec565b60036020526000908152604090208054600190910154600f82810b927001000000000000000000000000000000009081900490910b9167ffffffffffffffff8082169268010000000000000000830490911691046fffffffffffffffffffffffffffffffff1685565b60408051600f96870b81529490950b602085015267ffffffffffffffff928316948401949094521660608201526fffffffffffffffffffffffffffffffff909116608082015260a0016102b6565b61038d60005481565b6040519081526020016102b6565b6103a3610890565b6040516102b69190612f05565b6102aa6103be366004612fa1565b61091e565b6103d66103d1366004612eec565b61095a565b005b60005461038d565b6104326103ee366004612fcb565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff811690700100000000000000000000000000000000900467ffffffffffffffff1682565b604080516fffffffffffffffffffffffffffffffff909316835267ffffffffffffffff9091166020830152016102b6565b6102aa6103be366004612fe6565b6103d661047f366004613022565b610b16565b6103d6610492366004612fa1565b610b73565b61049f601281565b60405160ff90911681526020016102b6565b61038d6104bf366004612fa1565b610d57565b6103d6610ddb565b61038d60025481565b61038d6104e3366004612fcb565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b61038d610537366004612fa1565b61106b565b61038d61054a366004612fcb565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b61038d6110bc565b61058d610588366004612fcb565b6110cc565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b6103d66105c0366004612fcb565b611103565b61038d6105d3366004612fcb565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546fffffffffffffffffffffffffffffffff1690565b61033661061b366004612fa1565b611137565b61064361062e366004613055565b600560205260009081526040902054600f0b81565b604051600f9190910b81526020016102b6565b6103d6610664366004612eec565b6111bf565b61038d610677366004612eec565b6113dc565b6103a3611400565b61038d610692366004612eec565b61140d565b61038d6106a5366004612fcb565b61145e565b6106bd6106b8366004612fa1565b61146a565b6040516102b69190600060a0820190508251600f0b82526020830151600f0b6020830152604083015167ffffffffffffffff808216604085015280606086015116606085015250506fffffffffffffffffffffffffffffffff608084015116608083015292915050565b61038d610735366004612eec565b61155b565b6103d661074836600461307f565b6115f7565b6103d6611602565b6103d66105c03660046130a1565b6106bd610771366004612fcb565b611639565b61038d6103be366004613101565b61058d7f000000000000000000000000000000000000000000000000000000000000000081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f36372b0700000000000000000000000000000000000000000000000000000000148061083e57507fffffffff0000000000000000000000000000000000000000000000000000000082167fe90fb3f600000000000000000000000000000000000000000000000000000000145b8061088a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b6006805461089d90613134565b80601f01602080910402602001604051908101604052809291908181526020018280546108c990613134565b80156109165780601f106108eb57610100808354040283529160200191610916565b820191906000526020600020905b8154815290600101906020018083116108f957829003601f168201915b505050505081565b6040517f9c21e7b20000000000000000000000000000000000000000000000000000000081523060048201526000906024015b60405180910390fd5b3360009081526001602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff81168252700100000000000000000000000000000000900467ffffffffffffffff1691810191909152908290036109e9576040517f7c946ed700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80516fffffffffffffffffffffffffffffffff16600003610a38576040517f1ff847b6000000000000000000000000000000000000000000000000000000008152336004820152602401610951565b610a434260016131b0565b816020015167ffffffffffffffff161015610aa85760208101516040517fd78507e100000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b6bffffffffffffffffffffffff821115610b03576040517f7ae59685000000000000000000000000000000000000000000000000000000008152600481018390526bffffffffffffffffffffffff6024820152604401610951565b610b12338360008460026116cc565b5050565b73ffffffffffffffffffffffffffffffffffffffff8316610b63576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b6e83838361192f565b505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff81168252700100000000000000000000000000000000900467ffffffffffffffff169181019190915290829003610c18576040517f7c946ed700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80516fffffffffffffffffffffffffffffffff16600003610c7d576040517f1ff847b600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610951565b610c884260016131b0565b816020015167ffffffffffffffff161015610ced5760208101516040517fd78507e100000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b6bffffffffffffffffffffffff821115610d48576040517f7ae59685000000000000000000000000000000000000000000000000000000008152600481018390526bffffffffffffffffffffffff6024820152604401610951565b610b6e838360008460006116cc565b600080610d648385611b4f565b5090506000610d7284611f6a565b915050816040015181610d8591906131c8565b60070b8260200151610d979190613231565b82518390610da69083906132e7565b600f90810b90915283516000910b13159050610dd35781516fffffffffffffffffffffffffffffffff1692505b505092915050565b336000908152600160209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff81168352700100000000000000000000000000000000900467ffffffffffffffff16908201819052421015610e875760208101516040517fab0246b300000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b805160408051808201825260008082526020808301828152338084526001835285842094518554925167ffffffffffffffff16700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff9182161792909217909455825495168086038084558551808701909652838652918501929092529093929091610f3a9186908461216d565b6040805184815242602082015233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a260408051838152602081018390527f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c910160405180910390a16040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb906044016020604051808303816000875af1158015611040573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611064919061334e565b5050505050565b6000806110788385611b4f565b5090506110868360016131b0565b816060015167ffffffffffffffff1610156110b55780608001516fffffffffffffffffffffffffffffffff1691505b5092915050565b60006110c74261155b565b905090565b6040517f535db4ec000000000000000000000000000000000000000000000000000000008152306004820152600090602401610951565b6040517f535db4ec000000000000000000000000000000000000000000000000000000008152306004820152602401610951565b6004602052816000526040600020818154811061115357600080fd5b600091825260209091206002909102018054600190910154600f82810b945070010000000000000000000000000000000092839004900b925067ffffffffffffffff8082169268010000000000000000830490911691046fffffffffffffffffffffffffffffffff1685565b336000908152600160209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff81168352700100000000000000000000000000000000900467ffffffffffffffff169082015262093a80804284010402915080600001516fffffffffffffffffffffffffffffffff16600003611270576040517f1ff847b6000000000000000000000000000000000000000000000000000000008152336004820152602401610951565b61127b4260016131b0565b816020015167ffffffffffffffff1610156112e05760208101516040517fd78507e100000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b60208101516112f090600161339f565b67ffffffffffffffff168210156113525760208101516040517f311d1bf900000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff909116602482015260448101839052606401610951565b611360630784ce00426131b0565b8211156113cd5733611376630784ce00426131b0565b6040517fc172987b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092166004830152602482015260448101839052606401610951565b610b12336000848460036116cc565b60008060006113ea84611f6a565b915091506113f88282612c35565b949350505050565b6007805461089d90613134565b60008061141b836000611b4f565b5090506114298360016131b0565b816060015167ffffffffffffffff1610156114585780608001516fffffffffffffffffffffffffffffffff1691505b50919050565b600061088a8242612d66565b6040805160a08101825260008082526020808301829052828401829052606083018290526080830182905273ffffffffffffffffffffffffffffffffffffffff8616825260049052919091208054839081106114c8576114c86133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401929092526801000000000000000081049091166060830152919091046fffffffffffffffffffffffffffffffff1660808201529392505050565b6002546000908152600360209081526040808320815160a0810183528154600f81810b835270010000000000000000000000000000000091829004900b9482019490945260019091015467ffffffffffffffff8082169383019390935268010000000000000000810490921660608201529190046fffffffffffffffffffffffffffffffff1660808201526115f08184612c35565b9392505050565b610b1233838361192f565b60408051808201825260008082526020808301829052835180850190945281845283018190528054611637939192919061216d565b565b6040805160a08101825260008082526020808301829052828401829052606083018290526080830182905273ffffffffffffffffffffffffffffffffffffffff8516825260049052919091205480156114585773ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604090206116bc6001836133fa565b815481106114c8576114c86133cb565b600080548581018083556040805180820190915283815260208101939093529091845160208087015167ffffffffffffffff16908301526fffffffffffffffffffffffffffffffff90811682528551880116855285156117375767ffffffffffffffff861660208601525b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160209081526040909120865181549288015167ffffffffffffffff16700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff909116179190911790556117cf8882878561216d565b8615611894576040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303816000875af115801561186e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611892919061334e565b505b8773ffffffffffffffffffffffffffffffffffffffff167fbe9cf0e939c614fad640a623a53ba0a807c8cb503c4c4c8dacabe27b86ff2dd588876020015187426040516118e49493929190613411565b60405180910390a260408051848152602081018490527f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c910160405180910390a15050505050505050565b81600003611969576040517f7c946ed700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62093a808042830173ffffffffffffffffffffffffffffffffffffffff86166000908152600160209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff811680845270010000000000000000000000000000000090910467ffffffffffffffff16918301919091529290910492909202925015611a535780516040517f89bf64dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff861660048201526fffffffffffffffffffffffffffffffff9091166024820152604401610951565b611a5e4260016131b0565b821015611abc576040517f311d1bf900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015242602482015260448101839052606401610951565b611aca630784ce00426131b0565b821115611ae05783611376630784ce00426131b0565b6bffffffffffffffffffffffff831115611b3b576040517f7ae59685000000000000000000000000000000000000000000000000000000008152600481018490526bffffffffffffffffffffffff6024820152604401610951565b611b498484848460016116cc565b50505050565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101829052908073ffffffffffffffffffffffffffffffffffffffff8416611b9f5750600254611bf7565b5073ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205490819003611bd45750611f63565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b60005b6080811015611df05781611c0f8460016131b0565b11611df05760006002611c2284866131b0565b611c2d9060016131b0565b611c379190613471565b905073ffffffffffffffffffffffffffffffffffffffff8616611ce357600081815260036020908152604091829020825160a0810184528154600f81810b835270010000000000000000000000000000000091829004900b9382019390935260019091015467ffffffffffffffff80821694830194909452680100000000000000008104909316606082015291046fffffffffffffffffffffffffffffffff1660808201529450611da9565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600460205260409020805482908110611d1a57611d1a6133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401929092526801000000000000000081049091166060830152919091046fffffffffffffffffffffffffffffffff16608082015294505b611db48760016131b0565b856060015167ffffffffffffffff161015611dd157809350611ddf565b611ddc6001826133fa565b92505b50611de981613485565b9050611bfa565b5073ffffffffffffffffffffffffffffffffffffffff8416611e9b57600082815260036020908152604091829020825160a0810184528154600f81810b835270010000000000000000000000000000000091829004900b9382019390935260019091015467ffffffffffffffff80821694830194909452680100000000000000008104909316606082015291046fffffffffffffffffffffffffffffffff1660808201529250611f61565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600460205260409020805483908110611ed257611ed26133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401929092526801000000000000000081049091166060830152919091046fffffffffffffffffffffffffffffffff16608082015292505b505b9250929050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529043831115611fd8576040517f8633967e00000000000000000000000000000000000000000000000000000000815260048101849052436024820152604401610951565b6000611fe5846000611b4f565b600254919450915060009081908310156120da5760006003816120098660016131b0565b81526020808201929092526040908101600020815160a0810183528154600f81810b835270010000000000000000000000000000000091829004900b9482019490945260019091015467ffffffffffffffff808216938301939093526801000000000000000081049092166060808301829052939092046fffffffffffffffffffffffffffffffff166080820152918801519192506120a891906134bd565b67ffffffffffffffff169250856040015181604001516120c891906134bd565b67ffffffffffffffff16915050612112565b60608501516120f39067ffffffffffffffff16436133fa565b9150846040015167ffffffffffffffff164261210f91906133fa565b90505b604085015167ffffffffffffffff16935081156121655781856060015167ffffffffffffffff168761214491906133fa565b61214e90836134e6565b6121589190613471565b61216290856131b0565b93505b505050915091565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600254600090819073ffffffffffffffffffffffffffffffffffffffff8916156123655742886020015167ffffffffffffffff16118015612216575087516fffffffffffffffffffffffffffffffff1615155b1561226557875161222c90630784ce0090613523565b600f0b6020808701919091528801516122469042906134bd565b67ffffffffffffffff16856020015161225f9190613231565b600f0b85525b42876020015167ffffffffffffffff16118015612294575086516fffffffffffffffffffffffffffffffff1615155b156122e35786516122aa90630784ce0090613523565b600f0b6020808601919091528701516122c49042906134bd565b67ffffffffffffffff1684602001516122dd9190613231565b600f0b84525b60208089015167ffffffffffffffff908116600090815260058352604090205491890151600f9290920b9450161561236557876020015167ffffffffffffffff16876020015167ffffffffffffffff160361234057829150612365565b60208088015167ffffffffffffffff16600090815260059091526040902054600f0b91505b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915281156124245750600081815260036020908152604091829020825160a0810184528154600f81810b835270010000000000000000000000000000000091829004900b9382019390935260019091015467ffffffffffffffff80821694830194909452680100000000000000008104909316606082015291046fffffffffffffffffffffffffffffffff16608082015261247d565b6040518060a001604052806000600f0b81526020016000600f0b81526020014267ffffffffffffffff1681526020014367ffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681525090505b604081015181600067ffffffffffffffff83164211156124e85760408401516124b09067ffffffffffffffff16426133fa565b60608501516124c99067ffffffffffffffff16436133fa565b6124db90670de0b6b3a76400006134e6565b6124e59190613471565b90505b600062093a806124f88186613597565b61250291906135be565b905060005b60ff8110156127585762093a80820191506000428367ffffffffffffffff16111561253457429250612553565b5067ffffffffffffffff8216600090815260056020526040902054600f0b5b61255d86846134bd565b60070b876020015161256f9190613231565b8751889061257e9083906132e7565b600f0b9052506020870180518291906125989083906135ee565b600f90810b90915288516000910b121590506125b357600087525b60008760200151600f0b12156125cb57600060208801525b67ffffffffffffffff83166040808901919091528501519295508592670de0b6b3a7640000906125fb90856134bd565b61260f9067ffffffffffffffff16866134e6565b6126199190613471565b8560600151612628919061339f565b67ffffffffffffffff90811660608901526080808701516fffffffffffffffffffffffffffffffff1690890152600198909801974290841603612693575067ffffffffffffffff431660608701526fffffffffffffffffffffffffffffffff8c166080870152612758565b506000878152600360209081526040918290208851918901516fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000009184168202178255928901516001909101805460608b015160808c015167ffffffffffffffff9485167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909316929092176801000000000000000094909116939093029290921783169190921690920291909117905561275181613485565b9050612507565b5050600285905573ffffffffffffffffffffffffffffffffffffffff8d16156127f9578860200151886020015161278f91906132e7565b846020018181516127a091906135ee565b600f0b905250885188516127b491906132e7565b845185906127c39083906135ee565b600f90810b90915260208601516000910b121590506127e457600060208501525b60008460000151600f0b12156127f957600084525b6000858152600360209081526040918290208651918701516fffffffffffffffffffffffffffffffff92831670010000000000000000000000000000000091841682021782559287015160019091018054606089015160808a015167ffffffffffffffff9485167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909316929092176801000000000000000094909116939093029290921783169190921690920291909117905573ffffffffffffffffffffffffffffffffffffffff8d1615612c2657428c6020015167ffffffffffffffff16111561297e5760208901516128ee90886135ee565b96508b6020015167ffffffffffffffff168b6020015167ffffffffffffffff160361292557602088015161292290886132e7565b96505b60208c81015167ffffffffffffffff16600090815260059091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff89161790555b428b6020015167ffffffffffffffff161180156129b657508b6020015167ffffffffffffffff168b6020015167ffffffffffffffff16115b15612a255760208801516129ca90876132e7565b60208c81015167ffffffffffffffff16600090815260059091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff831617905595505b42886040019067ffffffffffffffff16908167ffffffffffffffff168152505043886060019067ffffffffffffffff16908167ffffffffffffffff16815250508a6000015188608001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff1681525050600460008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002088908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff16021790555060408201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060808201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050505b50505050505050505050505050565b60008062093a80808560400151612c4c9190613597565b612c5691906135be565b905060005b60ff811015612d3a5762093a808201915060008467ffffffffffffffff168367ffffffffffffffff161115612c9257849250612cb1565b5067ffffffffffffffff8216600090815260056020526040902054600f0b5b6040860151612cc090846131c8565b60070b8660200151612cd29190613231565b86518790612ce19083906132e7565b600f0b90525067ffffffffffffffff80861690841603612d015750612d3a565b8086602001818151612d1391906135ee565b600f0b9052505067ffffffffffffffff82166040860152612d3381613485565b9050612c5b565b5060008460000151600f0b13156110b557505090516fffffffffffffffffffffffffffffffff16919050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081205480156110b55773ffffffffffffffffffffffffffffffffffffffff84166000908152600460205260408120612dc26001846133fa565b81548110612dd257612dd26133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401839052680100000000000000008204166060840152929092046fffffffffffffffffffffffffffffffff1660808201529150612e6790856131c8565b60070b8160200151612e799190613231565b81518290612e889083906132e7565b600f90810b90915282516000910b13159050610dd35751600f0b949350505050565b600060208284031215612ebc57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146115f057600080fd5b600060208284031215612efe57600080fd5b5035919050565b600060208083528351808285015260005b81811015612f3257858101830151858201604001528201612f16565b81811115612f44576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114612f9c57600080fd5b919050565b60008060408385031215612fb457600080fd5b612fbd83612f78565b946020939093013593505050565b600060208284031215612fdd57600080fd5b6115f082612f78565b600080600060608486031215612ffb57600080fd5b61300484612f78565b925061301260208501612f78565b9150604084013590509250925092565b60008060006060848603121561303757600080fd5b61304084612f78565b95602085013595506040909401359392505050565b60006020828403121561306757600080fd5b813567ffffffffffffffff811681146115f057600080fd5b6000806040838503121561309257600080fd5b50508035926020909101359150565b60008060008060008060c087890312156130ba57600080fd5b6130c387612f78565b95506020870135945060408701359350606087013560ff811681146130e757600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561311457600080fd5b61311d83612f78565b915061312b60208401612f78565b90509250929050565b600181811c9082168061314857607f821691505b602082108103611458577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156131c3576131c3613181565b500190565b60008160070b8360070b60008112817fffffffffffffffffffffffffffffffffffffffffffffffff80000000000000000183128115161561320b5761320b613181565b81677fffffffffffffff01831381161561322757613227613181565b5090039392505050565b600081600f0b83600f0b6f7fffffffffffffffffffffffffffffff60008213600084138383048511828216161561326a5761326a613181565b7fffffffffffffffffffffffffffffffff8000000000000000000000000000000060008512868205861281841616156132a5576132a5613181565b600087129250858205871284841616156132c1576132c1613181565b858505871281841616156132d7576132d7613181565b5050509290910295945050505050565b600081600f0b83600f0b60008112817fffffffffffffffffffffffffffffffff800000000000000000000000000000000183128115161561332a5761332a613181565b816f7fffffffffffffffffffffffffffffff01831381161561322757613227613181565b60006020828403121561336057600080fd5b815180151581146115f057600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600067ffffffffffffffff8083168185168083038211156133c2576133c2613181565b01949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008282101561340c5761340c613181565b500390565b84815267ffffffffffffffff84166020820152608081016004841061345f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60408201939093526060015292915050565b60008261348057613480613370565b500490565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134b6576134b6613181565b5060010190565b600067ffffffffffffffff838116908316818110156134de576134de613181565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561351e5761351e613181565b500290565b600081600f0b83600f0b8061353a5761353a613370565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81147fffffffffffffffffffffffffffffffff800000000000000000000000000000008314161561358e5761358e613181565b90059392505050565b600067ffffffffffffffff808416806135b2576135b2613370565b92169190910492915050565b600067ffffffffffffffff808316818516818304811182151516156135e5576135e5613181565b02949350505050565b600081600f0b83600f0b60008212826f7fffffffffffffffffffffffffffffff0382138115161561362157613621613181565b827fffffffffffffffffffffffffffffffff8000000000000000000000000000000003821281161561365557613655613181565b5001939250505056fea2646970667358221220f99e7957a96c37b1b0b686b8989f714f8bc39f7695601819d3ce0d5e52590c9264736f6c634300080f00336101006040523480156200001257600080fd5b50604051806040016040528060098152602001684175746f6e6f6c617360b81b815250604051806040016040528060048152602001634f4c415360e01b81525060128260009081620000659190620001fd565b506001620000748382620001fd565b5060ff81166080524660a0526200008a620000bc565b60c052505060068054336001600160a01b03199182168117909255600780549091169091179055504260e05262000347565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620000f09190620002c9565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018357607f821691505b602082108103620001a457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f857600081815260208120601f850160051c81016020861015620001d35750805b601f850160051c820191505b81811015620001f457828155600101620001df565b5050505b505050565b81516001600160401b0381111562000219576200021962000158565b62000231816200022a84546200016e565b84620001aa565b602080601f831160018114620002695760008415620002505750858301515b600019600386901b1c1916600185901b178555620001f4565b600085815260208120601f198616915b828110156200029a5788860151825594840194600190910190840162000279565b5085821015620002b95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354620002d9816200016e565b60018281168015620002f457600181146200030a576200033b565b60ff19841687528215158302870194506200033b565b8760005260208060002060005b85811015620003325781548a82015290840190820162000317565b50505082870194505b50929695505050505050565b60805160a05160c05160e05161156762000388600039600081816103850152610bb1015260006107f1015260006107bc0152600061029001526115676000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c80636e79265c116100ee578063a457c2d711610097578063b091dab311610071578063b091dab3146103e8578063d505accf146103f0578063dd62ed3e14610403578063f27c3bf61461042e57600080fd5b8063a457c2d7146103af578063a6f9dae1146103c2578063a9059cbb146103d557600080fd5b80638da5cb5b116100c85780638da5cb5b146103605780638e4a83791461038057806395d89b41146103a757600080fd5b80636e79265c1461030d57806370a08231146103205780637ecebe001461034057600080fd5b80632c4d4d181161015b578063395093511161013557806339509351146102cc57806340c10f19146102df57806342966c68146102f25780635ff99e9d1461030557600080fd5b80632c4d4d1814610276578063313ce5671461028b5780633644e515146102c457600080fd5b80630a8ded1d1161018c5780630a8ded1d1461023957806318160ddd1461025a57806323b872dd1461026357600080fd5b806306fdde03146101b357806307546172146101d1578063095ea7b314610216575b600080fd5b6101bb610439565b6040516101c89190611117565b60405180910390f35b6007546101f19073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c8565b6102296102243660046111b3565b6104c7565b60405190151581526020016101c8565b61024c6b033b2e3c9fd0803ce800000081565b6040519081526020016101c8565b61024c60025481565b6102296102713660046111dd565b610540565b610289610284366004611219565b610684565b005b6102b27f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101c8565b61024c6107b8565b6102296102da3660046111b3565b610813565b6102896102ed3660046111b3565b6108c2565b61028961030036600461123b565b610951565b61024c600281565b61022961031b36600461123b565b61095e565b61024c61032e366004611219565b60036020526000908152604090205481565b61024c61034e366004611219565b60056020526000908152604090205481565b6006546101f19073ffffffffffffffffffffffffffffffffffffffff1681565b61024c7f000000000000000000000000000000000000000000000000000000000000000081565b6101bb610973565b6102296103bd3660046111b3565b610980565b6102896103d0366004611219565b6109ec565b6102296103e33660046111b3565b610b1b565b61024c610ba0565b6102896103fe366004611254565b610c57565b61024c6104113660046112c7565b600460209081526000928352604080842090915290825290205481565b61024c6301e1338081565b60008054610446906112fa565b80601f0160208091040260200160405190810160405280929190818152602001828054610472906112fa565b80156104bf5780601f10610494576101008083540402835291602001916104bf565b820191906000526020600020905b8154815290600101906020018083116104a257829003601f168201915b505050505081565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061052f9086815260200190565b60405180910390a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146105d4576105a2838261137c565b73ffffffffffffffffffffffffffffffffffffffff861660009081526004602090815260408083203384529091529020555b73ffffffffffffffffffffffffffffffffffffffff85166000908152600360205260408120805485929061060990849061137c565b909155505073ffffffffffffffffffffffffffffffffffffffff808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906106719087815260200190565b60405180910390a3506001949350505050565b60065473ffffffffffffffffffffffffffffffffffffffff1633146106fc576006546040517f625a43fe00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610749576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a90600090a250565b60007f000000000000000000000000000000000000000000000000000000000000000046146107ee576107e9610f76565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b33600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205461084e8382611393565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a16808552908352928190208590555184815293945090927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b60075473ffffffffffffffffffffffffffffffffffffffff163314610935576007546040517f625a43fe00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044016106f3565b61093e8161095e565b1561094d5761094d8282611010565b5050565b61095b3382611089565b50565b600080610969610ba0565b9092111592915050565b60018054610446906112fa565b33600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109e25761084e838261137c565b5060019392505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610a5f576006546040517f625a43fe00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044016106f3565b73ffffffffffffffffffffffffffffffffffffffff8116610aac576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f4ffd725fc4a22075e9ec71c59edf9c38cdeb588a91b24fc5b61388c5be41282b90600090a250565b33600090815260036020526040812080548391908390610b3c90849061137c565b909155505073ffffffffffffffffffffffffffffffffffffffff8316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061052f9086815260200190565b600254600090816301e13380610bd67f00000000000000000000000000000000000000000000000000000000000000004261137c565b610be091906113ab565b90506b033b2e3c9fd0803ce80000006009821115610c4557610c0360098361137c565b915060005b82811015610c43576064610c1d6002846113e6565b610c2791906113ab565b610c319083611393565b9150610c3c81611423565b9050610c08565b505b610c4f838261137c565b935050505090565b42841015610cc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016106f3565b60006001610ccd6107b8565b73ffffffffffffffffffffffffffffffffffffffff8a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e0830190915280519201919091207f190100000000000000000000000000000000000000000000000000000000000061010083015261010282019290925261012281019190915261014201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610e1f573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610e9a57508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610f00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016106f3565b73ffffffffffffffffffffffffffffffffffffffff90811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610fa8919061145b565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b80600260008282546110229190611393565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080548392906110be90849061137c565b909155505060028054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161107d565b600060208083528351808285015260005b8181101561114457858101830151858201604001528201611128565b81811115611156576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146111ae57600080fd5b919050565b600080604083850312156111c657600080fd5b6111cf8361118a565b946020939093013593505050565b6000806000606084860312156111f257600080fd5b6111fb8461118a565b92506112096020850161118a565b9150604084013590509250925092565b60006020828403121561122b57600080fd5b6112348261118a565b9392505050565b60006020828403121561124d57600080fd5b5035919050565b600080600080600080600060e0888a03121561126f57600080fd5b6112788861118a565b96506112866020890161118a565b95506040880135945060608801359350608088013560ff811681146112aa57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156112da57600080fd5b6112e38361118a565b91506112f16020840161118a565b90509250929050565b600181811c9082168061130e57607f821691505b602082108103611347577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561138e5761138e61134d565b500390565b600082198211156113a6576113a661134d565b500190565b6000826113e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561141e5761141e61134d565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114545761145461134d565b5060010190565b600080835481600182811c91508083168061147757607f831692505b602080841082036114af577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156114c357600181146114f657611523565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952841515850289019650611523565b60008a81526020902060005b8681101561151b5781548b820152908501908301611502565b505084890196505b50949897505050505050505056fea2646970667358221220c98a30972113e0d3de3d0251b915f91f6817c0880aa9ac6932e2dd2d6acd9ab964736f6c634300080f0033a26469706673582212203a704aa7b7cecaa88e046083b0f22430db803852ca050c926cf43b99c2770ede64736f6c634300080f0033
Deployed Bytecode
0x60806040523480156200001157600080fd5b5060043610620000935760003560e01c80638da5cb5b11620000625780638da5cb5b14620001335780639f1bc7771462000154578063a6f9dae1146200016b578063b06aefaa146200018257600080fd5b80632890bab014620000985780633e2a135814620000d857806345064dee14620000f95780635cf18f4e1462000112575b600080fd5b620000af620000a936600462000a8f565b62000199565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200160405180910390f35b600154620000af9073ffffffffffffffffffffffffffffffffffffffff1681565b620001106200010a36600462000abe565b620002d0565b005b600054620000af9073ffffffffffffffffffffffffffffffffffffffff1681565b600254620000af9073ffffffffffffffffffffffffffffffffffffffff1681565b620001106200016536600462000a8f565b620004ee565b620001106200017c36600462000ad8565b620006c0565b620000af6200019336600462000abe565b620007f2565b6000620002c98360405180602001620001b29062000a49565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f90910116604081815273ffffffffffffffffffffffffffffffffffffffff871660208301526060908201819052601260808301527f566f74696e6720457363726f77204f4c4153000000000000000000000000000060a08084019190915290820152600660c08201527f76654f4c4153000000000000000000000000000000000000000000000000000060e082015261010001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620002ad929160200162000b34565b6040516020818303038152906040528051906020012062000853565b9392505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000349576002546040517fa43d6ada00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044015b60405180910390fd5b620003b960008260405180602001620003629062000a57565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620003a4919060200162000b4d565b604051602081830303815290604052620008db565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691821790556040517f2c4d4d18000000000000000000000000000000000000000000000000000000008152336004820152632c4d4d1890602401600060405180830381600087803b1580156200044d57600080fd5b505af115801562000462573d6000803e3d6000fd5b50506000546040517fa6f9dae100000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116925063a6f9dae19150602401600060405180830381600087803b158015620004d257600080fd5b505af1158015620004e7573d6000803e3d6000fd5b5050505050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000563576002546040517fa43d6ada00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116602482015260440162000340565b62000677600083604051806020016200057c9062000a49565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f90910116604081815273ffffffffffffffffffffffffffffffffffffffff871660208301526060908201819052601260808301527f566f74696e6720457363726f77204f4c4153000000000000000000000000000060a08084019190915290820152600660c08201527f76654f4c4153000000000000000000000000000000000000000000000000000060e082015261010001604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815290829052620003a4929160200162000b34565b600180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff929092169190911790555050565b60025473ffffffffffffffffffffffffffffffffffffffff16331462000735576002546040517fa43d6ada00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff909116602482015260440162000340565b73ffffffffffffffffffffffffffffffffffffffff811662000783576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f4ffd725fc4a22075e9ec71c59edf9c38cdeb588a91b24fc5b61388c5be41282b90600090a250565b60006200084d82604051806020016200080b9062000a57565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe082820381018352601f909101166040819052620002ad919060200162000b4d565b92915050565b604080517fff000000000000000000000000000000000000000000000000000000000000006020808301919091527fffffffffffffffffffffffffffffffffffffffff0000000000000000000000003060601b1660218301526035820185905260558083018590528351808403909101815260759092019092528051910120600090620002c9565b600080844710156200094a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f437265617465323a20696e73756666696369656e742062616c616e6365000000604482015260640162000340565b8251600003620009b7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f437265617465323a2062797465636f6465206c656e677468206973207a65726f604482015260640162000340565b8383516020850187f5905073ffffffffffffffffffffffffffffffffffffffff811662000a41576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f437265617465323a204661696c6564206f6e206465706c6f7900000000000000604482015260640162000340565b949350505050565b613ab38062000b5c83390190565b6118ef806200460f83390190565b803573ffffffffffffffffffffffffffffffffffffffff8116811462000a8a57600080fd5b919050565b6000806040838503121562000aa357600080fd5b8235915062000ab56020840162000a65565b90509250929050565b60006020828403121562000ad157600080fd5b5035919050565b60006020828403121562000aeb57600080fd5b620002c98262000a65565b6000815160005b8181101562000b19576020818501810151868301520162000afd565b8181111562000b29576000828601525b509290920192915050565b600062000a4162000b46838662000af6565b8462000af6565b6000620002c9828462000af656fe60a06040523480156200001157600080fd5b5060405162003ab338038062003ab3833981016040819052620000349162000210565b6001600160a01b03831660805260066200004f838262000329565b5060076200005e828262000329565b50506040805160a081018252600080825260208083018281526001600160401b0342811695850195865243811660608601908152608086018581529480526003909352935190516001600160801b03908116600160801b908102928216929092177f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff5594517f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92f00805493519451871690920293851668010000000000000000026001600160801b0319939093169416939093171790921691909117905550620003f59050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200016b57600080fd5b81516001600160401b038082111562000188576200018862000143565b604051601f8301601f19908116603f01168101908282118183101715620001b357620001b362000143565b81604052838152602092508683858801011115620001d057600080fd5b600091505b83821015620001f45785820183015181830184015290820190620001d5565b83821115620002065760008385830101525b9695505050505050565b6000806000606084860312156200022657600080fd5b83516001600160a01b03811681146200023e57600080fd5b60208501519093506001600160401b03808211156200025c57600080fd5b6200026a8783880162000159565b935060408601519150808211156200028157600080fd5b50620002908682870162000159565b9150509250925092565b600181811c90821680620002af57607f821691505b602082108103620002d057634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200032457600081815260208120601f850160051c81016020861015620002ff5750805b601f850160051c820191505b8181101562000320578281556001016200030b565b5050505b505050565b81516001600160401b0381111562000345576200034562000143565b6200035d816200035684546200029a565b84620002d6565b602080601f8311600181146200039557600084156200037c5750858301515b600019600386901b1c1916600185901b17855562000320565b600085815260208120601f198616915b82811015620003c657888601518255948401946001909101908401620003a5565b5085821015620003e55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6080516136946200041f6000396000818161078901528181610fe2015261181001526136946000f3fe608060405234801561001057600080fd5b50600436106102925760003560e01c8063587cde1e116101605780639ab24eb0116100d8578063c2c4c5c11161008c578063c4698ee511610071578063c4698ee514610763578063dd62ed3e14610776578063fc0c546a1461078457600080fd5b8063c2c4c5c11461074d578063c3cda5201461075557600080fd5b8063b0a34fdd116100bd578063b0a34fdd146106aa578063b18f270214610727578063b52c05fe1461073a57600080fd5b80639ab24eb014610697578063a9059cbb146103b057600080fd5b806378888dbf1161012f5780638e539e8c116101145780638e539e8c1461066957806395d89b411461067c578063981b24d01461068457600080fd5b806378888dbf146106205780637c616fe61461065657600080fd5b8063587cde1e1461057a5780635c19a95c146105b257806370a08231146105c557806370ab0a841461060d57600080fd5b806329b55ca71161020e578063474177ec116101c25780634ee2cd7e116101a75780634ee2cd7e1461052957806353acfabd1461053c578063583419221461057257600080fd5b8063474177ec146104cc5780634deafcae146104d557600080fd5b8063313ce567116101f3578063313ce567146104975780633a46b1a8146104b15780633ccfd60b146104c457600080fd5b806329b55ca7146104715780632f4f21e21461048457600080fd5b8063095ea7b31161026557806318160ddd1161024a57806318160ddd146103d857806318b21348146103e057806323b872dd1461046357600080fd5b8063095ea7b3146103b057806315456eba146103c357600080fd5b806301ffc9a714610297578063025fc7d8146102bf578063047fc9aa1461038457806306fdde031461039b575b600080fd5b6102aa6102a5366004612eaa565b6107ab565b60405190151581526020015b60405180910390f35b6103366102cd366004612eec565b60036020526000908152604090208054600190910154600f82810b927001000000000000000000000000000000009081900490910b9167ffffffffffffffff8082169268010000000000000000830490911691046fffffffffffffffffffffffffffffffff1685565b60408051600f96870b81529490950b602085015267ffffffffffffffff928316948401949094521660608201526fffffffffffffffffffffffffffffffff909116608082015260a0016102b6565b61038d60005481565b6040519081526020016102b6565b6103a3610890565b6040516102b69190612f05565b6102aa6103be366004612fa1565b61091e565b6103d66103d1366004612eec565b61095a565b005b60005461038d565b6104326103ee366004612fcb565b6001602052600090815260409020546fffffffffffffffffffffffffffffffff811690700100000000000000000000000000000000900467ffffffffffffffff1682565b604080516fffffffffffffffffffffffffffffffff909316835267ffffffffffffffff9091166020830152016102b6565b6102aa6103be366004612fe6565b6103d661047f366004613022565b610b16565b6103d6610492366004612fa1565b610b73565b61049f601281565b60405160ff90911681526020016102b6565b61038d6104bf366004612fa1565b610d57565b6103d6610ddb565b61038d60025481565b61038d6104e3366004612fcb565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020526040902054700100000000000000000000000000000000900467ffffffffffffffff1690565b61038d610537366004612fa1565b61106b565b61038d61054a366004612fcb565b73ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b61038d6110bc565b61058d610588366004612fcb565b6110cc565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016102b6565b6103d66105c0366004612fcb565b611103565b61038d6105d3366004612fcb565b73ffffffffffffffffffffffffffffffffffffffff166000908152600160205260409020546fffffffffffffffffffffffffffffffff1690565b61033661061b366004612fa1565b611137565b61064361062e366004613055565b600560205260009081526040902054600f0b81565b604051600f9190910b81526020016102b6565b6103d6610664366004612eec565b6111bf565b61038d610677366004612eec565b6113dc565b6103a3611400565b61038d610692366004612eec565b61140d565b61038d6106a5366004612fcb565b61145e565b6106bd6106b8366004612fa1565b61146a565b6040516102b69190600060a0820190508251600f0b82526020830151600f0b6020830152604083015167ffffffffffffffff808216604085015280606086015116606085015250506fffffffffffffffffffffffffffffffff608084015116608083015292915050565b61038d610735366004612eec565b61155b565b6103d661074836600461307f565b6115f7565b6103d6611602565b6103d66105c03660046130a1565b6106bd610771366004612fcb565b611639565b61038d6103be366004613101565b61058d7f000000000000000000000000000000000000000000000000000000000000000081565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f36372b0700000000000000000000000000000000000000000000000000000000148061083e57507fffffffff0000000000000000000000000000000000000000000000000000000082167fe90fb3f600000000000000000000000000000000000000000000000000000000145b8061088a57507fffffffff0000000000000000000000000000000000000000000000000000000082167f01ffc9a700000000000000000000000000000000000000000000000000000000145b92915050565b6006805461089d90613134565b80601f01602080910402602001604051908101604052809291908181526020018280546108c990613134565b80156109165780601f106108eb57610100808354040283529160200191610916565b820191906000526020600020905b8154815290600101906020018083116108f957829003601f168201915b505050505081565b6040517f9c21e7b20000000000000000000000000000000000000000000000000000000081523060048201526000906024015b60405180910390fd5b3360009081526001602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff81168252700100000000000000000000000000000000900467ffffffffffffffff1691810191909152908290036109e9576040517f7c946ed700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80516fffffffffffffffffffffffffffffffff16600003610a38576040517f1ff847b6000000000000000000000000000000000000000000000000000000008152336004820152602401610951565b610a434260016131b0565b816020015167ffffffffffffffff161015610aa85760208101516040517fd78507e100000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b6bffffffffffffffffffffffff821115610b03576040517f7ae59685000000000000000000000000000000000000000000000000000000008152600481018390526bffffffffffffffffffffffff6024820152604401610951565b610b12338360008460026116cc565b5050565b73ffffffffffffffffffffffffffffffffffffffff8316610b63576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610b6e83838361192f565b505050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602090815260408083208151808301909252546fffffffffffffffffffffffffffffffff81168252700100000000000000000000000000000000900467ffffffffffffffff169181019190915290829003610c18576040517f7c946ed700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80516fffffffffffffffffffffffffffffffff16600003610c7d576040517f1ff847b600000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84166004820152602401610951565b610c884260016131b0565b816020015167ffffffffffffffff161015610ced5760208101516040517fd78507e100000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b6bffffffffffffffffffffffff821115610d48576040517f7ae59685000000000000000000000000000000000000000000000000000000008152600481018390526bffffffffffffffffffffffff6024820152604401610951565b610b6e838360008460006116cc565b600080610d648385611b4f565b5090506000610d7284611f6a565b915050816040015181610d8591906131c8565b60070b8260200151610d979190613231565b82518390610da69083906132e7565b600f90810b90915283516000910b13159050610dd35781516fffffffffffffffffffffffffffffffff1692505b505092915050565b336000908152600160209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff81168352700100000000000000000000000000000000900467ffffffffffffffff16908201819052421015610e875760208101516040517fab0246b300000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b805160408051808201825260008082526020808301828152338084526001835285842094518554925167ffffffffffffffff16700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff9182161792909217909455825495168086038084558551808701909652838652918501929092529093929091610f3a9186908461216d565b6040805184815242602082015233917ff279e6a1f5e320cca91135676d9cb6e44ca8a08c0b88342bcdb1144f6511b568910160405180910390a260408051838152602081018390527f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c910160405180910390a16040517fa9059cbb000000000000000000000000000000000000000000000000000000008152336004820152602481018490527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a9059cbb906044016020604051808303816000875af1158015611040573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611064919061334e565b5050505050565b6000806110788385611b4f565b5090506110868360016131b0565b816060015167ffffffffffffffff1610156110b55780608001516fffffffffffffffffffffffffffffffff1691505b5092915050565b60006110c74261155b565b905090565b6040517f535db4ec000000000000000000000000000000000000000000000000000000008152306004820152600090602401610951565b6040517f535db4ec000000000000000000000000000000000000000000000000000000008152306004820152602401610951565b6004602052816000526040600020818154811061115357600080fd5b600091825260209091206002909102018054600190910154600f82810b945070010000000000000000000000000000000092839004900b925067ffffffffffffffff8082169268010000000000000000830490911691046fffffffffffffffffffffffffffffffff1685565b336000908152600160209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff81168352700100000000000000000000000000000000900467ffffffffffffffff169082015262093a80804284010402915080600001516fffffffffffffffffffffffffffffffff16600003611270576040517f1ff847b6000000000000000000000000000000000000000000000000000000008152336004820152602401610951565b61127b4260016131b0565b816020015167ffffffffffffffff1610156112e05760208101516040517fd78507e100000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff9091166024820152426044820152606401610951565b60208101516112f090600161339f565b67ffffffffffffffff168210156113525760208101516040517f311d1bf900000000000000000000000000000000000000000000000000000000815233600482015267ffffffffffffffff909116602482015260448101839052606401610951565b611360630784ce00426131b0565b8211156113cd5733611376630784ce00426131b0565b6040517fc172987b00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff9092166004830152602482015260448101839052606401610951565b610b12336000848460036116cc565b60008060006113ea84611f6a565b915091506113f88282612c35565b949350505050565b6007805461089d90613134565b60008061141b836000611b4f565b5090506114298360016131b0565b816060015167ffffffffffffffff1610156114585780608001516fffffffffffffffffffffffffffffffff1691505b50919050565b600061088a8242612d66565b6040805160a08101825260008082526020808301829052828401829052606083018290526080830182905273ffffffffffffffffffffffffffffffffffffffff8616825260049052919091208054839081106114c8576114c86133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401929092526801000000000000000081049091166060830152919091046fffffffffffffffffffffffffffffffff1660808201529392505050565b6002546000908152600360209081526040808320815160a0810183528154600f81810b835270010000000000000000000000000000000091829004900b9482019490945260019091015467ffffffffffffffff8082169383019390935268010000000000000000810490921660608201529190046fffffffffffffffffffffffffffffffff1660808201526115f08184612c35565b9392505050565b610b1233838361192f565b60408051808201825260008082526020808301829052835180850190945281845283018190528054611637939192919061216d565b565b6040805160a08101825260008082526020808301829052828401829052606083018290526080830182905273ffffffffffffffffffffffffffffffffffffffff8516825260049052919091205480156114585773ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604090206116bc6001836133fa565b815481106114c8576114c86133cb565b600080548581018083556040805180820190915283815260208101939093529091845160208087015167ffffffffffffffff16908301526fffffffffffffffffffffffffffffffff90811682528551880116855285156117375767ffffffffffffffff861660208601525b73ffffffffffffffffffffffffffffffffffffffff88166000908152600160209081526040909120865181549288015167ffffffffffffffff16700100000000000000000000000000000000027fffffffffffffffff0000000000000000000000000000000000000000000000009093166fffffffffffffffffffffffffffffffff909116179190911790556117cf8882878561216d565b8615611894576040517f23b872dd000000000000000000000000000000000000000000000000000000008152336004820152306024820152604481018890527f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16906323b872dd906064016020604051808303816000875af115801561186e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611892919061334e565b505b8773ffffffffffffffffffffffffffffffffffffffff167fbe9cf0e939c614fad640a623a53ba0a807c8cb503c4c4c8dacabe27b86ff2dd588876020015187426040516118e49493929190613411565b60405180910390a260408051848152602081018490527f5e2aa66efd74cce82b21852e317e5490d9ecc9e6bb953ae24d90851258cc2f5c910160405180910390a15050505050505050565b81600003611969576040517f7c946ed700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62093a808042830173ffffffffffffffffffffffffffffffffffffffff86166000908152600160209081526040918290208251808401909352546fffffffffffffffffffffffffffffffff811680845270010000000000000000000000000000000090910467ffffffffffffffff16918301919091529290910492909202925015611a535780516040517f89bf64dd00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff861660048201526fffffffffffffffffffffffffffffffff9091166024820152604401610951565b611a5e4260016131b0565b821015611abc576040517f311d1bf900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8516600482015242602482015260448101839052606401610951565b611aca630784ce00426131b0565b821115611ae05783611376630784ce00426131b0565b6bffffffffffffffffffffffff831115611b3b576040517f7ae59685000000000000000000000000000000000000000000000000000000008152600481018490526bffffffffffffffffffffffff6024820152604401610951565b611b498484848460016116cc565b50505050565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101829052908073ffffffffffffffffffffffffffffffffffffffff8416611b9f5750600254611bf7565b5073ffffffffffffffffffffffffffffffffffffffff831660009081526004602052604081205490819003611bd45750611f63565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff015b60005b6080811015611df05781611c0f8460016131b0565b11611df05760006002611c2284866131b0565b611c2d9060016131b0565b611c379190613471565b905073ffffffffffffffffffffffffffffffffffffffff8616611ce357600081815260036020908152604091829020825160a0810184528154600f81810b835270010000000000000000000000000000000091829004900b9382019390935260019091015467ffffffffffffffff80821694830194909452680100000000000000008104909316606082015291046fffffffffffffffffffffffffffffffff1660808201529450611da9565b73ffffffffffffffffffffffffffffffffffffffff86166000908152600460205260409020805482908110611d1a57611d1a6133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401929092526801000000000000000081049091166060830152919091046fffffffffffffffffffffffffffffffff16608082015294505b611db48760016131b0565b856060015167ffffffffffffffff161015611dd157809350611ddf565b611ddc6001826133fa565b92505b50611de981613485565b9050611bfa565b5073ffffffffffffffffffffffffffffffffffffffff8416611e9b57600082815260036020908152604091829020825160a0810184528154600f81810b835270010000000000000000000000000000000091829004900b9382019390935260019091015467ffffffffffffffff80821694830194909452680100000000000000008104909316606082015291046fffffffffffffffffffffffffffffffff1660808201529250611f61565b73ffffffffffffffffffffffffffffffffffffffff84166000908152600460205260409020805483908110611ed257611ed26133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401929092526801000000000000000081049091166060830152919091046fffffffffffffffffffffffffffffffff16608082015292505b505b9250929050565b6040805160a08101825260008082526020820181905291810182905260608101829052608081018290529043831115611fd8576040517f8633967e00000000000000000000000000000000000000000000000000000000815260048101849052436024820152604401610951565b6000611fe5846000611b4f565b600254919450915060009081908310156120da5760006003816120098660016131b0565b81526020808201929092526040908101600020815160a0810183528154600f81810b835270010000000000000000000000000000000091829004900b9482019490945260019091015467ffffffffffffffff808216938301939093526801000000000000000081049092166060808301829052939092046fffffffffffffffffffffffffffffffff166080820152918801519192506120a891906134bd565b67ffffffffffffffff169250856040015181604001516120c891906134bd565b67ffffffffffffffff16915050612112565b60608501516120f39067ffffffffffffffff16436133fa565b9150846040015167ffffffffffffffff164261210f91906133fa565b90505b604085015167ffffffffffffffff16935081156121655781856060015167ffffffffffffffff168761214491906133fa565b61214e90836134e6565b6121589190613471565b61216290856131b0565b93505b505050915091565b6040805160a0810182526000808252602082018190529181018290526060810182905260808101919091526040805160a081018252600080825260208201819052918101829052606081018290526080810191909152600254600090819073ffffffffffffffffffffffffffffffffffffffff8916156123655742886020015167ffffffffffffffff16118015612216575087516fffffffffffffffffffffffffffffffff1615155b1561226557875161222c90630784ce0090613523565b600f0b6020808701919091528801516122469042906134bd565b67ffffffffffffffff16856020015161225f9190613231565b600f0b85525b42876020015167ffffffffffffffff16118015612294575086516fffffffffffffffffffffffffffffffff1615155b156122e35786516122aa90630784ce0090613523565b600f0b6020808601919091528701516122c49042906134bd565b67ffffffffffffffff1684602001516122dd9190613231565b600f0b84525b60208089015167ffffffffffffffff908116600090815260058352604090205491890151600f9290920b9450161561236557876020015167ffffffffffffffff16876020015167ffffffffffffffff160361234057829150612365565b60208088015167ffffffffffffffff16600090815260059091526040902054600f0b91505b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915281156124245750600081815260036020908152604091829020825160a0810184528154600f81810b835270010000000000000000000000000000000091829004900b9382019390935260019091015467ffffffffffffffff80821694830194909452680100000000000000008104909316606082015291046fffffffffffffffffffffffffffffffff16608082015261247d565b6040518060a001604052806000600f0b81526020016000600f0b81526020014267ffffffffffffffff1681526020014367ffffffffffffffff16815260200160006fffffffffffffffffffffffffffffffff1681525090505b604081015181600067ffffffffffffffff83164211156124e85760408401516124b09067ffffffffffffffff16426133fa565b60608501516124c99067ffffffffffffffff16436133fa565b6124db90670de0b6b3a76400006134e6565b6124e59190613471565b90505b600062093a806124f88186613597565b61250291906135be565b905060005b60ff8110156127585762093a80820191506000428367ffffffffffffffff16111561253457429250612553565b5067ffffffffffffffff8216600090815260056020526040902054600f0b5b61255d86846134bd565b60070b876020015161256f9190613231565b8751889061257e9083906132e7565b600f0b9052506020870180518291906125989083906135ee565b600f90810b90915288516000910b121590506125b357600087525b60008760200151600f0b12156125cb57600060208801525b67ffffffffffffffff83166040808901919091528501519295508592670de0b6b3a7640000906125fb90856134bd565b61260f9067ffffffffffffffff16866134e6565b6126199190613471565b8560600151612628919061339f565b67ffffffffffffffff90811660608901526080808701516fffffffffffffffffffffffffffffffff1690890152600198909801974290841603612693575067ffffffffffffffff431660608701526fffffffffffffffffffffffffffffffff8c166080870152612758565b506000878152600360209081526040918290208851918901516fffffffffffffffffffffffffffffffff9283167001000000000000000000000000000000009184168202178255928901516001909101805460608b015160808c015167ffffffffffffffff9485167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909316929092176801000000000000000094909116939093029290921783169190921690920291909117905561275181613485565b9050612507565b5050600285905573ffffffffffffffffffffffffffffffffffffffff8d16156127f9578860200151886020015161278f91906132e7565b846020018181516127a091906135ee565b600f0b905250885188516127b491906132e7565b845185906127c39083906135ee565b600f90810b90915260208601516000910b121590506127e457600060208501525b60008460000151600f0b12156127f957600084525b6000858152600360209081526040918290208651918701516fffffffffffffffffffffffffffffffff92831670010000000000000000000000000000000091841682021782559287015160019091018054606089015160808a015167ffffffffffffffff9485167fffffffffffffffffffffffffffffffff00000000000000000000000000000000909316929092176801000000000000000094909116939093029290921783169190921690920291909117905573ffffffffffffffffffffffffffffffffffffffff8d1615612c2657428c6020015167ffffffffffffffff16111561297e5760208901516128ee90886135ee565b96508b6020015167ffffffffffffffff168b6020015167ffffffffffffffff160361292557602088015161292290886132e7565b96505b60208c81015167ffffffffffffffff16600090815260059091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff89161790555b428b6020015167ffffffffffffffff161180156129b657508b6020015167ffffffffffffffff168b6020015167ffffffffffffffff16115b15612a255760208801516129ca90876132e7565b60208c81015167ffffffffffffffff16600090815260059091526040902080547fffffffffffffffffffffffffffffffff00000000000000000000000000000000166fffffffffffffffffffffffffffffffff831617905595505b42886040019067ffffffffffffffff16908167ffffffffffffffff168152505043886060019067ffffffffffffffff16908167ffffffffffffffff16815250508a6000015188608001906fffffffffffffffffffffffffffffffff1690816fffffffffffffffffffffffffffffffff1681525050600460008e73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002088908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff16021790555060208201518160000160106101000a8154816fffffffffffffffffffffffffffffffff0219169083600f0b6fffffffffffffffffffffffffffffffff16021790555060408201518160010160006101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060608201518160010160086101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060808201518160010160106101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555050505b50505050505050505050505050565b60008062093a80808560400151612c4c9190613597565b612c5691906135be565b905060005b60ff811015612d3a5762093a808201915060008467ffffffffffffffff168367ffffffffffffffff161115612c9257849250612cb1565b5067ffffffffffffffff8216600090815260056020526040902054600f0b5b6040860151612cc090846131c8565b60070b8660200151612cd29190613231565b86518790612ce19083906132e7565b600f0b90525067ffffffffffffffff80861690841603612d015750612d3a565b8086602001818151612d1391906135ee565b600f0b9052505067ffffffffffffffff82166040860152612d3381613485565b9050612c5b565b5060008460000151600f0b13156110b557505090516fffffffffffffffffffffffffffffffff16919050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526004602052604081205480156110b55773ffffffffffffffffffffffffffffffffffffffff84166000908152600460205260408120612dc26001846133fa565b81548110612dd257612dd26133cb565b60009182526020918290206040805160a0810182526002939093029091018054600f81810b855270010000000000000000000000000000000091829004900b948401949094526001015467ffffffffffffffff808216928401839052680100000000000000008204166060840152929092046fffffffffffffffffffffffffffffffff1660808201529150612e6790856131c8565b60070b8160200151612e799190613231565b81518290612e889083906132e7565b600f90810b90915282516000910b13159050610dd35751600f0b949350505050565b600060208284031215612ebc57600080fd5b81357fffffffff00000000000000000000000000000000000000000000000000000000811681146115f057600080fd5b600060208284031215612efe57600080fd5b5035919050565b600060208083528351808285015260005b81811015612f3257858101830151858201604001528201612f16565b81811115612f44576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114612f9c57600080fd5b919050565b60008060408385031215612fb457600080fd5b612fbd83612f78565b946020939093013593505050565b600060208284031215612fdd57600080fd5b6115f082612f78565b600080600060608486031215612ffb57600080fd5b61300484612f78565b925061301260208501612f78565b9150604084013590509250925092565b60008060006060848603121561303757600080fd5b61304084612f78565b95602085013595506040909401359392505050565b60006020828403121561306757600080fd5b813567ffffffffffffffff811681146115f057600080fd5b6000806040838503121561309257600080fd5b50508035926020909101359150565b60008060008060008060c087890312156130ba57600080fd5b6130c387612f78565b95506020870135945060408701359350606087013560ff811681146130e757600080fd5b9598949750929560808101359460a0909101359350915050565b6000806040838503121561311457600080fd5b61311d83612f78565b915061312b60208401612f78565b90509250929050565b600181811c9082168061314857607f821691505b602082108103611458577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600082198211156131c3576131c3613181565b500190565b60008160070b8360070b60008112817fffffffffffffffffffffffffffffffffffffffffffffffff80000000000000000183128115161561320b5761320b613181565b81677fffffffffffffff01831381161561322757613227613181565b5090039392505050565b600081600f0b83600f0b6f7fffffffffffffffffffffffffffffff60008213600084138383048511828216161561326a5761326a613181565b7fffffffffffffffffffffffffffffffff8000000000000000000000000000000060008512868205861281841616156132a5576132a5613181565b600087129250858205871284841616156132c1576132c1613181565b858505871281841616156132d7576132d7613181565b5050509290910295945050505050565b600081600f0b83600f0b60008112817fffffffffffffffffffffffffffffffff800000000000000000000000000000000183128115161561332a5761332a613181565b816f7fffffffffffffffffffffffffffffff01831381161561322757613227613181565b60006020828403121561336057600080fd5b815180151581146115f057600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600067ffffffffffffffff8083168185168083038211156133c2576133c2613181565b01949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60008282101561340c5761340c613181565b500390565b84815267ffffffffffffffff84166020820152608081016004841061345f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b60408201939093526060015292915050565b60008261348057613480613370565b500490565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036134b6576134b6613181565b5060010190565b600067ffffffffffffffff838116908316818110156134de576134de613181565b039392505050565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561351e5761351e613181565b500290565b600081600f0b83600f0b8061353a5761353a613370565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81147fffffffffffffffffffffffffffffffff800000000000000000000000000000008314161561358e5761358e613181565b90059392505050565b600067ffffffffffffffff808416806135b2576135b2613370565b92169190910492915050565b600067ffffffffffffffff808316818516818304811182151516156135e5576135e5613181565b02949350505050565b600081600f0b83600f0b60008212826f7fffffffffffffffffffffffffffffff0382138115161561362157613621613181565b827fffffffffffffffffffffffffffffffff8000000000000000000000000000000003821281161561365557613655613181565b5001939250505056fea2646970667358221220f99e7957a96c37b1b0b686b8989f714f8bc39f7695601819d3ce0d5e52590c9264736f6c634300080f00336101006040523480156200001257600080fd5b50604051806040016040528060098152602001684175746f6e6f6c617360b81b815250604051806040016040528060048152602001634f4c415360e01b81525060128260009081620000659190620001fd565b506001620000748382620001fd565b5060ff81166080524660a0526200008a620000bc565b60c052505060068054336001600160a01b03199182168117909255600780549091169091179055504260e05262000347565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051620000f09190620002c9565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200018357607f821691505b602082108103620001a457634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001f857600081815260208120601f850160051c81016020861015620001d35750805b601f850160051c820191505b81811015620001f457828155600101620001df565b5050505b505050565b81516001600160401b0381111562000219576200021962000158565b62000231816200022a84546200016e565b84620001aa565b602080601f831160018114620002695760008415620002505750858301515b600019600386901b1c1916600185901b178555620001f4565b600085815260208120601f198616915b828110156200029a5788860151825594840194600190910190840162000279565b5085821015620002b95787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808354620002d9816200016e565b60018281168015620002f457600181146200030a576200033b565b60ff19841687528215158302870194506200033b565b8760005260208060002060005b85811015620003325781548a82015290840190820162000317565b50505082870194505b50929695505050505050565b60805160a05160c05160e05161156762000388600039600081816103850152610bb1015260006107f1015260006107bc0152600061029001526115676000f3fe608060405234801561001057600080fd5b50600436106101ae5760003560e01c80636e79265c116100ee578063a457c2d711610097578063b091dab311610071578063b091dab3146103e8578063d505accf146103f0578063dd62ed3e14610403578063f27c3bf61461042e57600080fd5b8063a457c2d7146103af578063a6f9dae1146103c2578063a9059cbb146103d557600080fd5b80638da5cb5b116100c85780638da5cb5b146103605780638e4a83791461038057806395d89b41146103a757600080fd5b80636e79265c1461030d57806370a08231146103205780637ecebe001461034057600080fd5b80632c4d4d181161015b578063395093511161013557806339509351146102cc57806340c10f19146102df57806342966c68146102f25780635ff99e9d1461030557600080fd5b80632c4d4d1814610276578063313ce5671461028b5780633644e515146102c457600080fd5b80630a8ded1d1161018c5780630a8ded1d1461023957806318160ddd1461025a57806323b872dd1461026357600080fd5b806306fdde03146101b357806307546172146101d1578063095ea7b314610216575b600080fd5b6101bb610439565b6040516101c89190611117565b60405180910390f35b6007546101f19073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016101c8565b6102296102243660046111b3565b6104c7565b60405190151581526020016101c8565b61024c6b033b2e3c9fd0803ce800000081565b6040519081526020016101c8565b61024c60025481565b6102296102713660046111dd565b610540565b610289610284366004611219565b610684565b005b6102b27f000000000000000000000000000000000000000000000000000000000000000081565b60405160ff90911681526020016101c8565b61024c6107b8565b6102296102da3660046111b3565b610813565b6102896102ed3660046111b3565b6108c2565b61028961030036600461123b565b610951565b61024c600281565b61022961031b36600461123b565b61095e565b61024c61032e366004611219565b60036020526000908152604090205481565b61024c61034e366004611219565b60056020526000908152604090205481565b6006546101f19073ffffffffffffffffffffffffffffffffffffffff1681565b61024c7f000000000000000000000000000000000000000000000000000000000000000081565b6101bb610973565b6102296103bd3660046111b3565b610980565b6102896103d0366004611219565b6109ec565b6102296103e33660046111b3565b610b1b565b61024c610ba0565b6102896103fe366004611254565b610c57565b61024c6104113660046112c7565b600460209081526000928352604080842090915290825290205481565b61024c6301e1338081565b60008054610446906112fa565b80601f0160208091040260200160405190810160405280929190818152602001828054610472906112fa565b80156104bf5780601f10610494576101008083540402835291602001916104bf565b820191906000526020600020905b8154815290600101906020018083116104a257829003601f168201915b505050505081565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552925280832085905551919290917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b9259061052f9086815260200190565b60405180910390a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff831660009081526004602090815260408083203384529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146105d4576105a2838261137c565b73ffffffffffffffffffffffffffffffffffffffff861660009081526004602090815260408083203384529091529020555b73ffffffffffffffffffffffffffffffffffffffff85166000908152600360205260408120805485929061060990849061137c565b909155505073ffffffffffffffffffffffffffffffffffffffff808516600081815260036020526040908190208054870190555190918716907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef906106719087815260200190565b60405180910390a3506001949350505050565b60065473ffffffffffffffffffffffffffffffffffffffff1633146106fc576006546040517f625a43fe00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044015b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8116610749576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600780547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517fad0f299ec81a386c98df0ac27dae11dd020ed1b56963c53a7292e7a3a314539a90600090a250565b60007f000000000000000000000000000000000000000000000000000000000000000046146107ee576107e9610f76565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b33600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915281205461084e8382611393565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8a16808552908352928190208590555184815293945090927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a35060019392505050565b60075473ffffffffffffffffffffffffffffffffffffffff163314610935576007546040517f625a43fe00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044016106f3565b61093e8161095e565b1561094d5761094d8282611010565b5050565b61095b3382611089565b50565b600080610969610ba0565b9092111592915050565b60018054610446906112fa565b33600090815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff861684529091528120547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146109e25761084e838261137c565b5060019392505050565b60065473ffffffffffffffffffffffffffffffffffffffff163314610a5f576006546040517f625a43fe00000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff90911660248201526044016106f3565b73ffffffffffffffffffffffffffffffffffffffff8116610aac576040517fd92e233d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600680547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081179091556040517f4ffd725fc4a22075e9ec71c59edf9c38cdeb588a91b24fc5b61388c5be41282b90600090a250565b33600090815260036020526040812080548391908390610b3c90849061137c565b909155505073ffffffffffffffffffffffffffffffffffffffff8316600081815260036020526040908190208054850190555133907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9061052f9086815260200190565b600254600090816301e13380610bd67f00000000000000000000000000000000000000000000000000000000000000004261137c565b610be091906113ab565b90506b033b2e3c9fd0803ce80000006009821115610c4557610c0360098361137c565b915060005b82811015610c43576064610c1d6002846113e6565b610c2791906113ab565b610c319083611393565b9150610c3c81611423565b9050610c08565b505b610c4f838261137c565b935050505090565b42841015610cc1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f5045524d49545f444541444c494e455f4558504952454400000000000000000060448201526064016106f3565b60006001610ccd6107b8565b73ffffffffffffffffffffffffffffffffffffffff8a811660008181526005602090815260409182902080546001810190915582517f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c98184015280840194909452938d166060840152608083018c905260a083019390935260c08083018b90528151808403909101815260e0830190915280519201919091207f190100000000000000000000000000000000000000000000000000000000000061010083015261010282019290925261012281019190915261014201604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181528282528051602091820120600084529083018083525260ff871690820152606081018590526080810184905260a0016020604051602081039080840390855afa158015610e1f573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811615801590610e9a57508773ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b610f00576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f494e56414c49445f5349474e455200000000000000000000000000000000000060448201526064016106f3565b73ffffffffffffffffffffffffffffffffffffffff90811660009081526004602090815260408083208a8516808552908352928190208990555188815291928a16917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a350505050505050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6000604051610fa8919061145b565b6040805191829003822060208301939093528101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160405160208183030381529060405280519060200120905090565b80600260008282546110229190611393565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000818152600360209081526040808320805486019055518481527fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91015b60405180910390a35050565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260036020526040812080548392906110be90849061137c565b909155505060028054829003905560405181815260009073ffffffffffffffffffffffffffffffffffffffff8416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200161107d565b600060208083528351808285015260005b8181101561114457858101830151858201604001528201611128565b81811115611156576000604083870101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016929092016040019392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146111ae57600080fd5b919050565b600080604083850312156111c657600080fd5b6111cf8361118a565b946020939093013593505050565b6000806000606084860312156111f257600080fd5b6111fb8461118a565b92506112096020850161118a565b9150604084013590509250925092565b60006020828403121561122b57600080fd5b6112348261118a565b9392505050565b60006020828403121561124d57600080fd5b5035919050565b600080600080600080600060e0888a03121561126f57600080fd5b6112788861118a565b96506112866020890161118a565b95506040880135945060608801359350608088013560ff811681146112aa57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b600080604083850312156112da57600080fd5b6112e38361118a565b91506112f16020840161118a565b90509250929050565b600181811c9082168061130e57607f821691505b602082108103611347577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60008282101561138e5761138e61134d565b500390565b600082198211156113a6576113a661134d565b500190565b6000826113e1577f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b500490565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561141e5761141e61134d565b500290565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036114545761145461134d565b5060010190565b600080835481600182811c91508083168061147757607f831692505b602080841082036114af577f4e487b710000000000000000000000000000000000000000000000000000000086526022600452602486fd5b8180156114c357600181146114f657611523565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0086168952841515850289019650611523565b60008a81526020902060005b8681101561151b5781548b820152908501908301611502565b505084890196505b50949897505050505050505056fea2646970667358221220c98a30972113e0d3de3d0251b915f91f6817c0880aa9ac6932e2dd2d6acd9ab964736f6c634300080f0033a26469706673582212203a704aa7b7cecaa88e046083b0f22430db803852ca050c926cf43b99c2770ede64736f6c634300080f0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|---|---|---|---|---|
GNO | 100.00% | $0.999977 | 6.355 | $6.35 |
Loading...
Loading
[ Download: CSV Export ]
[ 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.