import { ethers } from "ethers"; export const withdrawAndHarvest = async ( reliquaryContract: ethers.Contract, amount: number, relicId: number ) => { try { const tx = await reliquaryContract.withdrawAndHarvest(amount, relicId); await tx.wait(); } catch (error) { return error; } };