@@ -8,7 +8,7 @@ import { peanut, interfaces as peanutInterfaces } from '@squirrel-labs/peanut-sd
8
8
import * as generalViews from './Views/GeneralViews'
9
9
import * as utils from '@/utils'
10
10
import { useCreateLink } from '@/components/Create/useCreateLink'
11
- import useClaimLink from '@/components/Claim/useClaimLink '
11
+ import { ActionType , estimatePoints } from '@/components/utils/utils '
12
12
13
13
export const PayRequestLink = ( ) => {
14
14
const [ step , setStep ] = useState < _consts . IPayScreenState > ( _consts . INIT_VIEW_STATE )
@@ -20,7 +20,6 @@ export const PayRequestLink = () => {
20
20
const [ estimatedGasCost , setEstimatedGasCost ] = useState < number | undefined > ( undefined )
21
21
const [ transactionHash , setTransactionHash ] = useState < string > ( '' )
22
22
const [ unsignedTx , setUnsignedTx ] = useState < peanutInterfaces . IPeanutUnsignedTransaction | undefined > ( undefined )
23
- const { estimatePoints } = useClaimLink ( )
24
23
25
24
const fetchPointsEstimation = async (
26
25
requestLinkDetails : { recipientAddress : any ; chainId : any ; tokenAmount : any } ,
@@ -30,6 +29,7 @@ export const PayRequestLink = () => {
30
29
address : requestLinkDetails . recipientAddress ,
31
30
chainId : requestLinkDetails . chainId ,
32
31
amountUSD : Number ( requestLinkDetails . tokenAmount ) * ( tokenPrice ?. price ?? 0 ) ,
32
+ actionType : ActionType . FULFILL ,
33
33
} )
34
34
35
35
setEstimatedPoints ( estimatedPoints )
0 commit comments