Contract b35b414121e892a1724775aecb3c575e714837ffcc94ace46b6727613aad7a56

← Back to Index 📥 Download WASM

Meta

cliver 23.4.1#a152ec2488c25136808ad28277c24b3a0765ffd4
rssdkver 23.5.3#d3e1ab2424388b10893b796b0c8e405c5edd03d2
rsver 1.92.0

Instances

  • CDSEJLVJTCDW4WTDHQZDLDFD6QY5B7HRVFGOKQHV3XVO7U6PK5L442OV

Interface

fn config(env: soroban_sdk::Env) -> FeeConfig
fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), DikeError>
fn set_admin(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
) -> Result<(), DikeError>
fn set_config(env: soroban_sdk::Env, config: FeeConfig) -> Result<(), DikeError>
fn trading_fee(
    env: soroban_sdk::Env,
    amount: i128,
) -> Result<(i128, i128, i128, i128), DikeError>
fn __constructor(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    governance: soroban_sdk::Address,
    minimum_bond: i128,
    bond_bps: u32,
)
fn required_bond(
    env: soroban_sdk::Env,
    market_liquidity: i128,
) -> Result
fn set_bond_split(
    env: soroban_sdk::Env,
    winner_bps: u32,
    council_bps: u32,
    treasury_bps: u32,
) -> Result<(), DikeError>

Recovery path for a misconfigured governance pointer set at construction (used by require_governance). Admin-gated, matching set_admin's rotation model.

fn set_governance(
    env: soroban_sdk::Env,
    governance: soroban_sdk::Address,
) -> Result<(), DikeError>
fn set_bond_config(
    env: soroban_sdk::Env,
    minimum_bond: i128,
    bond_bps: u32,
) -> Result<(), DikeError>
fn losing_bond_split(
    env: soroban_sdk::Env,
    losing_bond: i128,
) -> Result<(i128, i128, i128), DikeError>
fn trading_fee_split(
    env: soroban_sdk::Env,
    amount: i128,
) -> Result<(i128, i128, i128, i128), DikeError>

Imports

WebAssembly Text (WAT) ▶