Restrict repay asset selection when user has LTV=0 collateral
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
まず、UI または SDK における返済用 asset の選択を追跡し、その動作を issue に示されている Solidity の LTV 検証と比較します。LTV=0 の担保を持つユーザーが返済対象として LTV が 0 の asset のみを選択でき、影響を受けないポジションでは既存の選択動作が維持されれば完了です。
索引モデルが 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
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aave/interface のほかの issue
-
bug: hidden reserves are still offered as collateral swap targets対応中かも @shivam-V8 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug: the current market is missing from the market switcher when it is a legacy market対応中かも @shivam-V8 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
bug: market switcher search reports "No markets found" for legacy markets対応中かも @shivam-V8 が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Staking: "Claim all" Umbrella rewards button removed by v3 uplift対応中かも @MrMichou が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
Typo: Principle Tokens -> Principal Tokens対応中かも @Shivamd0608 が 140 日前に担当しました。 オープンbug new issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
aave/interface#2861 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/playwright#43327 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/TypeScript#64758 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
opensearch-project/OpenSearch-Dashboards#12937 ·
メンテナーはふだん 2 日以内に返信
-
Liveness marks block-included attesters live in the block's epoch instead of the attestation's epochオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
a2ui-project/a2ui#3158 ·
メンテナーはふだん 2 日以内に返信