Skip to content

Commit

Permalink
Set baseAsset in constructor using params not storage variables
Browse files Browse the repository at this point in the history
  • Loading branch information
naddison36 committed Oct 25, 2024
1 parent e1c04d9 commit bd1f5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contracts/AbstractARM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bd1f5fa

Please sign in to comment.