HUT 8 MINING CORP. Units AMENDED AND RESTATED UNDERWRITING AGREEMENT