More Info
Private Name Tags
ContractCreator
Latest 25 from a total of 2,134 transactions
Transaction Hash |
Method
|
Block
|
From
|
To
|
|||||
---|---|---|---|---|---|---|---|---|---|
Claim Distributi... | 21445775 | 2 hrs ago | IN | 0 ETH | 0.0023097 | ||||
Claim Distributi... | 21445414 | 4 hrs ago | IN | 0 ETH | 0.00235749 | ||||
Claim Distributi... | 21445405 | 4 hrs ago | IN | 0 ETH | 0.00181777 | ||||
Claim Distributi... | 21445397 | 4 hrs ago | IN | 0 ETH | 0.00237974 | ||||
Claim Distributi... | 21433556 | 43 hrs ago | IN | 0 ETH | 0.00278605 | ||||
Claim Distributi... | 21433517 | 44 hrs ago | IN | 0 ETH | 0.00341356 | ||||
Claim Distributi... | 21419900 | 3 days ago | IN | 0 ETH | 0.00088197 | ||||
Claim Distributi... | 21419894 | 3 days ago | IN | 0 ETH | 0.00087831 | ||||
Claim Distributi... | 21418157 | 3 days ago | IN | 0 ETH | 0.00179486 | ||||
Claim Distributi... | 21416974 | 4 days ago | IN | 0 ETH | 0.00258827 | ||||
Claim Distributi... | 21416656 | 4 days ago | IN | 0 ETH | 0.00270655 | ||||
Claim Distributi... | 21413020 | 4 days ago | IN | 0 ETH | 0.00095565 | ||||
Claim Distributi... | 21408125 | 5 days ago | IN | 0 ETH | 0.00065797 | ||||
Claim Distributi... | 21393116 | 7 days ago | IN | 0 ETH | 0.00164436 | ||||
Claim Distributi... | 21364363 | 11 days ago | IN | 0 ETH | 0.00097107 | ||||
Claim Distributi... | 21364357 | 11 days ago | IN | 0 ETH | 0.00094102 | ||||
Claim Distributi... | 21362221 | 11 days ago | IN | 0 ETH | 0.00103606 | ||||
Claim Distributi... | 21362207 | 11 days ago | IN | 0 ETH | 0.00110756 | ||||
Claim Distributi... | 21357824 | 12 days ago | IN | 0 ETH | 0.00097422 | ||||
Claim Distributi... | 21350244 | 13 days ago | IN | 0 ETH | 0.00116951 | ||||
Claim Distributi... | 21349893 | 13 days ago | IN | 0 ETH | 0.00123754 | ||||
Claim Distributi... | 21349765 | 13 days ago | IN | 0 ETH | 0.00137956 | ||||
Claim Distributi... | 21349378 | 13 days ago | IN | 0 ETH | 0.00160099 | ||||
Claim Distributi... | 21349368 | 13 days ago | IN | 0 ETH | 0.00179403 | ||||
Claim Distributi... | 21343326 | 14 days ago | IN | 0 ETH | 0.00126575 |
View more zero value Internal Transactions in Advanced View mode
Advanced mode:
Loading...
Loading
Similar Match Source Code This contract matches the deployed Bytecode of the Source Code for Contract 0x4f0178AB...f6f0059E3 The constructor portion of the code might be different and could alter the actual behaviour of the contract
Contract Name:
DecubateVestingV2
Compiler Version
v0.8.10+commit.fc410830
Optimization Enabled:
Yes with 200 runs
Other Settings:
london EvmVersion
Contract Source Code (Solidity Standard Json-Input format)
// SPDX-License-Identifier: MIT //** Decubate vesting Contract */ //** Author Aceson : Decubate Vesting Contract 2022.4 */ pragma solidity ^0.8.10; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/interfaces/IERC20.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "./libraries/DateTime.sol"; contract DecubateVestingV2 is Ownable, DateTime { using SafeMath for uint256; enum Type { Linear, Monthly, Interval } struct VestingInfo { string name; uint256 cliff; uint256 start; uint256 duration; uint256 initialUnlockPercent; bool revocable; Type vestType; uint256 interval; uint256 unlockPerInterval; uint256[] timestamps; } struct VestingPool { string name; uint256 cliff; uint256 start; uint256 duration; uint256 initialUnlockPercent; WhitelistInfo[] whitelistPool; mapping(address => HasWhitelist) hasWhitelist; bool revocable; Type vestType; uint256 interval; uint256 unlockPerInterval; uint256[] timestamps; } struct MaxTokenTransferValue { uint256 amount; bool active; } /** * * @dev WhiteInfo is the struct type which store whitelist information * */ struct WhitelistInfo { address wallet; uint256 dcbAmount; uint256 distributedAmount; uint256 joinDate; uint256 revokeDate; bool revoke; bool disabled; } struct HasWhitelist { uint256 arrIdx; bool active; } MaxTokenTransferValue public maxTokenTransfer; VestingPool[] public vestingPools; IERC20 private token; event AddToken(address indexed token); event Claim(address indexed token, uint256 amount, uint256 indexed option, uint256 time); event AddWhitelist(address indexed wallet); event Revoked(address indexed wallet); event StatusChanged(address indexed wallet, bool status); modifier optionExists(uint256 _option) { require(_option < vestingPools.length, "Vesting option does not exist"); _; } modifier userInWhitelist(uint256 _option, address _wallet) { require(_option < vestingPools.length, "Vesting option does not exist"); require(vestingPools[_option].hasWhitelist[_wallet].active, "User is not in whitelist"); _; } constructor(address _token) { token = IERC20(_token); } function addVestingStrategy( string memory _name, uint256 _cliff, uint256 _start, uint256 _duration, uint256 _initialUnlockPercent, bool _revocable, uint256 _interval, uint16 _unlockPerInterval, uint8 _monthGap, Type _type ) external onlyOwner returns (bool) { VestingPool storage newStrategy = vestingPools.push(); newStrategy.cliff = _start.add(_cliff); newStrategy.name = _name; newStrategy.start = _start; newStrategy.duration = _duration; newStrategy.initialUnlockPercent = _initialUnlockPercent; newStrategy.revocable = _revocable; newStrategy.vestType = _type; if (_type == Type.Interval) { require(_interval > 0, "Invalid interval"); require(_unlockPerInterval > 0, "Invalid unlock per interval"); newStrategy.interval = _interval; newStrategy.unlockPerInterval = _unlockPerInterval; } else if (_type == Type.Monthly) { require(_unlockPerInterval > 0, "Invalid unlock per interval"); require(_monthGap > 0, "Invalid month gap"); newStrategy.unlockPerInterval = _unlockPerInterval; uint8 day = getDay(newStrategy.cliff); uint8 month = getMonth(newStrategy.cliff); uint16 year = getYear(newStrategy.cliff); uint8 hour = getHour(newStrategy.cliff); uint8 minute = getMinute(newStrategy.cliff); uint8 second = getSecond(newStrategy.cliff); for (uint16 i = 0; i <= 1000; i += _unlockPerInterval) { month += _monthGap; if (month > 12) { month = month - 12; year++; } uint256 time = toTimestamp(year, month, day, hour, minute, second); newStrategy.timestamps.push(time); } } return true; } function setVestingStrategy( uint256 _strategy, string memory _name, uint256 _cliff, uint256 _start, uint256 _duration, uint256 _initialUnlockPercent, bool _revocable, uint256 _interval, uint16 _unlockPerInterval ) external onlyOwner returns (bool) { require(_strategy < vestingPools.length, "Strategy does not exist"); VestingPool storage vest = vestingPools[_strategy]; require(vest.vestType != Type.Monthly, "Changing monthly not supported"); vest.cliff = _start.add(_cliff); vest.name = _name; vest.start = _start; vest.duration = _duration; vest.initialUnlockPercent = _initialUnlockPercent; vest.revocable = _revocable; if (vest.vestType == Type.Interval) { vest.interval = _interval; vest.unlockPerInterval = _unlockPerInterval; } return true; } function setMaxTokenTransfer(uint256 _amount, bool _active) external onlyOwner returns (bool) { maxTokenTransfer.amount = _amount; maxTokenTransfer.active = _active; return true; } function setToken(address _addr) external onlyOwner returns (bool) { token = IERC20(_addr); return true; } function batchAddWhitelist( address[] memory wallets, uint256[] memory amounts, uint256 option ) external onlyOwner returns (bool) { require(wallets.length == amounts.length, "Sizes of inputs do not match"); for (uint256 i = 0; i < wallets.length; i++) { addWhitelist(wallets[i], amounts[i], option); } return true; } /** * * @dev set the address as whitelist user address * * @param {address} address of the user * * @return {bool} return status of the whitelist * */ function setWhitelist( address _wallet, uint256 _dcbAmount, uint256 _option ) external onlyOwner userInWhitelist(_option, _wallet) returns (bool) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; WhitelistInfo storage info = vestingPools[_option].whitelistPool[idx]; info.dcbAmount = _dcbAmount; return true; } function revoke(uint256 _option, address _wallet) external onlyOwner userInWhitelist(_option, _wallet) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; WhitelistInfo storage whitelist = vestingPools[_option].whitelistPool[idx]; require(vestingPools[_option].revocable, "Strategy is not revocable"); require(!whitelist.revoke, "already revoked"); if (calculateReleasableAmount(_option, _wallet) > 0) { claimDistribution(_option, _wallet); } whitelist.revoke = true; whitelist.revokeDate = block.timestamp; emit Revoked(_wallet); } function setVesting( uint256 _option, address _wallet, bool _status ) external onlyOwner userInWhitelist(_option, _wallet) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; WhitelistInfo storage whitelist = vestingPools[_option].whitelistPool[idx]; whitelist.disabled = _status; emit StatusChanged(_wallet, _status); } function transferToken(address _addr, uint256 _amount) external onlyOwner returns (bool) { IERC20 _token = IERC20(_addr); bool success = _token.transfer(address(owner()), _amount); return success; } function getWhitelist(uint256 _option, address _wallet) external view userInWhitelist(_option, _wallet) returns (WhitelistInfo memory) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; return vestingPools[_option].whitelistPool[idx]; } function getAllVestingPools() external view returns (VestingInfo[] memory) { VestingInfo[] memory infoArr = new VestingInfo[](vestingPools.length); for (uint256 i = 0; i < vestingPools.length; i++) { infoArr[i] = getVestingInfo(i); } return infoArr; } function getToken() external view returns (address) { return address(token); } function getTotalToken(address _addr) external view returns (uint256) { IERC20 _token = IERC20(_addr); return _token.balanceOf(address(this)); } function hasWhitelist(uint256 _option, address _wallet) external view returns (bool) { return vestingPools[_option].hasWhitelist[_wallet].active; } function getVestAmount(uint256 _option, address _wallet) external view returns (uint256) { return calculateVestAmount(_option, _wallet); } function getReleasableAmount(uint256 _option, address _wallet) external view returns (uint256) { return calculateReleasableAmount(_option, _wallet); } function getWhitelistPool(uint256 _option) external view optionExists(_option) returns (WhitelistInfo[] memory) { return vestingPools[_option].whitelistPool; } function claimDistribution(uint256 _option, address _wallet) public returns (bool) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; WhitelistInfo storage whitelist = vestingPools[_option].whitelistPool[idx]; require(!whitelist.disabled, "User is disabled from claiming token"); uint256 releaseAmount = calculateReleasableAmount(_option, _wallet); require(releaseAmount > 0, "Zero amount to claim"); if (maxTokenTransfer.active && releaseAmount > maxTokenTransfer.amount) { releaseAmount = maxTokenTransfer.amount; } whitelist.distributedAmount = whitelist.distributedAmount.add(releaseAmount); token.transfer(_wallet, releaseAmount); emit Claim(_wallet, releaseAmount, _option, block.timestamp); return true; } function addWhitelist( address _wallet, uint256 _dcbAmount, uint256 _option ) public onlyOwner optionExists(_option) returns (bool) { HasWhitelist storage whitelist = vestingPools[_option].hasWhitelist[_wallet]; require(!whitelist.active, "Whitelist already available"); WhitelistInfo[] storage pool = vestingPools[_option].whitelistPool; whitelist.active = true; whitelist.arrIdx = pool.length; pool.push( WhitelistInfo({ wallet: _wallet, dcbAmount: _dcbAmount, distributedAmount: 0, joinDate: block.timestamp, revokeDate: 0, revoke: false, disabled: false }) ); emit AddWhitelist(_wallet); return true; } function getVestingInfo(uint256 _strategy) public view optionExists(_strategy) returns (VestingInfo memory) { return VestingInfo({ name: vestingPools[_strategy].name, cliff: vestingPools[_strategy].cliff, start: vestingPools[_strategy].start, duration: vestingPools[_strategy].duration, initialUnlockPercent: vestingPools[_strategy].initialUnlockPercent, revocable: vestingPools[_strategy].revocable, vestType: vestingPools[_strategy].vestType, interval: vestingPools[_strategy].interval, unlockPerInterval: vestingPools[_strategy].unlockPerInterval, timestamps: vestingPools[_strategy].timestamps }); } function calculateVestAmount(uint256 _option, address _wallet) internal view userInWhitelist(_option, _wallet) returns (uint256 amount) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; WhitelistInfo memory whitelist = vestingPools[_option].whitelistPool[idx]; VestingPool storage vest = vestingPools[_option]; // initial unlock uint256 initial = whitelist.dcbAmount.mul(vest.initialUnlockPercent).div(1000); if (whitelist.revoke) { return whitelist.distributedAmount; } if (block.timestamp < vest.start) { return 0; } else if (block.timestamp >= vest.start && block.timestamp < vest.cliff) { return initial; } else if (block.timestamp >= vest.cliff) { if (vestingPools[_option].vestType == Type.Interval) { return calculateVestAmountForInterval(whitelist, vest); } else if (vestingPools[_option].vestType == Type.Linear) { return calculateVestAmountForLinear(whitelist, vest); } else { return calculateVestAmountForMonthly(whitelist, vest); } } } function calculateVestAmountForLinear(WhitelistInfo memory whitelist, VestingPool storage vest) internal view returns (uint256) { uint256 initial = whitelist.dcbAmount.mul(vest.initialUnlockPercent).div(1000); uint256 remaining = whitelist.dcbAmount.sub(initial); if (block.timestamp >= vest.cliff.add(vest.duration)) { return whitelist.dcbAmount; } else { return initial + remaining.mul(block.timestamp.sub(vest.cliff)).div(vest.duration); } } function calculateVestAmountForInterval(WhitelistInfo memory whitelist, VestingPool storage vest) internal view returns (uint256) { uint256 initial = whitelist.dcbAmount.mul(vest.initialUnlockPercent).div(1000); uint256 remaining = whitelist.dcbAmount.sub(initial); uint256 intervalsPassed = (block.timestamp.sub(vest.cliff)).div(vest.interval); uint256 totalUnlocked = intervalsPassed.mul(vest.unlockPerInterval); if (totalUnlocked >= 1000) { return whitelist.dcbAmount; } else { return initial + remaining.mul(totalUnlocked).div(1000); } } function calculateVestAmountForMonthly(WhitelistInfo memory whitelist, VestingPool storage vest) internal view returns (uint256) { uint256 initial = whitelist.dcbAmount.mul(vest.initialUnlockPercent).div(1000); uint256 remaining = whitelist.dcbAmount.sub(initial); if (block.timestamp > vest.timestamps[vest.timestamps.length - 1]) { return whitelist.dcbAmount; } else { uint256 multi = findCurrentTimestamp(vest.timestamps, block.timestamp); uint256 totalUnlocked = multi.mul(vest.unlockPerInterval); return initial + remaining.mul(totalUnlocked).div(1000); } } function calculateReleasableAmount(uint256 _option, address _wallet) internal view userInWhitelist(_option, _wallet) returns (uint256) { uint256 idx = vestingPools[_option].hasWhitelist[_wallet].arrIdx; return calculateVestAmount(_option, _wallet).sub( vestingPools[_option].whitelistPool[idx].distributedAmount ); } function findCurrentTimestamp(uint256[] memory timestamps, uint256 target) internal pure returns (uint256 pos) { uint256 last = timestamps.length; uint256 first = 0; uint256 mid = 0; if (target < timestamps[first]) { return 0; } if (target >= timestamps[last - 1]) { return last - 1; } while (first < last) { mid = (first + last) / 2; if (timestamps[mid] == target) { return mid + 1; } if (target < timestamps[mid]) { if (mid > 0 && target > timestamps[mid - 1]) { return mid; } last = mid; } else { if (mid < last - 1 && target < timestamps[mid + 1]) { return mid + 1; } first = mid + 1; } } return mid + 1; } }
//SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.10; contract DateTime { /* * Date and Time utilities for ethereum contracts * */ struct _DateTime { uint16 year; uint8 month; uint8 day; uint8 hour; uint8 minute; uint8 second; uint8 weekday; } uint256 internal constant DAY_IN_SECONDS = 86400; uint256 internal constant YEAR_IN_SECONDS = 31536000; uint256 internal constant LEAP_YEAR_IN_SECONDS = 31622400; uint256 internal constant HOUR_IN_SECONDS = 3600; uint256 internal constant MINUTE_IN_SECONDS = 60; uint16 internal constant ORIGIN_YEAR = 1970; function isLeapYear(uint16 year) public pure returns (bool) { if (year % 4 != 0) { return false; } if (year % 100 != 0) { return true; } if (year % 400 != 0) { return false; } return true; } function leapYearsBefore(uint256 year) public pure returns (uint256) { year -= 1; return year / 4 - year / 100 + year / 400; } function getDaysInMonth(uint8 month, uint16 year) public pure returns (uint8) { if ( month == 1 || month == 3 || month == 5 || month == 7 || month == 8 || month == 10 || month == 12 ) { return 31; } else if (month == 4 || month == 6 || month == 9 || month == 11) { return 30; } else if (isLeapYear(year)) { return 29; } else { return 28; } } function getYear(uint256 timestamp) public pure returns (uint16) { uint256 secondsAccountedFor = 0; uint16 year; uint256 numLeapYears; // Year year = uint16(ORIGIN_YEAR + timestamp / YEAR_IN_SECONDS); numLeapYears = leapYearsBefore(year) - leapYearsBefore(ORIGIN_YEAR); secondsAccountedFor += LEAP_YEAR_IN_SECONDS * numLeapYears; secondsAccountedFor += YEAR_IN_SECONDS * (year - ORIGIN_YEAR - numLeapYears); while (secondsAccountedFor > timestamp) { if (isLeapYear(uint16(year - 1))) { secondsAccountedFor -= LEAP_YEAR_IN_SECONDS; } else { secondsAccountedFor -= YEAR_IN_SECONDS; } year -= 1; } return year; } function getMonth(uint256 timestamp) public pure returns (uint8) { return parseTimestamp(timestamp).month; } function getDay(uint256 timestamp) public pure returns (uint8) { return parseTimestamp(timestamp).day; } function getHour(uint256 timestamp) public pure returns (uint8) { return uint8((timestamp / 60 / 60) % 24); } function getMinute(uint256 timestamp) public pure returns (uint8) { return uint8((timestamp / 60) % 60); } function getSecond(uint256 timestamp) public pure returns (uint8) { return uint8(timestamp % 60); } function getWeekday(uint256 timestamp) public pure returns (uint8) { return uint8((timestamp / DAY_IN_SECONDS + 4) % 7); } function toTimestamp( uint16 year, uint8 month, uint8 day ) public pure returns (uint256 timestamp) { return toTimestamp(year, month, day, 0, 0, 0); } function toTimestamp( uint16 year, uint8 month, uint8 day, uint8 hour ) public pure returns (uint256 timestamp) { return toTimestamp(year, month, day, hour, 0, 0); } function toTimestamp( uint16 year, uint8 month, uint8 day, uint8 hour, uint8 minute ) public pure returns (uint256 timestamp) { return toTimestamp(year, month, day, hour, minute, 0); } function toTimestamp( uint16 year, uint8 month, uint8 day, uint8 hour, uint8 minute, uint8 second ) public pure returns (uint256 timestamp) { uint16 i; // Year for (i = ORIGIN_YEAR; i < year; i++) { if (isLeapYear(i)) { timestamp += LEAP_YEAR_IN_SECONDS; } else { timestamp += YEAR_IN_SECONDS; } } // Month uint8[12] memory monthDayCounts; monthDayCounts[0] = 31; if (isLeapYear(year)) { monthDayCounts[1] = 29; } else { monthDayCounts[1] = 28; } monthDayCounts[2] = 31; monthDayCounts[3] = 30; monthDayCounts[4] = 31; monthDayCounts[5] = 30; monthDayCounts[6] = 31; monthDayCounts[7] = 31; monthDayCounts[8] = 30; monthDayCounts[9] = 31; monthDayCounts[10] = 30; monthDayCounts[11] = 31; for (i = 1; i < month; i++) { timestamp += DAY_IN_SECONDS * monthDayCounts[i - 1]; } // Day timestamp += DAY_IN_SECONDS * (day - 1); // Hour timestamp += HOUR_IN_SECONDS * (hour); // Minute timestamp += MINUTE_IN_SECONDS * (minute); // Second timestamp += second; return timestamp; } function parseTimestamp(uint256 timestamp) internal pure returns (_DateTime memory dt) { uint256 secondsAccountedFor = 0; uint256 buf; uint8 i; // Year dt.year = getYear(timestamp); buf = leapYearsBefore(dt.year) - leapYearsBefore(ORIGIN_YEAR); secondsAccountedFor += LEAP_YEAR_IN_SECONDS * buf; secondsAccountedFor += YEAR_IN_SECONDS * (dt.year - ORIGIN_YEAR - buf); // Month uint256 secondsInMonth; for (i = 1; i <= 12; i++) { secondsInMonth = DAY_IN_SECONDS * getDaysInMonth(i, dt.year); if (secondsInMonth + secondsAccountedFor > timestamp) { dt.month = i; break; } secondsAccountedFor += secondsInMonth; } // Day for (i = 1; i <= getDaysInMonth(dt.month, dt.year); i++) { if (DAY_IN_SECONDS + secondsAccountedFor > timestamp) { dt.day = i; break; } secondsAccountedFor += DAY_IN_SECONDS; } // Hour dt.hour = getHour(timestamp); // Minute dt.minute = getMinute(timestamp); // Second dt.second = getSecond(timestamp); // Day of week. dt.weekday = getWeekday(timestamp); } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol) pragma solidity ^0.8.0; // CAUTION // This version of SafeMath should only be used with Solidity 0.8 or later, // because it relies on the compiler's built in overflow checks. /** * @dev Wrappers over Solidity's arithmetic operations. * * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler * now has built in overflow checking. */ library SafeMath { /** * @dev Returns the addition of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { uint256 c = a + b; if (c < a) return (false, 0); return (true, c); } } /** * @dev Returns the subtraction of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b > a) return (false, 0); return (true, a - b); } } /** * @dev Returns the multiplication of two unsigned integers, with an overflow flag. * * _Available since v3.4._ */ function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { // Gas optimization: this is cheaper than requiring 'a' not being zero, but the // benefit is lost if 'b' is also tested. // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522 if (a == 0) return (true, 0); uint256 c = a * b; if (c / a != b) return (false, 0); return (true, c); } } /** * @dev Returns the division of two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a / b); } } /** * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag. * * _Available since v3.4._ */ function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) { unchecked { if (b == 0) return (false, 0); return (true, a % b); } } /** * @dev Returns the addition of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `+` operator. * * Requirements: * * - Addition cannot overflow. */ function add(uint256 a, uint256 b) internal pure returns (uint256) { return a + b; } /** * @dev Returns the subtraction of two unsigned integers, reverting on * overflow (when the result is negative). * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub(uint256 a, uint256 b) internal pure returns (uint256) { return a - b; } /** * @dev Returns the multiplication of two unsigned integers, reverting on * overflow. * * Counterpart to Solidity's `*` operator. * * Requirements: * * - Multiplication cannot overflow. */ function mul(uint256 a, uint256 b) internal pure returns (uint256) { return a * b; } /** * @dev Returns the integer division of two unsigned integers, reverting on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. * * Requirements: * * - The divisor cannot be zero. */ function div(uint256 a, uint256 b) internal pure returns (uint256) { return a / b; } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting when dividing by zero. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod(uint256 a, uint256 b) internal pure returns (uint256) { return a % b; } /** * @dev Returns the subtraction of two unsigned integers, reverting with custom message on * overflow (when the result is negative). * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {trySub}. * * Counterpart to Solidity's `-` operator. * * Requirements: * * - Subtraction cannot overflow. */ function sub( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b <= a, errorMessage); return a - b; } } /** * @dev Returns the integer division of two unsigned integers, reverting with custom message on * division by zero. The result is rounded towards zero. * * Counterpart to Solidity's `/` operator. Note: this function uses a * `revert` opcode (which leaves remaining gas untouched) while Solidity * uses an invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function div( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a / b; } } /** * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo), * reverting with custom message when dividing by zero. * * CAUTION: This function is deprecated because it requires allocating memory for the error * message unnecessarily. For custom revert reasons use {tryMod}. * * Counterpart to Solidity's `%` operator. This function uses a `revert` * opcode (which leaves remaining gas untouched) while Solidity uses an * invalid opcode to revert (consuming all remaining gas). * * Requirements: * * - The divisor cannot be zero. */ function mod( uint256 a, uint256 b, string memory errorMessage ) internal pure returns (uint256) { unchecked { require(b > 0, errorMessage); return a % b; } } }
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/Context.sol) pragma solidity ^0.8.0; /** * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when dealing with meta-transactions the account sending and * paying for execution may not be the actual sender (as far as an application * is concerned). * * This contract is only required for intermediate, library-like contracts. */ abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }
// 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 (interfaces/IERC20.sol) pragma solidity ^0.8.0; import "../token/ERC20/IERC20.sol";
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol) pragma solidity ^0.8.0; import "../utils/Context.sol"; /** * @dev Contract module which provides a basic access control mechanism, where * there is an account (an owner) that can be granted exclusive access to * specific functions. * * By default, the owner account will be the one that deploys the contract. This * can later be changed with {transferOwnership}. * * This module is used through inheritance. It will make available the modifier * `onlyOwner`, which can be applied to your functions to restrict their use to * the owner. */ abstract contract Ownable is Context { address private _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ constructor() { _transferOwnership(_msgSender()); } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { _checkOwner(); _; } /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if the sender is not the owner. */ function _checkOwner() internal view virtual { require(owner() == _msgSender(), "Ownable: caller is not the owner"); } /** * @dev Leaves the contract without owner. It will not be possible to call * `onlyOwner` functions anymore. Can only be called by the current owner. * * NOTE: Renouncing ownership will leave the contract without an owner, * thereby removing any functionality that is only available to the owner. */ function renounceOwnership() public virtual onlyOwner { _transferOwnership(address(0)); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Can only be called by the current owner. */ function transferOwnership(address newOwner) public virtual onlyOwner { require(newOwner != address(0), "Ownable: new owner is the zero address"); _transferOwnership(newOwner); } /** * @dev Transfers ownership of the contract to a new account (`newOwner`). * Internal function without access restriction. */ function _transferOwnership(address newOwner) internal virtual { address oldOwner = _owner; _owner = newOwner; emit OwnershipTransferred(oldOwner, newOwner); } }
{ "remappings": [], "optimizer": { "enabled": true, "runs": 200 }, "evmVersion": "london", "libraries": {}, "outputSelection": { "*": { "*": [ "evm.bytecode", "evm.deployedBytecode", "devdoc", "userdoc", "metadata", "abi" ] } } }
Contract Security Audit
- No Contract Security Audit Submitted- Submit Audit Here
[{"inputs":[{"internalType":"address","name":"_token","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"}],"name":"AddToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"AddWhitelist","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"token","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":true,"internalType":"uint256","name":"option","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"}],"name":"Revoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"bool","name":"status","type":"bool"}],"name":"StatusChanged","type":"event"},{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"_revocable","type":"bool"},{"internalType":"uint256","name":"_interval","type":"uint256"},{"internalType":"uint16","name":"_unlockPerInterval","type":"uint16"},{"internalType":"uint8","name":"_monthGap","type":"uint8"},{"internalType":"enum DecubateVestingV2.Type","name":"_type","type":"uint8"}],"name":"addVestingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_dcbAmount","type":"uint256"},{"internalType":"uint256","name":"_option","type":"uint256"}],"name":"addWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"wallets","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"},{"internalType":"uint256","name":"option","type":"uint256"}],"name":"batchAddWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"claimDistribution","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getAllVestingPools","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"enum DecubateVestingV2.Type","name":"vestType","type":"uint8"},{"internalType":"uint256","name":"interval","type":"uint256"},{"internalType":"uint256","name":"unlockPerInterval","type":"uint256"},{"internalType":"uint256[]","name":"timestamps","type":"uint256[]"}],"internalType":"struct DecubateVestingV2.VestingInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getDay","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint16","name":"year","type":"uint16"}],"name":"getDaysInMonth","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getHour","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMinute","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getMonth","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getReleasableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getSecond","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getTotalToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getVestAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_strategy","type":"uint256"}],"name":"getVestingInfo","outputs":[{"components":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"enum DecubateVestingV2.Type","name":"vestType","type":"uint8"},{"internalType":"uint256","name":"interval","type":"uint256"},{"internalType":"uint256","name":"unlockPerInterval","type":"uint256"},{"internalType":"uint256[]","name":"timestamps","type":"uint256[]"}],"internalType":"struct DecubateVestingV2.VestingInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getWeekday","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"getWhitelist","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"dcbAmount","type":"uint256"},{"internalType":"uint256","name":"distributedAmount","type":"uint256"},{"internalType":"uint256","name":"joinDate","type":"uint256"},{"internalType":"uint256","name":"revokeDate","type":"uint256"},{"internalType":"bool","name":"revoke","type":"bool"},{"internalType":"bool","name":"disabled","type":"bool"}],"internalType":"struct DecubateVestingV2.WhitelistInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"}],"name":"getWhitelistPool","outputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"dcbAmount","type":"uint256"},{"internalType":"uint256","name":"distributedAmount","type":"uint256"},{"internalType":"uint256","name":"joinDate","type":"uint256"},{"internalType":"uint256","name":"revokeDate","type":"uint256"},{"internalType":"bool","name":"revoke","type":"bool"},{"internalType":"bool","name":"disabled","type":"bool"}],"internalType":"struct DecubateVestingV2.WhitelistInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"name":"getYear","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"hasWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"}],"name":"isLeapYear","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"year","type":"uint256"}],"name":"leapYearsBefore","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxTokenTransfer","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bool","name":"active","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"},{"internalType":"bool","name":"_active","type":"bool"}],"name":"setMaxTokenTransfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"setToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_option","type":"uint256"},{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"bool","name":"_status","type":"bool"}],"name":"setVesting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_strategy","type":"uint256"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"uint256","name":"_cliff","type":"uint256"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_duration","type":"uint256"},{"internalType":"uint256","name":"_initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"_revocable","type":"bool"},{"internalType":"uint256","name":"_interval","type":"uint256"},{"internalType":"uint16","name":"_unlockPerInterval","type":"uint16"}],"name":"setVestingStrategy","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"},{"internalType":"uint256","name":"_dcbAmount","type":"uint256"},{"internalType":"uint256","name":"_option","type":"uint256"}],"name":"setWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"hour","type":"uint8"},{"internalType":"uint8","name":"minute","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"hour","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint16","name":"year","type":"uint16"},{"internalType":"uint8","name":"month","type":"uint8"},{"internalType":"uint8","name":"day","type":"uint8"},{"internalType":"uint8","name":"hour","type":"uint8"},{"internalType":"uint8","name":"minute","type":"uint8"},{"internalType":"uint8","name":"second","type":"uint8"}],"name":"toTimestamp","outputs":[{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"transferToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"vestingPools","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"cliff","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"duration","type":"uint256"},{"internalType":"uint256","name":"initialUnlockPercent","type":"uint256"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"enum DecubateVestingV2.Type","name":"vestType","type":"uint8"},{"internalType":"uint256","name":"interval","type":"uint256"},{"internalType":"uint256","name":"unlockPerInterval","type":"uint256"}],"stateMutability":"view","type":"function"}]
Deployed Bytecode
0x608060405234801561001057600080fd5b506004361061023d5760003560e01c80638da5cb5b1161013b578063b1999937116100b8578063e54b17ba1161007c578063e54b17ba14610548578063ea0cdeff14610568578063f2fde38b1461058e578063f300e29b146105a1578063fa93f883146105b457600080fd5b8063b1999937146104dc578063b238ad0e146104ef578063c47c9f3c14610502578063c5460e7114610522578063cecd8b0a1461053557600080fd5b8063a19d21b0116100ff578063a19d21b01461047d578063a324ad2414610490578063a5902fac146104a3578063a6f0e577146104b6578063afee1ff1146104c957600080fd5b80638da5cb5b146103f85780639054bdec1461040957806392d663131461041c5780639627e1f714610442578063993b18931461045557600080fd5b80634ac1ad78116101c9578063715018a61161018d578063715018a6146103a257806379bf4a63146103aa5780637f791833146103bf5780638aa001fc146103d25780638c8d98a0146103e557600080fd5b80634ac1ad781461033557806362ba96871461034857806365c728401461036957806369f1f0521461037c5780636abfd4071461038f57600080fd5b806321df0da71161021057806321df0da7146102b25780633487f06d146102d75780633801381b146102ea5780633e239e1a146102fd57806340349ced1461032257600080fd5b80631072cbea14610242578063144fa6d71461026a57806320d154da1461027d57806320f6b0a914610292575b600080fd5b610255610250366004612f74565b6105c7565b60405190151581526020015b60405180910390f35b610255610278366004612f9e565b610671565b61029061028b366004612fb9565b61069f565b005b6102a56102a0366004612fe5565b6108e7565b6040516102619190613154565b6004546001600160a01b03165b6040516001600160a01b039091168152602001610261565b6102556102e536600461324f565b610bcc565b6102556102f836600461330b565b610f07565b61031061030b366004612fe5565b611030565b60405160ff9091168152602001610261565b61029061033036600461333e565b611054565b610310610343366004612fe5565b6111d1565b61035b61035636600461337e565b6111ed565b604051908152602001610261565b610310610377366004612fe5565b611208565b61035b61038a366004612fb9565b61121d565b61025561039d3660046133e3565b611230565b610290611254565b6103b2611268565b6040516102619190613413565b61035b6103cd366004613475565b61130b565b6103106103e0366004612fe5565b611325565b61035b6103f33660046134c9565b611332565b6000546001600160a01b03166102bf565b61035b61041736600461350c565b61134c565b61042f61042a366004612fe5565b6114fd565b60405161ffff9091168152602001610261565b61025561045036600461330b565b6115ed565b610468610463366004612fe5565b611849565b60405161026199989796959493929190613580565b61035b61048b366004612f9e565b611938565b61031061049e366004612fe5565b6119a5565b6102556104b1366004612fb9565b6119ba565b6102556104c43660046135dc565b611bff565b6102556104d7366004612fb9565b611c5e565b61035b6104ea366004612fe5565b611caa565b6103106104fd3660046135f7565b611cef565b610515610510366004612fb9565b611db5565b604051610261919061366f565b61035b610530366004612fb9565b611f88565b61025561054336600461370c565b611f94565b61055b610556366004612fe5565b612056565b60405161026191906137d5565b600154600254610579919060ff1682565b60408051928352901515602083015201610261565b61029061059c366004612f9e565b612152565b6102556105af366004613823565b6121cb565b6103106105c2366004612fe5565b61234a565b60006105d1612358565b8260006001600160a01b03821663a9059cbb6105f56000546001600160a01b031690565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602481018790526044016020604051808303816000875af1158015610642573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061066691906138be565b925050505b92915050565b600061067b612358565b50600480546001600160a01b0319166001600160a01b03831617905560015b919050565b6106a7612358565b6003548290829082106106d55760405162461bcd60e51b81526004016106cc906138db565b60405180910390fd5b600382815481106106e8576106e8613912565b600091825260208083206001600160a01b03851684526006600b90930201919091019052604090206001015460ff166107335760405162461bcd60e51b81526004016106cc90613928565b60006003858154811061074857610748613912565b600091825260208083206001600160a01b03881684526006600b90930201919091019052604081205460038054919350908790811061078957610789613912565b90600052602060002090600b020160050182815481106107ab576107ab613912565b90600052602060002090600602019050600386815481106107ce576107ce613912565b600091825260209091206007600b90920201015460ff166108315760405162461bcd60e51b815260206004820152601960248201527f5374726174656779206973206e6f74207265766f6361626c650000000000000060448201526064016106cc565b600581015460ff16156108785760405162461bcd60e51b815260206004820152600f60248201526e185b1c9958591e481c995d9bdad959608a1b60448201526064016106cc565b600061088487876123b2565b11156108965761089486866119ba565b505b60058101805460ff191660011790554260048201556040516001600160a01b038616907fb6fa8b8bd5eab60f292eca876e3ef90722275b785309d84b1de113ce0b8c4e7490600090a2505050505050565b6108ef612e3f565b600354829081106109125760405162461bcd60e51b81526004016106cc906138db565b6040518061014001604052806003858154811061093157610931613912565b90600052602060002090600b0201600001805461094d9061395f565b80601f01602080910402602001604051908101604052809291908181526020018280546109799061395f565b80156109c65780601f1061099b576101008083540402835291602001916109c6565b820191906000526020600020905b8154815290600101906020018083116109a957829003601f168201915b50505050508152602001600385815481106109e3576109e3613912565b90600052602060002090600b020160010154815260200160038581548110610a0d57610a0d613912565b90600052602060002090600b020160020154815260200160038581548110610a3757610a37613912565b90600052602060002090600b020160030154815260200160038581548110610a6157610a61613912565b90600052602060002090600b020160040154815260200160038581548110610a8b57610a8b613912565b90600052602060002090600b020160070160009054906101000a900460ff161515815260200160038581548110610ac457610ac4613912565b90600052602060002090600b020160070160019054906101000a900460ff166002811115610af457610af461304b565b815260200160038581548110610b0c57610b0c613912565b90600052602060002090600b020160080154815260200160038581548110610b3657610b36613912565b90600052602060002090600b020160090154815260200160038581548110610b6057610b60613912565b90600052602060002090600b0201600a01805480602002602001604051908101604052809291908181526020018280548015610bbb57602002820191906000526020600020905b815481526020019060010190808311610ba7575b505050505081525091505b50919050565b6000610bd6612358565b60038054600181018255600091909152600b027fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b01610c158a8c6124e1565b60018201558b51610c2c90829060208f0190612ea5565b5060028181018b9055600382018a90556004820189905560078201805460ff1981168a15159081178355869361ffff1990921661ff00199091161790610100908490811115610c7d57610c7d61304b565b02179055506002836002811115610c9657610c9661304b565b1415610d495760008611610cdf5760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a59081a5b9d195c9d985b60821b60448201526064016106cc565b60008561ffff1611610d335760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420756e6c6f636b2070657220696e74657276616c000000000060448201526064016106cc565b6008810186905561ffff85166009820155610ef5565b6001836002811115610d5d57610d5d61304b565b1415610ef55760008561ffff1611610db75760405162461bcd60e51b815260206004820152601b60248201527f496e76616c696420756e6c6f636b2070657220696e74657276616c000000000060448201526064016106cc565b60008460ff1611610dfe5760405162461bcd60e51b81526020600482015260116024820152700496e76616c6964206d6f6e74682067617607c1b60448201526064016106cc565b61ffff851660098201556001810154600090610e1990611208565b90506000610e2a83600101546119a5565b90506000610e3b84600101546114fd565b90506000610e4c8560010154611030565b90506000610e5d866001015461234a565b90506000610e6e8760010154611325565b905060005b6103e88161ffff1611610eed57610e8a8b876139aa565b9550600c8660ff161115610eb357610ea3600c876139cf565b955084610eaf816139f2565b9550505b6000610ec386888a88888861134c565b600a8a01805460018101825560009182526020909120015550610ee68c82613a14565b9050610e73565b505050505050505b5060019b9a5050505050505050505050565b6000610f11612358565b600354829085908210610f365760405162461bcd60e51b81526004016106cc906138db565b60038281548110610f4957610f49613912565b600091825260208083206001600160a01b03851684526006600b90930201919091019052604090206001015460ff16610f945760405162461bcd60e51b81526004016106cc90613928565b600060038581548110610fa957610fa9613912565b600091825260208083206001600160a01b038b1684526006600b909302019190910190526040812054600380549193509087908110610fea57610fea613912565b90600052602060002090600b0201600501828154811061100c5761100c613912565b60009182526020909120600160069092020181018890559450505050509392505050565b60006018603c6110408185613a50565b61104a9190613a50565b61066b9190613a64565b61105c612358565b6003548390839082106110815760405162461bcd60e51b81526004016106cc906138db565b6003828154811061109457611094613912565b600091825260208083206001600160a01b03851684526006600b90930201919091019052604090206001015460ff166110df5760405162461bcd60e51b81526004016106cc90613928565b6000600386815481106110f4576110f4613912565b600091825260208083206001600160a01b03891684526006600b90930201919091019052604081205460038054919350908890811061113557611135613912565b90600052602060002090600b0201600501828154811061115757611157613912565b90600052602060002090600602019050848160050160016101000a81548160ff021916908315150217905550856001600160a01b03167f6303039f3f903247906337ae51ea67063408be3dbc7a2f517044e91404293a61866040516111c0911515815260200190565b60405180910390a250505050505050565b600060076111e26201518084613a50565b61104a906004613a78565b60006111fe8686868686600061134c565b9695505050505050565b6000611213826124ed565b6040015192915050565b600061122983836126d5565b9392505050565b600061123a612358565b5060019182556002805460ff191691151591909117905590565b61125c612358565b61126660006129c6565b565b60035460609060009067ffffffffffffffff81111561128957611289613167565b6040519080825280602002602001820160405280156112c257816020015b6112af612e3f565b8152602001906001900390816112a75790505b50905060005b600354811015610bc6576112db816108e7565b8282815181106112ed576112ed613912565b6020026020010181905250808061130390613a90565b9150506112c8565b600061131c8585858560008061134c565b95945050505050565b600061066b603c83613a64565b6000611344848484600080600061134c565b949350505050565b60006107b25b8761ffff168161ffff1610156113a85761136b81611bff565b156113855761137e6301e2850083613a78565b9150611396565b6113936301e1338083613a78565b91505b806113a0816139f2565b915050611352565b6113b0612f29565b601f81526113bd89611bff565b156113ce57601d60208201526113d6565b601c60208201525b601f60408201819052601e606083018190526080830182905260a0830181905260c0830182905260e0830182905261010083018190526101208301829052610140830152610160820152600191505b8760ff168261ffff1610156114875780611440600184613aab565b61ffff16600c811061145457611454613912565b60200201516114699060ff1662015180613ace565b6114739084613a78565b92508161147f816139f2565b925050611425565b6114926001886139cf565b6114a29060ff1662015180613ace565b6114ac9084613a78565b92506114bd60ff8716610e10613ace565b6114c79084613a78565b92506114d760ff8616603c613ace565b6114e19084613a78565b92506114f060ff851684613a78565b9998505050505050505050565b60008080806115106301e1338086613a50565b61151c906107b2613a78565b91506115296107b2611caa565b6115368361ffff16611caa565b6115409190613aed565b9050611550816301e28500613ace565b61155a9084613a78565b9250806115696107b284613aab565b61ffff166115779190613aed565b611585906301e13380613ace565b61158f9084613a78565b92505b848311156115e5576115a86104c4600184613aab565b156115c2576115bb6301e2850084613aed565b92506115d3565b6115d06301e1338084613aed565b92505b6115de600183613aab565b9150611592565b509392505050565b60006115f7612358565b6003548290811061161a5760405162461bcd60e51b81526004016106cc906138db565b60006003848154811061162f5761162f613912565b600091825260208083206001600160a01b038a1684526006600b9093020191909101905260409020600181015490915060ff16156116af5760405162461bcd60e51b815260206004820152601b60248201527f57686974656c69737420616c726561647920617661696c61626c65000000000060448201526064016106cc565b6000600385815481106116c4576116c4613912565b90600052602060002090600b0201600501905060018260010160006101000a81548160ff02191690831515021790555080805490508260000181905550806040518060e00160405280896001600160a01b03168152602001888152602001600081526020014281526020016000815260200160001515815260200160001515815250908060018154018082558091505060019003906000526020600020906006020160009091909190915060008201518160000160006101000a8154816001600160a01b0302191690836001600160a01b031602179055506020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050160006101000a81548160ff02191690831515021790555060c08201518160050160016101000a81548160ff0219169083151502179055505050866001600160a01b03167fe463fa6bdecb16f96f58191d902152633214e760ea443684105a7eef1ad16b9d60405160405180910390a25060019695505050505050565b6003818154811061185957600080fd5b90600052602060002090600b020160009150905080600001805461187c9061395f565b80601f01602080910402602001604051908101604052809291908181526020018280546118a89061395f565b80156118f55780601f106118ca576101008083540402835291602001916118f5565b820191906000526020600020905b8154815290600101906020018083116118d857829003601f168201915b505050600184015460028501546003860154600487015460078801546008890154600990990154979894979396509194509260ff80831693610100909304169189565b6040516370a0823160e01b815230600482015260009082906001600160a01b038216906370a0823190602401602060405180830381865afa158015611981573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112299190613b04565b60006119b0826124ed565b6020015192915050565b600080600384815481106119d0576119d0613912565b600091825260208083206001600160a01b03871684526006600b909302019190910190526040812054600380549193509086908110611a1157611a11613912565b90600052602060002090600b02016005018281548110611a3357611a33613912565b906000526020600020906006020190508060050160019054906101000a900460ff1615611aae5760405162461bcd60e51b8152602060048201526024808201527f557365722069732064697361626c65642066726f6d20636c61696d696e67207460448201526337b5b2b760e11b60648201526084016106cc565b6000611aba86866123b2565b905060008111611b035760405162461bcd60e51b81526020600482015260146024820152735a65726f20616d6f756e7420746f20636c61696d60601b60448201526064016106cc565b60025460ff168015611b16575060015481115b15611b2057506001545b6002820154611b2f90826124e1565b60028301556004805460405163a9059cbb60e01b81526001600160a01b03888116938201939093526024810184905291169063a9059cbb906044016020604051808303816000875af1158015611b89573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bad91906138be565b506040805182815242602082015287916001600160a01b038816917f45c072aa05b9853b5a993de7a28bc332ee01404a628cec1a23ce0f659f842ef1910160405180910390a350600195945050505050565b6000611c0c600483613b1d565b61ffff1615611c1d57506000919050565b611c28606483613b1d565b61ffff1615611c3957506001919050565b611c4561019083613b1d565b61ffff1615611c5657506000919050565b506001919050565b600060038381548110611c7357611c73613912565b600091825260208083206001600160a01b03861684526006600b90930201919091019052604090206001015460ff16905092915050565b6000611cb7600183613aed565b9150611cc561019083613a50565b611cd0606484613a50565b611cdb600485613a50565b611ce59190613aed565b61066b9190613a78565b60008260ff1660011480611d0657508260ff166003145b80611d1457508260ff166005145b80611d2257508260ff166007145b80611d3057508260ff166008145b80611d3e57508260ff16600a145b80611d4c57508260ff16600c145b15611d595750601f61066b565b8260ff1660041480611d6e57508260ff166006145b80611d7c57508260ff166009145b80611d8a57508260ff16600b145b15611d975750601e61066b565b611da082611bff565b15611dad5750601d61066b565b50601c61066b565b611e026040518060e0016040528060006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000151581526020016000151581525090565b600354839083908210611e275760405162461bcd60e51b81526004016106cc906138db565b60038281548110611e3a57611e3a613912565b600091825260208083206001600160a01b03851684526006600b90930201919091019052604090206001015460ff16611e855760405162461bcd60e51b81526004016106cc90613928565b600060038681548110611e9a57611e9a613912565b90600052602060002090600b02016006016000866001600160a01b03166001600160a01b0316815260200190815260200160002060000154905060038681548110611ee757611ee7613912565b90600052602060002090600b02016005018181548110611f0957611f09613912565b60009182526020918290206040805160e081018252600690930290910180546001600160a01b03168352600181015493830193909352600283015490820152600382015460608201526004820154608082015260059091015460ff808216151560a084015261010090910416151560c08201529350505b505092915050565b600061122983836123b2565b6000611f9e612358565b8251845114611fef5760405162461bcd60e51b815260206004820152601c60248201527f53697a6573206f6620696e7075747320646f206e6f74206d617463680000000060448201526064016106cc565b60005b845181101561204b5761203885828151811061201057612010613912565b602002602001015185838151811061202a5761202a613912565b6020026020010151856115ed565b508061204381613a90565b915050611ff2565b506001949350505050565b6003546060908290811061207c5760405162461bcd60e51b81526004016106cc906138db565b6003838154811061208f5761208f613912565b90600052602060002090600b0201600501805480602002602001604051908101604052809291908181526020016000905b828210156121465760008481526020908190206040805160e0810182526006860290920180546001600160a01b031683526001808201548486015260028201549284019290925260038101546060840152600481015460808401526005015460ff808216151560a085015261010090910416151560c083015290835290920191016120c0565b50505050915050919050565b61215a612358565b6001600160a01b0381166121bf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016106cc565b6121c8816129c6565b50565b60006121d5612358565b6003548a106122265760405162461bcd60e51b815260206004820152601760248201527f537472617465677920646f6573206e6f7420657869737400000000000000000060448201526064016106cc565b600060038b8154811061223b5761223b613912565b60009182526020909120600b90910201905060016007820154610100900460ff16600281111561226d5761226d61304b565b14156122bb5760405162461bcd60e51b815260206004820152601e60248201527f4368616e67696e67206d6f6e74686c79206e6f7420737570706f72746564000060448201526064016106cc565b6122c5888a6124e1565b600182015589516122dc90829060208d0190612ea5565b506002818101899055600382018890556004820187905560078201805460ff19168715151790556007820154610100900460ff1660028111156123215761232161304b565b1415612339576008810184905561ffff831660098201555b5060019a9950505050505050505050565b6000603c61104a8184613a50565b6000546001600160a01b031633146112665760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106cc565b6000828260038054905082106123da5760405162461bcd60e51b81526004016106cc906138db565b600382815481106123ed576123ed613912565b600091825260208083206001600160a01b03851684526006600b90930201919091019052604090206001015460ff166124385760405162461bcd60e51b81526004016106cc90613928565b60006003868154811061244d5761244d613912565b90600052602060002090600b02016006016000866001600160a01b03166001600160a01b031681526020019081526020016000206000015490506111fe6003878154811061249d5761249d613912565b90600052602060002090600b020160050182815481106124bf576124bf613912565b9060005260206000209060060201600201546124db88886126d5565b90612a16565b60006112298284613a78565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101829052908080612531856114fd565b61ffff1684526125426107b2611caa565b84516125519061ffff16611caa565b61255b9190613aed565b915061256b826301e28500613ace565b6125759084613a78565b9250816107b2856000015161258a9190613aab565b61ffff166125989190613aed565b6125a6906301e13380613ace565b6125b09084613a78565b92506000600191505b600c8260ff1611612621576125d2828660000151611cef565b6125e29060ff1662015180613ace565b9050856125ef8583613a78565b11156126035760ff82166020860152612621565b61260d8185613a78565b93508161261981613b3e565b9250506125b9565b600191505b61263885602001518660000151611cef565b60ff168260ff161161268757856126528562015180613a78565b11156126665760ff82166040860152612687565b6126736201518085613a78565b93508161267f81613b3e565b925050612626565b61269086611030565b60ff1660608601526126a18661234a565b60ff1660808601526126b286611325565b60ff1660a08601526126c3866111d1565b60ff1660c08601525092949350505050565b6000828260038054905082106126fd5760405162461bcd60e51b81526004016106cc906138db565b6003828154811061271057612710613912565b600091825260208083206001600160a01b03851684526006600b90930201919091019052604090206001015460ff1661275b5760405162461bcd60e51b81526004016106cc90613928565b60006003868154811061277057612770613912565b600091825260208083206001600160a01b03891684526006600b9093020191909101905260408120546003805491935090889081106127b1576127b1613912565b90600052602060002090600b020160050182815481106127d3576127d3613912565b600091825260208083206040805160e081018252600690940290910180546001600160a01b0316845260018101549284019290925260028201549083015260038082015460608401526004820154608084015260059091015460ff808216151560a085015261010090910416151560c08301528054919350908990811061285c5761285c613912565b90600052602060002090600b0201905060006128956103e861288f84600401548660200151612a2290919063ffffffff16565b90612a2e565b90508260a00151156128b0575050604001519350611f809050565b81600201544210156128c9576000965050505050611f80565b816002015442101580156128e05750816001015442105b156128f0579550611f8092505050565b816001015442106129ba57600260038a8154811061291057612910613912565b90600052602060002090600b020160070160019054906101000a900460ff1660028111156129405761294061304b565b141561295b576129508383612a3a565b965050505050611f80565b600060038a8154811061297057612970613912565b90600052602060002090600b020160070160019054906101000a900460ff1660028111156129a0576129a061304b565b14156129b0576129508383612af7565b6129508383612ba2565b50505050505092915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006112298284613aed565b60006112298284613ace565b60006112298284613a50565b600080612a5e6103e861288f85600401548760200151612a2290919063ffffffff16565b90506000612a79828660200151612a1690919063ffffffff16565b90506000612a9c856008015461288f876001015442612a1690919063ffffffff16565b90506000612ab7866009015483612a2290919063ffffffff16565b90506103e88110612ad257866020015194505050505061066b565b612ae26103e861288f8584612a22565b612aec9085613a78565b94505050505061066b565b600080612b1b6103e861288f85600401548760200151612a2290919063ffffffff16565b90506000612b36828660200151612a1690919063ffffffff16565b9050612b53846003015485600101546124e190919063ffffffff16565b4210612b6657505050602082015161066b565b612b8f846003015461288f612b88876001015442612a1690919063ffffffff16565b8490612a22565b612b999083613a78565b9250505061066b565b600080612bc66103e861288f85600401548760200151612a2290919063ffffffff16565b90506000612be1828660200151612a1690919063ffffffff16565b600a8501805491925090612bf790600190613aed565b81548110612c0757612c07613912565b9060005260206000200154421115612c2657505050602082015161066b565b6000612c8485600a01805480602002602001604051908101604052809291908181526020018280548015612c7957602002820191906000526020600020905b815481526020019060010190808311612c65575b505050505042612cb1565b90506000612c9f866009015483612a2290919063ffffffff16565b9050612ae26103e861288f8584612a22565b81516000908180858184612cc757612cc7613912565b6020026020010151851015612ce2576000935050505061066b565b85612cee600185613aed565b81518110612cfe57612cfe613912565b60200260200101518510612d2157612d17600184613aed565b935050505061066b565b82821015612e34576002612d358484613a78565b612d3f9190613a50565b905084868281518110612d5457612d54613912565b60200260200101511415612d6d57612d17816001613a78565b858181518110612d7f57612d7f613912565b6020026020010151851015612dd757600081118015612dc0575085612da5600183613aed565b81518110612db557612db5613912565b602002602001015185115b15612dcf57925061066b915050565b809250612d21565b612de2600184613aed565b81108015612e12575085612df7826001613a78565b81518110612e0757612e07613912565b602002602001015185105b15612e2257612d17816001613a78565b612e2d816001613a78565b9150612d21565b6111fe816001613a78565b604051806101400160405280606081526020016000815260200160008152602001600081526020016000815260200160001515815260200160006002811115612e8a57612e8a61304b565b81526020016000815260200160008152602001606081525090565b828054612eb19061395f565b90600052602060002090601f016020900481019282612ed35760008555612f19565b82601f10612eec57805160ff1916838001178555612f19565b82800160010185558215612f19579182015b82811115612f19578251825591602001919060010190612efe565b50612f25929150612f48565b5090565b604051806101800160405280600c906020820280368337509192915050565b5b80821115612f255760008155600101612f49565b80356001600160a01b038116811461069a57600080fd5b60008060408385031215612f8757600080fd5b612f9083612f5d565b946020939093013593505050565b600060208284031215612fb057600080fd5b61122982612f5d565b60008060408385031215612fcc57600080fd5b82359150612fdc60208401612f5d565b90509250929050565b600060208284031215612ff757600080fd5b5035919050565b6000815180845260005b8181101561302457602081850181015186830182015201613008565b81811115613036576000602083870101525b50601f01601f19169290920160200192915050565b634e487b7160e01b600052602160045260246000fd5b6003811061307f57634e487b7160e01b600052602160045260246000fd5b9052565b600081518084526020808501945080840160005b838110156130b357815187529582019590820190600101613097565b509495945050505050565b600061014082518185526130d482860182612ffe565b9150506020830151602085015260408301516040850152606083015160608501526080830151608085015260a083015161311260a086018215159052565b5060c083015161312560c0860182613061565b5060e083015160e085015261010080840151818601525061012080840151858303828701526111fe8382613083565b60208152600061122960208301846130be565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156131a6576131a6613167565b604052919050565b600082601f8301126131bf57600080fd5b813567ffffffffffffffff8111156131d9576131d9613167565b6131ec601f8201601f191660200161317d565b81815284602083860101111561320157600080fd5b816020850160208301376000918101602001919091529392505050565b80151581146121c857600080fd5b803561ffff8116811461069a57600080fd5b803560ff8116811461069a57600080fd5b6000806000806000806000806000806101408b8d03121561326f57600080fd5b8a3567ffffffffffffffff81111561328657600080fd5b6132928d828e016131ae565b9a505060208b0135985060408b0135975060608b0135965060808b0135955060a08b01356132bf8161321e565b945060c08b013593506132d460e08c0161322c565b92506132e36101008c0161323e565b91506101208b0135600381106132f857600080fd5b809150509295989b9194979a5092959850565b60008060006060848603121561332057600080fd5b61332984612f5d565b95602085013595506040909401359392505050565b60008060006060848603121561335357600080fd5b8335925061336360208501612f5d565b915060408401356133738161321e565b809150509250925092565b600080600080600060a0868803121561339657600080fd5b61339f8661322c565b94506133ad6020870161323e565b93506133bb6040870161323e565b92506133c96060870161323e565b91506133d76080870161323e565b90509295509295909350565b600080604083850312156133f657600080fd5b8235915060208301356134088161321e565b809150509250929050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561346857603f198886030184526134568583516130be565b9450928501929085019060010161343a565b5092979650505050505050565b6000806000806080858703121561348b57600080fd5b6134948561322c565b93506134a26020860161323e565b92506134b06040860161323e565b91506134be6060860161323e565b905092959194509250565b6000806000606084860312156134de57600080fd5b6134e78461322c565b92506134f56020850161323e565b91506135036040850161323e565b90509250925092565b60008060008060008060c0878903121561352557600080fd5b61352e8761322c565b955061353c6020880161323e565b945061354a6040880161323e565b93506135586060880161323e565b92506135666080880161323e565b915061357460a0880161323e565b90509295509295509295565b60006101208083526135948184018d612ffe565b91505089602083015288604083015287606083015286608083015285151560a08301526135c460c0830186613061565b60e08201939093526101000152979650505050505050565b6000602082840312156135ee57600080fd5b6112298261322c565b6000806040838503121561360a57600080fd5b6136138361323e565b9150612fdc6020840161322c565b80516001600160a01b031682526020808201519083015260408082015190830152606080820151908301526080808201519083015260a08181015115159083015260c0908101511515910152565b60e0810161066b8284613621565b600067ffffffffffffffff82111561369757613697613167565b5060051b60200190565b600082601f8301126136b257600080fd5b813560206136c76136c28361367d565b61317d565b82815260059290921b840181019181810190868411156136e657600080fd5b8286015b8481101561370157803583529183019183016136ea565b509695505050505050565b60008060006060848603121561372157600080fd5b833567ffffffffffffffff8082111561373957600080fd5b818601915086601f83011261374d57600080fd5b8135602061375d6136c28361367d565b82815260059290921b8401810191818101908a84111561377c57600080fd5b948201945b838610156137a15761379286612f5d565b82529482019490820190613781565b975050870135925050808211156137b757600080fd5b506137c4868287016136a1565b925050604084013590509250925092565b6020808252825182820181905260009190848201906040850190845b8181101561381757613804838551613621565b9284019260e092909201916001016137f1565b50909695505050505050565b60008060008060008060008060006101208a8c03121561384257600080fd5b8935985060208a013567ffffffffffffffff81111561386057600080fd5b61386c8c828d016131ae565b98505060408a0135965060608a0135955060808a0135945060a08a0135935060c08a01356138998161321e565b925060e08a013591506138af6101008b0161322c565b90509295985092959850929598565b6000602082840312156138d057600080fd5b81516112298161321e565b6020808252601d908201527f56657374696e67206f7074696f6e20646f6573206e6f74206578697374000000604082015260600190565b634e487b7160e01b600052603260045260246000fd5b60208082526018908201527f55736572206973206e6f7420696e2077686974656c6973740000000000000000604082015260600190565b600181811c9082168061397357607f821691505b60208210811415610bc657634e487b7160e01b600052602260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060ff821660ff84168060ff038211156139c7576139c7613994565b019392505050565b600060ff821660ff8416808210156139e9576139e9613994565b90039392505050565b600061ffff80831681811415613a0a57613a0a613994565b6001019392505050565b600061ffff808316818516808303821115613a3157613a31613994565b01949350505050565b634e487b7160e01b600052601260045260246000fd5b600082613a5f57613a5f613a3a565b500490565b600082613a7357613a73613a3a565b500690565b60008219821115613a8b57613a8b613994565b500190565b6000600019821415613aa457613aa4613994565b5060010190565b600061ffff83811690831681811015613ac657613ac6613994565b039392505050565b6000816000190483118215151615613ae857613ae8613994565b500290565b600082821015613aff57613aff613994565b500390565b600060208284031215613b1657600080fd5b5051919050565b600061ffff80841680613b3257613b32613a3a565b92169190910692915050565b600060ff821660ff811415613b5557613b55613994565b6001019291505056fea2646970667358221220f295daba8ed90d9ffe9fe139e82420700a32214e1c8f55a01561c911a95c590364736f6c634300080a0033
Loading...
Loading
Loading...
Loading
Multichain Portfolio | 30 Chains
Chain | Token | Portfolio % | Price | Amount | Value |
---|
Loading...
Loading
[ Download: CSV Export ]
A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.