import { ethers } from "ethers"; export const getCurveId = async ( reliquaryContract: ethers.Contract, relicId: number ) => { try { const curveId = await reliquaryContract.curved(relicId); return curveId.toNumber(); } catch (error) { return error; } };