import { ethers } from 'ethers' import { execute, QueryOption } from '../../common/utils/execute' export type calculateRewardAmountCaller = ( contract: ethers.Contract, ) => (propertyAddress: string, accountAddress: string) => Promise export const calculateRewardAmountCaller: calculateRewardAmountCaller = (contract: ethers.Contract) => async (propertyAddress: string, accountAddress: string) => execute({ contract, method: 'calculateRewardAmount', args: [propertyAddress, accountAddress], mutation: false, })