add withdraw fees to activity table

This commit is contained in:
Lou-Kamades 2023-12-16 13:20:11 -06:00
parent c2a4ad41d7
commit 7148fa0db4
No known key found for this signature in database
GPG Key ID: 87A166E4D7C01F30
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ export const getFee = (activity: any, mangoAccountAddress: string) => {
const { fee_cost, quote_symbol } = activity.activity_details
fee = { value: fee_cost, symbol: quote_symbol }
}
if (activity_type === 'withdraw') {
const { borrow_fee, symbol } = activity.activity_details
fee = { value: formatFee(borrow_fee), symbol }
}
if (activity_type === 'liquidate_token_with_token') {
const { side, liab_amount, liab_price, asset_amount, asset_price } =
activity.activity_details