Closed s994n closed 2 years ago
This PR changes the value of 1 in this line (inside the definition of getFdvFactor), to a value of 1_000_000_000:
1
getFdvFactor
1_000_000_000
uint256 currentPrice = IBondCalculator(theoBondingCalculator).valuation(address(THEO), 1);
This is because the bonding calculator expects to receive 1 THEO with 9 decimals. See also tokenPerformanceUpdate in the Treasury contract, where this is already implemented with 9 decimals
tokenPerformanceUpdate
Description \
This PR changes the value of
1
in this line (inside the definition ofgetFdvFactor
), to a value of1_000_000_000
:uint256 currentPrice = IBondCalculator(theoBondingCalculator).valuation(address(THEO), 1);
This is because the bonding calculator expects to receive 1 THEO with 9 decimals. See also
tokenPerformanceUpdate
in the Treasury contract, where this is already implemented with 9 decimals