-
Notifications
You must be signed in to change notification settings - Fork 504
Description
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),
})
}