From 6da828cea81084e7ce884cdd2d8e211bba79f8eb Mon Sep 17 00:00:00 2001 From: Uncle Fatso Date: Thu, 9 Oct 2025 12:47:09 +0300 Subject: [PATCH] convert native amount to ftso balance during valuation Signed-off-by: Uncle Fatso --- src/StandardBondingCalculator.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/src/StandardBondingCalculator.sol b/src/StandardBondingCalculator.sol index 2818c3c..b83209b 100644 --- a/src/StandardBondingCalculator.sol +++ b/src/StandardBondingCalculator.sol @@ -46,6 +46,7 @@ contract GhostBondingCalculator is IBondingCalculator { uint256 totalSupply = IUniswapV2Pair(pair).totalSupply(); value = totalValue * FixedPoint.fraction(amount, totalSupply).decode112with18() / 1e18; + value = value * fraction / 1e18; } function markdown(address pair) external view override returns (uint256 reserve) {