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