From a3661531cb747893952fa6c5610775eca2a4ec53 Mon Sep 17 00:00:00 2001 From: Michalis Kargakis Date: Mon, 10 Jun 2024 12:55:00 +0200 Subject: [PATCH] chore(sol): default decimal adjustment to 1 Currently the pool contract is converting the underlying decimals to the pool token decimals before calling the fee calculator so there is no need to adjust the amount in the fee calculator, hence default feeToUnderlyingDecimalsScale to 1. --- src/FlatFeeCalculator.sol | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/FlatFeeCalculator.sol b/src/FlatFeeCalculator.sol index 04f8b36..eed2305 100644 --- a/src/FlatFeeCalculator.sol +++ b/src/FlatFeeCalculator.sol @@ -28,7 +28,12 @@ contract FlatFeeCalculator is IFeeCalculator, Ownable { /// For example, if the fee token has 18 decimals and the underlying token has 18 decimals, the /// decimals scale is 1e0. /// If the fee token has 18 decimals and the underlying token has 0 decimals, the decimals scale is 1e18 - uint256 public feeToUnderlyingDecimalsScale = 1e18; + /// + /// NOTE: Currently the pool contract is converting the underlying + /// decimals to the pool token decimals before calling the + /// fee calculator so there is no need to adjust the amount + /// in the fee calculator, hence default feeToUnderlyingDecimalsScale to 1. + uint256 public feeToUnderlyingDecimalsScale = 1; address[] private _recipients; uint256[] private _shares;