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