CRITICAL ISSUES (critical, high severity): 0
Critical and harmful access for owners, user block ability, Bugs and vulnerabilities that enable theft of funds, lock access to funds without possibility to restore it, or lead to any other loss of funds to be transferred to any party.
ERRORS, BUGS AND WARNINGS (medium, low severity): 0
Bugs can negatively affect the usability of a program, errors that can trigger a contract failure, Lack of necessary security precautions, other warnings for owners and users, warning codes that are valid code but the compiler thinks are suspicious.
OPTIMIZATION (low severity): 1
Methods to decrease the cost of transactions in Smart-Contract.
RECOMMENDATIONS (very low severity): 1
Hint and tips to improve contract functionality and trustworthy.
1- Loop on the dynamic variable (low severity).
If the user gets more parallel deposits his withdraw transaction going to cost more transaction fee, because the loop on the dynamic variable is used in the ‘withdraw’ function.
In case of exceeding the GAS limit of the size of transaction withdraw is not possible.
This comment is relevant only if a user creates an excessive amount of parallel deposits (more than 100).
INDEPENDENT DESCRIPTION OF THE SMART-CONTRACT FUNCTIONALITY
The WINBNB smart-contract provides the opportunity to invest any amount in BNB (from 0.05 BNB) in the contract and get a 287 to unlimited return on investment in four different plans if the contract balance has enough funds for payment.
- Dividends are paid from deposits of users.
- All dividends are calculated at the moment of request and available for withdrawal at every 36 hours
- Each subsequent Deposit is kept separately in the contract, in order to maintain the payment amount for each Deposit.
Launch Date: Fri Apr 16 2021 17:00:00 GMT
Contract Owners Fee
FOUR INVESTMENT PLANS
|Plans||Total Return||Days||Daily Profit|
- The minimum deposit amount is 0.05 BNB
Referral System (Match Bonus)
This contract paid referrals in three-level totally 8.1%
- Level one: 4%
- Level two: 2%
- Level three: 2%
- Return to the investor: 0.1%
- Referral should be an active user. it means the referral address has at least one deposit
- A referrer is specified once at the time of the first deposit and is assigned to the user without the possibility of changing. From each subsequent Deposit, the referrer will get his percent.
- If a user has not a referrer all referral amount transfer to owners.
- users can only withdraw every 36 hours
Notes and Hints:
- In this contract based on function “grant”, the user can send BNB to create a new deposit for another address and his address is upline.
- Based on the above code if an address sends BNB directly to the contract address, a deposit will be created for him without a referral
- If an address sends zero amount directly to the contract address withdraw function runs automatically.
WINBNB SMART-CONTRACT FUNCTIONS
- Constructor: initial developer, marketing and fund address wallets and call “_init” function at the deployment of the contract in mainnet.
- Function without any name: used this function to handle direct contract address call which returns invest and withdraws based on message BNB amount.
- setMarketingAccount: set new marketing address
- getMarketingAccount: only called by the owner and return marketing address.
- setDeveloperAccount: set new developer address
- getDeveloperAccount: only called by owner and return developer address.
- setReferenceAccount: set new fund address
- getReferenceAccount: only called by the owner and return reference address.
- _init: define owner as a first user of contract and initial plans
- getCurrentPlans: return all plans
- getTotalInvestments: return total investment for only owners
- getBalance: return contract balance
- getUIDByAddress: return user ID based on user address
- getInvestorInfoByUID: return all stats of a user
- getInvestmentPlanByUID: return all user’s plans
- _addInvestor: create new user and set referrals
- _invest: make a new deposit
- grant: make a new deposit for another address
- invest: call _invest and make a new deposit
- withdraw: transfer available dividends, referral and bonus to user
- _calculateDividends: calculate dividends of a plan
- _calculateReferrerReward: calculate referrals and turnover for bonus prizes