fix: correct LP fee from 3% to 0.3%

Runtime LPFee = 3 means 3/1000 = 0.3%, not 3%.
Updated AMM calculations in TokenSwap, SwapInterface, and PoolDashboard.
This commit is contained in:
2026-02-04 21:53:35 +03:00
parent 3a94838937
commit 1e2efbac99
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ export const SwapInterface: React.FC<SwapInterfaceProps> = ({ pools }) => {
const reserveIn = isForward ? activePool.reserve1 : activePool.reserve2;
const reserveOut = isForward ? activePool.reserve2 : activePool.reserve1;
const toAmountRaw = getAmountOut(fromAmountRaw, reserveIn, reserveOut, 30); // 3% fee
const toAmountRaw = getAmountOut(fromAmountRaw, reserveIn, reserveOut, 3); // 0.3% fee
const toAmountDisplay = formatTokenBalance(toAmountRaw, toTokenInfo.decimals, 6);
setToAmount(toAmountDisplay);