Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Restrict repay asset selection when user has LTV=0 collateral

オープン
#2,873 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@vickyshaw29 がすでに取り組んでいます。

2026年3月29日 から。

  • #2920 @vickyshaw29 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
52/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
typescript
領域
frontend

調査の方向性

まず、UI または SDK における返済用 asset の選択を追跡し、その動作を issue に示されている Solidity の LTV 検証と比較します。LTV=0 の担保を持つユーザーが返済対象として LTV が 0 の asset のみを選択でき、影響を受けないポジションでは既存の選択動作が維持されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

feature new issue

Is your feature request related to a problem? Please describe.
Currently, when a user has a collateral with LTV=0, the repay function allows selecting any asset. According to the contract, this can cause invalid transactions because the LTV=0 asset must be repaid or withdrawn first:

if (hasZeroLtvCollateral) {
  require(
    getUserReserveLtv(
      reservesData[asset],
      eModeCategories[userEModeCategory],
      userEModeCategory
    ) == 0,
    Errors.LtvValidationFailed()
  );
}

This check ensures a multi-collateral position handles the zero-LTV asset first. Without restricting selection, users may see failed transactions.

Describe the solution you'd like
Limit the repay asset selection in the UI or SDK so that if the user has an LTV=0 collateral, only the zero-LTV asset can be used for repay.

Describe alternatives you've considered
• Showing a warning but allowing all assets (may still cause transaction failure).
• Automatically selecting the LTV=0 asset if present.

Additional context
This is an example error tx you can check: https://etherscan.io/tx/0xd0b25ffaaeb76fc5e2fb4700cd4ac554e65ec41673fef523aa881b0501b7626c

主要言語
TypeScript
スター
537
フォーク
495
平均マージ
1日 13時間
マージ済み PR(30日)
14

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

aave/interface のほかの issue

aave/interface の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。