Skip to content

Commit

Permalink
refactor: update route configs, adapt prime, redeem
Browse files Browse the repository at this point in the history
  • Loading branch information
toniocodo committed Jul 30, 2024
1 parent d21a163 commit 32a665c
Show file tree
Hide file tree
Showing 71 changed files with 609 additions and 6,523 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { redeemVaultOeth, SwapCurveOeth } from '@origin/shared/routes';
import { defineMessage } from 'react-intl';

import redeemVault from './redeemVault';
import swapCurve from './swapCurve';

import type { SwapApi } from '@origin/shared/providers';

import type { OethRedeemAction } from '../types';
import type { OethRedeemAction } from './types';

const defaultApi: SwapApi = {
isRouteAvailable: async () => true,
Expand Down Expand Up @@ -54,15 +52,15 @@ const defaultApi: SwapApi = {
};

export const redeemActions: Record<OethRedeemAction, SwapApi> = {
'swap-curve': {
'swap-curve-oeth': {
...defaultApi,
...swapCurve,
...SwapCurveOeth,
routeLabel: defineMessage({ defaultMessage: 'Swap via Curve' }),
buttonLabel: defineMessage({ defaultMessage: 'Redeem' }),
},
'redeem-vault': {
'redeem-vault-oeth': {
...defaultApi,
...redeemVault,
...redeemVaultOeth,
routeLabel: defineMessage({ defaultMessage: 'Redeem via OETH Vault' }),
buttonLabel: defineMessage({ defaultMessage: 'Redeem' }),
},
Expand Down
219 changes: 0 additions & 219 deletions libs/defi/oeth/src/redeem/actions/redeemVault.ts

This file was deleted.

Loading

0 comments on commit 32a665c

Please sign in to comment.