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