Contract 4da77335ce898b0533189ccf0934232d1f076b1dd9f44eafa349797d7dd6cb42

← Back to Index 📥 Download WASM

Meta

cliver 27.0.0#5a7c5fe76530bf4248477ac812fc757146b98cc4
rssdkver 22.0.11#34f7f53ae31e0fd02aab436a9872e79fa671ca02
rsver 1.95.0

Instances

  • CCJOCOKLN3JUGGIUCCCMHYXMQ4FIBG3HX7SYZQYOKIJNUKRY75ASNWC2

Interface

fn version(env: soroban_sdk::Env) -> u32
fn metadata(env: soroban_sdk::Env) -> Result

Redeems PT for guaranteed principal physical underlying assets.

Requires Epoch State: Settled. (Post-maturity, post-settlement).

fn redeem_pt(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
    pt_amount: i128,
) -> Result

Initializes the Tokenizer with its critical dependencies.

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    vault: soroban_sdk::Address,
    pt_token: soroban_sdk::Address,
    yt_token: soroban_sdk::Address,
    sy_wrapper: soroban_sdk::Address,
    maturity_ledger: u32,
) -> Result<(), NovaireTokenizerError>

Mints PT and YT tokens identically in exchange for Vault Shares.

Requires Epoch State: Open

fn mint_pt_yt(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
    sy_shares: i128,
) -> Result<(i128, i128), NovaireTokenizerError>

Claims accrued yield for a user by withdrawing the physical underlying asset.

Requires Epoch State: Open, Matured, or Settled.

fn claim_yield(
    env: soroban_sdk::Env,
    user: soroban_sdk::Address,
) -> Result

Settles the epoch, permanently locking the settlement exchange rate.

Requires Epoch State: Matured

fn settle_epoch(env: soroban_sdk::Env) -> Result<(), NovaireTokenizerError>

Checks the exact state of the epoch.

fn get_epoch_state(env: soroban_sdk::Env) -> Result

Imports

WebAssembly Text (WAT) ▶