export const adjustPrecision = ({ amount, scale }: { amount: number; scale: number }) => { const factor = 10 ** scale; return Number(amount) / factor; };