Aave.

Bài viết

Chia sẻ kiến thức của bạn.

Aaveator.
Mar 20, 2023
Hỏi đáp Chuyên Gia

What is the easiest way to get profit generated by an address in Aave v3?

Hi, we are currently integrating Aave into our dApp.

My question:

What is the easiest way to get profit generated by an address in AAVE V3 ?

  • Aave Protocol
  • Aave v3
0
1
Chia sẻ
Bình luận
.

Câu trả lời

1
Aaveator.
Mar 22 2023, 11:44

As for now the eaiest way is:

principalBalance = AToken.getPreviousIndex(user) * AToken.scaledBalanceOf(user)

currentBalance = AToken.balanceOf(user) = AToken.scaledBalanceOf(user) * Pool.getReserveNormalizedIncome(underlyingAsset)
0
Bình luận
.

Bạn có biết câu trả lời không?

Hãy đăng nhập và chia sẻ nó.

Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.

213Bài viết230Câu trả lời
Sui.X.Peera.

Kiếm phần của bạn từ 1000 Sui

Tích lũy điểm danh tiếng và nhận phần thưởng khi giúp cộng đồng Sui phát triển.