Warning! Contract bytecode has been changed and doesn't match the verified one. Therefore, interaction with this smart contract may be risky.
- Contract name:
- IDO
- Optimization enabled
- true
- Compiler version
- v0.8.7+commit.e28d00a7
- Optimization runs
- 200
- EVM Version
- default
- Verified at
- 2024-09-26T15:32:19.915713Z
Contract source code
// SPDX-License-Identifier: No License (None) pragma solidity ^0.8.0; /** * @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 { address internal _owner; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); /** * @dev Initializes the contract setting the deployer as the initial owner. */ /* constructor () { _owner = msg.sender; emit OwnershipTransferred(address(0), msg.sender); } */ /** * @dev Returns the address of the current owner. */ function owner() public view virtual returns (address) { return _owner; } /** * @dev Throws if called by any account other than the owner. */ modifier onlyOwner() { require(owner() == msg.sender, "Ownable: caller is not the owner"); _; } /** * @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"); emit OwnershipTransferred(_owner, newOwner); _owner = newOwner; } } /** * @dev Interface of the ERC223 standard as defined in the EIP. */ interface IERC223 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(address account) external view returns (uint256); /** * @dev Moves `amount` tokens from the caller's account to `recipient`. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transfer(address recipient, uint256 amount) external returns (bool); function transfer(address recipient, uint256 amount, bytes calldata data) external returns (bool); /** * @dev Returns the remaining number of tokens that `spender` will be * allowed to spend on behalf of `owner` through {transferFrom}. This is * zero by default. * * This value changes when {approve} or {transferFrom} are called. */ function allowance(address owner, address spender) external view returns (uint256); /** * @dev Sets `amount` as the allowance of `spender` over the caller's tokens. * * Returns a boolean value indicating whether the operation succeeded. * * IMPORTANT: Beware that changing an allowance with this method brings the risk * that someone may use both the old and the new allowance by unfortunate * transaction ordering. One possible solution to mitigate this race * condition is to first reduce the spender's allowance to 0 and set the * desired value afterwards: * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * * Emits an {Approval} event. */ function approve(address spender, uint256 amount) external returns (bool); /** * @dev Moves `amount` tokens from `sender` to `recipient` using the * allowance mechanism. `amount` is then deducted from the caller's * allowance. * * Returns a boolean value indicating whether the operation succeeded. * * Emits a {Transfer} event. */ function transferFrom(address sender, address recipient, uint256 amount) external returns (bool); /** * @dev Emitted when `value` tokens are moved from one account (`from`) to * another (`to`). * * Note that `value` may be zero. */ event Transfer(address indexed from, address indexed to, uint256 value); /** * @dev Emitted when the allowance of a `spender` for an `owner` is set by * a call to {approve}. `value` is the new allowance. */ event Approval(address indexed owner, address indexed spender, uint256 value); } /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier * available, which can be applied to functions to make sure there are no nested * (reentrant) calls to them. * * Note that because there is a single `nonReentrant` guard, functions marked as * `nonReentrant` may not call one another. This can be worked around by making * those functions `private`, and then adding `external` `nonReentrant` entry * points to them. * * TIP: If you would like to learn more about reentrancy and alternative ways * to protect against it, check out our blog post * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul]. */ abstract contract ReentrancyGuard { // Booleans are more expensive than uint256 or any type that takes up a full // word because each write operation emits an extra SLOAD to first read the // slot's contents, replace the bits taken up by the boolean, and then write // back. This is the compiler's defense against contract upgrades and // pointer aliasing, and it cannot be disabled. // The values being non-zero value makes deployment a bit more expensive, // but in exchange the refund on every call to nonReentrant will be lower in // amount. Since refunds are capped to a percentage of the total // transaction's gas, it is best to keep them low in cases like this one, to // increase the likelihood of the full refund coming into effect. uint256 private constant _NOT_ENTERED = 1; uint256 private constant _ENTERED = 2; uint256 private _status; constructor() { _status = _NOT_ENTERED; } /** * @dev Prevents a contract from calling itself, directly or indirectly. * Calling a `nonReentrant` function from another `nonReentrant` * function is not supported. It is possible to prevent this from happening * by making the `nonReentrant` function external, and making it call a * `private` function that does the actual work. */ modifier nonReentrant() { // On the first call to nonReentrant, _notEntered will be true require(_status != _ENTERED, "ReentrancyGuard: reentrant call"); // Any calls to nonReentrant after this point will fail _status = _ENTERED; _; // By storing the original value once again, a refund is triggered (see // https://eips.ethereum.org/EIPS/eip-2200) _status = _NOT_ENTERED; } } interface IPriceFeed { function getPrice(address token) external view returns(uint256); } contract IDO is Ownable, ReentrancyGuard { struct Round { uint256 soyToSell; // amount of SOY sell in this round uint256 usdCollected; // USD value received in this round uint256 hardCap; // maximum amount of USD that can be collected by this round uint256 softCap; // minimum amount of USD to collect uint256 start; // timestamp when auction start uint256 end; // timestamp when auction end } struct Bet { uint256 usdValue; // contributed usd in this round uint256 soyAmount; // amount locked SOY uint256 lockedUntil; // locked until } //mapping(uint256 => mapping(address => AcceptedToken)) public totalBets; // auction => token address => AcceptedToken mapping(uint256 => mapping(address => Bet)) public bets; // round ID => user address => Bet mapping(uint256 => Round) public auctionRound; // round ID => Round mapping(address => bool) public allowedToken; // token accepted for payment bool public isPaused; address constant public SoyToken = address(0x9FaE2529863bD691B4A7171bDfCf33C7ebB10a65); uint256 constant public RATIO = 1017233603000000000; // 1.017233603 address constant public priceFeed = address(0x9bFc3046ea26f8B09D3E85bd22AEc96C80D957e3); // price feed contract address payable public bank; // receiver of bets tokens uint256 public totalSoyToSell; // total amount of Soy to sell uint256 public totalSoySold; // total amount of sold Soy including Soy in active auction. uint256 public auctionRounds; // number of auction rounds uint256 public currentRoundId; // current auction round (round starts from 1) //uint256 public soyPerAuctionPeriod; uint256 public roundDuration; // auction round duration (in seconds). uint256 public lockPeriod; // period while tokens will be locked uint256 public lockPercentage; // percentage of bought tokens that will be locked uint256 public minPricePercentage; // percentage of previous auction price assign to min price uint256 public maxPricePercentage; // maxPrice = lastRoundSoyPrice * maxPricePercentage / 100 uint256 public lastRoundSoyPrice; // previous auction price uint256 public maxExtendRounds; // maximum number of rounds to extend tha auction event RoundEnds(uint256 indexed roundID, uint256 soySold, uint256 usdCollected); event Rescue(address _token, uint256 _amount); event SetBank(address _bank); event UserBet(uint256 indexed roundID, address indexed user, address indexed token, uint256 usdValue, uint256 tokenAmount); modifier notPaused() { require(!isPaused, "Paused"); _; } function initialize() external { require(_owner == address(0), "Already initialized"); _owner = msg.sender; emit OwnershipTransferred(address(0), msg.sender); lockPeriod = 365 days; // period while tokens will be locked minPricePercentage = 90; // percentage of previous auction price assign to min price maxExtendRounds = 3; // maximum number of rounds to extend the auction /*// weekly auction roundDuration = 7 days; // auction round duration (in seconds). maxPricePercentage = 500; // maxPrice = lastRoundSoyPrice * maxPricePercentage / 100 lockPercentage = 70; // 50% of Soy will be locked auctionRounds = 26; // number of auction rounds */ // daily auction roundDuration = 1 days; // auction round duration (in seconds). maxPricePercentage = 160; // maxPrice = lastRoundSoyPrice * maxPricePercentage / 100 lockPercentage = 50; // 50% of Soy will be locked auctionRounds = 180; // number of auction rounds } function setPause(bool state) external onlyOwner { isPaused = state; } function setBank(address payable _bank) onlyOwner external { require(_bank != address(0), "Zero address not allowed"); bank = _bank; emit SetBank(_bank); } function setLastRoundSoyPrice(uint256 val) external onlyOwner { lastRoundSoyPrice = val; } function setMinPricePercentage(uint256 val) external onlyOwner { minPricePercentage = val; } function setMaxPricePercentage(uint256 val) external onlyOwner { maxPricePercentage = val; } function setLockPercentage(uint256 val) external onlyOwner { lockPercentage = val; } function setLockPeriod(uint256 val) external onlyOwner { lockPeriod = val; } function setRoundDuration(uint256 val) external onlyOwner { roundDuration = val; } function setMaxExtendRounds(uint256 val) external onlyOwner { maxExtendRounds = val; } function setAuctionRounds(uint256 val) external onlyOwner { require(val >= currentRoundId); auctionRounds = val; } function setAllowedToken(address token, bool state) external onlyOwner { require(token != address(0)); allowedToken[token] = state; } // set amount to sell at current round function setRoundSellAmount(uint256 amount) external onlyOwner { uint256 currentAmount = auctionRound[currentRoundId].soyToSell; totalSoySold = totalSoySold + amount - currentAmount; require(totalSoyToSell >= totalSoySold, "Wrong amount"); auctionRound[currentRoundId].soyToSell = amount; auctionRound[currentRoundId].hardCap = amount * lastRoundSoyPrice * maxPricePercentage / 10**20; // 100 * 10**18 auctionRound[currentRoundId].softCap = amount * lastRoundSoyPrice * minPricePercentage / 10**20; // 100 * 10**18 } function auctionStart(uint256 startTime, uint256 soyPrice) external onlyOwner { require(currentRoundId == 0, "Only start once"); require(totalSoyToSell != 0, "No SOY to sell"); lastRoundSoyPrice = soyPrice; auctionRound[0].soyToSell = 29491750873668297408771; // auctionRound[0] * RATIO / 10**18 == 30 000 SOY for first day in daily auction. startRound(startTime); } function claim() external { claimBehalf(msg.sender, 1, currentRoundId); } function claimBehalf(address user) public { claimBehalf(user, 1, currentRoundId); } // claim SOY tokens from numbers of auction rounds (fromRound to toRound). toRound is excluded. function claimBehalf(address user, uint256 fromRound, uint256 toRound) public nonReentrant { require(fromRound < toRound && toRound <= currentRoundId, "Incorrect rounds parameters"); uint256 soyToClaim; uint256 _lockPercentage = lockPercentage; uint256 _lockPeriod = lockPeriod; for (uint256 i = fromRound; i<toRound; i++) { uint256 usdValue = bets[i][user].usdValue; if (usdValue != 0) { // user contributed in this round if (bets[i][user].lockedUntil == 0) { // receive token from round uint256 total = auctionRound[i].soyToSell * usdValue / auctionRound[i].usdCollected; uint256 locked = total * _lockPercentage / 100; soyToClaim += (total - locked); bets[i][user].soyAmount = locked; bets[i][user].lockedUntil = auctionRound[i].end + _lockPeriod; bets[i][user].usdValue = 0; } } // Check if can claim locked tokens uint256 soyAmount = bets[i][user].soyAmount; if (soyAmount != 0 && bets[i][user].lockedUntil < block.timestamp) { soyToClaim += soyAmount; bets[i][user].soyAmount = 0; } } IERC223(SoyToken).transfer(user, soyToClaim); } // return amount of SOY tokens that user may claim and amount that locked function getTokenToClaim(address user) external view returns(uint256 soyToClaim, uint256 soyLocked) { uint256 toRound = currentRoundId; uint256 _lockPercentage = lockPercentage; uint256 _lockPeriod = lockPeriod; for (uint256 i = 1; i < toRound; i++) { uint256 usdValue = bets[i][user].usdValue; if (usdValue != 0) { // user contributed in this round uint256 lockedUntil = bets[i][user].lockedUntil; uint256 locked; if (lockedUntil == 0) { // receive token from round uint256 total = auctionRound[i].soyToSell * usdValue / auctionRound[i].usdCollected; locked = total * _lockPercentage / 100; soyToClaim += (total - locked); lockedUntil = auctionRound[i].end + _lockPeriod; } if (lockedUntil < block.timestamp) { soyToClaim += bets[i][user].soyAmount; soyToClaim += locked; // in case of user do first claim in 1 year after auction end. } else { soyLocked += bets[i][user].soyAmount; soyLocked += locked; } } else if (bets[i][user].soyAmount != 0){ if (bets[i][user].lockedUntil < block.timestamp) { soyToClaim += bets[i][user].soyAmount; } else { soyLocked += bets[i][user].soyAmount; } } } } // Returns arrays of locked SOY, unlock timestamp, SOY price (in USD with 18 decimals). Array index 0 = round 1 and so on. // And total amount of SOY that user may claim and amount of SOY that is locked. function getUserDetail(address user) external view returns(uint256[] memory lockedSoy, uint256[] memory lockedDate, uint256[] memory soyPrice, uint256 soyToClaim, uint256 soyLocked) { uint256 currentRound = currentRoundId; lockedSoy = new uint256[](currentRound-1); lockedDate = new uint256[](currentRound-1); soyPrice = new uint256[](currentRound-1); uint256 _lockPercentage = lockPercentage; uint256 _lockPeriod = lockPeriod; for (uint256 i = 1; i < currentRound; i++) { uint256 usdValue = bets[i][user].usdValue; if (usdValue != 0) { // user contributed in this round uint256 lockedUntil = bets[i][user].lockedUntil; uint256 locked; if (lockedUntil == 0) { // receive token from round uint256 total = auctionRound[i].soyToSell * usdValue / auctionRound[i].usdCollected; locked = total * _lockPercentage / 100; soyToClaim += (total - locked); lockedUntil = auctionRound[i].end + _lockPeriod; lockedDate[i-1] = lockedUntil; lockedSoy[i-1] = locked; soyPrice[i-1] = auctionRound[i].usdCollected * 10**18 / auctionRound[i].soyToSell; } if (lockedUntil < block.timestamp) { soyToClaim += bets[i][user].soyAmount; soyToClaim += locked; // in case of user do first claim in 1 year after auction end. } else { soyLocked += bets[i][user].soyAmount; soyLocked += locked; } } else if (bets[i][user].soyAmount != 0){ lockedDate[i-1] = bets[i][user].lockedUntil; lockedSoy[i-1] = bets[i][user].soyAmount; soyPrice[i-1] = auctionRound[i].usdCollected * 10**18 / auctionRound[i].soyToSell; if (lockedDate[i-1] < block.timestamp) { soyToClaim += lockedSoy[i-1]; } else { soyLocked += lockedSoy[i-1]; } } } } // returns USD value collected in the current round and total USD value collected during the auction function getCollectedUSD() external view returns(uint256 currentRoundUSD, uint256 totalUSD) { uint256 currentRound = currentRoundId; currentRoundUSD = auctionRound[currentRound].usdCollected; for (uint i=1; i<=currentRound; i++) { totalUSD = auctionRound[i].usdCollected; } } // returns USD value collected in the round function getCollectedUSD(uint256 round) external view returns(uint256) { return auctionRound[round].usdCollected; } // Bet with ERC223 token function tokenReceived(address _from, uint _value, bytes calldata _data) external { if (msg.sender == SoyToken && _from == owner()) { totalSoyToSell += _value; return; } require(allowedToken[msg.sender], "Token isn't allowed"); userBet(_from, msg.sender, _value); // user, token, amount } receive() external payable { makeBet(address(1), msg.value); } // make bet to Auction function makeBet(address token, uint256 amount) public payable { require(allowedToken[token], "Token isn't allowed"); if (token == address(1)) { require(amount == msg.value, "Incorrect CLO amount"); } else { require(msg.value == 0, "Only token"); IERC223(token).transferFrom(msg.sender, address(this), amount); } userBet(msg.sender, token, amount); } function userBet(address user, address token, uint256 amount) internal notPaused nonReentrant { if (checkRound()) // if last round finished - return money to sender. { transferTo(token, amount, user); return; } uint256 roundID = currentRoundId; uint256 price = getPrice(token); Round storage round = auctionRound[roundID]; Bet storage bet = bets[roundID][user]; uint256 totalUSD = round.usdCollected + (amount * price / 10**18); if (totalUSD >= round.hardCap) { uint256 rest = totalUSD - round.hardCap; // rest of USD rest = rest * 10**18 / price; // rest in token if (rest > amount) rest = amount; // this condition shouldn't be true but added to be safe. round.usdCollected = round.hardCap; amount = amount - rest; // amount of token that bet in this round endRound(block.timestamp); if (rest != 0) transferTo(token, rest, user); // return rest to the user } else { round.usdCollected = totalUSD; } uint256 usdValue = amount * price / 10**18; bet.usdValue += usdValue; // update user's bet transferTo(token, amount, bank); // transfer token to the bank address emit UserBet(roundID, user, token, usdValue, amount); } function startRound(uint256 startTime) internal { currentRoundId++; require(currentRoundId <= auctionRounds, "All rounds completed"); Round storage round = auctionRound[currentRoundId]; round.start = startTime; round.end = startTime + roundDuration; // calculate amount of Soy to sell per round. uint256 soyToSell; if (roundDuration == 1 days) { soyToSell = auctionRound[currentRoundId - 1].soyToSell * RATIO / 10**18; if ((totalSoyToSell - totalSoySold) < soyToSell) { soyToSell = totalSoyToSell - totalSoySold; // if left less Soy then we need due to calculation - sell all available Soy } } else { uint256 roundsLeft = auctionRounds + 1 - currentRoundId; soyToSell = (totalSoyToSell - totalSoySold) / roundsLeft; } round.soyToSell = soyToSell; totalSoySold += soyToSell; round.hardCap = soyToSell * lastRoundSoyPrice * maxPricePercentage / 10**20; // 100 * 10**18 round.softCap = soyToSell * lastRoundSoyPrice * minPricePercentage / 10**20; // 100 * 10**18 } // return true if last auction round finished function endRound(uint256 endTime) internal returns(bool isLastRoundEnd) { Round storage round = auctionRound[currentRoundId]; lastRoundSoyPrice = round.usdCollected * 10**18 / round.soyToSell; emit RoundEnds(currentRoundId, round.soyToSell, round.usdCollected); if (currentRoundId == auctionRounds) { // last round currentRoundId++; isLastRoundEnd = true; } else { startRound(endTime); // start new round when previous round ends } } // return true if last auction round finished function checkRound() internal returns(bool isLastRoundEnd) { Round storage round = auctionRound[currentRoundId]; require(round.start <= block.timestamp, "Auction is not started yet"); require(currentRoundId <= auctionRounds, "Auction is finished"); require(round.soyToSell != 0, "No SOY to sell"); if (round.end <= block.timestamp) { // auction round finished. if (round.usdCollected < round.softCap) { // extend auction on next round duration if min threshold was not reached uint256 duration = (block.timestamp - round.start) / roundDuration; if (duration < maxExtendRounds) { round.end = round.start + ((duration+1)*roundDuration); } else { round.end = round.start + (maxExtendRounds * roundDuration); isLastRoundEnd = endRound(round.end); } } else { isLastRoundEnd = endRound(round.end); } } } function transferTo(address token, uint256 amount, address receiver) internal { if (token == address(1)) { // transfer CLO payable(receiver).transfer(amount); } else { IERC223(token).transfer(receiver, amount); } } // get price of token from price feed contract (price in USD with 18 decimals) function getPrice(address token) internal view returns(uint256 price) { return IPriceFeed(priceFeed).getPrice(token); } function rescueTokens(address _token) onlyOwner external { uint256 amount; if (_token == SoyToken) { amount = totalSoyToSell-totalSoySold; totalSoyToSell = totalSoySold; } else { amount = IERC223(_token).balanceOf(address(this)); } IERC223(_token).transfer(msg.sender, amount); emit Rescue(_token, amount); } }
Contract ABI
[{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Rescue","inputs":[{"type":"address","name":"_token","internalType":"address","indexed":false},{"type":"uint256","name":"_amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RoundEnds","inputs":[{"type":"uint256","name":"roundID","internalType":"uint256","indexed":true},{"type":"uint256","name":"soySold","internalType":"uint256","indexed":false},{"type":"uint256","name":"usdCollected","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"SetBank","inputs":[{"type":"address","name":"_bank","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"UserBet","inputs":[{"type":"uint256","name":"roundID","internalType":"uint256","indexed":true},{"type":"address","name":"user","internalType":"address","indexed":true},{"type":"address","name":"token","internalType":"address","indexed":true},{"type":"uint256","name":"usdValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"tokenAmount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"RATIO","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"SoyToken","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"allowedToken","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"soyToSell","internalType":"uint256"},{"type":"uint256","name":"usdCollected","internalType":"uint256"},{"type":"uint256","name":"hardCap","internalType":"uint256"},{"type":"uint256","name":"softCap","internalType":"uint256"},{"type":"uint256","name":"start","internalType":"uint256"},{"type":"uint256","name":"end","internalType":"uint256"}],"name":"auctionRound","inputs":[{"type":"uint256","name":"","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"auctionRounds","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"auctionStart","inputs":[{"type":"uint256","name":"startTime","internalType":"uint256"},{"type":"uint256","name":"soyPrice","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address payable"}],"name":"bank","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"usdValue","internalType":"uint256"},{"type":"uint256","name":"soyAmount","internalType":"uint256"},{"type":"uint256","name":"lockedUntil","internalType":"uint256"}],"name":"bets","inputs":[{"type":"uint256","name":"","internalType":"uint256"},{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claim","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimBehalf","inputs":[{"type":"address","name":"user","internalType":"address"},{"type":"uint256","name":"fromRound","internalType":"uint256"},{"type":"uint256","name":"toRound","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"claimBehalf","inputs":[{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"currentRoundId","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getCollectedUSD","inputs":[{"type":"uint256","name":"round","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"currentRoundUSD","internalType":"uint256"},{"type":"uint256","name":"totalUSD","internalType":"uint256"}],"name":"getCollectedUSD","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"soyToClaim","internalType":"uint256"},{"type":"uint256","name":"soyLocked","internalType":"uint256"}],"name":"getTokenToClaim","inputs":[{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256[]","name":"lockedSoy","internalType":"uint256[]"},{"type":"uint256[]","name":"lockedDate","internalType":"uint256[]"},{"type":"uint256[]","name":"soyPrice","internalType":"uint256[]"},{"type":"uint256","name":"soyToClaim","internalType":"uint256"},{"type":"uint256","name":"soyLocked","internalType":"uint256"}],"name":"getUserDetail","inputs":[{"type":"address","name":"user","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"initialize","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"isPaused","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lastRoundSoyPrice","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockPercentage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"lockPeriod","inputs":[]},{"type":"function","stateMutability":"payable","outputs":[],"name":"makeBet","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxExtendRounds","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"maxPricePercentage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"minPricePercentage","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"priceFeed","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueTokens","inputs":[{"type":"address","name":"_token","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"roundDuration","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAllowedToken","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"bool","name":"state","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAuctionRounds","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setBank","inputs":[{"type":"address","name":"_bank","internalType":"address payable"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLastRoundSoyPrice","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLockPercentage","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setLockPeriod","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxExtendRounds","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMaxPricePercentage","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setMinPricePercentage","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setPause","inputs":[{"type":"bool","name":"state","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoundDuration","inputs":[{"type":"uint256","name":"val","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setRoundSellAmount","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"tokenReceived","inputs":[{"type":"address","name":"_from","internalType":"address"},{"type":"uint256","name":"_value","internalType":"uint256"},{"type":"bytes","name":"_data","internalType":"bytes"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSoySold","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSoyToSell","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"receive","stateMutability":"payable"}]
Contract Creation Code
0x608060405234801561001057600080fd5b5060018055612bf3806100246000396000f3fe6080604052600436106102755760003560e01c8063741bef1a1161014f5780639cbe5efd116100c1578063c59cb9f41161007a578063c59cb9f4146107dc578063debb1143146107fc578063f2fde38b14610812578063f644b3bb14610832578063f7cb789a14610890578063fe1cdb23146108a657600080fd5b80639cbe5efd146106d25780639f3713b7146106e8578063a85f4e81146106fe578063ab28693414610782578063b187bd26146107a2578063bedb86fb146107bc57600080fd5b80638129fc1c116101135780638129fc1c1461062a578063889014961461063f5780638943ec021461065f5780638aaa22841461067f5780638c7a529f1461069f5780638da5cb5b146106b457600080fd5b8063741bef1a1461055d578063756742f81461058557806376cdb03b146105c5578063779972da146105ea5780637cd428421461060a57600080fd5b80633b50261f116101e85780634ef6aa71116101ac5780634ef6aa71146104955780635113aea9146104d557806351bddee8146104f557806359e741d21461050b5780635f26e73e14610527578063601ce32d1461054757600080fd5b80633b50261f146104065780633fd8b02f14610419578063443e52041461042f5780634a48c84b1461044f5780634e71d92d1461048057600080fd5b806320f634b51161023a57806320f634b51461032b5780632155e43e14610360578063226125a8146103805780632fc10aaf146103a0578063356442b9146103d057806336c92c3f146103e657600080fd5b8062ae3bf81461028c578063073caa3c146102ac578063090d23b9146102cc57806311a9dd3b146102ec5780631cd275511461031557600080fd5b36610287576102856001346108bc565b005b600080fd5b34801561029857600080fd5b506102856102a7366004612815565b610a4e565b3480156102b857600080fd5b506102856102c7366004612927565b610c0c565b3480156102d857600080fd5b506102856102e7366004612815565b610f8b565b3480156102f857600080fd5b50610302600d5481565b6040519081526020015b60405180910390f35b34801561032157600080fd5b5061030260065481565b34801561033757600080fd5b5061034b610346366004612815565b611076565b6040805192835260208301919091520161030c565b34801561036c57600080fd5b5061028561037b366004612996565b6112ce565b34801561038c57600080fd5b5061028561039b366004612996565b61130c565b3480156103ac57600080fd5b506103026103bb366004612996565b60009081526003602052604090206001015490565b3480156103dc57600080fd5b50610302600c5481565b3480156103f257600080fd5b50610285610401366004612996565b61134a565b610285610414366004612872565b6108bc565b34801561042557600080fd5b50610302600b5481565b34801561043b57600080fd5b5061028561044a366004612996565b611388565b34801561045b57600080fd5b5061046f61046a366004612815565b6113c6565b60405161030c959493929190612a4a565b34801561048c57600080fd5b5061028561191c565b3480156104a157600080fd5b506104bd739fae2529863bd691b4a7171bdfcf33c7ebb10a6581565b6040516001600160a01b03909116815260200161030c565b3480156104e157600080fd5b506102856104f0366004612996565b61192c565b34801561050157600080fd5b50610302600e5481565b34801561051757600080fd5b50610302670e1df0928867de0081565b34801561053357600080fd5b50610285610542366004612996565b611a79565b34801561055357600080fd5b50610302600f5481565b34801561056957600080fd5b506104bd739bfc3046ea26f8b09d3e85bd22aec96c80d957e381565b34801561059157600080fd5b506105b56105a0366004612815565b60046020526000908152604090205460ff1681565b604051901515815260200161030c565b3480156105d157600080fd5b506005546104bd9061010090046001600160a01b031681565b3480156105f657600080fd5b50610285610605366004612996565b611ac6565b34801561061657600080fd5b50610285610625366004612996565b611b04565b34801561063657600080fd5b50610285611b42565b34801561064b57600080fd5b5061028561065a366004612815565b611bfa565b34801561066b57600080fd5b5061028561067a36600461289e565b611c0b565b34801561068b57600080fd5b5061028561069a366004612839565b611cc3565b3480156106ab57600080fd5b5061034b611d3a565b3480156106c057600080fd5b506000546001600160a01b03166104bd565b3480156106de57600080fd5b5061030260095481565b3480156106f457600080fd5b5061030260075481565b34801561070a57600080fd5b50610755610719366004612996565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161030c565b34801561078e57600080fd5b5061028561079d3660046129ed565b611d87565b3480156107ae57600080fd5b506005546105b59060ff1681565b3480156107c857600080fd5b506102856107d736600461295c565b611e86565b3480156107e857600080fd5b506102856107f7366004612996565b611ed2565b34801561080857600080fd5b5061030260085481565b34801561081e57600080fd5b5061028561082d366004612815565b611f10565b34801561083e57600080fd5b5061087561084d3660046129c8565b6002602081815260009384526040808520909152918352912080546001820154919092015483565b6040805193845260208401929092529082015260600161030c565b34801561089c57600080fd5b50610302600a5481565b3480156108b257600080fd5b5061030260105481565b6001600160a01b03821660009081526004602052604090205460ff1661091f5760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881a5cdb89dd08185b1b1bddd959606a1b60448201526064015b60405180910390fd5b6001600160a01b0382166001141561097c573481146109775760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0810d313c8185b5bdd5b9d60621b6044820152606401610916565b610a3f565b34156109b75760405162461bcd60e51b815260206004820152600a60248201526927b7363c903a37b5b2b760b11b6044820152606401610916565b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd90606401602060405180830381600087803b158015610a0557600080fd5b505af1158015610a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3d9190612979565b505b610a4a338383612009565b5050565b33610a616000546001600160a01b031690565b6001600160a01b031614610a875760405162461bcd60e51b815260040161091690612a98565b60006001600160a01b038216739fae2529863bd691b4a7171bdfcf33c7ebb10a651415610acb57600754600654610abe9190612b26565b6007546006559050610b45565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b158015610b0a57600080fd5b505afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4291906129af565b90505b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015610b8d57600080fd5b505af1158015610ba1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc59190612979565b50604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b60026001541415610c5f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610916565b60026001558082108015610c7557506009548111155b610cc15760405162461bcd60e51b815260206004820152601b60248201527f496e636f727265637420726f756e647320706172616d657465727300000000006044820152606401610916565b600c54600b5460009190845b84811015610ee95760008181526002602090815260408083206001600160a01b038b1684529091529020548015610e445760008281526002602081815260408084206001600160a01b038d1685529091529091200154610e4457600082815260036020526040812060018101549054610d47908490612b07565b610d519190612ae5565b905060006064610d618784612b07565b610d6b9190612ae5565b9050610d778183612b26565b610d819088612acd565b60008581526002602090815260408083206001600160a01b038f16845282528083206001018590558783526003909152902060050154909750610dc5908690612acd565b6002600086815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000206002018190555060006002600086815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000206000018190555050505b60008281526002602090815260408083206001600160a01b038c1684529091529020600101548015801590610e9c575060008381526002602081815260408084206001600160a01b038e168552909152909120015442115b15610ed457610eab8187612acd565b60008481526002602090815260408083206001600160a01b038e16845290915281206001015595505b50508080610ee190612b3d565b915050610ccd565b5060405163a9059cbb60e01b81526001600160a01b038716600482015260248101849052739fae2529863bd691b4a7171bdfcf33c7ebb10a659063a9059cbb90604401602060405180830381600087803b158015610f4657600080fd5b505af1158015610f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7e9190612979565b5050600180555050505050565b33610f9e6000546001600160a01b031690565b6001600160a01b031614610fc45760405162461bcd60e51b815260040161091690612a98565b6001600160a01b03811661101a5760405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f77656400000000000000006044820152606401610916565b60058054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f10f5824683d64a0712038f2244e046b174a1cc57fbb8556bfda5ffb2612440679060200160405180910390a150565b600954600c54600b546000928392909160015b838110156112c55760008181526002602090815260408083206001600160a01b038b16845290915290205480156111f15760008281526002602081815260408084206001600160a01b038d16855290915282200154908161116057600084815260036020526040812060018101549054611104908690612b07565b61110e9190612ae5565b9050606461111c8883612b07565b6111269190612ae5565b91506111328282612b26565b61113c908b612acd565b600086815260036020526040902060050154909a5061115c908790612acd565b9250505b428210156111ab5760008481526002602090815260408083206001600160a01b038e168452909152902060010154611198908a612acd565b98506111a4818a612acd565b98506111ea565b60008481526002602090815260408083206001600160a01b038e1684529091529020600101546111db9089612acd565b97506111e78189612acd565b97505b50506112b2565b60008281526002602090815260408083206001600160a01b038c168452909152902060010154156112b25760008281526002602081815260408084206001600160a01b038d168552909152909120015442111561127f5760008281526002602090815260408083206001600160a01b038c1684529091529020600101546112789088612acd565b96506112b2565b60008281526002602090815260408083206001600160a01b038c1684529091529020600101546112af9087612acd565b95505b50806112bd81612b3d565b915050611089565b50505050915091565b336112e16000546001600160a01b031690565b6001600160a01b0316146113075760405162461bcd60e51b815260040161091690612a98565b600e55565b3361131f6000546001600160a01b031690565b6001600160a01b0316146113455760405162461bcd60e51b815260040161091690612a98565b600c55565b3361135d6000546001600160a01b031690565b6001600160a01b0316146113835760405162461bcd60e51b815260040161091690612a98565b600a55565b3361139b6000546001600160a01b031690565b6001600160a01b0316146113c15760405162461bcd60e51b815260040161091690612a98565b600f55565b6060806060600080600060095490506001816113e29190612b26565b67ffffffffffffffff8111156113fa576113fa612b84565b604051908082528060200260200182016040528015611423578160200160208202803683370190505b509550611431600182612b26565b67ffffffffffffffff81111561144957611449612b84565b604051908082528060200260200182016040528015611472578160200160208202803683370190505b509450611480600182612b26565b67ffffffffffffffff81111561149857611498612b84565b6040519080825280602002602001820160405280156114c1578160200160208202803683370190505b50600c54600b549195509060015b8381101561190f5760008181526002602090815260408083206001600160a01b038e168452909152902054801561172e5760006002600084815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000206002015490506000816000141561167357600084815260036020526040812060018101549054611569908690612b07565b6115739190612ae5565b905060646115818883612b07565b61158b9190612ae5565b91506115978282612b26565b6115a1908b612acd565b600086815260036020526040902060050154909a506115c1908790612acd565b9250828c6115d0600188612b26565b815181106115e0576115e0612b6e565b6020908102919091010152818d6115f8600188612b26565b8151811061160857611608612b6e565b6020908102919091018101919091526000868152600390915260409020805460019091015461163f90670de0b6b3a7640000612b07565b6116499190612ae5565b8b611655600188612b26565b8151811061166557611665612b6e565b602002602001018181525050505b428210156116d3576002600085815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060010154896116c09190612acd565b98506116cc818a612acd565b9850611727565b6002600085815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060010154886117189190612acd565b97506117248189612acd565b97505b50506118fc565b60008281526002602090815260408083206001600160a01b038f168452909152902060010154156118fc576002600083815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002060020154896001846117a19190612b26565b815181106117b1576117b1612b6e565b60209081029190910181019190915260008381526002825260408082206001600160a01b038f16835290925220600190810154908b906117f19085612b26565b8151811061180157611801612b6e565b6020908102919091018101919091526000838152600390915260409020805460019091015461183890670de0b6b3a7640000612b07565b6118429190612ae5565b8861184e600185612b26565b8151811061185e5761185e612b6e565b60209081029190910101524289611876600185612b26565b8151811061188657611886612b6e565b602002602001015110156118ca57896118a0600184612b26565b815181106118b0576118b0612b6e565b6020026020010151876118c39190612acd565b96506118fc565b896118d6600184612b26565b815181106118e6576118e6612b6e565b6020026020010151866118f99190612acd565b95505b508061190781612b3d565b9150506114cf565b5050505091939590929450565b61192a336001600954610c0c565b565b3361193f6000546001600160a01b031690565b6001600160a01b0316146119655760405162461bcd60e51b815260040161091690612a98565b6009546000908152600360205260409020546007548190611987908490612acd565b6119919190612b26565b600781905560065410156119d65760405162461bcd60e51b815260206004820152600c60248201526b15dc9bdb99c8185b5bdd5b9d60a21b6044820152606401610916565b6009546000908152600360205260409020829055600e54600f5468056bc75e2d631000009190611a069085612b07565b611a109190612b07565b611a1a9190612ae5565b600954600090815260036020526040902060020155600d54600f5468056bc75e2d631000009190611a4b9085612b07565b611a559190612b07565b611a5f9190612ae5565b600954600090815260036020819052604090912001555050565b33611a8c6000546001600160a01b031690565b6001600160a01b031614611ab25760405162461bcd60e51b815260040161091690612a98565b600954811015611ac157600080fd5b600855565b33611ad96000546001600160a01b031690565b6001600160a01b031614611aff5760405162461bcd60e51b815260040161091690612a98565b600b55565b33611b176000546001600160a01b031690565b6001600160a01b031614611b3d5760405162461bcd60e51b815260040161091690612a98565b601055565b6000546001600160a01b031615611b915760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610916565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36301e13380600b55605a600d55600360105562015180600a5560a0600e556032600c5560b4600855565b611c08816001600954610c0c565b50565b33739fae2529863bd691b4a7171bdfcf33c7ebb10a65148015611c3b57506000546001600160a01b038581169116145b15611c5d578260066000828254611c529190612acd565b90915550611cbd9050565b3360009081526004602052604090205460ff16611cb25760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881a5cdb89dd08185b1b1bddd959606a1b6044820152606401610916565b611cbd843385612009565b50505050565b33611cd66000546001600160a01b031690565b6001600160a01b031614611cfc5760405162461bcd60e51b815260040161091690612a98565b6001600160a01b038216611d0f57600080fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b600954600081815260036020526040812060019081015492905b818111611d8157600081815260036020526040902060010154925080611d7981612b3d565b915050611d54565b50509091565b33611d9a6000546001600160a01b031690565b6001600160a01b031614611dc05760405162461bcd60e51b815260040161091690612a98565b60095415611e025760405162461bcd60e51b815260206004820152600f60248201526e4f6e6c79207374617274206f6e636560881b6044820152606401610916565b600654611e425760405162461bcd60e51b815260206004820152600e60248201526d139bc814d3d6481d1bc81cd95b1b60921b6044820152606401610916565b600f81905560008052600360205269063ec042bd9bc2fbc1037f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff55610a4a8261226b565b33611e996000546001600160a01b031690565b6001600160a01b031614611ebf5760405162461bcd60e51b815260040161091690612a98565b6005805460ff1916911515919091179055565b33611ee56000546001600160a01b031690565b6001600160a01b031614611f0b5760405162461bcd60e51b815260040161091690612a98565b600d55565b33611f236000546001600160a01b031690565b6001600160a01b031614611f495760405162461bcd60e51b815260040161091690612a98565b6001600160a01b038116611fae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610916565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60055460ff16156120455760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610916565b600260015414156120985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610916565b60026001556120a561244f565b156120ba576120b58282856125fe565b612262565b60095460006120c8846126c8565b6000838152600360209081526040808320600283528184206001600160a01b038b16855290925282209293509190670de0b6b3a76400006121098588612b07565b6121139190612ae5565b83600101546121229190612acd565b9050826002015481106121a45760008360020154826121419190612b26565b90508461215682670de0b6b3a7640000612b07565b6121609190612ae5565b90508681111561216d5750855b600284015460018501556121818188612b26565b965061218c4261275c565b50801561219e5761219e88828b6125fe565b506121ac565b600183018190555b6000670de0b6b3a76400006121c18689612b07565b6121cb9190612ae5565b9050808360000160008282546121e19190612acd565b9091555050600554612204908990899061010090046001600160a01b03166125fe565b876001600160a01b0316896001600160a01b0316877f6474f1bb997bda2619fcace4051842a3232e75c34ea64c058221f1718e2aa990848b604051612253929190918252602082015260400190565b60405180910390a45050505050505b50506001805550565b6009805490600061227b83612b3d565b919050555060085460095411156122cb5760405162461bcd60e51b8152602060048201526014602482015273105b1b081c9bdd5b991cc818dbdb5c1b195d195960621b6044820152606401610916565b600954600090815260036020526040902060048101829055600a546122f09083612acd565b6005820155600a5460009062015180141561238157670de0b6b3a7640000670e1df0928867de0060036000600160095461232a9190612b26565b8152602001908152602001600020600001546123469190612b07565b6123509190612ae5565b9050806007546006546123639190612b26565b101561237c576007546006546123799190612b26565b90505b6123c0565b600060095460085460016123959190612acd565b61239f9190612b26565b9050806007546006546123b29190612b26565b6123bc9190612ae5565b9150505b808255600780548291906000906123d8908490612acd565b9091555050600e54600f5468056bc75e2d6310000091906123f99084612b07565b6124039190612b07565b61240d9190612ae5565b6002830155600d54600f5468056bc75e2d63100000919061242e9084612b07565b6124389190612b07565b6124429190612ae5565b8260030181905550505050565b600954600090815260036020526040812060048101544210156124b45760405162461bcd60e51b815260206004820152601a60248201527f41756374696f6e206973206e6f742073746172746564207965740000000000006044820152606401610916565b60085460095411156124fe5760405162461bcd60e51b8152602060048201526013602482015272105d58dd1a5bdb881a5cc8199a5b9a5cda1959606a1b6044820152606401610916565b805461253d5760405162461bcd60e51b815260206004820152600e60248201526d139bc814d3d6481d1bc81cd95b1b60921b6044820152606401610916565b428160050154116125fa578060030154816001015410156125ea576000600a5482600401544261256d9190612b26565b6125779190612ae5565b90506010548110156125b457600a54612591826001612acd565b61259b9190612b07565b82600401546125aa9190612acd565b6005830155505090565b600a546010546125c49190612b07565b82600401546125d39190612acd565b600583018190556125e39061275c565b9250505090565b6125f7816005015461275c565b91505b5090565b6001600160a01b03831660011415612646576040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611cbd573d6000803e3d6000fd5b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb90604401602060405180830381600087803b15801561269057600080fd5b505af11580156126a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbd9190612979565b6040516341976e0960e01b81526001600160a01b0382166004820152600090739bfc3046ea26f8b09d3e85bd22aec96c80d957e3906341976e099060240160206040518083038186803b15801561271e57600080fd5b505afa158015612732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275691906129af565b92915050565b60095460009081526003602052604081208054600182015461278690670de0b6b3a7640000612b07565b6127909190612ae5565b600f55600954815460018301546040517fda434ed10dd96aabd2bd460ecb942c9ff048dc71c68baf0a5e94e8ddbeb603b8926127d492908252602082015260400190565b60405180910390a2600854600954141561280657600980549060006127f883612b3d565b91905055506001915061280f565b61280f8361226b565b50919050565b60006020828403121561282757600080fd5b813561283281612b9a565b9392505050565b6000806040838503121561284c57600080fd5b823561285781612b9a565b9150602083013561286781612baf565b809150509250929050565b6000806040838503121561288557600080fd5b823561289081612b9a565b946020939093013593505050565b600080600080606085870312156128b457600080fd5b84356128bf81612b9a565b935060208501359250604085013567ffffffffffffffff808211156128e357600080fd5b818701915087601f8301126128f757600080fd5b81358181111561290657600080fd5b88602082850101111561291857600080fd5b95989497505060200194505050565b60008060006060848603121561293c57600080fd5b833561294781612b9a565b95602085013595506040909401359392505050565b60006020828403121561296e57600080fd5b813561283281612baf565b60006020828403121561298b57600080fd5b815161283281612baf565b6000602082840312156129a857600080fd5b5035919050565b6000602082840312156129c157600080fd5b5051919050565b600080604083850312156129db57600080fd5b82359150602083013561286781612b9a565b60008060408385031215612a0057600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612a3f57815187529582019590820190600101612a23565b509495945050505050565b60a081526000612a5d60a0830188612a0f565b8281036020840152612a6f8188612a0f565b90508281036040840152612a838187612a0f565b60608401959095525050608001529392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115612ae057612ae0612b58565b500190565b600082612b0257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612b2157612b21612b58565b500290565b600082821015612b3857612b38612b58565b500390565b6000600019821415612b5157612b51612b58565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c0857600080fd5b8015158114611c0857600080fdfea264697066735822122043c8686c4f43e18330b207448fdcbbf7d6b2da831067e760320ac52719284d0864736f6c63430008070033
Deployed ByteCode
0x6080604052600436106102755760003560e01c8063741bef1a1161014f5780639cbe5efd116100c1578063c59cb9f41161007a578063c59cb9f4146107dc578063debb1143146107fc578063f2fde38b14610812578063f644b3bb14610832578063f7cb789a14610890578063fe1cdb23146108a657600080fd5b80639cbe5efd146106d25780639f3713b7146106e8578063a85f4e81146106fe578063ab28693414610782578063b187bd26146107a2578063bedb86fb146107bc57600080fd5b80638129fc1c116101135780638129fc1c1461062a578063889014961461063f5780638943ec021461065f5780638aaa22841461067f5780638c7a529f1461069f5780638da5cb5b146106b457600080fd5b8063741bef1a1461055d578063756742f81461058557806376cdb03b146105c5578063779972da146105ea5780637cd428421461060a57600080fd5b80633b50261f116101e85780634ef6aa71116101ac5780634ef6aa71146104955780635113aea9146104d557806351bddee8146104f557806359e741d21461050b5780635f26e73e14610527578063601ce32d1461054757600080fd5b80633b50261f146104065780633fd8b02f14610419578063443e52041461042f5780634a48c84b1461044f5780634e71d92d1461048057600080fd5b806320f634b51161023a57806320f634b51461032b5780632155e43e14610360578063226125a8146103805780632fc10aaf146103a0578063356442b9146103d057806336c92c3f146103e657600080fd5b8062ae3bf81461028c578063073caa3c146102ac578063090d23b9146102cc57806311a9dd3b146102ec5780631cd275511461031557600080fd5b36610287576102856001346108bc565b005b600080fd5b34801561029857600080fd5b506102856102a7366004612815565b610a4e565b3480156102b857600080fd5b506102856102c7366004612927565b610c0c565b3480156102d857600080fd5b506102856102e7366004612815565b610f8b565b3480156102f857600080fd5b50610302600d5481565b6040519081526020015b60405180910390f35b34801561032157600080fd5b5061030260065481565b34801561033757600080fd5b5061034b610346366004612815565b611076565b6040805192835260208301919091520161030c565b34801561036c57600080fd5b5061028561037b366004612996565b6112ce565b34801561038c57600080fd5b5061028561039b366004612996565b61130c565b3480156103ac57600080fd5b506103026103bb366004612996565b60009081526003602052604090206001015490565b3480156103dc57600080fd5b50610302600c5481565b3480156103f257600080fd5b50610285610401366004612996565b61134a565b610285610414366004612872565b6108bc565b34801561042557600080fd5b50610302600b5481565b34801561043b57600080fd5b5061028561044a366004612996565b611388565b34801561045b57600080fd5b5061046f61046a366004612815565b6113c6565b60405161030c959493929190612a4a565b34801561048c57600080fd5b5061028561191c565b3480156104a157600080fd5b506104bd739fae2529863bd691b4a7171bdfcf33c7ebb10a6581565b6040516001600160a01b03909116815260200161030c565b3480156104e157600080fd5b506102856104f0366004612996565b61192c565b34801561050157600080fd5b50610302600e5481565b34801561051757600080fd5b50610302670e1df0928867de0081565b34801561053357600080fd5b50610285610542366004612996565b611a79565b34801561055357600080fd5b50610302600f5481565b34801561056957600080fd5b506104bd739bfc3046ea26f8b09d3e85bd22aec96c80d957e381565b34801561059157600080fd5b506105b56105a0366004612815565b60046020526000908152604090205460ff1681565b604051901515815260200161030c565b3480156105d157600080fd5b506005546104bd9061010090046001600160a01b031681565b3480156105f657600080fd5b50610285610605366004612996565b611ac6565b34801561061657600080fd5b50610285610625366004612996565b611b04565b34801561063657600080fd5b50610285611b42565b34801561064b57600080fd5b5061028561065a366004612815565b611bfa565b34801561066b57600080fd5b5061028561067a36600461289e565b611c0b565b34801561068b57600080fd5b5061028561069a366004612839565b611cc3565b3480156106ab57600080fd5b5061034b611d3a565b3480156106c057600080fd5b506000546001600160a01b03166104bd565b3480156106de57600080fd5b5061030260095481565b3480156106f457600080fd5b5061030260075481565b34801561070a57600080fd5b50610755610719366004612996565b60036020528060005260406000206000915090508060000154908060010154908060020154908060030154908060040154908060050154905086565b604080519687526020870195909552938501929092526060840152608083015260a082015260c00161030c565b34801561078e57600080fd5b5061028561079d3660046129ed565b611d87565b3480156107ae57600080fd5b506005546105b59060ff1681565b3480156107c857600080fd5b506102856107d736600461295c565b611e86565b3480156107e857600080fd5b506102856107f7366004612996565b611ed2565b34801561080857600080fd5b5061030260085481565b34801561081e57600080fd5b5061028561082d366004612815565b611f10565b34801561083e57600080fd5b5061087561084d3660046129c8565b6002602081815260009384526040808520909152918352912080546001820154919092015483565b6040805193845260208401929092529082015260600161030c565b34801561089c57600080fd5b50610302600a5481565b3480156108b257600080fd5b5061030260105481565b6001600160a01b03821660009081526004602052604090205460ff1661091f5760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881a5cdb89dd08185b1b1bddd959606a1b60448201526064015b60405180910390fd5b6001600160a01b0382166001141561097c573481146109775760405162461bcd60e51b8152602060048201526014602482015273125b98dbdc9c9958dd0810d313c8185b5bdd5b9d60621b6044820152606401610916565b610a3f565b34156109b75760405162461bcd60e51b815260206004820152600a60248201526927b7363c903a37b5b2b760b11b6044820152606401610916565b6040516323b872dd60e01b8152336004820152306024820152604481018290526001600160a01b038316906323b872dd90606401602060405180830381600087803b158015610a0557600080fd5b505af1158015610a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a3d9190612979565b505b610a4a338383612009565b5050565b33610a616000546001600160a01b031690565b6001600160a01b031614610a875760405162461bcd60e51b815260040161091690612a98565b60006001600160a01b038216739fae2529863bd691b4a7171bdfcf33c7ebb10a651415610acb57600754600654610abe9190612b26565b6007546006559050610b45565b6040516370a0823160e01b81523060048201526001600160a01b038316906370a082319060240160206040518083038186803b158015610b0a57600080fd5b505afa158015610b1e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b4291906129af565b90505b60405163a9059cbb60e01b8152336004820152602481018290526001600160a01b0383169063a9059cbb90604401602060405180830381600087803b158015610b8d57600080fd5b505af1158015610ba1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc59190612979565b50604080516001600160a01b0384168152602081018390527f542fa6bfee3b4746210fbdd1d83f9e49b65adde3639f8d8f165dd18347938af2910160405180910390a15050565b60026001541415610c5f5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610916565b60026001558082108015610c7557506009548111155b610cc15760405162461bcd60e51b815260206004820152601b60248201527f496e636f727265637420726f756e647320706172616d657465727300000000006044820152606401610916565b600c54600b5460009190845b84811015610ee95760008181526002602090815260408083206001600160a01b038b1684529091529020548015610e445760008281526002602081815260408084206001600160a01b038d1685529091529091200154610e4457600082815260036020526040812060018101549054610d47908490612b07565b610d519190612ae5565b905060006064610d618784612b07565b610d6b9190612ae5565b9050610d778183612b26565b610d819088612acd565b60008581526002602090815260408083206001600160a01b038f16845282528083206001018590558783526003909152902060050154909750610dc5908690612acd565b6002600086815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000206002018190555060006002600086815260200190815260200160002060008c6001600160a01b03166001600160a01b031681526020019081526020016000206000018190555050505b60008281526002602090815260408083206001600160a01b038c1684529091529020600101548015801590610e9c575060008381526002602081815260408084206001600160a01b038e168552909152909120015442115b15610ed457610eab8187612acd565b60008481526002602090815260408083206001600160a01b038e16845290915281206001015595505b50508080610ee190612b3d565b915050610ccd565b5060405163a9059cbb60e01b81526001600160a01b038716600482015260248101849052739fae2529863bd691b4a7171bdfcf33c7ebb10a659063a9059cbb90604401602060405180830381600087803b158015610f4657600080fd5b505af1158015610f5a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f7e9190612979565b5050600180555050505050565b33610f9e6000546001600160a01b031690565b6001600160a01b031614610fc45760405162461bcd60e51b815260040161091690612a98565b6001600160a01b03811661101a5760405162461bcd60e51b815260206004820152601860248201527f5a65726f2061646472657373206e6f7420616c6c6f77656400000000000000006044820152606401610916565b60058054610100600160a81b0319166101006001600160a01b038416908102919091179091556040519081527f10f5824683d64a0712038f2244e046b174a1cc57fbb8556bfda5ffb2612440679060200160405180910390a150565b600954600c54600b546000928392909160015b838110156112c55760008181526002602090815260408083206001600160a01b038b16845290915290205480156111f15760008281526002602081815260408084206001600160a01b038d16855290915282200154908161116057600084815260036020526040812060018101549054611104908690612b07565b61110e9190612ae5565b9050606461111c8883612b07565b6111269190612ae5565b91506111328282612b26565b61113c908b612acd565b600086815260036020526040902060050154909a5061115c908790612acd565b9250505b428210156111ab5760008481526002602090815260408083206001600160a01b038e168452909152902060010154611198908a612acd565b98506111a4818a612acd565b98506111ea565b60008481526002602090815260408083206001600160a01b038e1684529091529020600101546111db9089612acd565b97506111e78189612acd565b97505b50506112b2565b60008281526002602090815260408083206001600160a01b038c168452909152902060010154156112b25760008281526002602081815260408084206001600160a01b038d168552909152909120015442111561127f5760008281526002602090815260408083206001600160a01b038c1684529091529020600101546112789088612acd565b96506112b2565b60008281526002602090815260408083206001600160a01b038c1684529091529020600101546112af9087612acd565b95505b50806112bd81612b3d565b915050611089565b50505050915091565b336112e16000546001600160a01b031690565b6001600160a01b0316146113075760405162461bcd60e51b815260040161091690612a98565b600e55565b3361131f6000546001600160a01b031690565b6001600160a01b0316146113455760405162461bcd60e51b815260040161091690612a98565b600c55565b3361135d6000546001600160a01b031690565b6001600160a01b0316146113835760405162461bcd60e51b815260040161091690612a98565b600a55565b3361139b6000546001600160a01b031690565b6001600160a01b0316146113c15760405162461bcd60e51b815260040161091690612a98565b600f55565b6060806060600080600060095490506001816113e29190612b26565b67ffffffffffffffff8111156113fa576113fa612b84565b604051908082528060200260200182016040528015611423578160200160208202803683370190505b509550611431600182612b26565b67ffffffffffffffff81111561144957611449612b84565b604051908082528060200260200182016040528015611472578160200160208202803683370190505b509450611480600182612b26565b67ffffffffffffffff81111561149857611498612b84565b6040519080825280602002602001820160405280156114c1578160200160208202803683370190505b50600c54600b549195509060015b8381101561190f5760008181526002602090815260408083206001600160a01b038e168452909152902054801561172e5760006002600084815260200190815260200160002060008d6001600160a01b03166001600160a01b031681526020019081526020016000206002015490506000816000141561167357600084815260036020526040812060018101549054611569908690612b07565b6115739190612ae5565b905060646115818883612b07565b61158b9190612ae5565b91506115978282612b26565b6115a1908b612acd565b600086815260036020526040902060050154909a506115c1908790612acd565b9250828c6115d0600188612b26565b815181106115e0576115e0612b6e565b6020908102919091010152818d6115f8600188612b26565b8151811061160857611608612b6e565b6020908102919091018101919091526000868152600390915260409020805460019091015461163f90670de0b6b3a7640000612b07565b6116499190612ae5565b8b611655600188612b26565b8151811061166557611665612b6e565b602002602001018181525050505b428210156116d3576002600085815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060010154896116c09190612acd565b98506116cc818a612acd565b9850611727565b6002600085815260200190815260200160002060008e6001600160a01b03166001600160a01b0316815260200190815260200160002060010154886117189190612acd565b97506117248189612acd565b97505b50506118fc565b60008281526002602090815260408083206001600160a01b038f168452909152902060010154156118fc576002600083815260200190815260200160002060008c6001600160a01b03166001600160a01b0316815260200190815260200160002060020154896001846117a19190612b26565b815181106117b1576117b1612b6e565b60209081029190910181019190915260008381526002825260408082206001600160a01b038f16835290925220600190810154908b906117f19085612b26565b8151811061180157611801612b6e565b6020908102919091018101919091526000838152600390915260409020805460019091015461183890670de0b6b3a7640000612b07565b6118429190612ae5565b8861184e600185612b26565b8151811061185e5761185e612b6e565b60209081029190910101524289611876600185612b26565b8151811061188657611886612b6e565b602002602001015110156118ca57896118a0600184612b26565b815181106118b0576118b0612b6e565b6020026020010151876118c39190612acd565b96506118fc565b896118d6600184612b26565b815181106118e6576118e6612b6e565b6020026020010151866118f99190612acd565b95505b508061190781612b3d565b9150506114cf565b5050505091939590929450565b61192a336001600954610c0c565b565b3361193f6000546001600160a01b031690565b6001600160a01b0316146119655760405162461bcd60e51b815260040161091690612a98565b6009546000908152600360205260409020546007548190611987908490612acd565b6119919190612b26565b600781905560065410156119d65760405162461bcd60e51b815260206004820152600c60248201526b15dc9bdb99c8185b5bdd5b9d60a21b6044820152606401610916565b6009546000908152600360205260409020829055600e54600f5468056bc75e2d631000009190611a069085612b07565b611a109190612b07565b611a1a9190612ae5565b600954600090815260036020526040902060020155600d54600f5468056bc75e2d631000009190611a4b9085612b07565b611a559190612b07565b611a5f9190612ae5565b600954600090815260036020819052604090912001555050565b33611a8c6000546001600160a01b031690565b6001600160a01b031614611ab25760405162461bcd60e51b815260040161091690612a98565b600954811015611ac157600080fd5b600855565b33611ad96000546001600160a01b031690565b6001600160a01b031614611aff5760405162461bcd60e51b815260040161091690612a98565b600b55565b33611b176000546001600160a01b031690565b6001600160a01b031614611b3d5760405162461bcd60e51b815260040161091690612a98565b601055565b6000546001600160a01b031615611b915760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b6044820152606401610916565b600080546001600160a01b0319163390811782556040519091907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a36301e13380600b55605a600d55600360105562015180600a5560a0600e556032600c5560b4600855565b611c08816001600954610c0c565b50565b33739fae2529863bd691b4a7171bdfcf33c7ebb10a65148015611c3b57506000546001600160a01b038581169116145b15611c5d578260066000828254611c529190612acd565b90915550611cbd9050565b3360009081526004602052604090205460ff16611cb25760405162461bcd60e51b8152602060048201526013602482015272151bdad95b881a5cdb89dd08185b1b1bddd959606a1b6044820152606401610916565b611cbd843385612009565b50505050565b33611cd66000546001600160a01b031690565b6001600160a01b031614611cfc5760405162461bcd60e51b815260040161091690612a98565b6001600160a01b038216611d0f57600080fd5b6001600160a01b03919091166000908152600460205260409020805460ff1916911515919091179055565b600954600081815260036020526040812060019081015492905b818111611d8157600081815260036020526040902060010154925080611d7981612b3d565b915050611d54565b50509091565b33611d9a6000546001600160a01b031690565b6001600160a01b031614611dc05760405162461bcd60e51b815260040161091690612a98565b60095415611e025760405162461bcd60e51b815260206004820152600f60248201526e4f6e6c79207374617274206f6e636560881b6044820152606401610916565b600654611e425760405162461bcd60e51b815260206004820152600e60248201526d139bc814d3d6481d1bc81cd95b1b60921b6044820152606401610916565b600f81905560008052600360205269063ec042bd9bc2fbc1037f3617319a054d772f909f7c479a2cebe5066e836a939412e32403c99029b92eff55610a4a8261226b565b33611e996000546001600160a01b031690565b6001600160a01b031614611ebf5760405162461bcd60e51b815260040161091690612a98565b6005805460ff1916911515919091179055565b33611ee56000546001600160a01b031690565b6001600160a01b031614611f0b5760405162461bcd60e51b815260040161091690612a98565b600d55565b33611f236000546001600160a01b031690565b6001600160a01b031614611f495760405162461bcd60e51b815260040161091690612a98565b6001600160a01b038116611fae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610916565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60055460ff16156120455760405162461bcd60e51b815260206004820152600660248201526514185d5cd95960d21b6044820152606401610916565b600260015414156120985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610916565b60026001556120a561244f565b156120ba576120b58282856125fe565b612262565b60095460006120c8846126c8565b6000838152600360209081526040808320600283528184206001600160a01b038b16855290925282209293509190670de0b6b3a76400006121098588612b07565b6121139190612ae5565b83600101546121229190612acd565b9050826002015481106121a45760008360020154826121419190612b26565b90508461215682670de0b6b3a7640000612b07565b6121609190612ae5565b90508681111561216d5750855b600284015460018501556121818188612b26565b965061218c4261275c565b50801561219e5761219e88828b6125fe565b506121ac565b600183018190555b6000670de0b6b3a76400006121c18689612b07565b6121cb9190612ae5565b9050808360000160008282546121e19190612acd565b9091555050600554612204908990899061010090046001600160a01b03166125fe565b876001600160a01b0316896001600160a01b0316877f6474f1bb997bda2619fcace4051842a3232e75c34ea64c058221f1718e2aa990848b604051612253929190918252602082015260400190565b60405180910390a45050505050505b50506001805550565b6009805490600061227b83612b3d565b919050555060085460095411156122cb5760405162461bcd60e51b8152602060048201526014602482015273105b1b081c9bdd5b991cc818dbdb5c1b195d195960621b6044820152606401610916565b600954600090815260036020526040902060048101829055600a546122f09083612acd565b6005820155600a5460009062015180141561238157670de0b6b3a7640000670e1df0928867de0060036000600160095461232a9190612b26565b8152602001908152602001600020600001546123469190612b07565b6123509190612ae5565b9050806007546006546123639190612b26565b101561237c576007546006546123799190612b26565b90505b6123c0565b600060095460085460016123959190612acd565b61239f9190612b26565b9050806007546006546123b29190612b26565b6123bc9190612ae5565b9150505b808255600780548291906000906123d8908490612acd565b9091555050600e54600f5468056bc75e2d6310000091906123f99084612b07565b6124039190612b07565b61240d9190612ae5565b6002830155600d54600f5468056bc75e2d63100000919061242e9084612b07565b6124389190612b07565b6124429190612ae5565b8260030181905550505050565b600954600090815260036020526040812060048101544210156124b45760405162461bcd60e51b815260206004820152601a60248201527f41756374696f6e206973206e6f742073746172746564207965740000000000006044820152606401610916565b60085460095411156124fe5760405162461bcd60e51b8152602060048201526013602482015272105d58dd1a5bdb881a5cc8199a5b9a5cda1959606a1b6044820152606401610916565b805461253d5760405162461bcd60e51b815260206004820152600e60248201526d139bc814d3d6481d1bc81cd95b1b60921b6044820152606401610916565b428160050154116125fa578060030154816001015410156125ea576000600a5482600401544261256d9190612b26565b6125779190612ae5565b90506010548110156125b457600a54612591826001612acd565b61259b9190612b07565b82600401546125aa9190612acd565b6005830155505090565b600a546010546125c49190612b07565b82600401546125d39190612acd565b600583018190556125e39061275c565b9250505090565b6125f7816005015461275c565b91505b5090565b6001600160a01b03831660011415612646576040516001600160a01b0382169083156108fc029084906000818181858888f19350505050158015611cbd573d6000803e3d6000fd5b60405163a9059cbb60e01b81526001600160a01b0382811660048301526024820184905284169063a9059cbb90604401602060405180830381600087803b15801561269057600080fd5b505af11580156126a4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cbd9190612979565b6040516341976e0960e01b81526001600160a01b0382166004820152600090739bfc3046ea26f8b09d3e85bd22aec96c80d957e3906341976e099060240160206040518083038186803b15801561271e57600080fd5b505afa158015612732573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061275691906129af565b92915050565b60095460009081526003602052604081208054600182015461278690670de0b6b3a7640000612b07565b6127909190612ae5565b600f55600954815460018301546040517fda434ed10dd96aabd2bd460ecb942c9ff048dc71c68baf0a5e94e8ddbeb603b8926127d492908252602082015260400190565b60405180910390a2600854600954141561280657600980549060006127f883612b3d565b91905055506001915061280f565b61280f8361226b565b50919050565b60006020828403121561282757600080fd5b813561283281612b9a565b9392505050565b6000806040838503121561284c57600080fd5b823561285781612b9a565b9150602083013561286781612baf565b809150509250929050565b6000806040838503121561288557600080fd5b823561289081612b9a565b946020939093013593505050565b600080600080606085870312156128b457600080fd5b84356128bf81612b9a565b935060208501359250604085013567ffffffffffffffff808211156128e357600080fd5b818701915087601f8301126128f757600080fd5b81358181111561290657600080fd5b88602082850101111561291857600080fd5b95989497505060200194505050565b60008060006060848603121561293c57600080fd5b833561294781612b9a565b95602085013595506040909401359392505050565b60006020828403121561296e57600080fd5b813561283281612baf565b60006020828403121561298b57600080fd5b815161283281612baf565b6000602082840312156129a857600080fd5b5035919050565b6000602082840312156129c157600080fd5b5051919050565b600080604083850312156129db57600080fd5b82359150602083013561286781612b9a565b60008060408385031215612a0057600080fd5b50508035926020909101359150565b600081518084526020808501945080840160005b83811015612a3f57815187529582019590820190600101612a23565b509495945050505050565b60a081526000612a5d60a0830188612a0f565b8281036020840152612a6f8188612a0f565b90508281036040840152612a838187612a0f565b60608401959095525050608001529392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115612ae057612ae0612b58565b500190565b600082612b0257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615612b2157612b21612b58565b500290565b600082821015612b3857612b38612b58565b500390565b6000600019821415612b5157612b51612b58565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114611c0857600080fd5b8015158114611c0857600080fdfea264697066735822122043c8686c4f43e18330b207448fdcbbf7d6b2da831067e760320ac52719284d0864736f6c63430008070033