Defi Yeild - IDO,Token,Vesting

Defi Yeild - IDO,Token,Vesting Smart Contract Audit Report

Share
Share
EthereumEthereum
ERC 20 Token ContractIDO/ILOVesting Contract
EthereumEthereum
ERC 20 Token ContractIDO/ILO+1

QuillAudits audited the Defi Yeild - IDO,Token,Vesting smart contracts on Ethereum between Sep 26, 2023 and Oct 5, 2023. The audit found 7 issues: 3 high, 2 medium, 1 low, 1 informational, of which 6 resolved and 1 acknowledged.

Project Description

The main purpose of the smart contracts is IDO/Vesting facilities. For IDO smart contracts it should support round system and allow
payments in ETH and stablecoins(USDT/USDC). For vesting it should distribute tokens linearly and support multiple pools with own schedule

Timeline

S1
Sep 26, 2023
S2
Oct 5, 2023

Scope of Audit

The audit will focus on verifying the functionality, security, and correctness of IDO and vesting smart contracts

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged1000
partially resolved0000
resolved2211
Defi Yeild - IDO,Token,Vesting

Defi Yeild - IDO,Token,Vesting

High Severity Issues

Lack of Duplicate Check in setupBeneficiaryBatches Function beneficiaries array

Acknowledged
arrow-right
Description

The setupBeneficiaryBatches function does not perform a duplicate check on the beneficiaries array. Due to this oversight, it is possible to add the same beneficiary multiple times within the same batch, causing inconsistencies in the locking amounts and leading to potential discrepancies in the distribution of assets. This lack of a duplicate check undermines the integrity of the beneficiary setup process and can result in financial imbalances.

Recommendation

To resolve this issue and ensure the uniqueness of beneficiaries within a batch, implement a duplicate check in the setupBeneficiaryBatches function.

Lack of Oracle Response Validation for Stale Prices

Resolved
arrow-right
Description

The _getTokenAmount and _updatePurchasingState functions are not checking the freshness of the price received from the oracle before using it in calculations. This vulnerability can lead to inaccurate conversion rates and investment calculations. If stale or outdated prices are used, it can result in incorrect token amounts being allocated to investors, causing financial losses and potential disputes

Recommendation

To address this issue and ensure the accuracy of price conversions, implement a check to validate the freshness of the oracle response before using it in calculations.

Incorrect Condition Checks in setMaxInvestment and setMinInvestment Functions

Resolved
arrow-right
Description

The setMaxInvestment and setMinInvestment functions are incorrectly checking conditions. In setMaxInvestment, it compares the input _investment with _minInvestment which is not the intended comparison. Similarly, in setMinInvestment, it compares _investment with _maxInvestment which is contrary to the expected behavior. These incorrect condition checks can lead to unpredictable behavior and potential vulnerabilities in the investment limits of the IDO project

Recommendation

To resolve this issue and ensure correct condition checks, update the setMaxInvestment and setMinInvestment functions with the appropriate comparisons. Add additional checks as well to limit the max investment that can be allowed.

Medium Severity Issues

Low Severity Issues

Informational Issues

Appendix

Disclaimer

Defi Yeild - IDO,Token,Vesting

Defi Yeild - IDO,Token,Vesting

High Severity Issues
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