Contract 03dde51960c6ae51a890538f3b01ca21829b010453755a5437f6d9b2d7d0bf14

← Back to Index 📥 Download WASM

Meta

cliver 26.0.0#60f7458e7ecffddf2f2d91dc6d0d2db4fab03ecc
rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.94.1

Instances

  • CBMDVUTO6HTGKF5APIVAGLZDMUKACM4BSEADPSGPZYJJRNK6GSRMAFND

Interface

Rebalance BIDIRECTIONAL grid Creates BOTH buy and sell orders

fn rebalance(env: soroban_sdk::Env, current_price_stroops: i128) -> u32

Get grid configuration

fn get_config(env: soroban_sdk::Env) -> (u32, i128, i128)

Get current grid status

fn get_status(env: soroban_sdk::Env) -> GridState

Initialize bidirectional grid

fn initialize(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    xlm_reserve_stroops: i128,
) -> GridState

Get buy and sell counts

fn get_order_counts(env: soroban_sdk::Env) -> (u32, u32)

Imports

WebAssembly Text (WAT) ▶