DeFiCh / DeFiCh/ain

Expose accrued loan interest via listaccounthistory

Open
#957 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
397
Forks
129
PR merge metrics
No merged PRs in 30d

Description

#### What would you like to be added:
Expose accrued loan interest via listaccounthistory similar to liquidity mining rewards:
1. Accrued loan interest for each block and for each ticker symbol
2. New boolean parameter for listaccounthistory to show/hide interest entries (similar to no_rewards for liquidity mining rewards)

#### Why is this needed:
This is required for accounting and tax compliance and is blocking defichain friendly businesses from creating proper tax report for state authorities.

Contributor guide

Open the contributing guide

Research direction

Start at the listaccounthistory entry point and trace how liquidity mining rewards and the no_rewards parameter are exposed. Determine where loan-interest records can be represented per block and ticker, then verify that the new boolean controls whether those entries appear and that the output supports accounting and tax reporting.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.