Theopetra / theo-contracts

1 stars 0 forks source link

fix: Update argument for bonding calculator `valuation` call #157

Closed s994n closed 2 years ago

s994n commented 2 years ago

Description \

This PR changes the value of 1 in this line (inside the definition of getFdvFactor), to a value of 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