Contract 408a30db145877680f9ca40214c1baf5ec905b7c9675fcab09dffe48c22df141

← Back to Index 📥 Download WASM

Meta

cliver 25.2.0#28484880988199233a7e8e87c97cb12dac323cb3
rssdkver 26.1.0#175aa41306f383057a8cdfc84b68d931664fc34e
rsver 1.96.0

Instances

  • CAY2DGMW2CY5EWWJDET5GD6QPUH7LT37HA6NJHSQU7CDZCRJ6PTMDY6T

Interface

Repay outstanding debt for a commitment. from funds the repayment.

fn repay(
    env: soroban_sdk::Env,
    commitment: soroban_sdk::BytesN<32>,
    from: soroban_sdk::Address,
    amount: i128,
) -> Result<(), soroban_sdk::Error>
fn debt_of(env: soroban_sdk::Env, commitment: soroban_sdk::BytesN<32>) -> i128

Liquidity provider supplies amount of the pool asset.

fn deposit(
    env: soroban_sdk::Env,
    lender: soroban_sdk::Address,
    amount: i128,
) -> Result<(), soroban_sdk::Error>

Liquidity provider withdraws amount of their supplied funds.

fn withdraw(
    env: soroban_sdk::Env,
    lender: soroban_sdk::Address,
    amount: i128,
) -> Result<(), soroban_sdk::Error>
fn pool_info(env: soroban_sdk::Env) -> PoolInfo
fn deposit_of(env: soroban_sdk::Env, lender: soroban_sdk::Address) -> i128

Configure the pool with its asset token and the identity registry.

fn initialize(
    env: soroban_sdk::Env,
    admin: soroban_sdk::Address,
    token: soroban_sdk::Address,
    registry: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>

Borrow amount against an anonymous, whitelisted commitment.

The recipient is the wallet that receives funds and must authorize. The pool checks the commitment's eligibility with the registry; the borrow must carry a non-empty authorization proof.

fn borrow_with_zk(
    env: soroban_sdk::Env,
    commitment: soroban_sdk::BytesN<32>,
    recipient: soroban_sdk::Address,
    amount: i128,
    proof: soroban_sdk::Bytes,
    public_inputs: soroban_sdk::Vec,
) -> Result<(), soroban_sdk::Error>

Imports

WebAssembly Text (WAT) ▶