Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(sol): default decimal adjustment to 1 #57

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/FlatFeeCalculator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading