import { ethers } from 'ethers' import { execute, QueryOption } from '../../common/utils/execute' export type CreateRewardsCaller = ( contract: ethers.Contract, ) => (lockups: string, assets: string) => Promise export const createRewardsCaller: CreateRewardsCaller = (contract: ethers.Contract) => async (lockups: string, assets: string): Promise => execute({ contract, method: 'rewards', args: [lockups, assets], mutation: false, })