Skip to content

Fix: [Contracts] LendingPool total_yield_distributed is permanently 0 - its only writer events::yield_distributed is dead_code never called on interest inflow (Auto-Generated) - #1730

Open
Ennyblack wants to merge 5 commits into
LabsCrypt:mainfrom
Ennyblack:driptide/issue-1134-1788176681859

Conversation

@Ennyblack

Copy link
Copy Markdown

Closes #1134

This pull request was generated automatically and scoped strictly to issue #1134.

Changes

Wire yield_distributed into the distribute_yield function in contracts/lending_pool/src/lib.rs, remove #[allow(dead_code)] from events.rs, update pool stats / views / tests so that TotalYieldDistributed and PoolStats.total_yield_distributed properly track actual interest/yield distribution inflows.

Verification

⚠️ Not verified locally (no build system detected, or the required toolchain isn't installed on the worker). GitHub CI is the source of truth — please check the CI status on this PR before merging.

Linked with Closes #1134 so the Drips Wave bot resolves the issue on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant