convert native amount to ftso balance during valuation
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
7c9c9f90de
commit
6da828cea8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user