feat/lending pool - #16
Merged
Merged
Conversation
Benup211
commented
Aug 23, 2026
Owner
- feat(lending-pool):lending pool following aave/compound arc\ -lending assets: TAO/TUSDT\ -Borrowing collateral: subnet alpha
- feat:pool issue fixed for supply and withdrawn of supply assets
- fix(vault): future oracle timestamp, netuid event, ED-aware sweep - M-3: validate_price_data now checks for future committed_at timestamps and returns OraclePriceUnavailable instead of misreporting OraclePriceStale - L-1: set_approved_netuid emits NetuidApproved event for off-chain indexers - L-2: transfer_native_to_treasury uses env().minimum_balance() instead of hardcoded 1-rao dust reserve, respecting the chain's actual existential deposit
- feat:lending repay supply error fixed
- fix:borrow and repay ratio index fixed\ updated documentation to latest arch
- feat:debt interest added
- feat: 24h param timelock, contract docs, workspace hardening
- feat: min debt accuracy fixed\ added interest accural timing of both market
- feat:interest and supply staking in 0
- feat:interest rate clearing without scaled debt remaining in repay
- feat:params fixed according to test cases of 24hrs\ with documentation
- feat:aave style rayDivup calculation in repaying debt
- fix:redeem supplier yield via exchange rate
- fix:track market debt in scaled units to clear repayment dust
- fix: ci only run on pull request
Borrowers repaying their full debt (principal + interest) were left with 1-2 rao of unrepayable dust: total_debt was tracked in face units while positions store scaled debt, so borrow (nominal add), accrue_interest (floor of stale integer) and the repay/liquidate min(repay, total_debt) clamp drifted the market total below the sum of user debts; at total_debt == 0 every further repay clamped to zero and the position could never be cleared.
fix:track market debt in scaled units to clear repayment dust
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.