user2424: What exactly this function is validating?
checkMintedSymbol :: Bool
checkMintedSymbol = case flattenValue (txInfoMint info) of
    [(cs', _, _)] -> cs' == ownCurrencySymbol ctx
    _             -> False


info :: TxInfo
info = scriptContextTxInfo ctx 

ctx is a ScriptContext

user810: It validates whether the minted value matches ownCurrencySymbol which in turn is a hash of the validator/minting policy.
The checkMintedSymbol function might be redundant as you cannot mint arbitrary currency without providing matching validator/minting policy.
Edit based on comments: it isn't redundant if there are multiple minting policies in the transaction and it ensures only one kind of currency is being minted.

2424: <p>What exactly this function is validating?</p>
<pre><code>checkMintedSymbol :: Bool
checkMintedSymbol = case flattenValue (txInfoMint info) of
    [(cs', _, _)] -&gt; cs' == ownCurrencySymbol ctx
    _             -&gt; False


info :: TxInfo
info = scriptContextTxInfo ctx 
</code></pre>
<p>ctx is a <code>ScriptContext</code></p>
 810: <p>It validates whether the minted value matches <code>ownCurrencySymbol</code> which in turn is a hash of the validator/minting policy.</p>
<p>The <code>checkMintedSymbol</code> function might be redundant as you cannot mint arbitrary currency without providing matching validator/minting policy.</p>
<p>Edit based on comments: it isn't redundant if there are multiple minting policies in the transaction and it ensures only one kind of currency is being minted.</p>
