UNPKG

@molecularlabs/nucleus-frontend

Version:
11 lines (9 loc) 552 B
/** * Calculates the minimum amount of tokens to mint based on deposit amount, rate, and slippage * @param depositAmount The amount being deposited (in base units) * @param rate The current exchange rate between deposit and mint tokens * @param slippage The maximum acceptable slippage as a decimal (e.g., 0.01 for 1%) * @returns The minimum amount of tokens that should be minted accounting for slippage */ declare const calculateMinimumMint: (depositAmount: bigint, rate: bigint, slippage?: number) => bigint; export { calculateMinimumMint };