Description:
The insurance pool contract exposes four view functions that the SDK does not wrap:
get_pool_balance(env) → i128 — current pool balance
get_coverage(env) → i128 — configured coverage cap
is_enrolled(env, lp) → bool — LP enrollment status
get_premiums_paid(env, lp) → i128 — total premiums paid by an LP
Why it matters: Frontend applications need to display insurance pool status and LP enrollment.
Acceptance Criteria:
Relevant Files: contracts/insurance_pool/src/lib.rs, sdk/src/index.ts
Description:
The insurance pool contract exposes four view functions that the SDK does not wrap:
get_pool_balance(env)→i128— current pool balanceget_coverage(env)→i128— configured coverage capis_enrolled(env, lp)→bool— LP enrollment statusget_premiums_paid(env, lp)→i128— total premiums paid by an LPWhy it matters: Frontend applications need to display insurance pool status and LP enrollment.
Acceptance Criteria:
Relevant Files:
contracts/insurance_pool/src/lib.rs,sdk/src/index.ts