Antigravity

Antigravity Smart Contract Audit Report

Share
Share
EthereumEthereum
EthereumEthereum

QuillAudits audited the Antigravity smart contracts on Ethereum between Jun 20, 2024 and Jun 26, 2024. The audit found 7 issues: 2 high, 2 low, 3 informational, of which 7 resolved and 0 acknowledged.

Project Description

The project involves a system of interconnected smart contracts designed to manage and distribute NFTs (FuelCells) and related rewards. The FuelCells contract is an ERC721 NFT contract that allows the controlled minting and burning of NFTs, with permissions granted to the LaunchControlCenter to handle minting during active phases. The LaunchControlCenter is responsible for processing NFT purchases and splitting payments into predefined streams, while the Jackpot and Treasury contracts manage the distribution of lottery winnings and yield, respectively, based on the NFTs minted in different journeys.

Timeline

S1
Jun 20, 2024
S2
Jun 26, 2024

Scope of Audit

The scope of this audit was to analyze the Antigravity Contracts for quality, security, and correctness

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0000
partially resolved0000
resolved2023
Antigravity

Antigravity

High Severity Issues

Potential for Incorrect Yield Calculation Due to Balance Change in distributeYield Function

Resolved
arrow-right
Description

The distributeYield function in the contract relies on calculating the available yield based on the darkToken balance at the time of execution, subtracting the totalYieldDistributed. However, this approach is flawed because the darkToken balance can change at any time, particularly if a user claims rewards from the treasury while the function is being executed. This can lead to an inflated totalYieldDistributed value, causing the contract to distribute incorrect amounts of yield across different journeys. As a result, some tokens may be locked or misallocated, disrupting the overall accounting and fairness of the distribution process.

Contract

Treasury.sol

Recommendation

To prevent these issues, the yield calculation should be insulated from any balance changes that might occur due to user actions, such as unwrapping (claiming) rewards from the treasury.

Locked Tokens in Jackpot Contract Due to Incorrect totalPayout Calculation

Resolved
arrow-right
Description

The Jackpot contract incorrectly handles the totalPayout calculation, leading to locked tokens when users claim rewards from previous lotteries. When a user claims their reward, the totalPayout is not diminished, resulting in an inaccurate calculation of the available balance for subsequent lotteries

Contract

Jackpot.sol

Recommendation

To prevent the locking of tokens, the totalPayout variable should be replaced with a pendingPayout that accurately tracks the remaining payouts for each lottery. This pendingPayout should be diminished each time a user claims their reward, ensuring that the available balance for future lotteries is correctly calculated.

Low Severity Issues

Informational Issues

Appendix

Disclaimer

Antigravity

Antigravity

High 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