Contract 9805f26246fff6b3e2f0d5ea32668f004469919885c64b1f636bc466f854bb2f

← Back to Index 📥 Download WASM

Meta

rssdkver 25.3.1#e50d95af029c83196dd122f0154bac3f1302394b
rsver 1.95.0

Instances

  • CAGIRFGVYWMCTBL43RQYUXUHYGJ776K7A2UVBPVSK6Y6FJR7LAALOBGZ
  • CAOKRVJA3S6RJBRBJWP72SKLHNGWYYZD4FZY32QWKDJSKQ4PFE4LMNXD
  • CBBRHYQ3GN47K3BSBG3JOPE2AECBRD6I373Q5VJPUTRPYGRRFTIIDJU6
  • CBVSIALOD3BSWUX7YMOGFKMIPVYXPO4Q6GHBV3PUQAD33YFRXHEDA5N6
  • CBY6CYLGOZ3KBYI6ICKIMHNYUFEPGKQBBJ6NP5KB7AKTFFZ3ZDHVZIMI
  • CCD3RXT7CCHYZZO23G3V6L24R5FP7XNETN5DMYZG556L7HSXLPV3T5VD
  • CCKBTIAVXMBMRHNDSTCQTKP2UQ4VIWJ5QNW2NY7BRD3Y2OU7EGIZAEUB
  • CDERJFNVPSJDUSG2KE7FH2GE2ICCSSU3KL66KMIYKCUSQNBKITYHHOQX

Interface

Pays everything credited to member, always to member's own address, once the circle is closed: until retire replaces them, claims wait, so nobody takes out money the table is about to share. Pays in full or not at all: while the contract holds less than all of its claims, nobody is paid first.

fn claim(
    env: soroban_sdk::Env,
    member: soroban_sdk::Address,
) -> Result

Closes the circle and replaces every claim with the table: afterwards each address in it is owed exactly its amount, and 0 clears what it was owed. The table must name every address the contract owes something to and add up to exactly the token balance. Sending the same table again returns the same retirement.

fn retire(
    env: soroban_sdk::Env,
    shares: soroban_sdk::Map,
) -> Result
fn upgrade(
    env: soroban_sdk::Env,
    new_wasm_hash: soroban_sdk::BytesN<32>,
) -> Result<(), soroban_sdk::Error>
fn get_owed(env: soroban_sdk::Env, member: soroban_sdk::Address) -> i128
fn get_round(env: soroban_sdk::Env, round_id: u64) -> Result
fn get_config(env: soroban_sdk::Env) -> Result
fn get_member(
    env: soroban_sdk::Env,
    address: soroban_sdk::Address,
) -> Result
fn keep_alive(env: soroban_sdk::Env)
fn get_members(
    env: soroban_sdk::Env,
) -> Result, soroban_sdk::Error>
fn accept_admin(env: soroban_sdk::Env) -> Result<(), soroban_sdk::Error>
fn get_claimable(env: soroban_sdk::Env, member: soroban_sdk::Address) -> i128
fn get_owed_round(
    env: soroban_sdk::Env,
    round: u64,
    member: soroban_sdk::Address,
) -> i128
fn get_retirement(env: soroban_sdk::Env) -> Option
fn get_statistics(env: soroban_sdk::Env) -> Result
fn transfer_admin(
    env: soroban_sdk::Env,
    new_admin: soroban_sdk::Address,
) -> Result<(), soroban_sdk::Error>
fn get_current_round(env: soroban_sdk::Env) -> Result
fn get_insurance_pool(env: soroban_sdk::Env) -> Result
fn get_round_shortfall(env: soroban_sdk::Env, round: u64) -> Option

Imports

WebAssembly Text (WAT) ▶