Screenshot 2020-12-02 185918
1.5 2 votes
Article Rating


In the TrxKing Smart-Contract were found no vulnerabilities, no backdoors and no scam scripts. The code was manually reviewed for all commonly known and more specific vulnerabilities.

So TrxKing Smart-Contract is safe for use in the main network.





This audit is only to the Smart-Contract code at the specified address.

TRXKing: TLMtUYLJvxiVjarARk7Gv6vS9ER4urmAKp/code

The audit makes no statements or warranties about the suitability or sustainability of the business model or regulatory regime for the business model. Do take into consideration that you are doing all financial actions & transactions at your own risk, especially if you are dealing with high-risk projects / Dapps.


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 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.



Possibilities to decrease the cost of transactions and data storage of Smart-Contracts.





Optimization possibilities

• Recording statistical parameters in the blockchain

uint256 public invested;
uint256 public withdrawn;
uint256 public direct_bonus;
uint256 public match_bonus;


Use data function to calculate parameters instead of writing it in the blockchain.

Note: this comment doesn’t affect the main functionality of the smart-contract.



Independent description of the smart-contract functionality

The TrxKing contract provides the opportunity to invest any amount in TRX (from 50 TRX) in the contract and get a 120-203% return on investment in three different plan 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 any time.

Contract owners fee: 14.28%

Each subsequent Deposit is kept separately in the contract, in order to maintain the payment amount for each Deposit.



• Plan 1: 120% in 40 days
• Plan 2: 150% in 60 days
• Plan 3; 203% in 70 days

Minimum deposit amount is 50 TRX
Maximum deposit number per address is 100




Referral System (Match Bonus):

This contract paid referrals in three level totally 10%

• Level one: 5%
• Level two: 3%
• Level three: 2%

referral should be an active user, it means referral address has at least one deposit
If a referral is not an active user, the owner will be set as upline
The 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.

Direct Bonus:

In this contract, will paid 2% of the first deposit to the investor if the investor has an active referral.

Direct bonus will be paid just in first deposit
Your referral link should be active, means your referral should have at least one deposit





TrxKing Smart-Contract Functions

• Constructor: init owner address and define plans and referral bonus
• _payout: calculate dividends of user deposit and set last payout date
• _refPayout: calculate referral amount and set in user and total variables
• _setUpline: set referrer of a user
• deposit: create new deposit
• withdraw: transfer available dividends, referral and direct bonus to user
• payoutOf: calculate dividends of users in all deposits
• userInfo: return user stats data
• contractInfo: return contract stats data


Related Posts

1.5 2 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x