Contract 516caef11963459fba5f8b37d668343d4481d81b2a0733f3db958849d8c08eb2

← Back to Index 📥 Download WASM

Meta

rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.96.0

Instances

  • CATKGXGHGB7RJMXGBJDV5HDV7ZRUKWFTOJB7CDUMYCYUECPCZJBKC3WW

Interface

fn owner(env: soroban_sdk::Env) -> Result
fn upgrade(
    env: soroban_sdk::Env,
    hash: soroban_sdk::BytesN<32>,
) -> Result<(), OmniseaError>
fn version(env: soroban_sdk::Env) -> u32
fn fee_token(env: soroban_sdk::Env) -> soroban_sdk::Address
fn bind_omnisea(
    env: soroban_sdk::Env,
    omnisea: soroban_sdk::Address,
) -> Result<(), OmniseaError>
fn protocol_fee(env: soroban_sdk::Env) -> i128
fn __constructor(
    env: soroban_sdk::Env,
    owner: soroban_sdk::Address,
    expected_omnisea: soroban_sdk::Address,
    fee_token: soroban_sdk::Address,
    fixed_protocol_fee: i128,
    max_protocol_fee: i128,
    protocol_fee_receiver: soroban_sdk::Address,
) -> Result<(), OmniseaError>
fn pending_owner(env: soroban_sdk::Env) -> Option
fn accept_ownership(env: soroban_sdk::Env) -> Result<(), OmniseaError>
fn set_token_issuer(
    env: soroban_sdk::Env,
    asset_key: soroban_sdk::BytesN<32>,
    issuer: Option,
) -> Result<(), OmniseaError>

Returns a prepared send's fee before it has been accrued. Only the bound core can request a refund, and accrued protocol/issuer liabilities remain fully collateralized.

fn refund_pending_fee(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
    total_fee: i128,
) -> Result<(), OmniseaError>
fn transfer_ownership(
    env: soroban_sdk::Env,
    next: soroban_sdk::Address,
) -> Result<(), OmniseaError>
fn withdraw_issuer_fees(
    env: soroban_sdk::Env,
    issuer: soroban_sdk::Address,
    recipient: soroban_sdk::Address,
    amount: i128,
) -> Result<(), OmniseaError>
fn collected_issuer_fees(env: soroban_sdk::Env, issuer: soroban_sdk::Address) -> i128
fn protocol_fee_receiver(env: soroban_sdk::Env) -> soroban_sdk::Address
fn set_fixed_protocol_fee(env: soroban_sdk::Env, fee: i128) -> Result<(), OmniseaError>
fn withdraw_protocol_fees(
    env: soroban_sdk::Env,
    recipient: soroban_sdk::Address,
    amount: i128,
) -> Result<(), OmniseaError>
fn collected_protocol_fees(env: soroban_sdk::Env) -> i128

The core transfers the fee token here first. Distribution is accrued, matching Starknet's failure-safe accounting and preserving the issuer's 25% share.

fn distribute_protocol_fee(
    env: soroban_sdk::Env,
    asset_key: soroban_sdk::BytesN<32>,
    total_fee: i128,
) -> Result<(), OmniseaError>
fn set_protocol_fee_receiver(
    env: soroban_sdk::Env,
    receiver: soroban_sdk::Address,
) -> Result<(), OmniseaError>

Imports

WebAssembly Text (WAT) ▶