Jelly -Watt2Trade

QuillAuditsFiles named in the report

Audit · firm’s term: audit report

QuillAudits reviewed Jelly -Watt2Trade on 16 Oct 2023: 5 findings, 0 critical; all marked fixed.

No open critical findings
Open the reportOpen Jelly -Watt2Trade’s security record

Report hosted on quillaudits.com.

Trustblock does not review code.

Findings9

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

SeverityOpenAcknowledgedFixed
Critical000
High002
Medium001
Low002

Marked Informational by the firm. Not counted as findings.

InformationalComparison of values to a boolean constantFixed

Some mappings were used in the contract to map addresses to a boolean. This is to help know when a value is true or false. However, because these are the only two possible outcomes, it is recommended to use the mapping to serve as the condition within the require statement.  W2TContractAddress[msg.sender] is expected to return a true while !W2TContractAddress[msg.sender] for false.StakingVault: • onlyW2T modifier EscrowAccount: • placeOptionSellOrder • placeOptionBuyOrder

InformationalFunctions certain to fail when called by unpermitted address should be marked as payable to save gasFixed

There are some privileged functions in all the contracts under scope that allow for either admin or whitelisted addresses to call, else it fails. Since these functions are certain to fail when triggered when unpermitted addresses, they can be marked as payable functions. Payable functions are cheaper when called and can save over 50 gas or more.

InformationalMissing check for zero addressFixed

Updating state changes that pertains to addresses are a critical action especially avoiding setting any to the null address. For instance, on changing the ENERGY_COIN address in the staking vault contract to a zero address, this would disrupt the contract flow and cause a denial of service. StakingVault: • consumeCoins EscrowAccount: • adjustContractAddresses

InformationalRedundant code creationFixed

Unnecessary code implemented on update functions can be removed to save gas. In the preceding lines before the issue pointed out, a new local variable was created called newGen. The newGen variable equals the summation of the CURRENT_FEE_GEN and 1. After updating all mappings that pertains to the fee, the state variable CURRENT_FEE_GEN was afterwards set to newGen. For an optimized code, it is okay to update the CURRENT_FEE_GENhttps://github.com/Watt-2-Trade/dex-smartcontracts/blob/main/contracts/EscrowAccount.sol#L1042 https://github.com/Watt-2-Trade/dex-smartcontracts/blob/main/contracts/EscrowAccount.sol#L1062

Contracts in scope

No deployed address is recorded for this audit.

The report names a repository or files. Open the report to see its scope.

Repository and files the report names (6)

  • contracts/Common.sol
  • EscrowAccount.sol
  • contracts/EscrowAccount.sol
  • contracts/ElectricityPrices.sol
  • blob/50338be7b27cc73cf60bdf882d61b7d25f083612/contracts/EscrowAccount.sol
  • contracts/StakingVault.sol

Part of Jelly -Watt2Trade’s security record

Jelly -Watt2Trade
Audits2 audits by 1 firmLast audit May 2026, by QuillAudits.
Critical findingsNo open critical findingsAcross 2 reports.
Open Jelly -Watt2Trade’s security record

Security firm

QuillAudits

449 projects reviewed · 593 reports · latest Nov 2026

See QuillAudits’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