Contract

0x06B61AFCFacB2F0D67C7F8024a613cc0c0D37158

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"; 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 { using SafeERC20 for IERC20; address public TUSD; address public FundWallet; address public OwnerWallet; 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; } 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 => 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; constructor(address TUSDAddress, address fundWallet, address ownerWallet, address VIAddress) { require(TUSDAddress != address(0) && fundWallet != address(0) && ownerWallet != address(0), "Zero address"); royaltyIncentive = 1000; nextRewardDrain = 1717014532; workingBonusLoop = 512; monthlyBonusLoop = 512; TUSD = address(TUSDAddress); FundWallet = address(fundWallet); OwnerWallet = address(ownerWallet); 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) 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)) { Referrals.addMember(address(investor), address(sponsor)); } sponsor = address(Referrals.getSponsor(address(investor))); if(address(sponsor) != address(0)) { require(mapUserInfo[address(sponsor)].investedAmount > 0, "Sponsor is not correct"); } 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 == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), stage2Share, stage3Share, stage4Share, stage5Share, stage6Share); } else if(buyStage == 1) { require(stage3Share + stage4Share + stage5Share + stage6Share == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, stage3Share, stage4Share, stage5Share, stage6Share); } else if(buyStage == 2) { require(stage4Share + stage5Share + stage6Share == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, 0, stage4Share, stage5Share, stage6Share); } else if(buyStage == 3) { require(stage5Share + stage6Share == totalTBC, "Stagewise share is not correct"); updateStageWiseRecord(address(investor), 0, 0, 0, stage5Share, stage6Share); } else { require(stage6Share == 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; } 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(OwnerWallet), IERC20(TUSD).balanceOf(address(this))); } function setTeam(address[] calldata investor, address[] calldata sponsor) external { require(msg.sender == address(OwnerWallet), "Owner wallet is not correct"); require(!saleEnable, "Sale already started"); require(address(Referrals) != address(0), "Referral address not added yet"); for(uint256 i = 0; i < investor.length; i++) { if(address(Referrals.getSponsor(investor[i])) == address(0) && address(sponsor[i]) != address(0)) { Referrals.addMember(address(investor[i]), address(sponsor[i])); } (, , , uint256 monthlyReward, uint256 WBonus, uint256 royaltyBonus, uint256 receivedFromSale, uint256 extraBonus, uint256 claimedAmount, , ) = V1.mapUserInfo(address(investor[i])); mapUserInfo[address(investor[i])].monthlyReward = monthlyReward; mapUserInfo[address(investor[i])].workingBonus = WBonus; mapUserInfo[address(investor[i])].royaltyBonus = royaltyBonus; mapUserInfo[address(investor[i])].receivedFromSale = receivedFromSale; mapUserInfo[address(investor[i])].claimedAmount = claimedAmount; mapUserInfo[address(investor[i])].extraBonus = extraBonus; __setTeam(address(investor[i])); monthlySale[address(investor[i])][nextRewardDrain] = V1.monthlySale(address(investor[i]), nextRewardDrain); workingBonus[address(investor[i])] = V1.workingBonus(address(investor[i])); totalBusiness[address(investor[i])] = V1.totalBusiness(address(investor[i])); } } function __setTeam(address investor) internal { (uint256 investedAmount, uint256 levelIncome, uint256 foreignTour, , , , , , , , bool royalty) = V1.mapUserInfo(address(investor)); mapUserInfo[address(investor)].investedAmount = investedAmount; mapUserInfo[address(investor)].levelIncome = levelIncome; mapUserInfo[address(investor)].foreignTour = foreignTour; mapUserInfo[address(investor)].royalty = royalty; } function setSellPosition(uint256 stage, uint256 count) external { require(msg.sender == address(OwnerWallet), "Owner wallet is not correct"); require(!saleEnable, "Sale already started"); uint256 startingPosition = positionWiseTBC[stage].length; for(uint256 i = startingPosition; i < (startingPosition + count); i++) { address investor = V1.positionWiseWallet(stage, i); uint256 share = V1.positionWiseTBC(stage, i); uint256 SWUTBC = V1.stageWiseUserTBC(stage, address(investor)); if(address(investor) != address(0)) { stageWiseUserPosition[stage][address(investor)].push(i); positionWiseTBC[stage].push(share); positionWiseWallet[stage].push(address(investor)); stageWiseUserTBC[stage][address(investor)] = SWUTBC; } } } function startSale() external { require(msg.sender == address(OwnerWallet), "Owner wallet is not correct"); 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); } } 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); } } 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 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; if(claimableTBC > 0) { payable(msg.sender).transfer(claimableTBC); mapUserInfo[address(msg.sender)].claimedTBC += claimableTBC; } } function addReferral(address referral) external { require(address(Referrals) == address(0), "Zero address"); require(address(msg.sender) == address(OwnerWallet), "Owner wallet is not correct"); Referrals = IReferrals(referral); } function updateFundWallet(address newWalllet) external { require(address(newWalllet) != address(0), "Zero address"); require(address(msg.sender) == address(OwnerWallet), "Owner wallet is not correct"); FundWallet = address(newWalllet); } function updateOwnerWallet(address newWalllet) external { require(address(newWalllet) != address(0), "Zero address"); require(address(msg.sender) == address(OwnerWallet), "Owner wallet is not correct"); OwnerWallet = address(newWalllet); } function setWorkingBonus(address user, uint256 bonus) external { require(address(msg.sender) == address(OwnerWallet), "Owner wallet is not correct"); require(mapUserInfo[address(user)].investedAmount > 0, "User is not correct"); require(bonus <= 500); workingBonus[address(user)] = bonus; } function setExtraBonus(address user, uint256 bonus) external { require(address(msg.sender) == address(OwnerWallet), "Owner wallet is not correct"); require(mapUserInfo[address(user)].investedAmount > 0, "User is not correct"); mapUserInfo[address(user)].extraBonus += bonus; } function setLoopLimit(uint256 workingLoop, uint256 monthlyLoop) external { require(address(msg.sender) == address(OwnerWallet), "Owner wallet is not correct"); require(workingLoop > 0 && monthlyLoop > 0, "Incorrect request"); workingBonusLoop = workingLoop; monthlyBonusLoop = monthlyLoop; } }

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": "ownerWallet", "type": "address" }, { "internalType": "address", "name": "VIAddress", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "FundWallet", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "OwnerWallet", "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": [ { "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" } ], "name": "buy", "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": "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": [ { "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": "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": "address", "name": "user", "type": "address" }, { "internalType": "uint256", "name": "bonus", "type": "uint256" } ], "name": "setExtraBonus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "workingLoop", "type": "uint256" }, { "internalType": "uint256", "name": "monthlyLoop", "type": "uint256" } ], "name": "setLoopLimit", "outputs": [], "stateMutability": "nonpayable", "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": "user", "type": "address" }, { "internalType": "uint256", "name": "bonus", "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": "newWalllet", "type": "address" } ], "name": "updateFundWallet", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newWalllet", "type": "address" } ], "name": "updateOwnerWallet", "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
0x608060405234801561001057600080fd5b50600436106102525760003560e01c80636f20befd11610146578063b66a0e5d116100c3578063df32dc5c11610087578063df32dc5c1461061d578063e8aca46a14610630578063f40f0f5214610643578063f52d1ebe14610656578063fcb1112414610669578063fe4ca8471461067157600080fd5b8063b66a0e5d146105dd578063bef18a6b146105e5578063c0fa2214146105f8578063c44f98b61461060b578063de216f661461061457600080fd5b806384cd55051161010a57806384cd5505146105555780638a24bee41461057557806397c571ad146105a057806399b008ce146105cb5780639e15cf72146105d457600080fd5b80636f20befd146104f657806377d42fc9146105095780637c9171871461051c5780637cb936e71461052f5780638323550b1461054257600080fd5b8063303256fb116101d45780634e739773116101985780634e7397731461048257806358dc970d146104955780635b591627146104a85780635ec38bec146104bb57806366f150e7146104ce57600080fd5b8063303256fb14610416578063357ec6e21461042957806343bb5c4e14610449578063441222441461045c5780634c7cdb821461046f57600080fd5b80632276fbf91161021b5780632276fbf91461038f578063235a18eb146103a257806324531ba0146103b557806324f97835146103c857806326745f2d146103f357600080fd5b80624a98e81461025757806306dc73141461027d578063156129331461029057806318af76111461034f5780631d63a0a81461037a575b600080fd5b61026a610265366004614dc1565b61067e565b6040519081526020015b60405180910390f35b61026a61028b366004614dda565b610695565b6102fa61029e366004614e11565b603c60205260009081526040902080546001820154600283015460038401546004850154600586015460068701546007880154600889015460098a0154600a909a01549899979896979596949593949293919290919060ff168b565b604080519b8c5260208c019a909a52988a01979097526060890195909552608088019390935260a087019190915260c086015260e0850152610100840152610120830152151561014082015261016001610274565b600254610362906001600160a01b031681565b6040516001600160a01b039091168152602001610274565b61038d610388366004614e2e565b6106c6565b005b61026a61039d366004614dc1565b610c8a565b61038d6103b0366004614dda565b610c9a565b61038d6103c3366004614e2e565b610f2d565b61026a6103d6366004614e2e565b604160209081526000928352604080842090915290825290205481565b610406610401366004614dc1565b610fe6565b6040519015158152602001610274565b61026a610424366004614dc1565b611010565b61026a610437366004614e11565b603e6020526000908152604090205481565b61038d610457366004614ea6565b611020565b61026a61046a366004614dc1565b61183e565b600154610362906001600160a01b031681565b610362610490366004614dda565b61184e565b61026a6104a3366004614dc1565b611886565b61038d6104b6366004614e11565b611896565b61038d6104c9366004614e11565b611908565b61026a6104dc366004614e2e565b604060208181526000938452818420905290825290205481565b600354610362906001600160a01b031681565b61026a610517366004614dc1565b61197a565b61026a61052a366004614dc1565b61198a565b61038d61053d366004614e2e565b61199a565b600054610362906001600160a01b031681565b61026a610563366004614e11565b603d6020526000908152604090205481565b61026a610583366004614e2e565b603f60209081526000928352604080842090915290825290205481565b61026a6105ae366004614f12565b604460209081526000928352604080842090915290825290205481565b61026a60065481565b61026a60085481565b61038d611a4a565b61038d6105f3366004614f42565b611c56565b61026a610606366004614fcd565b61266f565b61026a60075481565b61026a60055481565b61038d61062b366004614dc1565b6126ad565b61038d61063e366004614e11565b61280e565b61026a610651366004614e11565b612883565b61038d610664366004614dda565b612948565b61038d6129cd565b6009546104069060ff1681565b601e816006811061068e57600080fd5b0154905081565b604260205281600052604060002081815481106106b157600080fd5b90600052602060002001600091509150505481565b336000908152604160209081526040808320848452909152902054156107335760405162461bcd60e51b815260206004820152601e60248201527f4d6f6e74686c792072657761726420616c726561647920636c61696d6564000060448201526064015b60405180910390fd5b60035460405163743fc74560e01b81526001600160a01b0384811660048301523392169063743fc74590602401602060405180830381865afa15801561077d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107a19190615005565b6001600160a01b0316146107f75760405162461bcd60e51b815260206004820152601a60248201527f546f702073706f6e736f72206973206e6f7420636f7272656374000000000000604482015260640161072a565b6001600160a01b0382166000818152603f60209081526040808320858452825280832054938352808252808320858452909152812054909161083891615038565b33600090815260406020818152818320868452905281205491925061085d8383615050565b905060006a084595161401484a000000841015801561088757506a084595161401484a0000008210155b1561089d575069d3c21bcecceda1000000610a30565b6a0422ca8b0a00a42500000084101580156108c357506a0422ca8b0a00a4250000008210155b156108d957506954b40b1f852bda000000610a30565b6a01a784379d99db4200000084101580156108ff57506a01a784379d99db420000008210155b156109155750691fc3842bd1f071c00000610a30565b6969e10de76676d0800000841015801561093957506969e10de76676d08000008210155b1561094f57506907695a92c20d6fe00000610a30565b691a784379d99db420000084101580156109735750691a784379d99db42000008210155b1561098957506901ccc9324511e4500000610a30565b690a968163f0a57b40000084101580156109ad5750690a968163f0a57b4000008210155b156109c2575068a2a15d09519be00000610a30565b69032d26d12e980b60000084101580156109e6575069032d26d12e980b6000008210155b156109fb5750682b5e3af16b18800000610a30565b69010f0cf064dd592000008410158015610a1f575069010f0cf064dd592000008210155b15610a305750680d8d726b7177a800005b600081118015610ab85750600054600154604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa158015610a91573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab59190615067565b10155b8015610b3657506000546001546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015610b0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b339190615067565b10155b15610c825733600081815260416020908152604080832089845290915280822060019055600354905163743fc74560e01b8152600481019390935290916001600160a01b039091169063743fc74590602401602060405180830381865afa158015610ba5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc99190615005565b6001600160a01b0381166000908152603c60205260409020600a015490915060ff1615610c1457610c148161271060055485610c059190615080565b610c0f919061509f565b612acf565b336000908152603c602052604081206003018054849290610c36908490615038565b9091555050336000908152603c602052604081206008018054849290610c5d908490615038565b9091555050600154600054610c80916001600160a01b0391821691163385612d6e565b505b505050505050565b6035816006811061068e57600080fd5b6002546001600160a01b03163314610cc45760405162461bcd60e51b815260040161072a906150c1565b60095460ff1615610ce75760405162461bcd60e51b815260040161072a906150f8565b600082815260426020526040902054805b610d028383615038565b811015610f275760048054604051634e73977360e01b8152918201869052602482018390526000916001600160a01b0390911690634e73977390604401602060405180830381865afa158015610d5c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d809190615005565b600480546040516301b71cc560e21b8152918201889052602482018590529192506000916001600160a01b0316906306dc731490604401602060405180830381865afa158015610dd4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610df89190615067565b600480546040516397c571ad60e01b81529182018990526001600160a01b03858116602484015292935060009216906397c571ad90604401602060405180830381865afa158015610e4d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e719190615067565b90506001600160a01b03831615610f115760008781526045602090815260408083206001600160a01b038716808552908352818420805460018181018355918652848620018990558b85526042845282852080548083018255908652848620018790558b8552604384528285208054918201815585528385200180546001600160a01b031916821790558a84526044835281842090845290915290208190555b5050508080610f1f90615126565b915050610cf8565b50505050565b6002546001600160a01b03163314610f575760405162461bcd60e51b815260040161072a906150c1565b6001600160a01b0382166000908152603c6020526040902054610fb25760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc81b9bdd0818dbdc9c9958dd606a1b604482015260640161072a565b6001600160a01b0382166000908152603c602052604081206007018054839290610fdd908490615038565b90915550505050565b603b8160068110610ff657600080fd5b60209182820401919006915054906101000a900460ff1681565b601481600a811061068e57600080fd5b6002546001600160a01b0316331461104a5760405162461bcd60e51b815260040161072a906150c1565b60095460ff161561106d5760405162461bcd60e51b815260040161072a906150f8565b6003546001600160a01b03166110c55760405162461bcd60e51b815260206004820152601e60248201527f526566657272616c2061646472657373206e6f74206164646564207965740000604482015260640161072a565b60005b83811015611837576003546000906001600160a01b031663743fc7458787858181106110f6576110f6615141565b905060200201602081019061110b9190614e11565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa15801561114f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111739190615005565b6001600160a01b03161480156111b95750600083838381811061119857611198615141565b90506020020160208101906111ad9190614e11565b6001600160a01b031614155b1561127e576003546001600160a01b0316639d58b15d8686848181106111e1576111e1615141565b90506020020160208101906111f69190614e11565b85858581811061120857611208615141565b905060200201602081019061121d9190614e11565b6040516001600160e01b031960e085901b1681526001600160a01b03928316600482015291166024820152604401600060405180830381600087803b15801561126557600080fd5b505af1158015611279573d6000803e3d6000fd5b505050505b600454600090819081908190819081906001600160a01b031663156129338c8c8a8181106112ae576112ae615141565b90506020020160208101906112c39190614e11565b6040516001600160e01b031960e084901b1681526001600160a01b03909116600482015260240161016060405180830381865afa158015611308573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061132c9190615167565b505098509850985098509850985050505085603c60008d8d8b81811061135457611354615141565b90506020020160208101906113699190614e11565b6001600160a01b03166001600160a01b031681526020019081526020016000206003018190555084603c60008d8d8b8181106113a7576113a7615141565b90506020020160208101906113bc9190614e11565b6001600160a01b03166001600160a01b031681526020019081526020016000206004018190555083603c60008d8d8b8181106113fa576113fa615141565b905060200201602081019061140f9190614e11565b6001600160a01b03166001600160a01b031681526020019081526020016000206005018190555082603c60008d8d8b81811061144d5761144d615141565b90506020020160208101906114629190614e11565b6001600160a01b03166001600160a01b031681526020019081526020016000206006018190555080603c60008d8d8b8181106114a0576114a0615141565b90506020020160208101906114b59190614e11565b6001600160a01b03166001600160a01b031681526020019081526020016000206008018190555081603c60008d8d8b8181106114f3576114f3615141565b90506020020160208101906115089190614e11565b6001600160a01b031681526020810191909152604001600020600701556115548b8b8981811061153a5761153a615141565b905060200201602081019061154f9190614e11565b612dd9565b6004546001600160a01b03166366f150e78c8c8a81811061157757611577615141565b905060200201602081019061158c9190614e11565b6006546040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401602060405180830381865afa1580156115d8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115fc9190615067565b604060008d8d8b81811061161257611612615141565b90506020020160208101906116279190614e11565b6001600160a01b0390811682526020808301939093526040918201600090812060065482529093529120919091556004541663357ec6e28c8c8a81811061167057611670615141565b90506020020160208101906116859190614e11565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156116c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116ed9190615067565b603e60008d8d8b81811061170357611703615141565b90506020020160208101906117189190614e11565b6001600160a01b039081168252602082019290925260400160002091909155600454166384cd55058c8c8a81811061175257611752615141565b90506020020160208101906117679190614e11565b6040516001600160e01b031960e084901b1681526001600160a01b039091166004820152602401602060405180830381865afa1580156117ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117cf9190615067565b603d60008d8d8b8181106117e5576117e5615141565b90506020020160208101906117fa9190614e11565b6001600160a01b03166001600160a01b0316815260200190815260200160002081905550505050505050808061182f90615126565b9150506110c8565b5050505050565b6024816005811061068e57600080fd5b6043602052816000526040600020818154811061186a57600080fd5b6000918252602090912001546001600160a01b03169150829050565b6029816006811061068e57600080fd5b6001600160a01b0381166118bc5760405162461bcd60e51b815260040161072a906151ed565b6002546001600160a01b031633146118e65760405162461bcd60e51b815260040161072a906150c1565b600280546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b03811661192e5760405162461bcd60e51b815260040161072a906151ed565b6002546001600160a01b031633146119585760405162461bcd60e51b815260040161072a906150c1565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600a81600a811061068e57600080fd5b602f816006811061068e57600080fd5b6002546001600160a01b031633146119c45760405162461bcd60e51b815260040161072a906150c1565b6001600160a01b0382166000908152603c6020526040902054611a1f5760405162461bcd60e51b8152602060048201526013602482015272155cd95c881a5cc81b9bdd0818dbdc9c9958dd606a1b604482015260640161072a565b6101f4811115611a2e57600080fd5b6001600160a01b039091166000908152603e6020526040902055565b6002546001600160a01b03163314611a745760405162461bcd60e51b815260040161072a906150c1565b60095460ff1615611a975760405162461bcd60e51b815260040161072a906150f8565b60005b6006811015611c5357600480546040516358dc970d60e01b81529182018390526001600160a01b0316906358dc970d90602401602060405180830381865afa158015611aea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b0e9190615067565b60298260068110611b2157611b21615141565b015560048054604051637c91718760e01b81529182018390526001600160a01b031690637c91718790602401602060405180830381865afa158015611b6a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b8e9190615067565b602f8260068110611ba157611ba1615141565b0155600480546040516326745f2d60e01b81529182018390526001600160a01b0316906326745f2d90602401602060405180830381865afa158015611bea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c0e9190615213565b603b8260068110611c2157611c21615141565b602091828204019190066101000a81548160ff0219169083151502179055508080611c4b90615126565b915050611a9a565b50565b6001600160a01b038716611c7c5760405162461bcd60e51b815260040161072a906151ed565b6003546001600160a01b0316611cd45760405162461bcd60e51b815260206004820152601e60248201527f526566657272616c2061646472657373206e6f74206164646564207965740000604482015260640161072a565b60068a10611d2f5760405162461bcd60e51b815260206004820152602260248201527f496e766573746d656e74207061636b61676573206973206e6f7420636f72726560448201526118dd60f21b606482015260840161072a565b601e8a60068110611d4257611d42615141565b01546000546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611d8c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611db09190615067565b1015611e105760405162461bcd60e51b815260206004820152602960248201527f545553442062616c616e6365206e6f7420617661696c61626c6520666f7220696044820152681b9d995cdd1b595b9d60ba1b606482015260840161072a565b876001600160a01b0316876001600160a01b03161415611e845760405162461bcd60e51b815260206004820152602960248201527f496e766573746f7220616e642073706f6e736f722063616e27742062652073616044820152681b59481dd85b1b195d60ba1b606482015260840161072a565b60095460ff16611e9c576009805460ff191660011790555b6000601e8b60068110611eb157611eb1615141565b0154600054909150611ece906001600160a01b0316333084612d6e565b60035460405163743fc74560e01b81526001600160a01b038b81166004830152600092169063743fc74590602401602060405180830381865afa158015611f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f3d9190615005565b6001600160a01b03161415611fb457600354604051639d58b15d60e01b81526001600160a01b038b811660048301528a8116602483015290911690639d58b15d90604401600060405180830381600087803b158015611f9b57600080fd5b505af1158015611faf573d6000803e3d6000fd5b505050505b60035460405163743fc74560e01b81526001600160a01b038b811660048301529091169063743fc74590602401602060405180830381865afa158015611ffe573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120229190615005565b97506001600160a01b03881615612091576001600160a01b0388166000908152603c60205260409020546120915760405162461bcd60e51b815260206004820152601660248201527514dc1bdb9cdbdc881a5cc81b9bdd0818dbdc9c9958dd60521b604482015260640161072a565b600060248b600581106120a6576120a6615141565b01546120ba83670de0b6b3a7640000615080565b6120c4919061509f565b9050603b8b600681106120d9576120d9615141565b602081049091015460ff601f9092166101000a90041661213b5760405162461bcd60e51b815260206004820152601760248201527f5374616765206973206e6f742061637469766520796574000000000000000000604482015260640161072a565b8060298c6006811061214f5761214f615141565b0154101561219f5760405162461bcd60e51b815260206004820152601a60248201527f544243206e6f7420617661696c61626c6520666f722073616c65000000000000604482015260640161072a565b8a61220057808385876121b28a8c615038565b6121bc9190615038565b6121c69190615038565b6121d09190615038565b146121ed5760405162461bcd60e51b815260040161072a9061522e565b6121fb8a8888888888612e9e565b612311565b8a6001141561225657808385612216888a615038565b6122209190615038565b61222a9190615038565b146122475760405162461bcd60e51b815260040161072a9061522e565b6121fb8a600088888888612e9e565b8a600214156122a157808361226b8688615038565b6122759190615038565b146122925760405162461bcd60e51b815260040161072a9061522e565b6121fb8a600080888888612e9e565b8a600314156122e257806122b58486615038565b146122d25760405162461bcd60e51b815260040161072a9061522e565b6121fb8a60008060008888612e9e565b8083146123015760405162461bcd60e51b815260040161072a9061522e565b6123118a60008060008088612e9e565b8a1561232257612322888c836135a8565b60065442106123465762278d00600660008282546123409190615038565b90915550505b8060298c6006811061235a5761235a615141565b01600082825461236a9190615050565b909155506000905060248c6005811061238557612385615141565b0154601e5461239c90670de0b6b3a7640000615080565b6123a6919061509f565b905060298c600681106123bb576123bb615141565b0154811115612402576001603b6123d28e83615038565b600681106123e2576123e2615141565b602091828204019190066101000a81548160ff0219169083151502179055505b6001600160a01b038b166000908152603c60205260408120805485929061242a908490615038565b90915550506001600160a01b038a166000908152603d602052604081208054859290612457908490615038565b90915550506003546040516380f78b3f60e01b81526001600160a01b038c811660048301526000602483018190529216906380f78b3f90604401602060405180830381865afa1580156124ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124d29190615067565b90506003811015801561250657506001600160a01b038b166000908152603d6020526040902054685150ae84a8cdf0000011155b801561252e57506001600160a01b038b166000908152603c60205260409020600a015460ff16155b1561255a576001600160a01b038b166000908152603c60205260409020600a01805460ff191660011790555b6001600160a01b038c166000908152603f6020908152604080832060065484529091528120805486929061258f908490615038565b9091555061259f90508c85613d69565b6125a98c856141c2565b6001600160a01b038b166000908152603d60205260409020546125cd908c906145c7565b6125d78c856149f2565b6002546000546040516370a0823160e01b815230600482015261265f926001600160a01b039081169216906370a0823190602401602060405180830381865afa158015612628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061264c9190615067565b6000546001600160a01b03169190614b3e565b5050505050505050505050505050565b6045602052826000526040600020602052816000526040600020818154811061269757600080fd5b9060005260206000200160009250925050505481565b60006126b833612883565b90508181101580156127425750600054600154604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528492919091169063dd62ed3e90604401602060405180830381865afa15801561271b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061273f9190615067565b10155b80156127c057506000546001546040516370a0823160e01b81526001600160a01b039182166004820152849291909116906370a0823190602401602060405180830381865afa158015612799573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127bd9190615067565b10155b1561280a57336000908152603c6020526040812060080180548492906127e7908490615038565b909155505060015460005461280a916001600160a01b0391821691163385612d6e565b5050565b6003546001600160a01b0316156128375760405162461bcd60e51b815260040161072a906151ed565b6002546001600160a01b031633146128615760405162461bcd60e51b815260040161072a906150c1565b600380546001600160a01b0319166001600160a01b0392909216919091179055565b6001600160a01b0381166000908152603c60205260408120541561293b576001600160a01b0382166000908152603c6020526040812060088101546007820154600683015460038401546005850154600486015460028701546001909701549596949593949293919290916128f89190615038565b6129029190615038565b61290c9190615038565b6129169190615038565b6129209190615038565b61292a9190615038565b6129349190615050565b9392505050565b506000919050565b919050565b6002546001600160a01b031633146129725760405162461bcd60e51b815260040161072a906150c1565b6000821180156129825750600081115b6129c25760405162461bcd60e51b8152602060048201526011602482015270125b98dbdc9c9958dd081c995c5d595cdd607a1b604482015260640161072a565b600791909155600855565b603b5465010000000000900460ff16612a285760405162461bcd60e51b815260206004820152601f60248201527f45786368616e6765207374616765206973206e6f742073746172742079657400604482015260640161072a565b336000908152603c60209081526040808320600901547f0d8114addc107b9906d4b6801726e6398dfeab6fcad9ec1b0042e243f7efef3d909252822054612a6f9190615050565b90508015611c5357604051339082156108fc029083906000818181858888f19350505050158015612aa4573d6000803e3d6000fd5b50336000908152603c602052604081206009018054839290612ac7908490615038565b909155505050565b6001600160a01b0382161561280a576000546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa158015612b26573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b4a9190615067565b10612bc6576001600160a01b0382166000908152603c602052604081206005018054839290612b7a908490615038565b90915550506001600160a01b0382166000908152603c602052604081206008018054839290612baa908490615038565b909155505060005461280a906001600160a01b03168383614b3e565b600054600154604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa158015612c1c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c409190615067565b10158015612cc057506000546001546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015612c99573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612cbd9190615067565b10155b15612d43576001600160a01b0382166000908152603c602052604081206005018054839290612cf0908490615038565b90915550506001600160a01b0382166000908152603c602052604081206008018054839290612d20908490615038565b909155505060015460005461280a916001600160a01b0391821691168484612d6e565b6001600160a01b0382166000908152603c602052604081206005018054839290610fdd908490615038565b6040516001600160a01b0380851660248301528316604482015260648101829052610f279085906323b872dd60e01b906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152614b6e565b60048054604051631561293360e01b81526001600160a01b03848116938201939093526000928392839283929091169063156129339060240161016060405180830381865afa158015612e30573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612e549190615167565b6001600160a01b039f909f166000908152603c60205260409020998a555050505060018601949094555050600283015550600a01805460ff19169515159590951790945550505050565b8415613005576001600160a01b03861660008181527fcf23cc7089fed28926e3cca2bfa1d6811ea4ce7e8c64119a740cf101b353080f6020908152604082207f1e02e7e7cb9e9eea58e182617f7334d8953b76e5cc38e6ca429c7744253cace78054825460018082018555938652848620015580548083019091557f9976d2929a73d3b0a4d2370acf6ad27bf1eb832df2a88ef4089290b6862ecde70189905560439091527f7b18867ebd2b04dbe21f520089d61bc882c11b3f5cc506df65457bb01e7962978054918201815582527ffce00de8ebba767a923a658816329f5e0c565ca0f5f3ce2c6b2828499ca31e550180546001600160a01b031916909217909155602a8054879290612fb3908490615038565b90915550506001600160a01b03861660009081527fcdad79d33f4de49584ed9b39ca3d8a53cc10e49c033c5359244d3129cc2efd3d602052604081208054879290612fff908490615038565b90915550505b831561316c576001600160a01b03861660008181527f2d3d1c9680bbdec853995b6859c48c938bd9c76a8e98a938491cbf18b6665bed6020908152604082207f9693e62f09366b4f038d2f3dfe3f0982145a73c367786164031cce1e5a64f0948054825460018082018555938652848620015580548083019091557f933a97da2e72a8e2fc4c0b2dd25832df6d659999333a0f21d5b32b26809fccff0188905560439091527fb24be977f4ec7a75f89e669b15af271af2f8729c5e9c8c681997633a48b103148054918201815582527fad05381a6c0d27067a9a8e85c1fa180dd53748a3a97121ded01075cb256a827c0180546001600160a01b031916909217909155602b805486929061311a908490615038565b90915550506001600160a01b03861660009081527f698f965f71a6f5c9afb45442df7ff01640d7295288618bfa1177b6c22c0c05db602052604081208054869290613166908490615038565b90915550505b82156132d3576001600160a01b03861660008181527fa00cd725958365f67c8fb506a84ce041d17da3d1c6ccea666854800f4fb4a1a76020908152604082207f6a51289a21ac6edf4deccbe661eee535a9c8ffbe178740c39f03ed213ff51ffe8054825460018082018555938652848620015580548083019091557f7dca9502745de57dbe351b4d531a19d0f23ea8d5fe1a0376f9e8823d78a47b480187905560439091527f62f6a8d3ed649f412d833373e5344ded5babeca5d7f90d4d90216edfee362f6c8054918201815582527f52a904b483c0b04cac36e478ea03197f0566fa62ad660c73effc96f61338b48c0180546001600160a01b031916909217909155602c8054859290613281908490615038565b90915550506001600160a01b03861660009081527fbb4c205d2fd5d5c0ff4ab723a86b46f24bafcc7dfe57b1f587a8c4b4e7fe20146020526040812080548592906132cd908490615038565b90915550505b811561343a576001600160a01b03861660008181527fbf7117fd8e3d22086f16a7a3bcd7ecefc20d1aac8a1c838478c374eb3b50eb716020908152604082207fa1328882ef5cecf9940951e98b9f20f66903681a6caf2eab06e4557fe91b11468054825460018082018555938652848620015580548083019091557f7d7f0147b94a3bf1c424808e180352110f1baeec2056dfb4b50b2b4615e9c78f0186905560439091527f03e975a9b289ace39a8da1293156fa093fd8f5e3245fd785d78bb45b91a97ce08054918201815582527ff9b511958100a526b803f8891d69b5016591145250336885069d6b1992d944260180546001600160a01b031916909217909155602d80548492906133e8908490615038565b90915550506001600160a01b03861660009081527f45b807389775ad05c7cd9109cde6b930048fc115975326a747c8e4a5232f1e82602052604081208054849290613434908490615038565b90915550505b8015610c82576001600160a01b03861660008181527fbdc6d4f9a2b88d475ab9bbae8db6fa0600aca241b975a52f3c1c8911b71da75f6020908152604082207fd011f032728d0086269ce676ee6ffa50fce1f33e5a567cef723380c6830bbf068054825460018082018555938652848620015580548083019091557fb7984df2695730525e860bf371144e0269e9aefc38f3915f4aa709ed98475e690185905560439091527fd6c2779d7e386daf361b85a5d634dce51e9403cce5e5b1ec9b100865557a3c4d8054918201815582527f41bcc81496049f6b1c6e5fdd3be57c8ac4dd84cdfe5d4de9eaec56efb726d1570180546001600160a01b031916909217909155602e805483929061354f908490615038565b90915550506001600160a01b03861660009081527f0d8114addc107b9906d4b6801726e6398dfeab6fcad9ec1b0042e243f7efef3d60205260408120805483929061359b908490615038565b9091555050505050505050565b600060646135b7836014615080565b6135c1919061509f565b90506001600160a01b038416156139685760005b60008481526045602090815260408083206001600160a01b03891684529091529020548110156139665760008481526045602090815260408083206001600160a01b0389168452909152812080548390811061363357613633615141565b90600052602060002001549050600060426000878152602001908152602001600020828154811061366657613666615141565b906000526020600020015490506000811115613951578381106137f35760008681526044602090815260408083206001600160a01b038b168452909152812080548692906136b5908490615050565b909155505060008681526042602052604090208054859190849081106136dd576136dd615141565b9060005260206000200160008282546136f69190615050565b9091555060009050670de0b6b3a76400006024886005811061371a5761371a615141565b01546137269087615080565b613730919061509f565b905060006127106035896006811061374a5761374a615141565b01546137569084615080565b613760919061509f565b905061376c8183615050565b6001600160a01b038a166000908152603c602052604081206006018054909190613797908490615038565b909155506137a790508183615050565b6001600160a01b038a166000908152603c6020526040812060080180549091906137d2908490615038565b90915550600096506137ea90508961264c8385615050565b50505050613966565b60008681526044602090815260408083206001600160a01b038b16845290915281208054839290613825908490615050565b9091555050600086815260426020526040812080548490811061384a5761384a615141565b90600052602060002001819055506000670de0b6b3a76400006024886005811061387657613876615141565b01546138829084615080565b61388c919061509f565b90506000612710603589600681106138a6576138a6615141565b01546138b29084615080565b6138bc919061509f565b90506138c88183615050565b6001600160a01b038a166000908152603c6020526040812060060180549091906138f3908490615038565b9091555061390390508183615050565b6001600160a01b038a166000908152603c60205260408120600801805490919061392e908490615038565b9091555061393e90508387615050565b955061394e8961264c8385615050565b50505b5050808061395e90615126565b9150506135d5565b505b600081606461397885601e615080565b613982919061509f565b61398c9190615038565b90506000602f85600681106139a3576139a3615141565b01549050805b600086815260426020526040902054811015610c805760008681526042602052604081208054839081106139df576139df615141565b906000526020600020015490506000811115613d5657838110613bb0576000878152604360205260408120805484908110613a1c57613a1c615141565b60009182526020808320909101548a83526044825260408084206001600160a01b0390921680855291909252908220805491935087929091613a5f908490615050565b90915550506000888152604260205260409020805486919085908110613a8757613a87615141565b906000526020600020016000828254613aa09190615050565b9091555060009050670de0b6b3a764000060248a60058110613ac457613ac4615141565b0154613ad09088615080565b613ada919061509f565b9050600061271060358b60068110613af457613af4615141565b0154613b009084615080565b613b0a919061509f565b9050613b168183615050565b6001600160a01b0384166000908152603c602052604081206006018054909190613b41908490615038565b90915550613b5190508183615050565b6001600160a01b0384166000908152603c602052604081206008018054909190613b7c908490615038565b90915550613b9090508361264c8385615050565b84602f8b60068110613ba457613ba4615141565b015550610c8092505050565b6000878152604360205260408120805484908110613bd057613bd0615141565b60009182526020808320909101548a83526044825260408084206001600160a01b0390921680855291909252908220805491935084929091613c13908490615050565b90915550506000888152604260205260408120805485908110613c3857613c38615141565b90600052602060002001819055506000670de0b6b3a764000060248a60058110613c6457613c64615141565b0154613c709085615080565b613c7a919061509f565b9050600061271060358b60068110613c9457613c94615141565b0154613ca09084615080565b613caa919061509f565b9050613cb68183615050565b6001600160a01b0384166000908152603c602052604081206006018054909190613ce1908490615038565b90915550613cf190508183615050565b6001600160a01b0384166000908152603c602052604081206008018054909190613d1c908490615038565b90915550613d2c90508488615050565b965084602f8b60068110613d4257613d42615141565b0155613d528361264c8385615050565b5050505b5080613d6181615126565b9150506139a9565b60035460405163743fc74560e01b81526001600160a01b038481166004830152600092169063743fc74590602401602060405180830381865afa158015613db4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613dd89190615005565b905060005b600a811015610f27576001600160a01b0382161561413b576003546040516380f78b3f60e01b81526001600160a01b0384811660048301526000602483018190529216906380f78b3f90604401602060405180830381865afa158015613e47573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e6b9190615067565b9050601482600a8110613e8057613e80615141565b015481106141355760035460405163743fc74560e01b81526001600160a01b038581166004830152600092169063743fc74590602401602060405180830381865afa158015613ed3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ef79190615005565b905082158015613f08575060058210155b15613fff576000612710600a85600a8110613f2557613f25615141565b0154613f32906002615080565b613f3c9088615080565b613f46919061509f565b6001600160a01b0383166000908152603c60205260409020600a015490915060ff1615613f8257613f828261271060055484610c059190615080565b6001600160a01b0385166000908152603c602052604081206001018054839290613fad908490615038565b90915550506001600160a01b0385166000908152603c602052604081206008018054839290613fdd908490615038565b9091555050600054613ff9906001600160a01b03168683614b3e565b50614133565b82614028576000612710600a85600a811061401c5761401c615141565b0154613f3c9088615080565b6001600160a01b0384166000908152603d6020526040902054685150ae84a8cdf0000011614133576000612710600a85600a811061406857614068615141565b01546140749088615080565b61407e919061509f565b6001600160a01b0383166000908152603c60205260409020600a015490915060ff16156140ba576140ba8261271060055484610c059190615080565b6001600160a01b0385166000908152603c6020526040812060010180548392906140e5908490615038565b90915550506001600160a01b0385166000908152603c602052604081206008018054839290614115908490615038565b9091555050600054614131906001600160a01b03168683614b3e565b505b505b50614140565b610f27565b60035460405163743fc74560e01b81526001600160a01b0384811660048301529091169063743fc74590602401602060405180830381865afa15801561418a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906141ae9190615005565b9150806141ba81615126565b915050613ddd565b60035460405163743fc74560e01b81526001600160a01b038481166004830152600092169063743fc74590602401602060405180830381865afa15801561420d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906142319190615005565b905060005b600754811015610f27576001600160a01b0382161561413b576001600160a01b0382166000908152603e602052604090205415614545576001600160a01b0382166000908152603e6020526040812054612710906142949086615080565b61429e919061509f565b6000546040516370a0823160e01b815230600482015291925082916001600160a01b03909116906370a0823190602401602060405180830381865afa1580156142eb573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061430f9190615067565b10614391576001600160a01b0383166000908152603c60205260408120600401805483929061433f908490615038565b90915550506001600160a01b0383166000908152603c60205260408120600801805483929061436f908490615038565b909155505060005461438b906001600160a01b03168483614b3e565b50610f27565b600054600154604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa1580156143e7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061440b9190615067565b1015801561448b57506000546001546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015614464573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906144889190615067565b10155b1561450e576001600160a01b0383166000908152603c6020526040812060040180548392906144bb908490615038565b90915550506001600160a01b0383166000908152603c6020526040812060080180548392906144eb908490615038565b909155505060015460005461438b916001600160a01b0391821691168584612d6e565b6001600160a01b0383166000908152603c602052604081206004018054839290614539908490615038565b90915550610f27915050565b60035460405163743fc74560e01b81526001600160a01b0384811660048301529091169063743fc74590602401602060405180830381865afa15801561458f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906145b39190615005565b9150806145bf81615126565b915050614236565b60006145dc68a2a15d09519be000008361509f565b6145ef90681043561a8829300000615080565b6001600160a01b0384166000908152603c60205260409020600201549091508111156149ed576001600160a01b0383166000908152603c602052604081206002015461463b9083615050565b60035460405163743fc74560e01b81526001600160a01b038781166004830152929350603c92600092169063743fc74590602401602060405180830381865afa15801561468c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906146b09190615005565b6001600160a01b031681526020810191909152604001600020600a015460ff16156147565760035460405163743fc74560e01b81526001600160a01b03868116600483015261475692169063743fc74590602401602060405180830381865afa158015614721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147459190615005565b61271060055484610c059190615080565b6000546040516370a0823160e01b815230600482015282916001600160a01b0316906370a0823190602401602060405180830381865afa15801561479e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906147c29190615067565b1061483e576001600160a01b0384166000908152603c6020526040812060020180548392906147f2908490615038565b90915550506001600160a01b0384166000908152603c602052604081206008018054839290614822908490615038565b909155505060005461413b906001600160a01b03168583614b3e565b600054600154604051636eb1769f60e11b81526001600160a01b0391821660048201523060248201528392919091169063dd62ed3e90604401602060405180830381865afa158015614894573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906148b89190615067565b1015801561493857506000546001546040516370a0823160e01b81526001600160a01b039182166004820152839291909116906370a0823190602401602060405180830381865afa158015614911573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906149359190615067565b10155b156149bb576001600160a01b0384166000908152603c602052604081206002018054839290614968908490615038565b90915550506001600160a01b0384166000908152603c602052604081206008018054839290614998908490615038565b909155505060015460005461413b916001600160a01b0391821691168684612d6e565b6001600160a01b0384166000908152603c6020526040812060020180548392906149e6908490615038565b9091555050505b505050565b60035460405163743fc74560e01b81526001600160a01b038481166004830152600092169063743fc74590602401602060405180830381865afa158015614a3d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614a619190615005565b905060005b600854811015610f27576001600160a01b0382161561413b576001600160a01b0382166000908152604060208181528183206006548452905281208054859290614ab1908490615038565b90915550614abc9050565b60035460405163743fc74560e01b81526001600160a01b0384811660048301529091169063743fc74590602401602060405180830381865afa158015614b06573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190614b2a9190615005565b915080614b3681615126565b915050614a66565b6040516001600160a01b0383166024820152604481018290526149ed90849063a9059cbb60e01b90606401612da2565b6000614bc3826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316614c409092919063ffffffff16565b8051909150156149ed5780806020019051810190614be19190615213565b6149ed5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b606482015260840161072a565b6060614c4f8484600085614c57565b949350505050565b606082471015614cb85760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b606482015260840161072a565b6001600160a01b0385163b614d0f5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e7472616374000000604482015260640161072a565b600080866001600160a01b03168587604051614d2b9190615291565b60006040518083038185875af1925050503d8060008114614d68576040519150601f19603f3d011682016040523d82523d6000602084013e614d6d565b606091505b5091509150614d7d828286614d88565b979650505050505050565b60608315614d97575081612934565b825115614da75782518084602001fd5b8160405162461bcd60e51b815260040161072a91906152ad565b600060208284031215614dd357600080fd5b5035919050565b60008060408385031215614ded57600080fd5b50508035926020909101359150565b6001600160a01b0381168114611c5357600080fd5b600060208284031215614e2357600080fd5b813561293481614dfc565b60008060408385031215614e4157600080fd5b8235614e4c81614dfc565b946020939093013593505050565b60008083601f840112614e6c57600080fd5b50813567ffffffffffffffff811115614e8457600080fd5b6020830191508360208260051b8501011115614e9f57600080fd5b9250929050565b60008060008060408587031215614ebc57600080fd5b843567ffffffffffffffff80821115614ed457600080fd5b614ee088838901614e5a565b90965094506020870135915080821115614ef957600080fd5b50614f0687828801614e5a565b95989497509550505050565b60008060408385031215614f2557600080fd5b823591506020830135614f3781614dfc565b809150509250929050565b6000806000806000806000806000806101408b8d031215614f6257600080fd5b8a35995060208b0135985060408b0135614f7b81614dfc565b975060608b0135614f8b81614dfc565b965060808b0135614f9b81614dfc565b999c989b50969995989760a0870135975060c08701359660e08101359650610100810135955061012001359350915050565b600080600060608486031215614fe257600080fd5b833592506020840135614ff481614dfc565b929592945050506040919091013590565b60006020828403121561501757600080fd5b815161293481614dfc565b634e487b7160e01b600052601160045260246000fd5b6000821982111561504b5761504b615022565b500190565b60008282101561506257615062615022565b500390565b60006020828403121561507957600080fd5b5051919050565b600081600019048311821515161561509a5761509a615022565b500290565b6000826150bc57634e487b7160e01b600052601260045260246000fd5b500490565b6020808252601b908201527f4f776e65722077616c6c6574206973206e6f7420636f72726563740000000000604082015260600190565b60208082526014908201527314d85b1948185b1c9958591e481cdd185c9d195960621b604082015260600190565b600060001982141561513a5761513a615022565b5060010190565b634e487b7160e01b600052603260045260246000fd5b8051801515811461294357600080fd5b60008060008060008060008060008060006101608c8e03121561518957600080fd5b8b519a5060208c0151995060408c0151985060608c0151975060808c0151965060a08c0151955060c08c0151945060e08c015193506101008c015192506101208c015191506151db6101408d01615157565b90509295989b509295989b9093969950565b6020808252600c908201526b5a65726f206164647265737360a01b604082015260600190565b60006020828403121561522557600080fd5b61293482615157565b6020808252601e908201527f537461676577697365207368617265206973206e6f7420636f72726563740000604082015260600190565b60005b83811015615280578181015183820152602001615268565b83811115610f275750506000910152565b600082516152a3818460208701615265565b9190910192915050565b60208152600082518060208401526152cc816040850160208701615265565b601f01601f1916919091016040019291505056fea264697066735822122074f29476848cd9d9a85becb74cff1032e33041cb6435a2a733b71cf6dc4e389c64736f6c634300080a0033
1. FundWallet

2. OwnerWallet

3. Referrals

4. TUSD

5. incentivePerStage

6. investmentPackages

7. mapUserInfo

8. monthlyBonusLoop

9. monthlyPurchase

10. monthlySale

11. monthlySaleClaimed

12. nextRewardDrain

13. pendingReward

14. positionWiseTBC

15. positionWiseWallet

16. pricePerStage

17. referralBonus

18. royaltyIncentive

19. saleEnable

20. stageWiseAvailableTBC

21. stageWiseCurrentSellPosition

22. stageWiseUserPosition

23. stageWiseUserTBC

24. statusPerStage

25. teamRequiredForBonus

26. totalBusiness

27. workingBonus

28. workingBonusLoop

1. addReferral
2. buy
3. claimMonthlyReward
4. claimTBC
5. setExtraBonus
6. setLoopLimit
7. setSellPosition
8. setTeam
9. setWorkingBonus
10. startSale
11. updateFundWallet
12. updateOwnerWallet
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.