Skip to content

feat/lending pool - #16

Merged
Benup211 merged 3 commits into
mainfrom
feat/lending-pool
Aug 23, 2026
Merged

feat/lending pool#16
Benup211 merged 3 commits into
mainfrom
feat/lending-pool

Conversation

@Benup211

Copy link
Copy Markdown
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

Benup211 and others added 3 commits August 23, 2026 12:17
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
@Benup211
Benup211 merged commit 595eb8f into main Aug 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant