Aave.

Bài viết

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

Aaveator.
Jan 29, 2023
Hỏi đáp Chuyên Gia

How does one calculate the variable APY for a given deposit amount?

How does one calculate the variable APY for a given deposit amount? All I see in the docs are how to calculate the amount at a moment in time, but I figure if you deposit say $10M of an asset, the APY will change?

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

Câu trả lời

1
Aaveator.
Feb 2 2023, 16:39

This is the function is used to compute the new supply and Aave borrow rates (APR) after a transaction: https://github.com/aave/aave-v3-core/blob/e46341caf815edc268893f4f9398035f242375d9/contracts/protocol/libraries/logic/ReserveLogic.sol#L167, you can convert these to APY using the formula given here: https://docs.aave.com/developers/v/2.0/guides/apy-and-apr

More info.

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ó.

Chúng tôi sử dụng cookie để đảm bảo bạn có trải nghiệm tốt nhất trên trang web của chúng tôi.
Thêm thông tin