- constant keyword
- uint256 public constant MINIMUM_USD = 50 * 1e18;
- Helps in Gas Optimization
- immutable keyword
- The difference is that constant variables can never be changed after compilation, while immutable variables can be set within the constructor but cannot be changed later on.
- Helps in Gas Optimization
- address public immutable i_owner
I know and understand this much of theory but unable to figure out in what cases is immutable used and in what cases is constant used?