Skip to content

Commit

Permalink
re-add legacy RToken ABI
Browse files Browse the repository at this point in the history
  • Loading branch information
larrythecucumber321 committed Oct 19, 2023
1 parent 72b840e commit 69a71e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/issuance/components/redeem/ConfirmRedemption.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { t } from '@lingui/macro'
import RToken from 'abis/RToken'
import RSVManager from 'abis/RSVManager'
import RTokenLegacy from 'abis/RTokenLegacy'
import TransactionModal from 'components/transaction-modal'
import { atom, useAtom, useAtomValue } from 'jotai'
import { useCallback, useMemo, useState } from 'react'
Expand Down Expand Up @@ -39,7 +40,7 @@ const callAtom = atom((get) => {
// Normal case, redeem directly
if (isCollaterized || isLegacy) {
return {
abi: isLegacy ? RSVManager : RToken,
abi: !rToken?.main ? RSVManager : isLegacy ? RTokenLegacy : RToken,
address: rToken.main ? rToken.address : RSV_MANAGER,
functionName: 'redeem',
args: rToken?.main && isLegacy ? [parsedAmount, nonce] : [parsedAmount],
Expand Down

0 comments on commit 69a71e6

Please sign in to comment.