Skip to content

[config] fork.toml liquidator contract_address is zero — executor fails cryptically on first opportunity #252

@obchain

Description

@obchain

Refs #52

File: config/fork.toml

Problem

fork.toml likely leaves liquidator.bnb.contract_address at 0x0 since no deployment exists on the fork. Once the pipeline produces an opportunity, executor tries to build calldata for address(0), fails inside TxBuilder with opaque error.

Fix options

A. Deploy CharonLiquidator to anvil fork as part of anvil_fork.sh script; write deployed address to fork.toml dynamically.

B. Omit [liquidator] section entirely in fork.toml so read-only mode kicks in (PR #51 pattern).

Prefer A for Path B demo (needs full pipeline). Add forge create contracts/src/CharonLiquidator.sol:CharonLiquidator --rpc-url http://127.0.0.1:8545 ... to anvil_fork.sh after fork boots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglayer:devopsCI / deploy / infra / telemetrypr-reviewFindings from PR review processpriority:p2-polishNice-to-have / polishstatus:readyScoped and ready to pick up

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions