Contract

0xdc31DBbC2E32f9D74A8F5f3F189721F546F41399

Overview
0.0000 Trust Bitcoin
$0.0000
More Info
 
Contract Source Code (Solidity Standard Json-Input format)

File 1 of 6 : Address.sol

pragma solidity ^0.8.1; // SPDX-License-Identifier: MIT library Address { function isContract(address account) internal view returns (bool) { return account.code.length > 0; } function sendValue(address payable recipient, uint256 amount) internal { require(address(this).balance >= amount, "Address: insufficient balance"); (bool success, ) = recipient.call{value: amount}(""); require(success, "Address: unable to send value, recipient may have reverted"); } function functionCall(address target, bytes memory data) internal returns (bytes memory) { return functionCall(target, data, "Address: low-level call failed"); } function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { return functionCallWithValue(target, data, 0, errorMessage); } function functionCallWithValue(address target, bytes memory data, uint256 value ) internal returns (bytes memory) { return functionCallWithValue(target, data, value, "Address: low-level call with value failed"); } function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) { require(address(this).balance >= value, "Address: insufficient balance for call"); require(isContract(target), "Address: call to non-contract"); (bool success, bytes memory returndata) = target.call{value: value}(data); return verifyCallResult(success, returndata, errorMessage); } function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) { return functionStaticCall(target, data, "Address: low-level static call failed"); } function functionStaticCall(address target, bytes memory data, string memory errorMessage) internal view returns (bytes memory) { require(isContract(target), "Address: static call to non-contract"); (bool success, bytes memory returndata) = target.staticcall(data); return verifyCallResult(success, returndata, errorMessage); } function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) { return functionDelegateCall(target, data, "Address: low-level delegate call failed"); } function functionDelegateCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) { require(isContract(target), "Address: delegate call to non-contract"); (bool success, bytes memory returndata) = target.delegatecall(data); return verifyCallResult(success, returndata, errorMessage); } function verifyCallResult( bool success, bytes memory returndata, string memory errorMessage ) internal pure returns (bytes memory) { if (success) { return returndata; } else { if (returndata.length > 0) { assembly { let returndata_size := mload(returndata) revert(add(32, returndata), returndata_size) } } else { revert(errorMessage); } } } }

File 2 of 6 : Context.sol

pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT abstract contract Context { function _msgSender() internal view virtual returns (address) { return msg.sender; } function _msgData() internal view virtual returns (bytes calldata) { return msg.data; } }

File 3 of 6 : IERC20.sol

pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT interface IERC20 { event Transfer(address indexed from, address indexed to, uint256 value); event Approval(address indexed owner, address indexed spender, uint256 value); function totalSupply() external view returns (uint256); function balanceOf(address account) external view returns (uint256); function transfer(address to, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(address spender, uint256 amount) external returns (bool); function transferFrom(address from, address to, uint256 amount) external returns (bool); }

File 4 of 6 : InvestmentPlan.sol

pragma solidity 0.8.10; // SPDX-License-Identifier: MIT import "./SafeERC20.sol"; import "./Ownable.sol"; interface IReferrals { function addMember(address investor, address sponsor) external; function getSponsor(address investor) external view returns (address); function getTeam(address sponsor, uint256 level) external view returns (uint256); } interface IVersion { function mapUserInfo(address investor) external view returns(uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, uint256, bool); function totalBusiness(address investor) external view returns (uint256); function workingBonus(address investor) external view returns (uint256); function monthlySale(address investor, uint256 months) external view returns (uint256); function positionWiseTBC(uint256 stage, uint256 position) external view returns (uint256); function positionWiseWallet(uint256 stage, uint256 position) external view returns (address); function stageWiseUserTBC(uint256 stage, address investor) external view returns (uint256); function stageWiseAvailableTBC(uint256 stage) external view returns (uint256); function stageWiseCurrentSellPosition(uint256 stage) external view returns (uint256); function statusPerStage(uint256 stage) external view returns (bool); } contract InvestmentPlan is Ownable { using SafeERC20 for IERC20; address public TUSD; address public FundWallet; address public TreasuryWallet; IReferrals public Referrals; IVersion private V1; struct UserInfo { uint256 investedAmount; uint256 levelIncome; uint256 foreignTour; uint256 monthlyReward; uint256 workingBonus; uint256 royaltyBonus; uint256 receivedFromSale; uint256 extraBonus; uint256 claimedAmount; uint256 claimedTBC; bool royalty; } struct TBCHoldingInfo { uint256 totalTBC; uint256 claimedTBC; } uint256 public royaltyIncentive; uint256 public nextRewardDrain; uint256 public workingBonusLoop; uint256 public monthlyBonusLoop; bool public saleEnable; uint256[10] public referralBonus = [500, 300, 200, 100, 100, 50, 50, 50, 50, 50]; uint256[10] public teamRequiredForBonus = [0, 3, 3, 3, 3, 3, 3, 3, 3, 3]; uint256[6] public investmentPackages = [100 * 10**18, 500 * 10**18, 1000 * 10**18, 2500 * 10**18, 5000 * 10**18, 10000 * 10**18]; uint256[5] public pricePerStage = [1 * 10**18, 10 * 10**18, 100 * 10**18, 1000 * 10**18, 10000 * 10**18]; uint256[6] public stageWiseAvailableTBC = [2500000 * 10**18, 2500000 * 10**18, 5000000 * 10**18, 5000000 * 10**18, 5000000 * 10**18]; uint256[6] public stageWiseCurrentSellPosition = [0, 0, 0, 0, 0, 0]; uint256[6] public incentivePerStage = [0, 4000, 4000, 5000, 5000, 5000]; bool[6] public statusPerStage; mapping(address => TBCHoldingInfo) public mapTBCHoldingInfo; mapping(address => UserInfo) public mapUserInfo; mapping(address => uint256) public totalBusiness; mapping(address => uint256) public workingBonus; mapping(address => mapping(uint256 => uint256)) public monthlyPurchase; mapping(address => mapping(uint256 => uint256)) public monthlySale; mapping(address => mapping(uint256 => uint256)) public monthlySaleClaimed; mapping(uint256 => uint256[]) public positionWiseTBC; mapping(uint256 => address[]) public positionWiseWallet; mapping(uint256 => mapping(address => uint256)) public stageWiseUserTBC; mapping(uint256 => mapping(address => uint256[])) public stageWiseUserPosition; mapping(address => address) public mapNewAddress; constructor(address TUSDAddress, address fundWallet, address treasuryWallet, address VIAddress) { require(TUSDAddress != address(0) && fundWallet != address(0) && treasuryWallet != address(0), "Zero address"); royaltyIncentive = 1000; nextRewardDrain = 1729974532; workingBonusLoop = 512; monthlyBonusLoop = 512; TUSD = address(TUSDAddress); FundWallet = address(fundWallet); TreasuryWallet = address(treasuryWallet); V1 = IVersion(VIAddress); } function buy(uint256 packages, uint256 buyStage, address investor, address sponsor, address communitySeller, uint256 stage2Share, uint256 stage3Share, uint256 stage4Share, uint256 stage5Share, uint256 stage6Share, uint256 holding) external { require(sponsor != address(0), "Zero address"); require(address(Referrals) != address(0), "Referral address not added yet"); require(packages < investmentPackages.length, "Investment packages is not correct"); require(IERC20(TUSD).balanceOf(msg.sender) >= investmentPackages[packages], "TUSD balance not available for investment"); require(address(sponsor) != address(investor), "Investor and sponsor can't be same wallet"); if(!saleEnable) { saleEnable = true; } uint256 investmentAmount = investmentPackages[packages]; IERC20(TUSD).safeTransferFrom(address(msg.sender), address(this), investmentAmount); if(address(Referrals.getSponsor(address(investor))) == address(0)) { require(mapUserInfo[address(sponsor)].investedAmount > 0, "Sponsor is not correct"); Referrals.addMember(address(investor), address(sponsor)); } sponsor = address(Referrals.getSponsor(address(investor))); uint256 totalTBC = (investmentAmount * 10**18) / (pricePerStage[buyStage]); require(statusPerStage[buyStage], "Stage is not active yet"); require(stageWiseAvailableTBC[buyStage] >= totalTBC, "TBC not available for sale"); if(buyStage == 0) { require(stage2Share + stage3Share + stage4Share + stage5Share + stage6Share + holding == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), stage2Share, stage3Share, stage4Share, stage5Share, stage6Share); } else if(buyStage == 1) { require(stage3Share + stage4Share + stage5Share + stage6Share + holding == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, stage3Share, stage4Share, stage5Share, stage6Share); } else if(buyStage == 2) { require(stage4Share + stage5Share + stage6Share + holding == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, 0, stage4Share, stage5Share, stage6Share); } else if(buyStage == 3) { require(stage5Share + stage6Share + holding == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, 0, 0, stage5Share, stage6Share); } else { require(stage6Share + holding == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, 0, 0, 0, stage6Share); } if(buyStage > 0) { updateStageWiseSell(address(communitySeller), buyStage, totalTBC); } if(block.timestamp >= nextRewardDrain) { nextRewardDrain += 30 days; } stageWiseAvailableTBC[buyStage] -= totalTBC; uint256 minimumTBCRequired = (investmentPackages[0] * 10**18) / (pricePerStage[buyStage]); if(minimumTBCRequired > stageWiseAvailableTBC[buyStage]) { statusPerStage[buyStage + 1] = true; } mapTBCHoldingInfo[address(investor)].totalTBC += holding; mapUserInfo[address(investor)].investedAmount += investmentAmount; totalBusiness[address(sponsor)] += investmentAmount; uint256 myDirect = Referrals.getTeam(address(sponsor), 0); if(myDirect >= 3 && totalBusiness[sponsor] >= (1500 * 10**18) && !mapUserInfo[sponsor].royalty) { mapUserInfo[address(sponsor)].royalty = true; } monthlyPurchase[address(investor)][nextRewardDrain] += investmentAmount; referralBonusDistribution(address(investor), investmentAmount); workingBonusDistribution(address(investor), investmentAmount); foreignTourBonusDistribution(address(sponsor), totalBusiness[sponsor]); monthlyBonusDistribution(address(investor), investmentAmount); IERC20(TUSD).safeTransfer(address(TreasuryWallet), IERC20(TUSD).balanceOf(address(this))); } function setTeam(address[] calldata investor, address[] calldata sponsor) external onlyOwner { require(!saleEnable, "Sale already started"); require(address(Referrals) != address(0), "Referral address not added yet"); for(uint256 i = 0; i < investor.length; i++) { address newInvestor = mapNewAddress[investor[i]] == address(0) ? investor[i] : mapNewAddress[investor[i]]; address newSponsor = mapNewAddress[sponsor[i]] == address(0) ? sponsor[i] : mapNewAddress[sponsor[i]]; if(address(Referrals.getSponsor(investor[i])) == address(0) && address(sponsor[i]) != address(0)) { Referrals.addMember(address(newInvestor), address(newSponsor)); } (, , , uint256 monthlyReward, uint256 WBonus, uint256 royaltyBonus, uint256 receivedFromSale, uint256 extraBonus, uint256 claimedAmount, , ) = V1.mapUserInfo(address(investor[i])); mapUserInfo[address(newInvestor)].monthlyReward = monthlyReward; mapUserInfo[address(newInvestor)].workingBonus = WBonus; mapUserInfo[address(newInvestor)].royaltyBonus = royaltyBonus; mapUserInfo[address(newInvestor)].receivedFromSale = receivedFromSale; mapUserInfo[address(newInvestor)].claimedAmount = claimedAmount; mapUserInfo[address(newInvestor)].extraBonus = extraBonus; __setTeam(investor[i], address(newInvestor)); monthlySale[address(newInvestor)][nextRewardDrain] = V1.monthlySale(address(investor[i]), nextRewardDrain); workingBonus[address(newInvestor)] = V1.workingBonus(address(investor[i])); totalBusiness[address(newInvestor)] = V1.totalBusiness(address(investor[i])); } } function __setTeam(address oldinvestor, address newinvestor) internal { (uint256 investedAmount, uint256 levelIncome, uint256 foreignTour, , , , , , , , bool royalty) = V1.mapUserInfo(address(oldinvestor)); mapUserInfo[address(newinvestor)].investedAmount = investedAmount; mapUserInfo[address(newinvestor)].levelIncome = levelIncome; mapUserInfo[address(newinvestor)].foreignTour = foreignTour; mapUserInfo[address(newinvestor)].royalty = royalty; } function setSellPosition(uint256 stage, uint256 count) external onlyOwner{ require(!saleEnable, "Sale already started"); uint256 startingPosition = positionWiseTBC[stage].length; for(uint256 i = startingPosition; i < (startingPosition + count); i++) { address investor = V1.positionWiseWallet(stage, i); address newInvestor = mapNewAddress[investor] == address(0) ? investor : mapNewAddress[investor]; uint256 share = V1.positionWiseTBC(stage, i); uint256 SWUTBC = V1.stageWiseUserTBC(stage, address(investor)); if(address(investor) != address(0)) { stageWiseUserPosition[stage][address(newInvestor)].push(i); positionWiseTBC[stage].push(share); positionWiseWallet[stage].push(address(newInvestor)); stageWiseUserTBC[stage][address(newInvestor)] = SWUTBC; } } } function startSale() external onlyOwner { require(!saleEnable, "Sale already started"); for(uint256 i= 0; i < stageWiseAvailableTBC.length; i++) { stageWiseAvailableTBC[i] = V1.stageWiseAvailableTBC(i); stageWiseCurrentSellPosition[i] = V1.stageWiseCurrentSellPosition(i); statusPerStage[i] = V1.statusPerStage(i); } saleEnable = true; } function updateStageWiseSell(address communitySeller, uint256 stage, uint256 totalTBC) internal { uint256 communitySellLimit = totalTBC * 20 / 100; if(communitySeller != address(0)) { for(uint256 i= 0; i < stageWiseUserPosition[stage][address(communitySeller)].length; i++) { uint256 sellerPosition = stageWiseUserPosition[stage][address(communitySeller)][i]; uint256 remainingTBCOnPosition = positionWiseTBC[stage][sellerPosition]; if(remainingTBCOnPosition > 0) { if(remainingTBCOnPosition >= communitySellLimit) { stageWiseUserTBC[stage][address(communitySeller)] -= communitySellLimit; positionWiseTBC[stage][sellerPosition] -= communitySellLimit; uint256 sellerFund = (communitySellLimit * pricePerStage[stage]) / (10**18); uint256 communityFund = (sellerFund * incentivePerStage[stage]) / 10000; mapUserInfo[address(communitySeller)].receivedFromSale += (sellerFund - communityFund); mapUserInfo[address(communitySeller)].claimedAmount += (sellerFund - communityFund); communitySellLimit = 0; IERC20(TUSD).safeTransfer(address(address(communitySeller)), (sellerFund - communityFund)); break; } else { stageWiseUserTBC[stage][address(communitySeller)] -= remainingTBCOnPosition; positionWiseTBC[stage][sellerPosition] = 0; uint256 sellerFund = (remainingTBCOnPosition * pricePerStage[stage]) / (10**18); uint256 communityFund = (sellerFund * incentivePerStage[stage]) / 10000; mapUserInfo[address(communitySeller)].receivedFromSale += (sellerFund - communityFund); mapUserInfo[address(communitySeller)].claimedAmount += (sellerFund - communityFund); communitySellLimit -= remainingTBCOnPosition; IERC20(TUSD).safeTransfer(address(address(communitySeller)), (sellerFund - communityFund)); } } } } uint256 userSellLimit = (totalTBC * 30 / 100) + communitySellLimit; uint256 startingPosition = stageWiseCurrentSellPosition[stage]; for(uint256 i = startingPosition; i < positionWiseTBC[stage].length; i++) { uint256 remainingTBCOnPosition = positionWiseTBC[stage][i]; if(remainingTBCOnPosition > 0) { if(remainingTBCOnPosition >= userSellLimit) { address userOnPosition = address(positionWiseWallet[stage][i]); stageWiseUserTBC[stage][userOnPosition] -= userSellLimit; positionWiseTBC[stage][i] -= userSellLimit; uint256 userFund = (userSellLimit * pricePerStage[stage]) / (10**18); uint256 communityFund = (userFund * incentivePerStage[stage]) / (10000); mapUserInfo[address(userOnPosition)].receivedFromSale += (userFund - communityFund); mapUserInfo[address(userOnPosition)].claimedAmount += (userFund - communityFund); IERC20(TUSD).safeTransfer(userOnPosition, (userFund - communityFund)); stageWiseCurrentSellPosition[stage] = i; break; } else { address userOnPosition = address(positionWiseWallet[stage][i]); stageWiseUserTBC[stage][userOnPosition] -= remainingTBCOnPosition; positionWiseTBC[stage][i] = 0; uint256 userFund = (remainingTBCOnPosition * pricePerStage[stage]) / (10**18); uint256 communityFund = (userFund * incentivePerStage[stage]) / (10000); mapUserInfo[address(userOnPosition)].receivedFromSale += (userFund - communityFund); mapUserInfo[address(userOnPosition)].claimedAmount += (userFund - communityFund); userSellLimit -= remainingTBCOnPosition; stageWiseCurrentSellPosition[stage] = i; IERC20(TUSD).safeTransfer(userOnPosition, (userFund - communityFund)); } } } } function updateStageWiseRecord(address investor, uint256 stage2Share, uint256 stage3Share, uint256 stage4Share, uint256 stage5Share, uint256 stage6Share) internal { if(stage2Share > 0) { stageWiseUserPosition[1][address(investor)].push(positionWiseTBC[1].length); positionWiseTBC[1].push(stage2Share); positionWiseWallet[1].push(address(investor)); stageWiseAvailableTBC[1] += stage2Share; stageWiseUserTBC[1][address(investor)] += stage2Share; } if(stage3Share > 0) { stageWiseUserPosition[2][address(investor)].push(positionWiseTBC[2].length); positionWiseTBC[2].push(stage3Share); positionWiseWallet[2].push(address(investor)); stageWiseAvailableTBC[2] += stage3Share; stageWiseUserTBC[2][address(investor)] += stage3Share; } if(stage4Share > 0) { stageWiseUserPosition[3][address(investor)].push(positionWiseTBC[3].length); positionWiseTBC[3].push(stage4Share); positionWiseWallet[3].push(address(investor)); stageWiseAvailableTBC[3] += stage4Share; stageWiseUserTBC[3][address(investor)] += stage4Share; } if(stage5Share > 0) { stageWiseUserPosition[4][address(investor)].push(positionWiseTBC[4].length); positionWiseTBC[4].push(stage5Share); positionWiseWallet[4].push(address(investor)); stageWiseAvailableTBC[4] += stage5Share; stageWiseUserTBC[4][address(investor)] += stage5Share; } if(stage6Share > 0) { stageWiseUserPosition[5][address(investor)].push(positionWiseTBC[5].length); positionWiseTBC[5].push(stage6Share); positionWiseWallet[5].push(address(investor)); stageWiseAvailableTBC[5] += stage6Share; stageWiseUserTBC[5][address(investor)] += stage6Share; } } function referralBonusDistribution(address investor, uint256 amount) internal { address sponsor = Referrals.getSponsor(investor); for(uint256 i=0; i < 10; i++) { if(address(sponsor) != address(0)) { uint256 myDirect = Referrals.getTeam(address(sponsor), 0); if(myDirect >= teamRequiredForBonus[i]) { address sponsorWallet = address(Referrals.getSponsor(sponsor)); if(i==0 && myDirect >= 5) { uint256 reward = amount * (referralBonus[i] * 2) / 10000; if(mapUserInfo[sponsorWallet].royalty) { royaltyBonusDistribution(sponsorWallet, ((reward * royaltyIncentive) / 10000)); } mapUserInfo[address(sponsor)].levelIncome += reward; mapUserInfo[address(sponsor)].claimedAmount += reward; IERC20(TUSD).safeTransfer(address(sponsor), reward); } else { if(i==0) { uint256 reward = amount * referralBonus[i] / 10000; if(mapUserInfo[sponsorWallet].royalty) { royaltyBonusDistribution(sponsorWallet, ((reward * royaltyIncentive) / 10000)); } mapUserInfo[sponsor].levelIncome += reward; mapUserInfo[sponsor].claimedAmount += reward; IERC20(TUSD).safeTransfer(address(sponsor), reward); } else if(totalBusiness[address(sponsor)] >= (1500 * 10**18)) { uint256 reward = amount * referralBonus[i] / 10000; if(mapUserInfo[sponsorWallet].royalty) { royaltyBonusDistribution(sponsorWallet, ((reward * royaltyIncentive) / 10000)); } mapUserInfo[sponsor].levelIncome += reward; mapUserInfo[sponsor].claimedAmount += reward; IERC20(TUSD).safeTransfer(address(sponsor), reward); } } } } else { break; } sponsor = Referrals.getSponsor(sponsor); } } function monthlyBonusDistribution(address investor, uint256 amount) internal { address sponsor = Referrals.getSponsor(investor); for(uint256 i=0; i < monthlyBonusLoop; i++) { if(sponsor != address(0)) { monthlySale[address(sponsor)][nextRewardDrain] += amount; } else { break; } sponsor = Referrals.getSponsor(sponsor); } } function workingBonusDistribution(address investor, uint256 amount) internal { address sponsor = Referrals.getSponsor(investor); for(uint256 i=0; i < workingBonusLoop; i++) { if(address(sponsor) != address(0)) { if(workingBonus[address(sponsor)] > 0) { uint256 payableAmount = amount * (workingBonus[address(sponsor)]) / 10000; if(IERC20(TUSD).balanceOf(address(this)) >= payableAmount) { mapUserInfo[address(sponsor)].workingBonus += payableAmount; mapUserInfo[sponsor].claimedAmount += payableAmount; IERC20(TUSD).safeTransfer(address(sponsor), payableAmount); break; } else if(IERC20(TUSD).allowance(address(FundWallet), address(this)) >= payableAmount && IERC20(TUSD).balanceOf(address(FundWallet)) >= payableAmount) { mapUserInfo[address(sponsor)].workingBonus += payableAmount; mapUserInfo[sponsor].claimedAmount += payableAmount; IERC20(TUSD).safeTransferFrom(address(FundWallet), address(sponsor), payableAmount); break; } else { mapUserInfo[address(sponsor)].workingBonus += payableAmount; break; } } } else { break; } sponsor = Referrals.getSponsor(sponsor); } } function foreignTourBonusDistribution(address sponsor, uint256 amount) internal { uint256 incentiveAmount = (amount / (3000 * 10**18)) * (300 * 10**18); if(incentiveAmount > mapUserInfo[sponsor].foreignTour) { uint256 payableAmount = incentiveAmount - mapUserInfo[sponsor].foreignTour; if(mapUserInfo[Referrals.getSponsor(sponsor)].royalty) { royaltyBonusDistribution(Referrals.getSponsor(sponsor), ((payableAmount * royaltyIncentive) / 10000)); } if(IERC20(TUSD).balanceOf(address(this)) >= payableAmount) { mapUserInfo[sponsor].foreignTour += payableAmount; mapUserInfo[sponsor].claimedAmount += payableAmount; IERC20(TUSD).safeTransfer(address(sponsor), payableAmount); } else if(IERC20(TUSD).allowance(address(FundWallet), address(this)) >= payableAmount && IERC20(TUSD).balanceOf(address(FundWallet)) >= payableAmount) { mapUserInfo[sponsor].foreignTour += payableAmount; mapUserInfo[sponsor].claimedAmount += payableAmount; IERC20(TUSD).safeTransferFrom(address(FundWallet), address(sponsor), payableAmount); } else { mapUserInfo[sponsor].foreignTour += payableAmount; } } } function royaltyBonusDistribution(address sponsor, uint256 payableAmount) internal { if(address(sponsor) != address(0)) { if(IERC20(TUSD).balanceOf(address(this)) >= payableAmount) { mapUserInfo[sponsor].royaltyBonus += payableAmount; mapUserInfo[sponsor].claimedAmount += payableAmount; IERC20(TUSD).safeTransfer(address(sponsor), payableAmount); } else if(IERC20(TUSD).allowance(address(FundWallet), address(this)) >= payableAmount && IERC20(TUSD).balanceOf(address(FundWallet)) >= payableAmount) { mapUserInfo[sponsor].royaltyBonus += payableAmount; mapUserInfo[sponsor].claimedAmount += payableAmount; IERC20(TUSD).safeTransferFrom(address(FundWallet), address(sponsor), payableAmount); } else { mapUserInfo[sponsor].royaltyBonus += payableAmount; } } } function claimMonthlyReward(address topSponsor, uint256 month) external { require(monthlySaleClaimed[address(msg.sender)][month] == 0, "Monthly reward already claimed"); require(Referrals.getSponsor(topSponsor) == address(msg.sender), "Top sponsor is not correct"); uint256 topSponsorSale = (monthlySale[address(topSponsor)][month]) + (monthlyPurchase[address(topSponsor)][month]); uint256 allSale = monthlySale[address(msg.sender)][month]; uint256 remainingTeamSale = allSale - topSponsorSale; uint256 payableAmount = 0; if(topSponsorSale >= (10000000 * 10**18) && remainingTeamSale >= (10000000 * 10**18)) { payableAmount = 1000000 * 10**18; } else if(topSponsorSale >= (5000000 * 10**18) && remainingTeamSale >= (5000000 * 10**18)) { payableAmount = 400000 * 10**18; } else if(topSponsorSale >= (2000000 * 10**18) && remainingTeamSale >= (2000000 * 10**18)) { payableAmount = 150000 * 10**18; } else if(topSponsorSale >= (500000 * 10**18) && remainingTeamSale >= (500000 * 10**18)) { payableAmount = 35000 * 10**18; } else if(topSponsorSale >= (125000 * 10**18) && remainingTeamSale >= (125000 * 10**18)) { payableAmount = 8500 * 10**18; } else if(topSponsorSale >= (50000 * 10**18) && remainingTeamSale >= (50000 * 10**18)) { payableAmount = 3000 * 10**18; } else if(topSponsorSale >= (15000 * 10**18) && remainingTeamSale >= (15000 * 10**18)) { payableAmount = 800 * 10**18; } else if(topSponsorSale >= (5000 * 10**18) && remainingTeamSale >= (5000 * 10**18)) { payableAmount = 250 * 10**18; } if(payableAmount > 0 && IERC20(TUSD).allowance(address(FundWallet), address(this)) >= payableAmount && IERC20(TUSD).balanceOf(address(FundWallet)) >= payableAmount) { monthlySaleClaimed[address(msg.sender)][month] = 1; address sponsor = Referrals.getSponsor(address(msg.sender)); if(mapUserInfo[sponsor].royalty) { royaltyBonusDistribution(sponsor, ((payableAmount * royaltyIncentive) / 10000)); } mapUserInfo[address(msg.sender)].monthlyReward += payableAmount; mapUserInfo[address(msg.sender)].claimedAmount += payableAmount; IERC20(TUSD).safeTransferFrom(address(FundWallet), address(msg.sender), payableAmount); } if(topSponsorSale >= (15000 * 10**18) && remainingTeamSale >= (15000 * 10**18) && workingBonus[address(msg.sender)] == 0) { workingBonus[address(msg.sender)] = 500; } } function withdrawEarning(uint256 amount) external { uint256 payableAmount = pendingReward(address(msg.sender)); if(payableAmount >= amount && IERC20(TUSD).allowance(address(FundWallet), address(this)) >= amount && IERC20(TUSD).balanceOf(address(FundWallet)) >= amount) { mapUserInfo[address(msg.sender)].claimedAmount += amount; IERC20(TUSD).safeTransferFrom(address(FundWallet), address(msg.sender), amount); } } function claimHoldingTBC() external { uint256 total = mapTBCHoldingInfo[address(msg.sender)].totalTBC; uint256 claimed = mapTBCHoldingInfo[address(msg.sender)].claimedTBC; uint256 claimable = total - claimed; uint256 balance = address(this).balance; if(claimable > 0 && balance >= claimable) { payable(msg.sender).transfer(claimable); mapTBCHoldingInfo[address(msg.sender)].claimedTBC += claimable; } } function updateTeam(address[] calldata oldAddress, address[] calldata newAddress) external onlyOwner { for(uint256 i = 0; i < oldAddress.length; i++) { if(oldAddress[i] != address(0) && newAddress[i] != address(0)) { mapNewAddress[oldAddress[i]] = newAddress[i]; } } } function pendingReward(address user) public view returns (uint256) { if(mapUserInfo[address(user)].investedAmount > 0) { uint256 pending = (mapUserInfo[address(user)].levelIncome + mapUserInfo[address(user)].foreignTour + mapUserInfo[address(user)].workingBonus + mapUserInfo[address(user)].royaltyBonus + mapUserInfo[address(user)].monthlyReward + mapUserInfo[address(user)].receivedFromSale + mapUserInfo[address(user)].extraBonus) - (mapUserInfo[address(user)].claimedAmount); return pending; } else { return 0; } } function claimTBC() external { require(statusPerStage[5], "Exchange stage is not start yet"); uint256 claimableTBC = stageWiseUserTBC[5][address(msg.sender)] - mapUserInfo[address(msg.sender)].claimedTBC; uint256 balance = address(this).balance; if(claimableTBC > 0 && balance >= claimableTBC) { payable(msg.sender).transfer(claimableTBC); mapUserInfo[address(msg.sender)].claimedTBC += claimableTBC; } } function addReferral(address referral) external onlyOwner { require(address(Referrals) == address(0), "Zero address"); Referrals = IReferrals(referral); } function setWorkingBonus(address topSponsor, uint256 month) external { require(Referrals.getSponsor(topSponsor) == address(msg.sender), "Top sponsor is not correct"); require(workingBonus[address(msg.sender)] == 0, "Working bonus already set"); uint256 topSponsorSale = (monthlySale[address(topSponsor)][month]) + (monthlyPurchase[address(topSponsor)][month]); uint256 allSale = monthlySale[address(msg.sender)][month]; uint256 remainingTeamSale = allSale - topSponsorSale; if(topSponsorSale >= (15000 * 10**18) && remainingTeamSale >= (15000 * 10**18)) { workingBonus[address(msg.sender)] = 500; } } }

File 5 of 6 : SafeERC20.sol

pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT import "./IERC20.sol"; import "./draft-IERC20Permit.sol"; import "./Address.sol"; library SafeERC20 { using Address for address; function safeTransfer( IERC20 token, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value)); } function safeTransferFrom( IERC20 token, address from, address to, uint256 value ) internal { _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value)); } function safeApprove( IERC20 token, address spender, uint256 value ) internal { // safeApprove should only be called when setting an initial allowance, // or when resetting it to zero. To increase and decrease it, use // 'safeIncreaseAllowance' and 'safeDecreaseAllowance' require( (value == 0) || (token.allowance(address(this), spender) == 0), "SafeERC20: approve from non-zero to non-zero allowance" ); _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value)); } function safeIncreaseAllowance( IERC20 token, address spender, uint256 value ) internal { uint256 newAllowance = token.allowance(address(this), spender) + value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } function safeDecreaseAllowance( IERC20 token, address spender, uint256 value ) internal { unchecked { uint256 oldAllowance = token.allowance(address(this), spender); require(oldAllowance >= value, "SafeERC20: decreased allowance below zero"); uint256 newAllowance = oldAllowance - value; _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance)); } } function safePermit( IERC20Permit token, address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s ) internal { uint256 nonceBefore = token.nonces(owner); token.permit(owner, spender, value, deadline, v, r, s); uint256 nonceAfter = token.nonces(owner); require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed"); } function _callOptionalReturn(IERC20 token, bytes memory data) private { bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed"); if (returndata.length > 0) { require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed"); } } }

File 6 of 6 : draft-IERC20Permit.sol

pragma solidity ^0.8.0; // SPDX-License-Identifier: MIT interface IERC20Permit { function permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s) external; function nonces(address owner) external view returns (uint256); function DOMAIN_SEPARATOR() external view returns (bytes32); }
ABI Code (Solidity Standard Json-Input format)

File 1 of 1 : ABI.json

[ { "inputs": [ { "internalType": "address", "name": "TUSDAddress", "type": "address" }, { "internalType": "address", "name": "fundWallet", "type": "address" }, { "internalType": "address", "name": "treasuryWallet", "type": "address" }, { "internalType": "address", "name": "VIAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "inputs": [], "name": "FundWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "Referrals", "outputs": [ { "internalType": "contract IReferrals", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TUSD", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "TreasuryWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "referral", "type": "address" } ], "name": "addReferral", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "packages", "type": "uint256" }, { "internalType": "uint256", "name": "buyStage", "type": "uint256" }, { "internalType": "address", "name": "investor", "type": "address" }, { "internalType": "address", "name": "sponsor", "type": "address" }, { "internalType": "address", "name": "communitySeller", "type": "address" }, { "internalType": "uint256", "name": "stage2Share", "type": "uint256" }, { "internalType": "uint256", "name": "stage3Share", "type": "uint256" }, { "internalType": "uint256", "name": "stage4Share", "type": "uint256" }, { "internalType": "uint256", "name": "stage5Share", "type": "uint256" }, { "internalType": "uint256", "name": "stage6Share", "type": "uint256" }, { "internalType": "uint256", "name": "holding", "type": "uint256" } ], "name": "buy", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "claimHoldingTBC", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "topSponsor", "type": "address" }, { "internalType": "uint256", "name": "month", "type": "uint256" } ], "name": "claimMonthlyReward", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "claimTBC", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "incentivePerStage", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "investmentPackages", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "mapNewAddress", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "mapTBCHoldingInfo", "outputs": [ { "internalType": "uint256", "name": "totalTBC", "type": "uint256" }, { "internalType": "uint256", "name": "claimedTBC", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "mapUserInfo", "outputs": [ { "internalType": "uint256", "name": "investedAmount", "type": "uint256" }, { "internalType": "uint256", "name": "levelIncome", "type": "uint256" }, { "internalType": "uint256", "name": "foreignTour", "type": "uint256" }, { "internalType": "uint256", "name": "monthlyReward", "type": "uint256" }, { "internalType": "uint256", "name": "workingBonus", "type": "uint256" }, { "internalType": "uint256", "name": "royaltyBonus", "type": "uint256" }, { "internalType": "uint256", "name": "receivedFromSale", "type": "uint256" }, { "internalType": "uint256", "name": "extraBonus", "type": "uint256" }, { "internalType": "uint256", "name": "claimedAmount", "type": "uint256" }, { "internalType": "uint256", "name": "claimedTBC", "type": "uint256" }, { "internalType": "bool", "name": "royalty", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "monthlyBonusLoop", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "monthlyPurchase", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "monthlySale", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "monthlySaleClaimed", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "nextRewardDrain", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "user", "type": "address" } ], "name": "pendingReward", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "positionWiseTBC", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "positionWiseWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "pricePerStage", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "referralBonus", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "royaltyIncentive", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "saleEnable", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "stage", "type": "uint256" }, { "internalType": "uint256", "name": "count", "type": "uint256" } ], "name": "setSellPosition", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "investor", "type": "address[]" }, { "internalType": "address[]", "name": "sponsor", "type": "address[]" } ], "name": "setTeam", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "topSponsor", "type": "address" }, { "internalType": "uint256", "name": "month", "type": "uint256" } ], "name": "setWorkingBonus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "stageWiseAvailableTBC", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "stageWiseCurrentSellPosition", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "stageWiseUserPosition", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "stageWiseUserTBC", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "startSale", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "statusPerStage", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "teamRequiredForBonus", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "totalBusiness", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "oldAddress", "type": "address[]" }, { "internalType": "address[]", "name": "newAddress", "type": "address[]" } ], "name": "updateTeam", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "withdrawEarning", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "workingBonus", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "workingBonusLoop", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" } ]
Contract Creation Code
0x608060405234801561001057600080fd5b50600436106102735760003560e01c8063715018a611610151578063b66a0e5d116100c3578063e8aca46a11610087578063e8aca46a14610678578063f2fde38b1461068b578063f40f0f521461069e578063fcb11124146106b1578063fe4ca847146106b9578063ffb7a5be146106c657600080fd5b8063b66a0e5d14610638578063c0fa221414610640578063c44f98b614610653578063de216f661461065c578063df32dc5c1461066557600080fd5b806384cd55051161011557806384cd55051461059f5780638a24bee4146105bf5780638da5cb5b146105ea57806397c571ad146105fb57806399b008ce146106265780639e15cf721461062f57600080fd5b8063715018a61461054b57806377d42fc9146105535780637c917187146105665780637cb936e7146105795780638323550b1461058c57600080fd5b8063357ec6e2116101ea57806358dc970d116101ae57806358dc970d146104ab5780635aadf4d7146104be5780635fb03afd146104e757806366f150e7146104fa5780636d6438ac146105255780636f20befd1461053857600080fd5b8063357ec6e21461043f57806343bb5c4e1461045f57806344122244146104725780634c7cdb82146104855780634e7397731461049857600080fd5b80631d63a0a81161023c5780631d63a0a8146103a55780632276fbf9146103b8578063235a18eb146103cb57806324f97835146103de57806326745f2d14610409578063303256fb1461042c57600080fd5b80624a98e81461027857806306dc73141461029e57806311ffeaf2146102b157806315612933146102dc57806316bad3091461039b575b600080fd5b61028b61028636600461510c565b610702565b6040519081526020015b60405180910390f35b61028b6102ac366004615125565b610719565b6003546102c4906001600160a01b031681565b6040516001600160a01b039091168152602001610295565b6103466102ea36600461515c565b603e60205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460098a0154600a909a01549899979896979596949593949293919290919060ff168b565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152610120830152151561014082015261016001610295565b6103a361074a565b005b6103a36103b3366004615179565b6107e0565b61028b6103c636600461510c565b610e04565b6103a36103d9366004615125565b610e14565b61028b6103ec366004615179565b604360209081526000928352604080842090915290825290205481565b61041c61041736600461510c565b6110c8565b6040519015158152602001610295565b61028b61043a36600461510c565b6110f2565b61028b61044d36600461515c565b60406020819052600091825290205481565b6103a361046d3660046151f1565b611102565b61028b61048036600461510c565b6118d0565b6002546102c4906001600160a01b031681565b6102c46104a6366004615125565b6118e0565b61028b6104b936600461510c565b611918565b6102c46104cc36600461515c565b6048602052600090815260409020546001600160a01b031681565b6103a36104f536600461525d565b611928565b61028b610508366004615179565b604260209081526000928352604080842090915290825290205481565b6103a36105333660046151f1565b6123c2565b6004546102c4906001600160a01b031681565b6103a36124e0565b61028b61056136600461510c565b6124f4565b61028b61057436600461510c565b612504565b6103a3610587366004615179565b612514565b6001546102c4906001600160a01b031681565b61028b6105ad36600461515c565b603f6020526000908152604090205481565b61028b6105cd366004615179565b604160209081526000928352604080842090915290825290205481565b6000546001600160a01b03166102c4565b61028b6106093660046152f2565b604660209081526000928352604080842090915290825290205481565b61028b60075481565b61028b60095481565b6103a36126ea565b61028b61064e366004615322565b6128e7565b61028b60085481565b61028b60065481565b6103a361067336600461510c565b612925565b6103a361068636600461515c565b612a86565b6103a361069936600461515c565b612af8565b61028b6106ac36600461515c565b612b71565b6103a3612c36565b600a5461041c9060ff1681565b6106ed6106d436600461515c565b603d602052600090815260409020805460019091015482565b60408051928352602083019190915201610295565b601f816006811061071257600080fd5b0154905081565b6044602052816000526040600020818154811061073557600080fd5b90600052602060002001600091509150505481565b336000908152603d602052604081208054600190910154909161076d8284615370565b905047811580159061077f5750818110155b156107da57604051339083156108fc029084906000818181858888f193505050501580156107b1573d6000803e3d6000fd5b50336000908152603d6020526040812060010180548492906107d4908490615387565b90915550505b50505050565b3360009081526043602090815260408083208484529091529020541561084d5760405162461bcd60e51b815260206004820152601e60248201527f4d6f6e74686c792072657761726420616c726561647920636c61696d6564000060448201526064015b60405180910390fd5b6004805460405163743fc74560e01b81526001600160a01b038581169382019390935233929091169063743fc74590602401602060405180830381865afa15801561089c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108c0919061539f565b6001600160a01b0316146109165760405162461bcd60e51b815260206004820152601a60248201527f546f702073706f6e736f72206973206e6f7420636f72726563740000000000006044820152606401610844565b6001600160a01b038216600081815260416020908152604080832085845282528083205493835260428252808320858452909152812054909161095891615387565b3360009081526042602090815260408083208684529091528120549192506109808383615370565b905060006a084595161401484a00000084101580156109aa57506a084595161401484a0000008210155b156109c0575069d3c21bcecceda1000000610b53565b6a0422ca8b0a00a42500000084101580156109e657506a0422ca8b0a00a4250000008210155b156109fc57506954b40b1f852bda000000610b53565b6a01a784379d99db420000008410158015610a2257506a01a784379d99db420000008210155b15610a385750691fc3842bd1f071c00000610b53565b6969e10de76676d08000008410158015610a5c57506969e10de76676d08000008210155b15610a7257506907695a92c20d6fe00000610b53565b691a784379d99db42000008410158015610a965750691a784379d99db42000008210155b15610aac57506901ccc9324511e4500000610b53565b690a968163f0a57b4000008410158015610ad05750690a968163f0a57b4000008210155b15610ae5575068a2a15d09519be00000610b53565b69032d26d12e980b6000008410158015610b09575069032d26d12e980b6000008210155b15610b1e5750682b5e3af16b18800000610b53565b69010f0cf064dd592000008410158015610b42575069010f0cf064dd592000008210155b15610b535750680d8d726b7177a800005b600081118015610bdb5750600154600254604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa158015610bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd891906153bc565b10155b8015610c5957506001546002546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015610c32573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c5691906153bc565b10155b15610da5573360008181526043602090815260408083208984529091528082206001905560048054915163743fc74560e01b81529081019390935290916001600160a01b039091169063743fc74590602401602060405180830381865afa158015610cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cec919061539f565b6001600160a01b0381166000908152603e60205260409020600a015490915060ff1615610d3757610d378161271060065485610d2891906153d5565b610d3291906153f4565b612d48565b336000908152603e602052604081206003018054849290610d59908490615387565b9091555050336000908152603e602052604081206008018054849290610d80908490615387565b9091555050600254600154610da3916001600160a01b0391821691163385612fe7565b505b69032d26d12e980b6000008410158015610dc9575069032d26d12e980b6000008210155b8015610de2575033600090815260406020819052902054155b15610dfc573360009081526040602081905290206101f490555b505050505050565b6036816006811061071257600080fd5b610e1c613052565b600a5460ff1615610e3f5760405162461bcd60e51b815260040161084490615416565b600082815260446020526040902054805b610e5a8383615387565b8110156107da57600554604051634e73977360e01b815260048101869052602481018390526000916001600160a01b031690634e73977390604401602060405180830381865afa158015610eb2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed6919061539f565b6001600160a01b03808216600090815260486020526040812054929350911615610f1a576001600160a01b0380831660009081526048602052604090205416610f1c565b815b6005546040516301b71cc560e21b815260048101899052602481018690529192506000916001600160a01b03909116906306dc731490604401602060405180830381865afa158015610f72573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f9691906153bc565b6005546040516397c571ad60e01b8152600481018a90526001600160a01b038681166024830152929350600092909116906397c571ad90604401602060405180830381865afa158015610fed573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061101191906153bc565b90506001600160a01b038416156110b15760008881526047602090815260408083206001600160a01b038716808552908352818420805460018181018355918652848620018a90558c85526044845282852080548083018255908652848620018790558c8552604584528285208054918201815585528385200180546001600160a01b031916821790558b84526046835281842090845290915290208190555b5050505080806110c090615444565b915050610e50565b603c81600681106110d857600080fd5b60209182820401919006915054906101000a900460ff1681565b601581600a811061071257600080fd5b61110a613052565b600a5460ff161561112d5760405162461bcd60e51b815260040161084490615416565b6004546001600160a01b03166111855760405162461bcd60e51b815260206004820152601e60248201527f526566657272616c2061646472657373206e6f742061646465642079657400006044820152606401610844565b60005b838110156118c9576000806048818888868181106111a8576111a861545f565b90506020020160208101906111bd919061515c565b6001600160a01b039081168252602082019290925260400160002054161461122c57604860008787858181106111f5576111f561545f565b905060200201602081019061120a919061515c565b6001600160a01b03908116825260208201929092526040016000205416611253565b85858381811061123e5761123e61545f565b9050602002016020810190611253919061515c565b905060008060488187878781811061126d5761126d61545f565b9050602002016020810190611282919061515c565b6001600160a01b03908116825260208201929092526040016000205416146112f157604860008686868181106112ba576112ba61545f565b90506020020160208101906112cf919061515c565b6001600160a01b03908116825260208201929092526040016000205416611318565b8484848181106113035761130361545f565b9050602002016020810190611318919061515c565b6004549091506000906001600160a01b031663743fc7458989878181106113415761134161545f565b9050602002016020810190611356919061515c565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561139a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113be919061539f565b6001600160a01b0316148015611404575060008585858181106113e3576113e361545f565b90506020020160208101906113f8919061515c565b6001600160a01b031614155b156114735760048054604051639d58b15d60e01b81526001600160a01b03858116938201939093528383166024820152911690639d58b15d90604401600060405180830381600087803b15801561145a57600080fd5b505af115801561146e573d6000803e3d6000fd5b505050505b600554600090819081908190819081906001600160a01b031663156129338e8e8c8181106114a3576114a361545f565b90506020020160208101906114b8919061515c565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240161016060405180830381865afa1580156114fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115219190615485565b505098509850985098509850985050505085603e60008a6001600160a01b03166001600160a01b031681526020019081526020016000206003018190555084603e60008a6001600160a01b03166001600160a01b031681526020019081526020016000206004018190555083603e60008a6001600160a01b03166001600160a01b031681526020019081526020016000206005018190555082603e60008a6001600160a01b03166001600160a01b031681526020019081526020016000206006018190555080603e60008a6001600160a01b03166001600160a01b031681526020019081526020016000206008018190555081603e60008a6001600160a01b03166001600160a01b03168152602001908152602001600020600701819055506116708d8d8b8181106116555761165561545f565b905060200201602081019061166a919061515c565b896130ac565b6005546001600160a01b03166366f150e78e8e8c8181106116935761169361545f565b90506020020160208101906116a8919061515c565b6007546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa1580156116f4573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061171891906153bc565b6001600160a01b03808a16600090815260426020908152604080832060075484529091529020919091556005541663357ec6e28e8e8c81811061175d5761175d61545f565b9050602002016020810190611772919061515c565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156117b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117da91906153bc565b6001600160a01b03808a16600090815260406020819052902091909155600554166384cd55058e8e8c8181106118125761181261545f565b9050602002016020810190611827919061515c565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561186b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061188f91906153bc565b6001600160a01b039098166000908152603f6020526040902097909755508695506118c1945085935061544492505050565b915050611188565b5050505050565b6025816005811061071257600080fd5b604560205281600052604060002081815481106118fc57600080fd5b6000918252602090912001546001600160a01b03169150829050565b602a816006811061071257600080fd5b6001600160a01b03881661196d5760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610844565b6004546001600160a01b03166119c55760405162461bcd60e51b815260206004820152601e60248201527f526566657272616c2061646472657373206e6f742061646465642079657400006044820152606401610844565b60068b10611a205760405162461bcd60e51b815260206004820152602260248201527f496e766573746d656e74207061636b61676573206973206e6f7420636f72726560448201526118dd60f21b6064820152608401610844565b601f8b60068110611a3357611a3361545f565b01546001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611a7d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa191906153bc565b1015611b015760405162461bcd60e51b815260206004820152602960248201527f545553442062616c616e6365206e6f7420617661696c61626c6520666f7220696044820152681b9d995cdd1b595b9d60ba1b6064820152608401610844565b886001600160a01b0316886001600160a01b03161415611b755760405162461bcd60e51b815260206004820152602960248201527f496e766573746f7220616e642073706f6e736f722063616e27742062652073616044820152681b59481dd85b1b195d60ba1b6064820152608401610844565b600a5460ff16611b8d57600a805460ff191660011790555b6000601f8c60068110611ba257611ba261545f565b0154600154909150611bbf906001600160a01b0316333084612fe7565b6004805460405163743fc74560e01b81526001600160a01b038d8116938201939093526000929091169063743fc74590602401602060405180830381865afa158015611c0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c33919061539f565b6001600160a01b03161415611d0a576001600160a01b0389166000908152603e6020526040902054611ca05760405162461bcd60e51b815260206004820152601660248201527514dc1bdb9cdbdc881a5cc81b9bdd0818dbdc9c9958dd60521b6044820152606401610844565b60048054604051639d58b15d60e01b81526001600160a01b038d8116938201939093528b83166024820152911690639d58b15d90604401600060405180830381600087803b158015611cf157600080fd5b505af1158015611d05573d6000803e3d6000fd5b505050505b6004805460405163743fc74560e01b81526001600160a01b038d81169382019390935291169063743fc74590602401602060405180830381865afa158015611d56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611d7a919061539f565b9850600060258c60058110611d9157611d9161545f565b0154611da583670de0b6b3a76400006153d5565b611daf91906153f4565b9050603c8c60068110611dc457611dc461545f565b602081049091015460ff601f9092166101000a900416611e265760405162461bcd60e51b815260206004820152601760248201527f5374616765206973206e6f7420616374697665207965740000000000000000006044820152606401610844565b80602a8d60068110611e3a57611e3a61545f565b01541015611e8a5760405162461bcd60e51b815260206004820152601a60248201527f544243206e6f7420617661696c61626c6520666f722073616c650000000000006044820152606401610844565b8b611ef6578083858789611e9e8c8e615387565b611ea89190615387565b611eb29190615387565b611ebc9190615387565b611ec69190615387565b14611ee35760405162461bcd60e51b81526004016108449061550b565b611ef18b898989898961316d565b612031565b8b60011415611f575780838587611f0d8a8c615387565b611f179190615387565b611f219190615387565b611f2b9190615387565b14611f485760405162461bcd60e51b81526004016108449061550b565b611ef18b60008989898961316d565b8b60021415611fad57808385611f6d888a615387565b611f779190615387565b611f819190615387565b14611f9e5760405162461bcd60e51b81526004016108449061550b565b611ef18b60008089898961316d565b8b60031415611ff9578083611fc28688615387565b611fcc9190615387565b14611fe95760405162461bcd60e51b81526004016108449061550b565b611ef18b6000806000898961316d565b806120048486615387565b146120215760405162461bcd60e51b81526004016108449061550b565b6120318b6000806000808961316d565b8b1561204257612042898d83613875565b60075442106120665762278d00600760008282546120609190615387565b90915550505b80602a8d6006811061207a5761207a61545f565b01600082825461208a9190615370565b909155506000905060258d600581106120a5576120a561545f565b0154601f546120bc90670de0b6b3a76400006153d5565b6120c691906153f4565b9050602a8d600681106120db576120db61545f565b0154811115612122576001603c6120f28f83615387565b600681106121025761210261545f565b602091828204019190066101000a81548160ff0219169083151502179055505b6001600160a01b038c166000908152603d60205260408120805486929061214a908490615387565b90915550506001600160a01b038c166000908152603e602052604081208054859290612177908490615387565b90915550506001600160a01b038b166000908152603f6020526040812080548592906121a4908490615387565b9091555050600480546040516380f78b3f60e01b81526001600160a01b038e81169382019390935260006024820181905292909116906380f78b3f90604401602060405180830381865afa158015612200573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061222491906153bc565b90506003811015801561225857506001600160a01b038c166000908152603f6020526040902054685150ae84a8cdf0000011155b801561228057506001600160a01b038c166000908152603e60205260409020600a015460ff16155b156122ac576001600160a01b038c166000908152603e60205260409020600a01805460ff191660011790555b6001600160a01b038d1660009081526041602090815260408083206007548452909152812080548692906122e1908490615387565b909155506122f190508d8561403f565b6122fb8d856144a9565b6001600160a01b038c166000908152603f602052604090205461231f908d906148b5565b6123298d85614ce3565b6003546001546040516370a0823160e01b81523060048201526123b1926001600160a01b039081169216906370a0823190602401602060405180830381865afa15801561237a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061239e91906153bc565b6001546001600160a01b03169190614e39565b505050505050505050505050505050565b6123ca613052565b60005b838110156118c95760008585838181106123e9576123e961545f565b90506020020160208101906123fe919061515c565b6001600160a01b031614158015612445575060008383838181106124245761242461545f565b9050602002016020810190612439919061515c565b6001600160a01b031614155b156124ce5782828281811061245c5761245c61545f565b9050602002016020810190612471919061515c565b604860008787858181106124875761248761545f565b905060200201602081019061249c919061515c565b6001600160a01b039081168252602082019290925260400160002080546001600160a01b031916929091169190911790555b806124d881615444565b9150506123cd565b6124e8613052565b6124f26000614e69565b565b600b81600a811061071257600080fd5b6030816006811061071257600080fd5b6004805460405163743fc74560e01b81526001600160a01b038581169382019390935233929091169063743fc74590602401602060405180830381865afa158015612563573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612587919061539f565b6001600160a01b0316146125dd5760405162461bcd60e51b815260206004820152601a60248201527f546f702073706f6e736f72206973206e6f7420636f72726563740000000000006044820152606401610844565b336000908152604060208190529020541561263a5760405162461bcd60e51b815260206004820152601960248201527f576f726b696e6720626f6e757320616c726561647920736574000000000000006044820152606401610844565b6001600160a01b038216600081815260416020908152604080832085845282528083205493835260428252808320858452909152812054909161267c91615387565b3360009081526042602090815260408083208684529091528120549192506126a48383615370565b905069032d26d12e980b60000083101580156126ca575069032d26d12e980b6000008110155b156118c9573360009081526040602081905290206101f490555050505050565b6126f2613052565b600a5460ff16156127155760405162461bcd60e51b815260040161084490615416565b60005b60068110156128d7576005546040516358dc970d60e01b8152600481018390526001600160a01b03909116906358dc970d90602401602060405180830381865afa15801561276a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061278e91906153bc565b602a82600681106127a1576127a161545f565b0155600554604051637c91718760e01b8152600481018390526001600160a01b0390911690637c91718790602401602060405180830381865afa1580156127ec573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061281091906153bc565b603082600681106128235761282361545f565b01556005546040516326745f2d60e01b8152600481018390526001600160a01b03909116906326745f2d90602401602060405180830381865afa15801561286e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128929190615542565b603c82600681106128a5576128a561545f565b602091828204019190066101000a81548160ff02191690831515021790555080806128cf90615444565b915050612718565b50600a805460ff19166001179055565b6047602052826000526040600020602052816000526040600020818154811061290f57600080fd5b9060005260206000200160009250925050505481565b600061293033612b71565b90508181101580156129ba5750600154600254604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528492919091169063dd62ed3e90604401602060405180830381865afa158015612993573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906129b791906153bc565b10155b8015612a3857506001546002546040516370a0823160e01b81526001600160a01b039182166004820152849291909116906370a0823190602401602060405180830381865afa158015612a11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a3591906153bc565b10155b15612a8257336000908152603e602052604081206008018054849290612a5f908490615387565b9091555050600254600154612a82916001600160a01b0391821691163385612fe7565b5050565b612a8e613052565b6004546001600160a01b031615612ad65760405162461bcd60e51b815260206004820152600c60248201526b5a65726f206164647265737360a01b6044820152606401610844565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b612b00613052565b6001600160a01b038116612b655760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610844565b612b6e81614e69565b50565b6001600160a01b0381166000908152603e602052604081205415612c29576001600160a01b0382166000908152603e602052604081206008810154600782015460068301546003840154600585015460048601546002870154600190970154959694959394929391929091612be69190615387565b612bf09190615387565b612bfa9190615387565b612c049190615387565b612c0e9190615387565b612c189190615387565b612c229190615370565b9392505050565b506000919050565b919050565b603c5465010000000000900460ff16612c915760405162461bcd60e51b815260206004820152601f60248201527f45786368616e6765207374616765206973206e6f7420737461727420796574006044820152606401610844565b336000908152603e60209081526040808320600901547f288b2d47c2a96aa14eb9e2779880bb6d1bd5093b6dbb3a4e34f5fe39f8ff005d909252822054612cd89190615370565b9050478115801590612cea5750818110155b15612a8257604051339083156108fc029084906000818181858888f19350505050158015612d1c573d6000803e3d6000fd5b50336000908152603e602052604081206009018054849290612d3f908490615387565b90915550505050565b6001600160a01b03821615612a82576001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015612d9f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612dc391906153bc565b10612e3f576001600160a01b0382166000908152603e602052604081206005018054839290612df3908490615387565b90915550506001600160a01b0382166000908152603e602052604081206008018054839290612e23908490615387565b9091555050600154612a82906001600160a01b03168383614e39565b600154600254604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa158015612e95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612eb991906153bc565b10158015612f3957506001546002546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015612f12573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f3691906153bc565b10155b15612fbc576001600160a01b0382166000908152603e602052604081206005018054839290612f69908490615387565b90915550506001600160a01b0382166000908152603e602052604081206008018054839290612f99908490615387565b9091555050600254600154612a82916001600160a01b0391821691168484612fe7565b6001600160a01b0382166000908152603e602052604081206005018054839290612d3f908490615387565b6040516001600160a01b03808516602483015283166044820152606481018290526107da9085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614eb9565b6000546001600160a01b031633146124f25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610844565b600554604051631561293360e01b81526001600160a01b038481166004830152600092839283928392169063156129339060240161016060405180830381865afa1580156130fe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131229190615485565b6001600160a01b039f909f166000908152603e60205260409020998a555050505060018601949094555050600283015550600a01805460ff1916951515959095179094555050505050565b84156132d3576001600160a01b03861660008181527fb14f5d13884225e73da5bc63142a82d0f0a4cfaadff7d01570ba10d37a3c47776020908152604082207fcdad79d33f4de49584ed9b39ca3d8a53cc10e49c033c5359244d3129cc2efd3d8054825460018082018555938652848620015580548083019091557e23771cca3efdce462360526577d60b85a8432d42a19a2356e3fd52f1c503550189905560459091527fcf23cc7089fed28926e3cca2bfa1d6811ea4ce7e8c64119a740cf101b353080f8054918201815582527f7b37e37d5734ae1a0f3b597d70368f24e57a23d4284eb99a82deef0a248683f60180546001600160a01b031916909217909155602b8054879290613281908490615387565b90915550506001600160a01b03861660009081527f76f821bd39721ec0e26efc55d7b667d20aab74992e0feae7d7755e386ecd694d6020526040812080548792906132cd908490615387565b90915550505b8315613439576001600160a01b03861660008181527f07b6965316af980d23beb752c9f51b394746ef8954337d3b4b6bf6f74b2e41526020908152604082207f698f965f71a6f5c9afb45442df7ff01640d7295288618bfa1177b6c22c0c05db8054825460018082018555938652848620015580548083019091557eaa405714b8db35f8715775af17aef181a3c642cf0c852141255b3b6876a2140188905560459091527f2d3d1c9680bbdec853995b6859c48c938bd9c76a8e98a938491cbf18b6665bed8054918201815582527f13ac137ff8abb89f194be57121239dd16bc44d811ffb58b6b5f70d438705a2320180546001600160a01b031916909217909155602c80548692906133e7908490615387565b90915550506001600160a01b03861660009081527ffd5f7714445dd0028303d86eb9c0a4f606d5012be00897d1253bc412ae0b77fb602052604081208054869290613433908490615387565b90915550505b82156135a0576001600160a01b03861660008181527f1e44d42069ffd753ae807626607424104305839471bec822ca5d6f124b9aedc26020908152604082207fbb4c205d2fd5d5c0ff4ab723a86b46f24bafcc7dfe57b1f587a8c4b4e7fe20148054825460018082018555938652848620015580548083019091557f1a9da9df5228063911fc9e2eeeeb0947ba5ece46300a8350802ead310ac7fabe0187905560459091527fa00cd725958365f67c8fb506a84ce041d17da3d1c6ccea666854800f4fb4a1a78054918201815582527fe1ebf6540861325361fc79044c73d114c17d9738004fc070df318ddd3712eeeb0180546001600160a01b031916909217909155602d805485929061354e908490615387565b90915550506001600160a01b03861660009081527f3a3bf5be96411ff9d5f855a7704139f4ec9f51f138705d6701eedd07d2de62e360205260408120805485929061359a908490615387565b90915550505b8115613707576001600160a01b03861660008181527f348d2f2a77454e77220be4c387a6089a9d94a7c346d817fa305a22fd69ad29566020908152604082207f45b807389775ad05c7cd9109cde6b930048fc115975326a747c8e4a5232f1e828054825460018082018555938652848620015580548083019091557f9664c1be2e7f8518337ceb7152727d97f5badc78a2760813981f68cbf9db52a30186905560459091527fbf7117fd8e3d22086f16a7a3bcd7ecefc20d1aac8a1c838478c374eb3b50eb718054918201815582527f7648364ed8ae3c32f327b6534aa96210ca84ab25ae2276ce969ac3d9889a31fc0180546001600160a01b031916909217909155602e80548492906136b5908490615387565b90915550506001600160a01b03861660009081527fedbb1b77625691452b979477ff3fbbcf91f9af081e478ab22e796b1f432c37d7602052604081208054849290613701908490615387565b90915550505b8015610dfc576001600160a01b03861660008181527fad0fb13dab86228aac2669e60dd3267d4cc08fdde5504a405cc696a8c6dafc176020908152604082207f0d8114addc107b9906d4b6801726e6398dfeab6fcad9ec1b0042e243f7efef3d8054825460018082018555938652848620015580548083019091557f1d2e23da373404be88e3938e93a2aa3a3611eb1591431ccfcdf04a17d37d9c760185905560459091527fbdc6d4f9a2b88d475ab9bbae8db6fa0600aca241b975a52f3c1c8911b71da75f8054918201815582527f48c59e48f075bdbb06d7ff697c89b46bafc46ce41043f1d71186701ca4eddd770180546001600160a01b031916909217909155602f805483929061381c908490615387565b90915550506001600160a01b03861660009081527f288b2d47c2a96aa14eb9e2779880bb6d1bd5093b6dbb3a4e34f5fe39f8ff005d602052604081208054839290613868908490615387565b9091555050505050505050565b600060646138848360146153d5565b61388e91906153f4565b90506001600160a01b03841615613c355760005b60008481526047602090815260408083206001600160a01b0389168452909152902054811015613c335760008481526047602090815260408083206001600160a01b038916845290915281208054839081106139005761390061545f565b9060005260206000200154905060006044600087815260200190815260200160002082815481106139335761393361545f565b906000526020600020015490506000811115613c1e57838110613ac05760008681526046602090815260408083206001600160a01b038b16845290915281208054869290613982908490615370565b909155505060008681526044602052604090208054859190849081106139aa576139aa61545f565b9060005260206000200160008282546139c39190615370565b9091555060009050670de0b6b3a7640000602588600581106139e7576139e761545f565b01546139f390876153d5565b6139fd91906153f4565b9050600061271060368960068110613a1757613a1761545f565b0154613a2390846153d5565b613a2d91906153f4565b9050613a398183615370565b6001600160a01b038a166000908152603e602052604081206006018054909190613a64908490615387565b90915550613a7490508183615370565b6001600160a01b038a166000908152603e602052604081206008018054909190613a9f908490615387565b9091555060009650613ab790508961239e8385615370565b50505050613c33565b60008681526046602090815260408083206001600160a01b038b16845290915281208054839290613af2908490615370565b90915550506000868152604460205260408120805484908110613b1757613b1761545f565b90600052602060002001819055506000670de0b6b3a764000060258860058110613b4357613b4361545f565b0154613b4f90846153d5565b613b5991906153f4565b9050600061271060368960068110613b7357613b7361545f565b0154613b7f90846153d5565b613b8991906153f4565b9050613b958183615370565b6001600160a01b038a166000908152603e602052604081206006018054909190613bc0908490615387565b90915550613bd090508183615370565b6001600160a01b038a166000908152603e602052604081206008018054909190613bfb908490615387565b90915550613c0b90508387615370565b9550613c1b8961239e8385615370565b50505b50508080613c2b90615444565b9150506138a2565b505b6000816064613c4585601e6153d5565b613c4f91906153f4565b613c599190615387565b9050600060308560068110613c7057613c7061545f565b01549050805b600086815260446020526040902054811015614036576000868152604460205260408120805483908110613cac57613cac61545f565b90600052602060002001549050600081111561402357838110613e7d576000878152604560205260408120805484908110613ce957613ce961545f565b60009182526020808320909101548a83526046825260408084206001600160a01b0390921680855291909252908220805491935087929091613d2c908490615370565b90915550506000888152604460205260409020805486919085908110613d5457613d5461545f565b906000526020600020016000828254613d6d9190615370565b9091555060009050670de0b6b3a764000060258a60058110613d9157613d9161545f565b0154613d9d90886153d5565b613da791906153f4565b9050600061271060368b60068110613dc157613dc161545f565b0154613dcd90846153d5565b613dd791906153f4565b9050613de38183615370565b6001600160a01b0384166000908152603e602052604081206006018054909190613e0e908490615387565b90915550613e1e90508183615370565b6001600160a01b0384166000908152603e602052604081206008018054909190613e49908490615387565b90915550613e5d90508361239e8385615370565b8460308b60068110613e7157613e7161545f565b01555061403692505050565b6000878152604560205260408120805484908110613e9d57613e9d61545f565b60009182526020808320909101548a83526046825260408084206001600160a01b0390921680855291909252908220805491935084929091613ee0908490615370565b90915550506000888152604460205260408120805485908110613f0557613f0561545f565b90600052602060002001819055506000670de0b6b3a764000060258a60058110613f3157613f3161545f565b0154613f3d90856153d5565b613f4791906153f4565b9050600061271060368b60068110613f6157613f6161545f565b0154613f6d90846153d5565b613f7791906153f4565b9050613f838183615370565b6001600160a01b0384166000908152603e602052604081206006018054909190613fae908490615387565b90915550613fbe90508183615370565b6001600160a01b0384166000908152603e602052604081206008018054909190613fe9908490615387565b90915550613ff990508488615370565b96508460308b6006811061400f5761400f61545f565b015561401f8361239e8385615370565b5050505b508061402e81615444565b915050613c76565b50505050505050565b6004805460405163743fc74560e01b81526001600160a01b03858116938201939093526000929091169063743fc74590602401602060405180830381865afa15801561408f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140b3919061539f565b905060005b600a8110156107da576001600160a01b0382161561442057600480546040516380f78b3f60e01b81526001600160a01b038581169382019390935260006024820181905292909116906380f78b3f90604401602060405180830381865afa158015614127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061414b91906153bc565b9050601582600a81106141605761416061545f565b0154811061441a576004805460405163743fc74560e01b81526001600160a01b03868116938201939093526000929091169063743fc74590602401602060405180830381865afa1580156141b8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141dc919061539f565b9050821580156141ed575060058210155b156142e4576000612710600b85600a811061420a5761420a61545f565b01546142179060026153d5565b61422190886153d5565b61422b91906153f4565b6001600160a01b0383166000908152603e60205260409020600a015490915060ff1615614267576142678261271060065484610d2891906153d5565b6001600160a01b0385166000908152603e602052604081206001018054839290614292908490615387565b90915550506001600160a01b0385166000908152603e6020526040812060080180548392906142c2908490615387565b90915550506001546142de906001600160a01b03168683614e39565b50614418565b8261430d576000612710600b85600a81106143015761430161545f565b015461422190886153d5565b6001600160a01b0384166000908152603f6020526040902054685150ae84a8cdf0000011614418576000612710600b85600a811061434d5761434d61545f565b015461435990886153d5565b61436391906153f4565b6001600160a01b0383166000908152603e60205260409020600a015490915060ff161561439f5761439f8261271060065484610d2891906153d5565b6001600160a01b0385166000908152603e6020526040812060010180548392906143ca908490615387565b90915550506001600160a01b0385166000908152603e6020526040812060080180548392906143fa908490615387565b9091555050600154614416906001600160a01b03168683614e39565b505b505b50614425565b6107da565b6004805460405163743fc74560e01b81526001600160a01b038581169382019390935291169063743fc74590602401602060405180830381865afa158015614471573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614495919061539f565b9150806144a181615444565b9150506140b8565b6004805460405163743fc74560e01b81526001600160a01b03858116938201939093526000929091169063743fc74590602401602060405180830381865afa1580156144f9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061451d919061539f565b905060005b6008548110156107da576001600160a01b03821615614420576001600160a01b03821660009081526040602081905290205415614831576001600160a01b0382166000908152604060208190528120546127109061458090866153d5565b61458a91906153f4565b6001546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156145d7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145fb91906153bc565b1061467d576001600160a01b0383166000908152603e60205260408120600401805483929061462b908490615387565b90915550506001600160a01b0383166000908152603e60205260408120600801805483929061465b908490615387565b9091555050600154614677906001600160a01b03168483614e39565b506107da565b600154600254604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa1580156146d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146f791906153bc565b1015801561477757506001546002546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015614750573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061477491906153bc565b10155b156147fa576001600160a01b0383166000908152603e6020526040812060040180548392906147a7908490615387565b90915550506001600160a01b0383166000908152603e6020526040812060080180548392906147d7908490615387565b9091555050600254600154614677916001600160a01b0391821691168584612fe7565b6001600160a01b0383166000908152603e602052604081206004018054839290614825908490615387565b909155506107da915050565b6004805460405163743fc74560e01b81526001600160a01b038581169382019390935291169063743fc74590602401602060405180830381865afa15801561487d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148a1919061539f565b9150806148ad81615444565b915050614522565b60006148ca68a2a15d09519be00000836153f4565b6148dd90681043561a88293000006153d5565b6001600160a01b0384166000908152603e6020526040902060020154909150811115614cde576001600160a01b0383166000908152603e60205260408120600201546149299083615370565b6004805460405163743fc74560e01b81526001600160a01b0388811693820193909352929350603e926000929091169063743fc74590602401602060405180830381865afa15801561497f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906149a3919061539f565b6001600160a01b031681526020810191909152604001600020600a015460ff1615614a4e576004805460405163743fc74560e01b81526001600160a01b0387811693820193909352614a4e929091169063743fc74590602401602060405180830381865afa158015614a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a3d919061539f565b61271060065484610d2891906153d5565b6001546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015614a96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614aba91906153bc565b10614b36576001600160a01b0384166000908152603e602052604081206002018054839290614aea908490615387565b90915550506001600160a01b0384166000908152603e602052604081206008018054839290614b1a908490615387565b9091555050600154614420906001600160a01b03168583614e39565b600154600254604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa158015614b8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614bb091906153bc565b10158015614c3057506001546002546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015614c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614c2d91906153bc565b10155b15614cb3576001600160a01b0384166000908152603e602052604081206002018054839290614c60908490615387565b90915550506001600160a01b0384166000908152603e602052604081206008018054839290614c90908490615387565b9091555050600254600154614420916001600160a01b0391821691168684612fe7565b6001600160a01b0384166000908152603e6020526040812060020180548392906107d4908490615387565b505050565b6004805460405163743fc74560e01b81526001600160a01b03858116938201939093526000929091169063743fc74590602401602060405180830381865afa158015614d33573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614d57919061539f565b905060005b6009548110156107da576001600160a01b03821615614420576001600160a01b0382166000908152604260209081526040808320600754845290915281208054859290614daa908490615387565b90915550614db59050565b6004805460405163743fc74560e01b81526001600160a01b038581169382019390935291169063743fc74590602401602060405180830381865afa158015614e01573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614e25919061539f565b915080614e3181615444565b915050614d5c565b6040516001600160a01b038316602482015260448101829052614cde90849063a9059cbb60e01b9060640161301b565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000614f0e826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614f8b9092919063ffffffff16565b805190915015614cde5780806020019051810190614f2c9190615542565b614cde5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610844565b6060614f9a8484600085614fa2565b949350505050565b6060824710156150035760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610844565b6001600160a01b0385163b61505a5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610844565b600080866001600160a01b031685876040516150769190615589565b60006040518083038185875af1925050503d80600081146150b3576040519150601f19603f3d011682016040523d82523d6000602084013e6150b8565b606091505b50915091506150c88282866150d3565b979650505050505050565b606083156150e2575081612c22565b8251156150f25782518084602001fd5b8160405162461bcd60e51b815260040161084491906155a5565b60006020828403121561511e57600080fd5b5035919050565b6000806040838503121561513857600080fd5b50508035926020909101359150565b6001600160a01b0381168114612b6e57600080fd5b60006020828403121561516e57600080fd5b8135612c2281615147565b6000806040838503121561518c57600080fd5b823561519781615147565b946020939093013593505050565b60008083601f8401126151b757600080fd5b50813567ffffffffffffffff8111156151cf57600080fd5b6020830191508360208260051b85010111156151ea57600080fd5b9250929050565b6000806000806040858703121561520757600080fd5b843567ffffffffffffffff8082111561521f57600080fd5b61522b888389016151a5565b9096509450602087013591508082111561524457600080fd5b50615251878288016151a5565b95989497509550505050565b60008060008060008060008060008060006101608c8e03121561527f57600080fd5b8b359a5060208c0135995060408c013561529881615147565b985060608c01356152a881615147565b975060808c01356152b881615147565b9a9d999c50979a96999860a0880135985060c08801359760e081013597506101008101359650610120810135955061014001359350915050565b6000806040838503121561530557600080fd5b82359150602083013561531781615147565b809150509250929050565b60008060006060848603121561533757600080fd5b83359250602084013561534981615147565b929592945050506040919091013590565b634e487b7160e01b600052601160045260246000fd5b6000828210156153825761538261535a565b500390565b6000821982111561539a5761539a61535a565b500190565b6000602082840312156153b157600080fd5b8151612c2281615147565b6000602082840312156153ce57600080fd5b5051919050565b60008160001904831182151516156153ef576153ef61535a565b500290565b60008261541157634e487b7160e01b600052601260045260246000fd5b500490565b60208082526014908201527314d85b1948185b1c9958591e481cdd185c9d195960621b604082015260600190565b60006000198214156154585761545861535a565b5060010190565b634e487b7160e01b600052603260045260246000fd5b80518015158114612c3157600080fd5b60008060008060008060008060008060006101608c8e0312156154a757600080fd5b8b519a5060208c0151995060408c0151985060608c0151975060808c0151965060a08c0151955060c08c0151945060e08c015193506101008c015192506101208c015191506154f96101408d01615475565b90509295989b509295989b9093969950565b6020808252601e908201527f537461676577697365207368617265206973206e6f7420636f72726563740000604082015260600190565b60006020828403121561555457600080fd5b612c2282615475565b60005b83811015615578578181015183820152602001615560565b838111156107da5750506000910152565b6000825161559b81846020870161555d565b9190910192915050565b60208152600082518060208401526155c481604085016020870161555d565b601f01601f1916919091016040019291505056fea264697066735822122037f05e4cdc6d3f8c9bb30a05237b928b72add54d2291b405b355ee91b7b9b82764736f6c634300080a0033
1. FundWallet

2. Referrals

3. TUSD

4. TreasuryWallet

5. incentivePerStage

6. investmentPackages

7. mapNewAddress

8. mapTBCHoldingInfo

9. mapUserInfo

10. monthlyBonusLoop

11. monthlyPurchase

12. monthlySale

13. monthlySaleClaimed

14. nextRewardDrain

15. owner

16. pendingReward

17. positionWiseTBC

18. positionWiseWallet

19. pricePerStage

20. referralBonus

21. royaltyIncentive

22. saleEnable

23. stageWiseAvailableTBC

24. stageWiseCurrentSellPosition

25. stageWiseUserPosition

26. stageWiseUserTBC

27. statusPerStage

28. teamRequiredForBonus

29. totalBusiness

30. workingBonus

31. workingBonusLoop

1. addReferral
2. buy
3. claimHoldingTBC
4. claimMonthlyReward
5. claimTBC
6. renounceOwnership
7. setSellPosition
8. setTeam
9. setWorkingBonus
10. startSale
11. transferOwnership
12. updateTeam
13. withdrawEarning

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met.