mirror of
				https://github.com/Instadapp/assembly.git
				synced 2024-07-29 22:37:06 +00:00 
			
		
		
		
	fix aave/comp liquidation status
This commit is contained in:
		
							parent
							
								
									41f1cf1b37
								
							
						
					
					
						commit
						ea2063bc8f
					
				|  | @ -35,7 +35,7 @@ | |||
| 
 | ||||
|       <SidebarSectionStatus | ||||
|         class="mt-8" | ||||
|         :liquidation="maxLiquidation" | ||||
|         :liquidation="liquidation" | ||||
|         :status="status" | ||||
|       /> | ||||
| 
 | ||||
|  | @ -212,6 +212,7 @@ export default defineComponent({ | |||
|       formatUsdMax, | ||||
|       formatUsd, | ||||
|       maxLiquidation, | ||||
|       liquidation, | ||||
|       liquidationPrice, | ||||
|       liquidationMaxPrice, | ||||
|       errorMessages, | ||||
|  |  | |||
|  | @ -131,7 +131,7 @@ | |||
| 
 | ||||
|                 <div class="ml-2"><Info text="Debt/Collateral ratio" /></div> | ||||
|               </div> | ||||
|               <span>Max - {{ formatPercent(position.maxLiquidation) }}</span> | ||||
|               <span>Max - {{ formatPercent(maxLiquidation) }}</span> | ||||
|             </div> | ||||
|           </div> | ||||
|         </div> | ||||
|  | @ -207,7 +207,8 @@ export default defineComponent({ | |||
|       totalSupply, | ||||
|       totalBorrow, | ||||
|       status, | ||||
|       liquidation | ||||
|       liquidation, | ||||
|       maxLiquidation, | ||||
|     } = useAaveV2Position(); | ||||
| 
 | ||||
|     const { div } = useBigNumber(); | ||||
|  | @ -236,7 +237,8 @@ export default defineComponent({ | |||
|       formatUsd, | ||||
|       formatPercent, | ||||
|       color, | ||||
|       text | ||||
|       text, | ||||
|       maxLiquidation, | ||||
|     }; | ||||
|   } | ||||
| }); | ||||
|  |  | |||
|  | @ -131,7 +131,7 @@ | |||
| 
 | ||||
|                 <div class="ml-2"><Info text="Debt/Collateral ratio" /></div> | ||||
|               </div> | ||||
|               <span>Max - {{ formatPercent(position.maxLiquidation) }}</span> | ||||
|               <span>Max - {{ formatPercent(liquidation) }}</span> | ||||
|             </div> | ||||
|           </div> | ||||
|         </div> | ||||
|  | @ -205,7 +205,7 @@ export default defineComponent({ | |||
|       totalSupply, | ||||
|       totalBorrow, | ||||
|       status, | ||||
|       liquidation | ||||
|       liquidation, | ||||
|     } = useCompoundPosition(); | ||||
| 
 | ||||
|     const { div } = useBigNumber(); | ||||
|  | @ -234,7 +234,8 @@ export default defineComponent({ | |||
|       formatUsd, | ||||
|       formatPercent, | ||||
|       color, | ||||
|       text | ||||
|       text, | ||||
|       liquidation, | ||||
|     }; | ||||
|   } | ||||
| }); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Georges KABBOUCHI
						Georges KABBOUCHI