Skip to content

Commit b323221

Browse files
authored
refactor: derive minimum liquidity from decimals (#307)
1 parent f953506 commit b323221

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/contracts/AbstractARM.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ abstract contract AbstractARM is OwnableOperable, ERC20Upgradeable, ReentrancyGu
243243
liquidityAssetDecimals = decimals_;
244244
// Native-liquidity floor. 1e12 for an 18-decimal asset keeps existing deployments unchanged;
245245
// 1 for a 6-decimal asset is the same 1e-6-token magnitude.
246-
MIN_LIQUIDITY = decimals_ == 18 ? 1e12 : 1;
246+
MIN_LIQUIDITY = 10 ** (decimals_ - 6);
247247
claimDelay = _claimDelay;
248248
minSharesToRedeem = _minSharesToRedeem;
249249
allocateThreshold = _allocateThreshold;

0 commit comments

Comments
 (0)