Skip to content

navi pool not found #2

@wukong988

Description

@wukong988

err:
2025-04-12T14:54:00.966374Z ERROR panic_hook: err_msg="thread 'worker-4' panicked at 'called Result::unwrap()on anErr value: navi pool not found\n\nLocation:\n bin/arb/src/defi/navi.rs:40:14': bin/arb/src/strategy/mod.rs:333"

code:
pub async fn new(simulator: Arc<Box>) -> Result {
let pool = simulator
.get_object(&ObjectID::from_hex_literal(NAVI_POOL)?)
.await
.ok_or_eyre("navi pool not found")?;
let config = simulator
.get_object(&ObjectID::from_hex_literal(NAVI_CONFIG)?)
.await
.ok_or_eyre("navi config not found")?;
let storage = simulator
.get_object(&ObjectID::from_hex_literal(NAVI_STORAGE)?)
.await
.ok_or_eyre("navi storage not found")?;
let clock = simulator
.get_object(&SUI_CLOCK_OBJECT_ID)
.await
.ok_or_eyre("sui clock not found")?;

    Ok(Self {
        sui_coin_type: TypeTag::from_str(SUI_COIN_TYPE).unwrap(),
        pool: shared_obj_arg(&pool, true),
        config: shared_obj_arg(&config, false),
        storage: shared_obj_arg(&storage, true),
        clock: shared_obj_arg(&clock, false),
    })
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions