帖子
分享您的知识。
Aaveator138
Jan 29, 2023
专家问答
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
分享
评论
答案
1Aaveator138
Feb 2 2023, 16:39This 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
评论
你知道答案吗?
请登录并分享。
Aave is a decentralized non-custodial liquidity protocol where users can participate as depositors or borrowers.
213帖子230答案
热门帖子
- Error "No matching key" when trying to unstake USDC on BNB chain32
- How to tell the code to, rather than "deposit 1 eth worth of WBTC" deposit "500$ worth of WBTC"?22
- How to interpret configuration field in a response from the getReserveData view function in Aave v2?21
- Getting a return value of '25 - INVALID BURN AMOUNT'21
- Is there any way to stake in the security module on Görli?23