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