Description:
The distribution contract exposes get_accrual(participant) (at lib.rs:98-100) that returns the total tokens earned by a participant. The SDK does not expose this method.
The accrual is calculated from three sources:
- LP funding volume reward:
lp_volume / 100_000_000 * 10_000_000
- Freelancer settlement reward:
freelancer_settled * 5_000_000
- Payer on-time reward:
payer_on_time * 5_000_000
Why it matters: Participants need to see their pending token earnings before claiming.
Acceptance Criteria:
Relevant Files: contracts/iln_distribution/src/lib.rs:98-100, sdk/src/index.ts
Description:
The distribution contract exposes
get_accrual(participant)(atlib.rs:98-100) that returns the total tokens earned by a participant. The SDK does not expose this method.The accrual is calculated from three sources:
lp_volume / 100_000_000 * 10_000_000freelancer_settled * 5_000_000payer_on_time * 5_000_000Why it matters: Participants need to see their pending token earnings before claiming.
Acceptance Criteria:
get_accrualviewRelevant Files:
contracts/iln_distribution/src/lib.rs:98-100,sdk/src/index.ts