This audit is not a call to participate in the project and applies only to the Smart-Contract code at the specified address.
Do not forget that you are doing all financial actions at your own risk, especially if you deal with high-risk projects.
In the FinyTronDue Smart-Contract were found no vulnerabilities and no backdoors.
The code was manually reviewed for all commonly known and more specific
So FinyTronDue Smart-Contract is safe for use in the main network.
CRITICAL ISSUES (critical, high severity): 0
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; high priority unacceptable bugs for deployment at mainnet; critical warnings for owners, customers or investors.
ERRORS, BUGS AND WARNINGS (medium, low severity): 0
Bugs that can trigger a contract failure, with further recovery only possible through manual modification of the contract state or contract replacement altogether; Lack of necessary security precautions; other warnings for owners and users.
OPTIMIZATION POSSIBILITIES (very low severity): 1
Possibilities to decrease cost of transactions and data storage of Smart-Contracts.
NOTES AND RECOMMENDATIONS (very low severity): 3
Tips and tricks, all other issues and recommendations, as well as errors that do not affect the functionality of the Smart-Contract.
1. Recording statistical parameters in the blockchain (very low severity):
List of statistical parameters that also increase the cost of transactions and increase the amount of data stored in the blockchain:
uint public totalUsers; uint public totalDeposits; uint public totalInvested; uint public totalWithdrawn;
Recommendation: use events and log this information instead of writing it to the blockchain.
Note: this comment doesn’t affect the main functionality of the smart-contract.
3. Loops over dynamic variables (very low severity):
In the withdraw, getUserDividends, getUserAvailable, getUserTotalDeposits, and getUserTotalWithdrawn functions, cycles unrestrictedly grow as the number of deposits increases. If one creates a large number of parallel deposits from a single wallet, this can lead to an excessive increase in the transaction cost.
Note: maximum amount of deposits from single account — 100.
4. Closing the last payment (very low severity).
If the last user who leaves the project has a payout greater than the smart-contract balance, he will receive the entire available balance, but it will be recorded that the entire payout was closed.
Note: this comment is not critical, since after the smart contract balance is empty, it is unlikely that the contract will be used again. So it makes sense for last user to get at least something.
4. Showing wrong data inside of view function (very low severity).
Return value of ‘getUserPercentRate’ is restricted to 35% percents, but ‘getContractBalanceRate’ function is not restricted, so it will show incorrect percent if balance percent goes upper than 33.5%.
Note: this comment concerns only view info function and does not not concern internal functionality.
Independent description of the smart-contract functionality:
The FinyTronDue contract provides the opportunity to invest any amount in TRX (from 200 TRX) in the contract and get a 300% return on investment, if the contract balance has enough funds for payment.
Dividends are paid from deposits of users (Ponzi scheme).
You can create a Deposit by calling the “invest” function and attaching the required amount of TRX to the transaction (from 200 TRX inclusive). Each subsequent Deposit is kept separately in the contract, in order to maintain the payment amount for each Deposit.
The daily percentage for user dividends starts from 1.5% and depends on the following factors:
— For every 500,000 TRX of the total balance value (90% of all-time invested ) +0.1%. If user withdraws at least once this bonus is not available for him anymore.
— For every 1 day of non-withdrawal of dividends from the smart contract +0.3% (when creating repeated deposits, the percent keeps growing).
The total user percent is restricted to 35%.
All dividends are calculated at the moment of request and available for withdrawal at any time. Withdrawal is performed by calling the “withdraw” function from the address the Deposit was made.
Contract owners fee: 10% of the invested funds is sent to 3 owner addresses.
There is three-level referral program: in the “invest” function, one can specify the address of the referrer. As a result, the referrer is set forever and gets opportunity to withdraw % of the investor’s Deposit according to the following conditions: 1 level — 3%, 2 level — 2%, 3 level — 1%.
Requirements for the referrer: you can not specify your own wallet as a referrer, as well as a wallet that does not have at least one contribution in the smart contract. If wrong referrer is provided, no referrer is used in current deposit.
If you have any questions or are interested in developing/auditing of Smart-Contracts, please contact us and we will consult you.