Tajir Chain

Tajir Chain Smart Contract Audit Report

Share
Share
Tajir ChainTajir Chain
Vesting ContractERC 20 Token Contract
Tajir ChainTajir Chain
Vesting ContractERC 20 Token Contract

QuillAudits audited the Tajir Chain smart contracts on Tajir Chain between Jul 21, 2026 and Aug 27, 2026. The audit found 13 issues: 2 high, 5 medium, 2 low, 4 informational, of which 10 resolved and 3 acknowledged.

kyc
KYC VerificationQuillAudits Verified
icon
kyc
Verified ContractsContract Verification Status
icon
kyc
Vigilant SquadQuillAudits Multilayered Audit
icon

Project Description

Tajir Chain's token and vesting layer. TajirToken is a fixed-supply, UUPS-upgradeable ERC-20 with EIP-2612 permit, minted once at initialization and locked on Ethereum L1 to back TJR as the native gas asset on the Tajir rollup. TajirTokenProxy is a thin ERC-1967 proxy wrapper deployed in front of it. TajirVestingWallet distributes the 650M TJR tokenomics allocation across eight categories, extending OpenZeppelin's VestingWalletCliff with tranche-based release nothing unlocks until the cliff, after which the allocation vests in N equal installments and adds a one-shot admin clawback of the still-unvested surplus.

Timeline

S1
Jul 21, 2026
IA
Jul 24, 2026
S2
Aug 27, 2026

Scope of Audit

The scope of this Audit was to analyze the Tajir chain Smart Contracts for quality, security, and correctness.

Methodology: the QuillAudits smart contract audit process.

icon
speedometer
0
50%
60%
70%
90%
100%
96.0%
QUILLAUDITS SCORE
Remediation Score91
Operational Resilience73
Governance & Centralization70
Tests, Coverage & Doc39

Critical

High

Medium

Low

Informational

open00000
acknowledged00021
partially resolved00000
resolved02503
Tajir Chain

Tajir Chain

High Severity Issues

A single global revoked flag voids the vesting schedule for every asset held

Resolved
arrow-right
Description

The vesting wallet stores revocation as a single global boolean (bool revoked, L35) while allocations are derived per asset from live balances. withdrawUnreleased(token, to) accepts an admin-chosen token address and writes that one flag at _vestingSchedule consults that same flag for everyasset: Revoking against asset X therefore routes asset Y straight to fully-vested, regardless of elapsed time, cliff, or tranche count. There is no un-set path AlreadyRevoked at L121 makes it permanent. The dangerous path requires no malice. An admin sweeping an unwanted or airdropped token out of the wallet is performing an ordinary operation. That one call fully vests the entire remaining allocation and permanently burns the one-shot clawback for every other asset. A secondary path exists but requires role overlap. Because claimable and currentBalance are both read from the admin-supplied token, a token that merely reports a large balanceOf and no-ops its transfer satisfies the currentBalance > claimable guard at while moving nothing defeating the documented invariant that revoked cannot be set without moving a non-zero surplus. An honest admin has no incentive to do this, since it benefits the beneficiary at the protocol's expense; it becomes exploitable only where admin and beneficiary are the same key.

Contract

src/TajirVestingWallet.sol

Recommendation

Make revocation per-asset and assert that value actually moved. Because OpenZeppelin's _vestingSchedule signature does not carry the asset, this requires overriding vestedAmount(address,uint64) and vestedAmount(uint64) to consult the per-asset flag, or tracking the asset in transient storage for the duration of the call. Additionally, assert a real balance delta so the flag cannot be flipped without value moving:

Unprotected inherited initializer allows seizure of an uninitialized vesting wallet

Resolved
arrow-right
Description

TajirVestingWallet inherits VestingWalletUpgradeable.initialize(address,uint64,uint64), which is declared public virtual initializer at VestingWalletUpgradeable.sol:57. The contract declares its own 8-argument initialize(...) at with a different function selector, and does not mark it override. Both functions therefore remain externally callable on the deployed contract. This was confirmed against the compiled artifact: Both paths consume the same one-shot initializer flag, so whichever executes first wins. _disableInitializers() in the constructor protects only the implementation contract, it never touches the proxy's storage. The window is reachable because deployment is not atomic.

Contract

src/TajirVestingWallet.sol

Recommendation

Apply both fixes 1. Override and permanently disable the inherited initializer: 2. Make deployment atomic by passing the initialization calldata as the proxy constructor's data argument, removing the window entirely:

Medium Severity Issues

Low Severity Issues

Informational Issues

Appendix

Disclaimer

Tajir Chain

Tajir Chain

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

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