From bd1f5fa8adb76c839ca8c1c12b8756d53aac5718 Mon Sep 17 00:00:00 2001 From: Nicholas Addison Date: Fri, 25 Oct 2024 11:50:07 +1100 Subject: [PATCH] Set baseAsset in constructor using params not storage variables --- src/contracts/AbstractARM.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contracts/AbstractARM.sol b/src/contracts/AbstractARM.sol index 1398410..e64b34f 100644 --- a/src/contracts/AbstractARM.sol +++ b/src/contracts/AbstractARM.sol @@ -140,7 +140,7 @@ abstract contract AbstractARM is OwnableOperable, ERC20Upgradeable { require(_liquidityAsset == address(token0) || _liquidityAsset == address(token1), "invalid liquidity asset"); liquidityAsset = _liquidityAsset; // The base asset, eg stETH, is not the liquidity asset, eg WETH - baseAsset = _liquidityAsset == address(token0) ? address(token1) : address(token0); + baseAsset = _liquidityAsset == _token0 ? _token1 : _token0; } /// @notice Initialize the contract.