GOATAI-treasury

GOATAI-treasury Smart Contract Audit Report

Share
Share
EVMEVM
Social PlatformsDeFiToken Swap+1
EVMEVM
Social PlatformsDeFi+2

QuillAudits audited the GOATAI-treasury smart contracts on EVM between Apr 8, 2025 and May 5, 2025. The audit found 3 issues: 1 medium, 2 low, of which 2 resolved and 1 acknowledged.

Project Description

The GOATAITreasury contract manages token withdrawals
and swaps via Uniswap V2, enabling controlled treasury management with role-based access and upgradeability.

Timeline

S1
Apr 8, 2025
IA
Apr 21, 2025
S2
May 5, 2025

Scope of Audit

The Scope of the Audit is to analyse the security and Correctness of GOATAI Contract.

Methodology: the QuillAudits smart contract audit process.

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

High

Medium

Low

Informational

open0000
acknowledged0010
partially resolved0000
resolved0110
GOATAI-treasury

GOATAI-treasury

Medium Severity Issues

Incorrect Swap Path Generation for WETH BaseTokens

Resolved
arrow-right
Description

The _getSwapParams() function in the GOATAITreasury contract constructs a fixed three-token path for all swaps: [baseToken, WETH, outputToken]. While this is generally appropriate for routing through a common intermediary like WETH, it introduces a critical flaw when the baseToken is already WETH. In such cases, the generated path becomes [WETH, WETH, outputToken]. Uniswap V2 explicitly disallows creating or using liquidity pairs with identical token addresses, as enforced in its createPair() function. This can lead to failed transactions, revert errors, or unexpected swap behavior

Contract

GOATAITreasury.sol

Recommendation

To maintain compatibility with Uniswap V2 and prevent unnecessary or invalid swap paths, the contract should conditionally construct the path.

Low Severity Issues

Appendix

Disclaimer

GOATAI-treasury

GOATAI-treasury

Medium Severity Issues
Low Severity 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