You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will than give us the borrow apy which we can multiply with all the assets that we deployed into the 4626.
This we can than add to the borrow apy of our market and divide it by the total supply of assets in the market to get the total supply apy.
The text was updated successfully, but these errors were encountered:
We should create an integration of AaveV3-4626 for an USDC market on Polygon.
In order to display the supply apy of the aaveV3 4626 we need to call
getReserveData
on thePool
contract which is https://polygonscan.com/address/0x794a61358D6845594F94dc1DB02A252b5b4814aD#readProxyContract on polygon.It returns the
ReserveData
struct which can be found here: https://github.com/aave/aave-v3-core/blob/master/contracts/protocol/libraries/types/DataTypes.solIn that we want to pull the
currentVariableBorrowRate
.This will than give us the borrow apy which we can multiply with all the assets that we deployed into the 4626.
This we can than add to the borrow apy of our market and divide it by the total supply of assets in the market to get the total supply apy.
The text was updated successfully, but these errors were encountered: