Skip to content

Commit

Permalink
Fixed 3CRV Txn Details
Browse files Browse the repository at this point in the history
  • Loading branch information
uncoolzero committed Nov 5, 2023
1 parent 2dc1d0f commit 20ea010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/ui/src/util/Actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FarmFromMode, FarmToMode } from '@beanstalk/sdk';
import Token from '~/classes/Token';
import { displayFullBN, displayTokenAmount } from '~/util/Tokens';
import copy from '~/constants/copy';
import { BEAN, PODS, SPROUTS } from '../constants/tokens';
import { BEAN, PODS, SPROUTS, CRV3 } from '../constants/tokens';
import { displayBN, trimAddress } from './index';

export enum ActionType {
Expand Down Expand Up @@ -280,13 +280,13 @@ export const parseActionMessage = (a: Action) => {
case ActionType.END_TOKEN:
return null;
case ActionType.SWAP:
if (a.tokenOut.isLP && !a.tokenOut.isUnripe) {
if (a.tokenOut.isLP && a.tokenOut.symbol !== CRV3[1].symbol && !a.tokenOut.isUnripe) {
return `Add ${displayTokenAmount(
a.amountIn,
a.tokenIn
)} of liquidity for ${displayTokenAmount(a.amountOut, a.tokenOut)}.`;
}
if (a.tokenIn.isLP && !a.tokenIn.isUnripe) {
if (a.tokenIn.isLP && a.tokenIn.symbol !== CRV3[1].symbol && !a.tokenIn.isUnripe) {
return `Burn ${displayTokenAmount(
a.amountIn,
a.tokenIn
Expand Down

0 comments on commit 20ea010

Please sign in to comment.