RethinkSoft

RethinkSoft Smart Contract Audit Report

Share
Share
PolygonPolygon
ERC 20 Token ContractPrivate Sale
PolygonPolygon
ERC 20 Token ContractPrivate Sale

QuillAudits audited the RethinkSoft smart contracts on Polygon between Jul 27, 2022 and Aug 8, 2022. The audit found 16 issues: 7 medium, 5 low, 4 informational, of which 4 resolved, 11 acknowledged and 1 partially resolved.

Project Description

Kichee Tokens are tokenized voluntary Carbon credits, Water credits, Biogas credits or others,namely credits OffSet Units(

Timeline

S1
Jul 27, 2022
S2
Aug 8, 2022

Scope of Audit

The scope of this audit was to analyse Kichee smart contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

speedometer
0
50%
60%
70%
90%
100%
96.0%
AUDIT SCORE
icon

High

Medium

Low

Informational

open0000
acknowledged0353
partially resolved0001
resolved0400
RethinkSoft

RethinkSoft

Medium Severity Issues

Missing zero address check in whitelistForClaim

Acknowledged
arrow-right
Description

whitelistForClaim() lacks zero address check for _userAddress. It is important to add zero address check for current logic. In the case where some amount gets allocated to zero address. The code will modify (in next fixed version of this contract) the totalMinted, but this
amount cant be claimed, and admin cant deduct/cancel the allocation.

Recommendation

Add zero address check in whitelistForClaim for entered _userAddress array.

Amount is getting assigned instead of adding it to totalMinted

Resolved
arrow-right
Description

whitelistForClaim() is allocating amount to addresses so that these users can claim tokens after. Value of allocated amount _amount[i] on line 429 is getting assigned to totalMinted variable and not getting added while iterating through for loop. This will set the totalMinted to last amount that is given from the array for allocation. In this case totalMinted should get updated to total allocated amount but its getting reassigned to the value of last allocated amount.
The value of totalMinted that is getting used in checkHardCaps, the value wont get updated and because of which users may buy tokens even while hardcap gets reched.

Recommendation

Consider reviewing logic. Consider adding _amount[i] to totalMinted instead of assigning it.

totalSupply() can exceed the hardcap amount

Resolved
arrow-right
Description

In the scenario where the owner sets hardcap as some value. some users buy tokens and there are only some amount of tokens left to reach the hardcap. There are some whitelisted addresses to which admin has allocated some amount of tokens which they can claim. now for e.g some users buy tokens using buyTokensByUSDC or buyTokensByMatic before whitelisted addresses can claim , after that whitelisted addresses claim their allocated tokens. in this
scenario the totalsupply will exceed the hardcap as whitelistForClaim function is not increasing value of totalMinted variable which is getting checked in modifier which checks if hardcap isreached.

Recommendation

Consider reviewing the code logic.

Missing test cases

Acknowledged
arrow-right
Description

Test cases for the code and functions have not been provided.

Recommendation

It is recommended to write test cases of all the functions. Any existing tests that fail must be resolved. Tests will help in determining if the code is working in the expected way. Unit tests,
functional tests should have been performed to achieve good test coverage across the entire codebase. We recommend unit testing for the scenarios with expected high and low price of
usdc and matic for Kichee token.

Old solidity version

Acknowledged
arrow-right
Description

The contract is using solidity version 0.4.24. Using an old version prevents access to new Solidity security checks. This contract contains some functions or codeblocks that are not using safemath protection.

Recommendation

Consider using the latest solidity version.

Broken Functionality

Resolved
arrow-right
Description

checkHardCaps modifier checks for hardcap <= totalMinted + _request which means hardcap should be less than or equal to totalminted tokens plus requested tokens. Here there can following type of scenario:

Recommendation

change <= check to >= in first condition in checkHardCaps modifier. Which will check for - (the
amount of already minted tokens + the amount of tokens user wants to buy) is less than
hardcap.

Broken Functionality

Resolved
arrow-right
Description

withdrawUSDC() is using ERC20 transferFrom instead of transfer , Which will revert with 'ERC20: insufficient allowance' error message as this contract don’t has allowance to itself to move to

Recommendation

Use transfer() instead of transferFrom in withdrawUSDC() function.

Low Severity Issues

Informational Issues

Appendix

Disclaimer

RethinkSoft

RethinkSoft

Medium Severity Issues
Low Severity Issues
Informational Issues
Appendix
Disclaimer
View Report PDF

Get an Audit done today for your Smart Contract

Join 1500+ leaders who secured themselves from losing Billion Dollars

cta-banner
cta-banner-bgcta-banner-bg-mobile

Related audits

WE SECURE EVERYTHING YOU BUILD.

From day-zero risk mapping to exchange-ready audits, QuillAudits helps projects grow with confidence. Smart contracts, dApps, infrastructure, compliance: secured end to end.

QuillAudits Logo


ISO 27001Circle Alliance Program
Uniswap FoundationAethiropt-collectivePolygon SPNBNB Chain Kickstart

All Rights Reserved. © 2026. QuillAudits - LLC