VegaSec / Solidity scan report

Euler.sol

VSS-20261004-R87ROKTY · generated Oct 4, 2026, 12:36 AM

Clear surface · automated61 findings1 highEtherscan verified4 warningssemgrep 1.163.0

Verdict is derived from severity counts via the same deterministic formula every VegaSec report uses. Euler.sol was scanned from etherscan verified. This is static-analysis triage, not a certification or formal audit attestation.

Signature

signed

This report is signed. Anyone can verify that these exact bytes came from us, with no account, no wallet and no API key. The signature proves integrity and authorship. It does not prove the audited contract is safe: read the coverage status and the limitations above.

sha256
3575d5a89750b394...69dfebd1
Signed by
Ed25519 key vsig-2026-09
Canonical version
vss-canonical-1
Bytes served
stored canonical text, byte for byte

PDF artifact

Queued artifact pipeline · not blocking on the scan

Not requested

No PDF artifact has been requested for this report yet. The HTML report and the Markdown export already carry the full disclaimer and limitations inline. PDF synthesis is a queued artifact, not part of the scan path.

Status endpoint

GET /report/solidity/VSS-20261004-R87ROKTY/export.pdf

Solidity evidence report

61 audit findings

critical: 0high: 1medium: 0low: 1informational: 59

Severity distribution

Executive summary

  • 61 findings surfaced (0 critical, 1 high, 0 medium, 1 low, 59 informational).
  • HIGH · Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38) uses delegatecall to a input-controlled function id (callInternalModule) — exploitability medium.
  • Automated static analysis only. A human operator review has not been attached to this report.

Warnings (4)

  • · Unmapped detector slither:dead-code — classified as 'other'
  • · Unmapped detector slither:too-many-digits — classified as 'other'
  • · Unmapped detector slither:unused-state — classified as 'other'
  • · Unmapped detector slither:immutable-states — classified as 'other'
semgrep 1.163.0solc 0.8.30
  • highAccess controlConfidence: mediumExploitability: mediumDetector: slither

    Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38) uses delegatecall to a input-controlled function id

    Affected location
    contracts/Base.sol:34-38 · callInternalModule
    Detector / source
    slither · slither:controlled-delegatecall

    Evidence

    Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38) uses delegatecall to a input-controlled function id - (success,result) = moduleLookup[moduleId].delegatecall(input) (contracts/Base.sol#35)

    Exploitability notes

    Medium-confidence detection; manual review required before relying on the finding either way.

    Remediation

    Gate privileged functions behind a tested role/ownership pattern (e.g. OpenZeppelin Ownable/AccessControl). Avoid tx.origin for authorization.

    Limitations

    • Medium analyzer confidence; manual review should confirm the code path and preconditions.
    • Exploitability depends on deployment context, permissions, balances, and reachable preconditions.
    • Analyzer output did not include a source excerpt for this finding.
  • lowAccess controlConfidence: mediumExploitability: mediumDetector: slither

    Euler.constructor(address,address).admin (contracts/Euler.sol#10) lacks a zero-check on :

    Affected location
    contracts/Euler.sol:10 · admin
    Detector / source
    slither · slither:missing-zero-check

    Evidence

    Euler.constructor(address,address).admin (contracts/Euler.sol#10) lacks a zero-check on : - upgradeAdmin = admin (contracts/Euler.sol#14) - governorAdmin = admin (contracts/Euler.sol#15)

    Exploitability notes

    Medium-confidence detection; manual review required before relying on the finding either way.

    Remediation

    Gate privileged functions behind a tested role/ownership pattern (e.g. OpenZeppelin Ownable/AccessControl). Avoid tx.origin for authorization.

    Limitations

    • Medium analyzer confidence; manual review should confirm the code path and preconditions.
    • Exploitability depends on deployment context, permissions, balances, and reachable preconditions.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalLogicConfidence: highExploitability: lowDetector: slither

    Version constraint ^0.8.0 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html)

    Affected location
    contracts/Base.sol:3 · ^0.8.0
    Detector / source
    slither · slither:solc-version

    Evidence

    Version constraint ^0.8.0 contains known severe issues (https://solidity.readthedocs.io/en/latest/bugs.html) - FullInlinerNonExpressionSplitArgumentEvaluationOrder - MissingSideEffectsOnSelectorAccess - AbiReencodingHeadOverflowWithStaticArrayCleanup - DirtyBytesArrayToStorage - DataLocationChangeInInternalOverride - NestedCalldataArrayAbiReencodingSizeValidation - SignedImmutables - ABIDecodeTwoDimensionalArrayMemory - KeccakCaching. It is used by: - ^0.8.0 (contracts/Base.sol#3) - ^0.8.0 (contracts/Constants.sol#3) - ^0.8.0 (contracts/Euler.sol#3) - ^0.8.0 (contracts/Events.sol#3) - ^0.8.0 (contracts/Proxy.sol#3) - ^0.8.0 (contracts/Storage.sol#3)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Re-derive the business rule by hand, write a property-based test that fails on the current path, and only then fix the implementation.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: mediumExploitability: lowDetector: slither

    Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38) is never used and should be removed

    Affected location
    contracts/Base.sol:34-38 · callInternalModule
    Detector / source
    slither · slither:dead-code

    Evidence

    Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38) is never used and should be removed

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • Medium analyzer confidence; manual review should confirm the code path and preconditions.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalUnchecked callConfidence: highExploitability: lowDetector: slither

    Low level call in Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38):

    Affected location
    contracts/Base.sol:34-38 · callInternalModule
    Detector / source
    slither · slither:low-level-calls

    Evidence

    Low level call in Base.callInternalModule(uint256,bytes) (contracts/Base.sol#34-38): - (success,result) = moduleLookup[moduleId].delegatecall(input) (contracts/Base.sol#35)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Check the boolean return of low-level call/delegatecall/send and revert on failure with a descriptive reason string.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalLogicConfidence: highExploitability: lowDetector: slither

    Modifier Base.FREEMEM() (contracts/Base.sol#62-81) is not in mixedCase

    Affected location
    contracts/Base.sol:62-81 · FREEMEM
    Detector / source
    slither · slither:naming-convention

    Evidence

    Modifier Base.FREEMEM() (contracts/Base.sol#62-81) is not in mixedCase

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Re-derive the business rule by hand, write a property-based test that fails on the current path, and only then fix the implementation.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalLogicConfidence: highExploitability: lowDetector: slither

    Base.revertBytes(bytes) (contracts/Base.sol#87-95) uses assembly

    Affected location
    contracts/Base.sol:87-95 · revertBytes
    Detector / source
    slither · slither:assembly

    Evidence

    Base.revertBytes(bytes) (contracts/Base.sol#87-95) uses assembly - INLINE ASM (contracts/Base.sol#89-91)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Re-derive the business rule by hand, write a property-based test that fails on the current path, and only then fix the implementation.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: mediumExploitability: lowDetector: slither

    Base.revertBytes(bytes) (contracts/Base.sol#87-95) is never used and should be removed

    Affected location
    contracts/Base.sol:87-95 · revertBytes
    Detector / source
    slither · slither:dead-code

    Evidence

    Base.revertBytes(bytes) (contracts/Base.sol#87-95) is never used and should be removed

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • Medium analyzer confidence; manual review should confirm the code path and preconditions.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.SECONDS_PER_YEAR (contracts/Constants.sol#8) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:8 · SECONDS_PER_YEAR
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.SECONDS_PER_YEAR (contracts/Constants.sol#8) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MAX_SANE_AMOUNT (contracts/Constants.sol#13) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:13 · MAX_SANE_AMOUNT
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MAX_SANE_AMOUNT (contracts/Constants.sol#13) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MAX_SANE_SMALL_AMOUNT (contracts/Constants.sol#14) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:14 · MAX_SANE_SMALL_AMOUNT
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MAX_SANE_SMALL_AMOUNT (contracts/Constants.sol#14) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MAX_SANE_DEBT_AMOUNT (contracts/Constants.sol#15) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:15 · MAX_SANE_DEBT_AMOUNT
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MAX_SANE_DEBT_AMOUNT (contracts/Constants.sol#15) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.INTERNAL_DEBT_PRECISION (contracts/Constants.sol#16) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:16 · INTERNAL_DEBT_PRECISION
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.INTERNAL_DEBT_PRECISION (contracts/Constants.sol#16) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MAX_ENTERED_MARKETS (contracts/Constants.sol#17) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:17 · MAX_ENTERED_MARKETS
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MAX_ENTERED_MARKETS (contracts/Constants.sol#17) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MAX_POSSIBLE_ENTERED_MARKETS (contracts/Constants.sol#18) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:18 · MAX_POSSIBLE_ENTERED_MARKETS
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MAX_POSSIBLE_ENTERED_MARKETS (contracts/Constants.sol#18) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.CONFIG_FACTOR_SCALE (contracts/Constants.sol#19) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:19 · CONFIG_FACTOR_SCALE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.CONFIG_FACTOR_SCALE (contracts/Constants.sol#19) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.RESERVE_FEE_SCALE (contracts/Constants.sol#20) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:20 · RESERVE_FEE_SCALE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.RESERVE_FEE_SCALE (contracts/Constants.sol#20) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.DEFAULT_RESERVE_FEE (contracts/Constants.sol#21) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:21 · DEFAULT_RESERVE_FEE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.DEFAULT_RESERVE_FEE (contracts/Constants.sol#21) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.INITIAL_INTEREST_ACCUMULATOR (contracts/Constants.sol#22) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:22 · INITIAL_INTEREST_ACCUMULATOR
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.INITIAL_INTEREST_ACCUMULATOR (contracts/Constants.sol#22) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.AVERAGE_LIQUIDITY_PERIOD (contracts/Constants.sol#23) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:23 · AVERAGE_LIQUIDITY_PERIOD
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.AVERAGE_LIQUIDITY_PERIOD (contracts/Constants.sol#23) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MIN_UNISWAP3_OBSERVATION_CARDINALITY (contracts/Constants.sol#24) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:24 · MIN_UNISWAP3_OBSERVATION_CARDINALITY
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MIN_UNISWAP3_OBSERVATION_CARDINALITY (contracts/Constants.sol#24) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.DEFAULT_TWAP_WINDOW_SECONDS (contracts/Constants.sol#25) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:25 · DEFAULT_TWAP_WINDOW_SECONDS
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.DEFAULT_TWAP_WINDOW_SECONDS (contracts/Constants.sol#25) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.DEFAULT_BORROW_FACTOR (contracts/Constants.sol#26) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:26 · DEFAULT_BORROW_FACTOR
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.DEFAULT_BORROW_FACTOR (contracts/Constants.sol#26) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.DEFERLIQUIDITY__NONE (contracts/Constants.sol#34) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:34 · DEFERLIQUIDITY__NONE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.DEFERLIQUIDITY__NONE (contracts/Constants.sol#34) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.DEFERLIQUIDITY__CLEAN (contracts/Constants.sol#35) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:35 · DEFERLIQUIDITY__CLEAN
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.DEFERLIQUIDITY__CLEAN (contracts/Constants.sol#35) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.DEFERLIQUIDITY__DIRTY (contracts/Constants.sol#36) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:36 · DEFERLIQUIDITY__DIRTY
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.DEFERLIQUIDITY__DIRTY (contracts/Constants.sol#36) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.PRICINGTYPE__PEGGED (contracts/Constants.sol#41) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:41 · PRICINGTYPE__PEGGED
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.PRICINGTYPE__PEGGED (contracts/Constants.sol#41) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.PRICINGTYPE__UNISWAP3_TWAP (contracts/Constants.sol#42) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:42 · PRICINGTYPE__UNISWAP3_TWAP
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.PRICINGTYPE__UNISWAP3_TWAP (contracts/Constants.sol#42) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.PRICINGTYPE__FORWARDED (contracts/Constants.sol#43) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:43 · PRICINGTYPE__FORWARDED
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.PRICINGTYPE__FORWARDED (contracts/Constants.sol#43) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__MARKETS (contracts/Constants.sol#50) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:50 · MODULEID__MARKETS
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__MARKETS (contracts/Constants.sol#50) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__LIQUIDATION (contracts/Constants.sol#51) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:51 · MODULEID__LIQUIDATION
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__LIQUIDATION (contracts/Constants.sol#51) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__GOVERNANCE (contracts/Constants.sol#52) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:52 · MODULEID__GOVERNANCE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__GOVERNANCE (contracts/Constants.sol#52) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__EXEC (contracts/Constants.sol#53) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:53 · MODULEID__EXEC
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__EXEC (contracts/Constants.sol#53) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__SWAP (contracts/Constants.sol#54) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:54 · MODULEID__SWAP
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__SWAP (contracts/Constants.sol#54) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__ETOKEN (contracts/Constants.sol#59) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:59 · MODULEID__ETOKEN
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__ETOKEN (contracts/Constants.sol#59) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__DTOKEN (contracts/Constants.sol#60) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:60 · MODULEID__DTOKEN
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__DTOKEN (contracts/Constants.sol#60) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__RISK_MANAGER (contracts/Constants.sol#65) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:65 · MODULEID__RISK_MANAGER
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__RISK_MANAGER (contracts/Constants.sol#65) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_DEFAULT (contracts/Constants.sol#69) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:69 · MODULEID__IRM_DEFAULT
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_DEFAULT (contracts/Constants.sol#69) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_ZERO (contracts/Constants.sol#71) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:71 · MODULEID__IRM_ZERO
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_ZERO (contracts/Constants.sol#71) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_FIXED (contracts/Constants.sol#72) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:72 · MODULEID__IRM_FIXED
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_FIXED (contracts/Constants.sol#72) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_LINEAR (contracts/Constants.sol#73) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:73 · MODULEID__IRM_LINEAR
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_LINEAR (contracts/Constants.sol#73) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_CLASS__STABLE (contracts/Constants.sol#75) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:75 · MODULEID__IRM_CLASS__STABLE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_CLASS__STABLE (contracts/Constants.sol#75) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_CLASS__MAJOR (contracts/Constants.sol#76) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:76 · MODULEID__IRM_CLASS__MAJOR
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_CLASS__MAJOR (contracts/Constants.sol#76) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.MODULEID__IRM_CLASS__MIDCAP (contracts/Constants.sol#77) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:77 · MODULEID__IRM_CLASS__MIDCAP
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.MODULEID__IRM_CLASS__MIDCAP (contracts/Constants.sol#77) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.SWAP_TYPE__UNI_EXACT_INPUT_SINGLE (contracts/Constants.sol#80) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:80 · SWAP_TYPE__UNI_EXACT_INPUT_SINGLE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.SWAP_TYPE__UNI_EXACT_INPUT_SINGLE (contracts/Constants.sol#80) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.SWAP_TYPE__UNI_EXACT_INPUT (contracts/Constants.sol#81) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:81 · SWAP_TYPE__UNI_EXACT_INPUT
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.SWAP_TYPE__UNI_EXACT_INPUT (contracts/Constants.sol#81) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.SWAP_TYPE__UNI_EXACT_OUTPUT_SINGLE (contracts/Constants.sol#82) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:82 · SWAP_TYPE__UNI_EXACT_OUTPUT_SINGLE
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.SWAP_TYPE__UNI_EXACT_OUTPUT_SINGLE (contracts/Constants.sol#82) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.SWAP_TYPE__UNI_EXACT_OUTPUT (contracts/Constants.sol#83) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:83 · SWAP_TYPE__UNI_EXACT_OUTPUT
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.SWAP_TYPE__UNI_EXACT_OUTPUT (contracts/Constants.sol#83) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Constants.SWAP_TYPE__1INCH (contracts/Constants.sol#84) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Constants.sol:84 · SWAP_TYPE__1INCH
    Detector / source
    slither · slither:unused-state

    Evidence

    Constants.SWAP_TYPE__1INCH (contracts/Constants.sol#84) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalLogicConfidence: highExploitability: lowDetector: slither

    Euler.dispatch() (contracts/Euler.sol#38-62) uses assembly

    Affected location
    contracts/Euler.sol:38-62 · dispatch
    Detector / source
    slither · slither:assembly

    Evidence

    Euler.dispatch() (contracts/Euler.sol#38-62) uses assembly - INLINE ASM (contracts/Euler.sol#49-61)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Re-derive the business rule by hand, write a property-based test that fails on the current path, and only then fix the implementation.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalLogicConfidence: highExploitability: lowDetector: slither

    Proxy.fallback() (contracts/Proxy.sol#14-46) uses assembly

    Affected location
    contracts/Proxy.sol:14-46 · fallback
    Detector / source
    slither · slither:assembly

    Evidence

    Proxy.fallback() (contracts/Proxy.sol#14-46) uses assembly - INLINE ASM (contracts/Proxy.sol#18-31) - INLINE ASM (contracts/Proxy.sol#33-44)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Re-derive the business rule by hand, write a property-based test that fails on the current path, and only then fix the implementation.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: mediumExploitability: lowDetector: slither

    Proxy.fallback() (contracts/Proxy.sol#14-46) uses literals with too many digits:

    Affected location
    contracts/Proxy.sol:14-46 · fallback
    Detector / source
    slither · slither:too-many-digits

    Evidence

    Proxy.fallback() (contracts/Proxy.sol#14-46) uses literals with too many digits: - mstore(uint256,uint256)(0,0xe9c4a3ac00000000000000000000000000000000000000000000000000000000) (contracts/Proxy.sol#34)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • Medium analyzer confidence; manual review should confirm the code path and preconditions.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.upgradeAdmin (contracts/Storage.sol#12) should be immutable

    Affected location
    contracts/Storage.sol:12 · upgradeAdmin
    Detector / source
    slither · slither:immutable-states

    Evidence

    Storage.upgradeAdmin (contracts/Storage.sol#12) should be immutable

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.governorAdmin (contracts/Storage.sol#13) should be immutable

    Affected location
    contracts/Storage.sol:13 · governorAdmin
    Detector / source
    slither · slither:immutable-states

    Evidence

    Storage.governorAdmin (contracts/Storage.sol#13) should be immutable

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.accountLookup (contracts/Storage.sol#41) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:41 · accountLookup
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.accountLookup (contracts/Storage.sol#41) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.marketsEntered (contracts/Storage.sol#42) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:42 · marketsEntered
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.marketsEntered (contracts/Storage.sol#42) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.underlyingLookup (contracts/Storage.sol#90) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:90 · underlyingLookup
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.underlyingLookup (contracts/Storage.sol#90) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.eTokenLookup (contracts/Storage.sol#91) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:91 · eTokenLookup
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.eTokenLookup (contracts/Storage.sol#91) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.dTokenLookup (contracts/Storage.sol#92) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:92 · dTokenLookup
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.dTokenLookup (contracts/Storage.sol#92) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.pTokenLookup (contracts/Storage.sol#93) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:93 · pTokenLookup
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.pTokenLookup (contracts/Storage.sol#93) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.
  • informationalOtherConfidence: highExploitability: lowDetector: slither

    Storage.reversePTokenLookup (contracts/Storage.sol#94) is never used in Euler (contracts/Euler.sol#9-63)

    Affected location
    contracts/Storage.sol:94 · reversePTokenLookup
    Detector / source
    slither · slither:unused-state

    Evidence

    Storage.reversePTokenLookup (contracts/Storage.sol#94) is never used in Euler (contracts/Euler.sol#9-63)

    Exploitability notes

    Informational signal; not directly exploitable without additional context.

    Remediation

    Review the detector output against the source manually; if exploitable, design a fix and add a regression test before deploying.

    Limitations

    • High analyzer confidence, still requires source-level review before promotion.
    • Direct exploitability is not established; keep the signal as a remediation/checklist item.
    • Analyzer output did not include a source excerpt for this finding.

Limitations

  • VegaSec runs static analysis only. Findings can include false positives, miss patterns the configured detectors do not cover, and never replace manual auditor judgement.
  • Scan ran slither and semgrep against a multi-file sandboxed bundle of 6 Solidity file(s). Imports resolve between the bundled files; dependencies outside the bundle (an npm package, another repo, a generated file) are NOT analyzed, and an unresolved import makes the run partial rather than clean.
  • Some detectors emitted warnings (see `warnings`); their output was still ingested but should be read with extra care.
  • This report is not a certification, audit attestation, or financial advice.

Exploit reasoning

Reference-grade reasoning tied to evidence

  • f4e6902288c6a61e3b53bdf13b14b4dbf862b2a02267856370c2122683736dda · access-controlhigh
    Confidence: low

    Conditions point at the exploit but at least one precondition needs operator confirmation.

    Preconditions

    • Sensitive function lacks an explicit caller restriction or relies on tx.origin
    • Caller controls the path that reaches the function

    Action

    Attacker calls the unprotected function from an attacker-controlled address, bypassing the intended restriction.

    Impact

    Unauthorized state mutation: ownership transfer, parameter changes, balance writes, or admin-only operations executed by a non-admin.

    False-positive caveats

    • The function may be intentionally callable by anyone (e.g. a public mint with a price guard).
    • Access control may live in a modifier the analyzer did not parse.

    Remediation checklist

    • Replace tx.origin checks with msg.sender against a role registry.
    • Add a `onlyRole(...)` or equivalent modifier from a vetted access control library.
    • Add unit tests that assert non-admin callers revert.

Audit pipeline

Audit cockpit

Honest stage-by-stage view of what VegaSec ran against this contract. Automated stages do not replace a human operator review.

Passed: 3Partial: 5Blocked: 1
  1. Audit intake

    Passed320ms replay12:36 AM

    Normalize the submitted contract target and confirm it can enter the Solidity audit lane.

    Next: Acquire verified source or scan the pasted Solidity source.

  2. Source acquisition

    Passed1.4s replay12:36 AM

    Resolve pasted source or verified explorer source without treating malformed input as demo data.

    Next: Validate the analyzer toolchain against the acquired source.

  3. Toolchain validation

    Partial2.3s replay12:36 AM

    Confirm the configured static analyzers can run and produce parseable output.

    Next: Run static analysis and capture raw detector evidence.

    • One or more analyzers emitted warnings; report findings remain usable but should be read with limitations.
  4. Static analysis

    Partial61 findings8.8s replay12:36 AM

    Run static analyzers against the sandboxed source and collect raw detector evidence.

    Next: Normalize detector output into one deduped finding set.

    • One or more analyzers emitted warnings; report findings remain usable but should be read with limitations.
  5. Finding normalization

    Passed61 findings1.1s replay12:36 AM

    Dedupe detectors, classify vulnerability classes and compute severity-weighted risk.

    Next: Review exploitability conservatively against confidence and limitations.

  6. Exploitability review

    Partial61 findings1.9s replay12:36 AM

    Frame automated findings with conservative exploitability and limitation notes.

    Next: Draft remediation notes from the normalized evidence.

    • Automated exploitability review is conservative and does not replace a manual exploitability assessment.
  7. Remediation draft

    Partial61 findings1.5s replay12:36 AM

    Prepare remediation-oriented evidence for the shareable report artifact.

    Next: Attach an operator review artifact before claiming human review.

    • Remediation notes are generated from detector evidence and require project-specific engineering review.
  8. Operator review

    Blocked0ms replay12:36 AM

    Record whether a human operator artifact exists before buyer escalation.

    Next: Attach a real operator review artifact before claiming human review.

    • No operator review artifact is attached to this automated scan.
    • Human operator review has not been attached to this automated scan yet.
  9. Finalization

    Partial61 findings620ms replay12:36 AM

    Publish the automated report artifact or explain why the scan failed closed.

    Next: Share the report with explicit limitations and review state.

    Artifact: Automated Solidity report · solidity-2f746d702f766567

    • Final report is an automated static-analysis artifact; no operator review artifact is attached.

Report badges

Verified source

Badges describe the evidence carried by this report artifact, not financial value or future pricing. Operator-reviewed is never granted automatically.

How to read this report

Score, confidence, ranking: four moving parts, no hand-tuning.

Generated Oct 4, 2026, 12:36 AM · Solidity · Euler.sol

Score bands

  • 0-19

    AVOID-style triage

    Multiple high or critical findings, low source confidence, or unverified context. Public action should pause until a Private Review or a re-scan with better evidence.

  • 20-49

    High caution

    Notable findings or thin evidence. Worth a Private Review before relying on the artifact.

  • 50-69

    Watch

    Mixed signals: some evidence, some gaps. Re-scan after material changes to the target.

  • 70-89

    Clear surface (automated) · this report

    No critical or high findings via static analysis. Not a safety claim: human review is still recommended for diligence work.

  • 90-100

    Strong surface (automated)

    No critical or high findings, verified source, and high source confidence. Not a safety claim: human review is still recommended for diligence work.

Score
Deterministic 0-100 derived from severity counts. Same formula across every report. Lower means more risk.
Confidence
Separate axis. Measures how much VegaSec trusts the input data. Low confidence pushes the verdict toward UNKNOWN; the two are never collapsed into one number.
Ranking / percentile
Only meaningful within the eligible Trust Index set. Shown on /trust-index when the eligible pool is large enough. Today the public index is a controlled preview.

Private Review is separate

A paid Private Review does not raise the public score on this report. Public score reflects public-source evidence only. Private Review adds operator attestation and a confidential memo, never a score bump.

Export and share

  • · Shareable public URL: copy from the report actions panel.
  • · Markdown export: every export carries the report id, target, verdict, generated timestamp, and the public-data disclaimer.
  • · PDF export: not in this MVP. Tracked as a follow-up. The Markdown export contains the same content and prints cleanly to PDF from a browser today.

Source provenance

Verified source via Etherscan

View on Etherscan ↗
Chain
ETHEREUM
Address
0x2718…25d3
Contract name
Euler
Compiler
v0.8.10+commit.fc410830
License
-
EVM version
Default
Optimization
On · 1000000 runs
File count
6
Proxy implementation
0xec29…dab5

Provenance is the public-explorer metadata captured at scan time. It is not a re-verification of compilation; the analyzer ran against the source string as returned by the explorer.

Scanned source (16,386 chars)

// === FILE: contracts/Euler.sol ===
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;

import "./Base.sol";


/// @notice Main storage contract for the Euler system
contract Euler is Base {
    constructor(address admin, address installerModule) {
        emit Genesis();

        reentrancyLock = REENTRANCYLOCK__UNLOCKED;
        upgradeAdmin = admin;
        governorAdmin = admin;

        moduleLookup[MODULEID__INSTALLER] = installerModule;
        address installerProxy = _createProxy(MODULEID__INSTALLER);
        trustedSenders[installerProxy].moduleImpl = installerModule;
    }

    string public constant name = "Euler Protocol";

    /// @notice Lookup the current implementation contract for a module
    /// @param moduleId Fixed constant that refers to a module type (ie MODULEID__ETOKEN)
    /// @return An internal address specifies the module's implementation code
    function moduleIdToImplementation(uint moduleId) external view returns (address) {
        return moduleLookup[moduleId];
    }

    /// @notice Lookup a proxy that can be used to interact with a module (only valid for single-proxy modules)
    /// @param moduleId Fixed constant that refers to a module type (ie MODULEID__MARKETS)
    /// @return An address that should be cast to the appropriate module interface, ie IEulerMarkets(moduleIdToProxy(2))
    function moduleIdToProxy(uint moduleId) external view returns (address) {
        return proxyLookup[moduleId];
    }

    function dispatch() external {
        uint32 moduleId = trustedSenders[msg.sender].moduleId;
        address moduleImpl = trustedSenders[msg.sender].moduleImpl;

        require(moduleId != 0, "e/sender-not-trusted");

        if (moduleImpl == address(0)) moduleImpl = moduleLookup[moduleId];

        uint msgDataLength = msg.data.length;
        require(msgDataLength >= (4 + 4 + 20), "e/input-too-short");

        assembly {
            let payloadSize := sub(calldatasize(), 4)
            calldatacopy(0, 4, payloadSize)
            mstore(payloadSize, shl(96, caller()))

            let result := delegatecall(gas(), moduleImpl, 0, add(payloadSize, 20), 0, 0)

            returndatacopy(0, 0, returndatasize())

            switch result
                case 0 { revert(0, returndatasize()) }
                default { return(0, returndatasize()) }
        }
    }
}

// === FILE: contracts/Base.sol ===
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;
//import "hardhat/console.sol"; // DEV_MODE

import "./Storage.sol";
import "./Events.sol";
import "./Proxy.sol";

abstract contract Base is Storage, Events {
    // Modules

    function _createProxy(uint proxyModuleId) internal returns (address) {
        require(proxyModuleId != 0, "e/create-proxy/invalid-module");
        require(proxyModuleId <= MAX_EXTERNAL_MODULEID, "e/create-proxy/internal-module");

        // If we've already created a proxy for a single-proxy module, just return it:

        if (proxyLookup[proxyModuleId] != address(0)) return proxyLookup[proxyModuleId];

        // Otherwise create a proxy:

        address proxyAddr = address(new Proxy());

        if (proxyModuleId <= MAX_EXTERNAL_SINGLE_PROXY_MODULEID) proxyLookup[proxyModuleId] = proxyAddr;

        trustedSenders[proxyAddr] = TrustedSenderInfo({ moduleId: uint32(proxyModuleId), moduleImpl: address(0) });

        emit ProxyCreated(proxyAddr, proxyModuleId);

        return proxyAddr;
    }

    function callInternalModule(uint moduleId, bytes memory input) internal returns (bytes memory) {
        (bool success, bytes memory result) = moduleLookup[moduleId].delegatecall(input);
        if (!success) revertBytes(result);
        return result;
    }



    // Modifiers

    modifier nonReentrant() {
        require(reentrancyLock == REENTRANCYLOCK__UNLOCKED, "e/reentrancy");

        reentrancyLock = REENTRANCYLOCK__LOCKED;
        _;
        reentrancyLock = REENTRANCYLOCK__UNLOCKED;
    }

    modifier reentrantOK() { // documentation only
        _;
    }

    // WARNING: Must be very careful with this modifier. It resets the free memory pointer
    // to the value it was when the function started. This saves gas if more memory will
    // be allocated in the future. However, if the memory will be later referenced
    // (for example because the function has returned a pointer to it) then you cannot
    // use this modifier.

    modifier FREEMEM() {
        uint origFreeMemPtr;

        assembly {
            origFreeMemPtr := mload(0x40)
        }

        _;

        /*
        assembly { // DEV_MODE: overwrite the freed memory with garbage to detect bugs
            let garbage := 0xDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEFDEADBEEF
            for { let i := origFreeMemPtr } lt(i, mload(0x40)) { i := add(i, 32) } { mstore(i, garbage) }
        }
        */

        assembly {
            mstore(0x40, origFreeMemPtr)
        }
    }



    // Error handling

    function revertBytes(bytes memory errMsg) internal pure {
        if (errMsg.length > 0) {
            assembly {
                revert(add(32, errMsg), mload(errMsg))
            }
        }

        revert("e/empty-error");
    }
}

// === FILE: contracts/Storage.sol ===
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;

import "./Constants.sol";

abstract contract Storage is Constants {
    // Dispatcher and upgrades

    uint reentrancyLock;

    address upgradeAdmin;
    address governorAdmin;

    mapping(uint => address) moduleLookup; // moduleId => module implementation
    mapping(uint => address) proxyLookup; // moduleId => proxy address (only for single-proxy modules)

    struct TrustedSenderInfo {
        uint32 moduleId; // 0 = un-trusted
        address moduleImpl; // only non-zero for external single-proxy modules
    }

    mapping(address => TrustedSenderInfo) trustedSenders; // sender address => moduleId (0 = un-trusted)



    // Account-level state
    // Sub-accounts are considered distinct accounts

    struct AccountStorage {
        // Packed slot: 1 + 5 + 4 + 20 = 30
        uint8 deferLiquidityStatus;
        uint40 lastAverageLiquidityUpdate;
        uint32 numMarketsEntered;
        address firstMarketEntered;

        uint averageLiquidity;
        address averageLiquidityDelegate;
    }

    mapping(address => AccountStorage) accountLookup;
    mapping(address => address[MAX_POSSIBLE_ENTERED_MARKETS]) marketsEntered;



    // Markets and assets

    struct AssetConfig {
        // Packed slot: 20 + 1 + 4 + 4 + 3 = 32
        address eTokenAddress;
        bool borrowIsolated;
        uint32 collateralFactor;
        uint32 borrowFactor;
        uint24 twapWindow;
    }

    struct UserAsset {
        uint112 balance;
        uint144 owed;

        uint interestAccumulator;
    }

    struct AssetStorage {
        // Packed slot: 5 + 1 + 4 + 12 + 4 + 2 + 4 = 32
        uint40 lastInterestAccumulatorUpdate;
        uint8 underlyingDecimals; // Not dynamic, but put here to live in same storage slot
        uint32 interestRateModel;
        int96 interestRate;
        uint32 reserveFee;
        uint16 pricingType;
        uint32 pricingParameters;

        address underlying;
        uint96 reserveBalance;

        address dTokenAddress;

        uint112 totalBalances;
        uint144 totalBorrows;

        uint interestAccumulator;

        mapping(address => UserAsset) users;

        mapping(address => mapping(address => uint)) eTokenAllowance;
        mapping(address => mapping(address => uint)) dTokenAllowance;
    }

    mapping(address => AssetConfig) internal underlyingLookup; // underlying => AssetConfig
    mapping(address => AssetStorage) internal eTokenLookup; // EToken => AssetStorage
    mapping(address => address) internal dTokenLookup; // DToken => EToken
    mapping(address => address) internal pTokenLookup; // PToken => underlying
    mapping(address => address) internal reversePTokenLookup; // underlying => PToken
}

// === FILE: contracts/Events.sol ===
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;

import "./Storage.sol";

abstract contract Events {
    event Genesis();


    event ProxyCreated(address indexed proxy, uint moduleId);
    event MarketActivated(address indexed underlying, address indexed eToken, address indexed dToken);
    event PTokenActivated(address indexed underlying, address indexed pToken);

    event EnterMarket(address indexed underlying, address indexed account);
    event ExitMarket(address indexed underlying, address indexed account);

    event Deposit(address indexed underlying, address indexed account, uint amount);
    event Withdraw(address indexed underlying, address indexed account, uint amount);
    event Borrow(address indexed underlying, address indexed account, uint amount);
    event Repay(address indexed underlying, address indexed account, uint amount);

    event Liquidation(address indexed liquidator, address indexed violator, address indexed underlying, address collateral, uint repay, uint yield, uint healthScore, uint baseDiscount, uint discount);

    event TrackAverageLiquidity(address indexed account);
    event UnTrackAverageLiquidity(address indexed account);
    event DelegateAverageLiquidity(address indexed account, address indexed delegate);

    event PTokenWrap(address indexed underlying, address indexed account, uint amount);
    event PTokenUnWrap(address indexed underlying, address indexed account, uint amount);

    event AssetStatus(address indexed underlying, uint totalBalances, uint totalBorrows, uint96 reserveBalance, uint poolSize, uint interestAccumulator, int96 interestRate, uint timestamp);


    event RequestDeposit(address indexed account, uint amount);
    event RequestWithdraw(address indexed account, uint amount);
    event RequestMint(address indexed account, uint amount);
    event RequestBurn(address indexed account, uint amount);
    event RequestTransferEToken(address indexed from, address indexed to, uint amount);

    event RequestBorrow(address indexed account, uint amount);
    event RequestRepay(address indexed account, uint amount);
    event RequestTransferDToken(address indexed from, address indexed to, uint amount);

    event RequestLiquidate(address indexed liquidator, address indexed violator, address indexed underlying, address collateral, uint repay, uint minYield);


    event InstallerSetUpgradeAdmin(address indexed newUpgradeAdmin);
    event InstallerSetGovernorAdmin(address indexed newGovernorAdmin);
    event InstallerInstallModule(uint indexed moduleId, address indexed moduleImpl, bytes32 moduleGitCommit);


    event GovSetAssetConfig(address indexed underlying, Storage.AssetConfig newConfig);
    event GovSetIRM(address indexed underlying, uint interestRateModel, bytes resetParams);
    event GovSetPricingConfig(address indexed underlying, uint16 newPricingType, uint32 newPricingParameter);
    event GovSetReserveFee(address indexed underlying, uint32 newReserveFee);
    event GovConvertReserves(address indexed underlying, address indexed recipient, uint amount);

    event RequestSwap(address indexed accountIn, address indexed accountOut, address indexed underlyingIn, address underlyingOut, uint amount, uint swapType);
}

// === FILE: contracts/Proxy.sol ===
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;

contract Proxy {
    address immutable creator;

    constructor() {
        creator = msg.sender;
    }

    // External interface

    fallback() external {
        address creator_ = creator;

        if (msg.sender == creator_) {
            assembly {
                mstore(0, 0)
                calldatacopy(31, 0, calldatasize())

                switch mload(0) // numTopics
                    case 0 { log0(32,  sub(calldatasize(), 1)) }
                    case 1 { log1(64,  sub(calldatasize(), 33),  mload(32)) }
                    case 2 { log2(96,  sub(calldatasize(), 65),  mload(32), mload(64)) }
                    case 3 { log3(128, sub(calldatasize(), 97),  mload(32), mload(64), mload(96)) }
                    case 4 { log4(160, sub(calldatasize(), 129), mload(32), mload(64), mload(96), mload(128)) }
                    default { revert(0, 0) }

                return(0, 0)
            }
        } else {
            assembly {
                mstore(0, 0xe9c4a3ac00000000000000000000000000000000000000000000000000000000) // dispatch() selector
                calldatacopy(4, 0, calldatasize())
                mstore(add(4, calldatasize()), shl(96, caller()))

                let result := call(gas(), creator_, 0, 0, add(24, calldatasize()), 0, 0)
                returndatacopy(0, 0, returndatasize())

                switch result
                    case 0 { revert(0, returndatasize()) }
                    default { return(0, returndatasize()) }
            }
        }
    }
}

// === FILE: contracts/Constants.sol ===
// SPDX-License-Identifier: GPL-2.0-or-later

pragma solidity ^0.8.0;

abstract contract Constants {
    // Universal

    uint internal constant SECONDS_PER_YEAR = 365.2425 * 86400; // Gregorian calendar


    // Protocol parameters

    uint internal constant MAX_SANE_AMOUNT = type(uint112).max;
    uint internal constant MAX_SANE_SMALL_AMOUNT = type(uint96).max;
    uint internal constant MAX_SANE_DEBT_AMOUNT = type(uint144).max;
    uint internal constant INTERNAL_DEBT_PRECISION = 1e9;
    uint internal constant MAX_ENTERED_MARKETS = 10; // per sub-account
    uint internal constant MAX_POSSIBLE_ENTERED_MARKETS = 2**32; // limited by size of AccountStorage.numMarketsEntered
    uint internal constant CONFIG_FACTOR_SCALE = 4_000_000_000; // must fit into a uint32
    uint internal constant RESERVE_FEE_SCALE = 4_000_000_000; // must fit into a uint32
    uint32 internal constant DEFAULT_RESERVE_FEE = uint32(0.23 * 4_000_000_000);
    uint internal constant INITIAL_INTEREST_ACCUMULATOR = 1e27;
    uint internal constant AVERAGE_LIQUIDITY_PERIOD = 24 * 60 * 60;
    uint16 internal constant MIN_UNISWAP3_OBSERVATION_CARDINALITY = 10;
    uint24 internal constant DEFAULT_TWAP_WINDOW_SECONDS = 30 * 60;
    uint32 internal constant DEFAULT_BORROW_FACTOR = uint32(0.28 * 4_000_000_000);


    // Implementation internals

    uint internal constant REENTRANCYLOCK__UNLOCKED = 1;
    uint internal constant REENTRANCYLOCK__LOCKED = 2;

    uint8 internal constant DEFERLIQUIDITY__NONE = 0;
    uint8 internal constant DEFERLIQUIDITY__CLEAN = 1;
    uint8 internal constant DEFERLIQUIDITY__DIRTY = 2;


    // Pricing types

    uint16 internal constant PRICINGTYPE__PEGGED = 1;
    uint16 internal constant PRICINGTYPE__UNISWAP3_TWAP = 2;
    uint16 internal constant PRICINGTYPE__FORWARDED = 3;


    // Modules

    // Public single-proxy modules
    uint internal constant MODULEID__INSTALLER = 1;
    uint internal constant MODULEID__MARKETS = 2;
    uint internal constant MODULEID__LIQUIDATION = 3;
    uint internal constant MODULEID__GOVERNANCE = 4;
    uint internal constant MODULEID__EXEC = 5;
    uint internal constant MODULEID__SWAP = 6;

    uint internal constant MAX_EXTERNAL_SINGLE_PROXY_MODULEID = 499_999;

    // Public multi-proxy modules
    uint internal constant MODULEID__ETOKEN = 500_000;
    uint internal constant MODULEID__DTOKEN = 500_001;

    uint internal constant MAX_EXTERNAL_MODULEID = 999_999;

    // Internal modules
    uint internal constant MODULEID__RISK_MANAGER = 1_000_000;

    // Interest rate models
    //   Default for new markets
    uint internal constant MODULEID__IRM_DEFAULT = 2_000_000;
    //   Testing-only
    uint internal constant MODULEID__IRM_ZERO = 2_000_001;
    uint internal constant MODULEID__IRM_FIXED = 2_000_002;
    uint internal constant MODULEID__IRM_LINEAR = 2_000_100;
    //   Classes
    uint internal constant MODULEID__IRM_CLASS__STABLE = 2_000_500;
    uint internal constant MODULEID__IRM_CLASS__MAJOR = 2_000_501;
    uint internal constant MODULEID__IRM_CLASS__MIDCAP = 2_000_502;

    // Swap types
    uint internal constant SWAP_TYPE__UNI_EXACT_INPUT_SINGLE = 1;
    uint internal constant SWAP_TYPE__UNI_EXACT_INPUT = 2;
    uint internal constant SWAP_TYPE__UNI_EXACT_OUTPUT_SINGLE = 3;
    uint internal constant SWAP_TYPE__UNI_EXACT_OUTPUT = 4;
    uint internal constant SWAP_TYPE__1INCH = 5;
}

Public-data disclaimer

Solidity scans are triage based on slither + semgrep static analysis. Output is not a certification, audit attestation or financial advice. Findings can include false positives and may miss patterns the configured detectors do not cover.