Merge pull request #351 from blockworks-foundation/lou/activity-feed-wdraw-fees

add withdraw fees to activity table
This commit is contained in:
Lou-Kamades 2023-12-16 15:45:18 -06:00 committed by GitHub
commit a82917b6e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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