Weiroll V2

ABDK ConsultingCode version: not recorded (see the report)

ABDK Consulting reviewed Enso (Weiroll V2) on 20 Jun 2025: 10 findings, 0 critical; 7 marked fixed, 3 acknowledged.

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

Report hosted on GitHub.

Trustblock does not review code.

Findings41

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

SeverityOpenAcknowledgedFixed
Critical000
High002
Medium035
Low000

Marked Recommendation by the firm. Not counted as findings.

RecommendationAll brackets except for brackets around the subtraction are redundant.Acknowledged

The report gives no description here.

RecommendationAssembly is redundant here.Acknowledged

The report gives no description here.

RecommendationBrackets around operations are redundant here.Acknowledged

The report gives no description here.

RecommendationConsider specifying as "^0.8.0" unless there is something special regarding this particular version. Also relevant for: cdptr.sol, WeirollVM.sol.   2 pragm...Acknowledged

The report gives no description here.

RecommendationConsider using a constant value instead of a "sub" expression.Acknowledged

The report gives no description here.

RecommendationDespite the name, this file contains not only constants, but also functions.Acknowledged

The report gives no description here.

RecommendationDespite the name, this interface contains only a subset of the WETH API.Acknowledged

The report gives no description here.

RecommendationInput type is checked twice for each input.Acknowledged

The report gives no description here.

RecommendationThe function "unsafe_from_word" is called twice for each input.Acknowledged

The report gives no description here.

RecommendationThere are no range checks for the arguments.Acknowledged

The report gives no description here.

Show 10 more
RecommendationThere should be a function to extract any input except for "EndOfInputs".Acknowledged

The report gives no description here.

RecommendationThese errors could be made more useful by adding certain parameters into them. Also relevant for: WeirollVM.solAcknowledged

The report gives no description here.

RecommendationThese two function have much common code.Acknowledged

The report gives no description here.

RecommendationThis could be simplified as: if (end_offset > length) { unckeced { ... } }   65 if (end_offset <= length ) return word; unchecked {   15 === page 16 ===Acknowledged

The report gives no description here.

RecommendationThis function is redundant, as it is basically an alias for "dynmem.onwrap".Acknowledged

The report gives no description here.

RecommendationThis function is redundant, as it is basically an alias for "dynmem.wrap".Acknowledged

The report gives no description here.

RecommendationThis library should be moved into a separate file named "CallType.sol".   65 library CallType {   21 === page 22 ===Acknowledged

The report gives no description here.

RecommendationThis library should be moved into a separate file named "Input.sol".   71 library Input {  Acknowledged

The report gives no description here.

RecommendationThis library should be moved into a separate file named "Mask.sol".Acknowledged

The report gives no description here.

RecommendationThis library should be moved into a separate file named "Op.sol".   26 library Op {   20 === page 21 ===Acknowledged

The report gives no description here.

Show 10 more
RecommendationThis library should be moved into a separate file named "Output.sol".   94 library Output {   22 === page 23 ===Acknowledged

The report gives no description here.

RecommendationThis library should be moved into a separate file named "Priority.sol".   57 library Priority {  Acknowledged

The report gives no description here.

RecommendationThis type actually encapsulates two fields: offset and length, which is not obvious.Acknowledged

The report gives no description here.

RecommendationThis version requirement is inconsistent with other files in the same code base.Acknowledged

The report gives no description here.

RecommendationWe didn't review these files.   6 import {SafeTransferLib} from "solady/src/utils/SafeTransferLib.sol" ↪ → ; import {FixedPointMathLib} from "solady/src/ut...Acknowledged

The report gives no description here.

RecommendationIt is unclear how the value "0x14" was derived.Fixed

The report gives no description here.

RecommendationIt is unclear, whether "offset" belongs to "dst" or "src".Fixed

The report gives no description here.

RecommendationThe list of "utility" operations looks arbitrary. It is unclear, why the list does include "LTE" and "REVERT_IF_ZERO", but doesn't include "EQ" and "RE- VERT...Fixed

The report gives no description here.

RecommendationThe name is confusing, as the function returns "dynmem", not "bytes".Fixed

The report gives no description here.

RecommendationThe value "0x100000000" should be a named constant.   43 require (cdptr.unwrap(end) <= 0x100000000);   16 === page 17 ===Fixed

The report gives no description here.

Show 1 more
RecommendationThis check treats all bytes under 0x80 as "word_to_reg", while the value of the "WORD_TO_REG" constant is just 0z00.Fixed

The report gives no description here.

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.

Part of Enso’s security record

Enso
Audits4 audits by 2 firmsLast audit Jan 2026, by ABDK Consulting.
Critical findingsNo open critical findingsAcross 4 reports.
Open Enso’s security record

Security firm

ABDK Consulting

34 projects reviewed · 73 reports · latest Jun 2026

See ABDK Consulting’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