fix liquidation history asset values

This commit is contained in:
Tyler Shipe 2021-11-23 17:52:16 -05:00
parent 451922b015
commit e481e842cd
1 changed files with 1 additions and 4 deletions

View File

@ -124,10 +124,7 @@ const parseActivityDetails = (activity_details, activity_type, perpMarket) => {
? perpMarket.baseLotsToNumber(activity_details.liab_amount)
: activity_details.liab_amount
const assetAmount =
perpMarket && activity_type !== 'liquidate_token_and_perp'
? perpMarket.baseLotsToNumber(activity_details.asset_amount)
: activity_details.asset_amount
const assetAmount = activity_details.asset_amount
const asset_amount = {
amount: parseFloat(assetAmount),