@@ -166,6 +166,9 @@ input ERC712Signature {
166166}
167167
168168type EmodeMarketCategory {
169+ """The eMode id for the market"""
170+ id : Int !
171+
169172 """The eMode label"""
170173 label : String !
171174
@@ -270,6 +273,9 @@ type InsufficientBalanceError {
270273}
271274
272275input LiquidateRequest {
276+ """The market pool address"""
277+ market : EvmAddress !
278+
273279 """
274280 The address of the token used as collateral, to receive as result of the liquidation
275281 """
@@ -307,11 +313,9 @@ type Market {
307313 """The liquidity pool address for the market"""
308314 address : EvmAddress !
309315
310- """The total borrows on the market"""
311- totalBorrows : BigDecimal !
312-
313316 """A list eModes the market can support"""
314317 eModeCategories : [EmodeMarketCategory ! ]!
318+ userStats : MarketUserStats
315319
316320 """The market icon"""
317321 icon : String !
@@ -324,9 +328,6 @@ type Market {
324328
325329 """The total available liquidity in USD"""
326330 totalAvailableLiquidity : BigDecimal !
327-
328- """The market user stats"""
329- userStats : MarketUserStats
330331}
331332
332333type MarketInfo {
@@ -655,15 +656,15 @@ type Reserve {
655656 """
656657 borrowInfo : ReserveBorrowInfo
657658
658- """A list eModes the reserve can support"""
659- eModeInfo : [EmodeReserveInfo ! ]!
660-
661659 """The reserve has been frozen all actions are stopped"""
662660 isFrozen : Boolean !
663661
664662 """The reserve is paused you can still withdraw and some other actions"""
665663 isPaused : Boolean !
666664
665+ """A list eModes the reserve can support"""
666+ eModeInfo : [EmodeReserveInfo ! ]!
667+
667668 """
668669 The user's availability on the reserve to borrow and supply with balance
669670 """
@@ -754,13 +755,13 @@ type ReserveSupplyInfo {
754755
755756type ReserveUserAvailability {
756757 """The user's balance of this asset"""
757- balance : DecimalValue !
758+ balance : TokenAmount !
758759
759760 """The amount the user can supply to this reserve"""
760- supply : DecimalValue !
761+ suppliable : TokenAmount !
761762
762763 """The amount the user can borrow from this reserve"""
763- borrow : DecimalValue !
764+ borrowable : TokenAmount !
764765}
765766
766767input SetVaultFeeRequest {
@@ -998,7 +999,7 @@ type Vault {
998999 chainId : ChainId !
9991000
10001001 """The user's shares on the vault"""
1001- userShares ( address : EvmAddress ! ): DecimalValue !
1002+ userShares : DecimalValue
10021003}
10031004
10041005input VaultDepositRequest {
@@ -1052,6 +1053,11 @@ input VaultRequest {
10521053
10531054 """The chain id the vault is deployed on"""
10541055 chainId : ChainId !
1056+
1057+ """
1058+ The user viewing it (can be connected wallet) - this caters for stuff like userShares and other user features
1059+ """
1060+ user : EvmAddress
10551061}
10561062
10571063input VaultShareInput {
@@ -1069,6 +1075,11 @@ input VaultsRequest {
10691075 """Filter criteria for vaults"""
10701076 criteria : VaultsRequestFilterCriteria !
10711077
1078+ """
1079+ The user viewing it (can be connected wallet) - this caters for stuff like userShares and other user features
1080+ """
1081+ user : EvmAddress
1082+
10721083 """The page size"""
10731084 pageSize : PageSize ! = FIFTY
10741085
0 commit comments