Oscar - Audit

CertiK1 address on Ethereum

CertiK reviewed OSCAR (Oscar - Audit) on 24 Jan 2025: 10 findings, 0 critical; 2 marked fixed, 8 open.

No open critical findings
Open the reportOpen OSCAR’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings10

Statuses are the security firm’s own, from its report.

SeverityOpenAcknowledgedFixed
Critical000
High201
Medium000
Low601
HighCentralization Risks (devWallet)Open

In the contract `OSCAR`, the role `devWallet` has authority over the functions shown in the diagram below. Any compromise to the `devWallet` account may allow the hacker to take advantage of this authority and withdraw the contract's ETH balance to the dev wallet owner, withdraw collected `OSCAR` tokens to the dev wallet, and perform token swaps for a specified percentage to swap collected `OSCAR` tokens to WETH and send to the `marketingWallet`. ![](https://accelerator-tasks-prod.acc.corp.certik.com/11ef-d8f8-dfa9f040-86fb-ef7c3319a43f/diagrams/centralization_OSCAR-OSCAR-devWallet.svg)

HighInitial Token DistributionOpen

All of the `OSCAR` tokens are sent to the contract deployer. This is a centralization risk because the deployer can distribute tokens without obtaining the consensus of the community. Any compromise to these addresses may allow a hacker to steal and sell tokens on the market, resulting in severe damage to the project.

LowMiscalculation of Max HoldingOpen

The transaction may be charged fees, so the max holding of the receiver should be the sum of the held tokens and the amount received from the transfer. The fees should not be included in the max holding.

LowMissing Error MessagesOpen

The **require** can be used to check for conditions and throw an exception if the condition is not met. It is better to provide a string message containing details about the error that will be passed back to the caller.

LowState Variable Should Be Declared ConstantOpen

State variables that never change should be declared as `constant` to save gas. ```solidity=513 uint256 public initialTotalSupply = 1000000000 * 10**_decimals; ``` - `initialTotalSupply` should be declared `constant`.

LowUnnecessary Unlimited LP Token Approval in `addLPOpen

In the `addLPToUniswap()` function, the contract owner adds liquidity to the DEX pair and sends the received LP tokens to the wallet address `0xf75ABFB159a5a960F854be03575Df74277cB72e8`. The contract grants unlimited approval of LP tokens to the DEX router, which is unnecessary because the token contract itself does not retain any LP tokens.

LowUnused state variableOpen

Some state variables are not used in the codebase. This can lead to incomplete functionality or potential vulnerabilities if these variables are expected to be utilized. Variable `deadAddress` in `OSCAR` is never used in `OSCAR`. ```solidity=510 address private constant deadAddress = address(0xdead); ```

LowVariables That Could Be Declared as ImmutableOpen

The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

Contracts in scope1

AddressChainSource code
0xebb66a88cedd12bfe3a289df6dfee377f2963f12Chain: EthereumSource code: Verified source

Part of OSCAR’s security record

OSCAR
Audits1 audit by 1 firmLast audit Jan 2025, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open OSCAR’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’s audits

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us