Skip to content

[PR #37] p0-blocker: evm_version=paris absent from foundry.toml — BSC miscompile #118

@obchain

Description

@obchain

PR: #37 feat(contracts): full Aave + Venus + PancakeSwap liquidation flow
Commit: 54fe2bb
File: contracts/foundry.toml

Problem: foundry.toml sets solc_version = "0.8.24" but never sets evm_version. Without evm_version = "paris", solc defaults to "shanghai" which emits PUSH0 (opcode 0x5f). BSC mainnet does not support PUSH0. Compiled bytecode fails to deploy or silently mis-executes on BSC.

Impact: Deployment to BSC mainnet reverts at creation time. Every downstream integration — flash-loan callback, liquidation, swap — unreachable. Hard deploy blocker.

Fix: Add to [profile.default] in contracts/foundry.toml:

evm_version = "paris"

Inherited from #36 (#114) but must be resolved in this PR before any contract work lands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions