@@ -1341,6 +1341,11 @@ input PreviewRequest {
13411341 action : PreviewAction !
13421342}
13431343
1344+ type PreviewReserveRates {
1345+ supplyApy : PercentNumberVariation
1346+ borrowApy : PercentNumberVariation
1347+ }
1348+
13441349union PreviewReward = PreviewMerklSupplyReward | PreviewMerklBorrowReward | PreviewSupplyPointsReward | PreviewBorrowPointsReward
13451350
13461351type PreviewRewardOutcome {
@@ -1366,10 +1371,17 @@ type PreviewUserPosition {
13661371
13671372 """The net apy for one user position on a current spoke"""
13681373 netApy : PercentNumberVariation !
1374+
1375+ """
1376+ Reserve rates after the action.
1377+ Only populated for supply and borrow actions.
1378+ """
1379+ reserveRates : PreviewReserveRates !
13691380 netCollateral (currency : Currency ! = USD ): ExchangeAmountVariation !
13701381 netBalance (currency : Currency ! = USD ): ExchangeAmountVariation !
13711382 projectedEarnings : ExchangeAmountVariation !
1372- borrowingPower : ExchangeAmountVariation !
1383+ maxBorrowingPower : ExchangeAmountVariation !
1384+ remainingBorrowingPower : ExchangeAmountVariation !
13731385 rewards : PreviewRewardOutcome !
13741386 otherConditions : [UserPositionConditionVariation ! ]!
13751387}
@@ -1720,6 +1732,8 @@ type ReserveStatus {
17201732type ReserveSummary {
17211733 supplied : Erc20Amount !
17221734 borrowed : Erc20Amount !
1735+ suppliable : Erc20Amount !
1736+ borrowable : Erc20Amount !
17231737 supplyApy : PercentNumber !
17241738 borrowApy : PercentNumber !
17251739 rewards : [Reward ! ]!
@@ -2917,7 +2931,8 @@ type UserPosition {
29172931 1 collateral you should render health factor
29182932 """
29192933 liquidationPrice (currency : Currency ! = USD ): ExchangeAmount
2920- borrowingPower (currency : Currency ! = USD ): ExchangeAmount !
2934+ maxBorrowingPower (currency : Currency ! = USD ): ExchangeAmount !
2935+ remainingBorrowingPower (currency : Currency ! = USD ): ExchangeAmount !
29212936 canUpdateDynamicConfig : Boolean !
29222937 netBalancePercentChange (window : TimeWindow ! = LAST_DAY ): PercentNumber !
29232938 spoke : Spoke !
0 commit comments