Skip to content

Commit

Permalink
[fix] - fix incorrect decimal scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
SHAKOTN committed Aug 28, 2023
1 parent 62d81d3 commit d6cb4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FluxStrategy.sol
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ contract FluxStrategy is BaseStrategy {
if (address(_underlyingAsset) != DAI) {
_underlyingScaled =
(estimatedUnderlyingValue * DEFAULT_DECIMALS_FACTOR) /
_underlyingAsset.decimals();
10 ** _underlyingAsset.decimals();
}
// Convert withdrawn stablecoin to 3crv using get virtual price as it cannot be manipulated easily
uint256 _estimated3crv = (_underlyingScaled *
Expand Down

0 comments on commit d6cb4c1

Please sign in to comment.