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