I have a problem with the wording of the Double Posting Leniency Act. By removing the cast multiple ballot during the voting period reference, I think it creates a loophole for changing or editing a ballot after the 20 minutes. A voter could cast a second ballot one day fater a first one and delete the first one and it could legal because there is only one ballot at the end of the election and the ballot was not technically edited after 20 minutes.
If you want the voter to realise and delete the second vote within the 20 minutes maybe deleting ballot could be like editing allowed within 20 minutes.
Maybe if you want to avoid someone changing a ballot by casting a second one you could make deleting a ballot illegal but let the Secretary of Elections use judgement in counting only one ballot seeing the two ballots are the same (since we are talking double posting by mistake), or allowed to delete a ballot with permission of the SoFE but that requires the elections official to be easily accessible during elections.