From 0ab761953817707e561dafd047558874a9e59cfa Mon Sep 17 00:00:00 2001 From: Blake <104744707+r3v4s@users.noreply.github.com> Date: Tue, 17 Dec 2024 20:10:36 +0900 Subject: [PATCH] Update _deploy/r/gnoswap/gns/gns.gno Co-authored-by: Lee ByeongJun --- _deploy/r/gnoswap/gns/gns.gno | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/_deploy/r/gnoswap/gns/gns.gno b/_deploy/r/gnoswap/gns/gns.gno index bf31d64ad..12d467288 100644 --- a/_deploy/r/gnoswap/gns/gns.gno +++ b/_deploy/r/gnoswap/gns/gns.gno @@ -170,10 +170,8 @@ func calculateAmountToMint(fromHeight, toHeight int64) uint64 { // if last block of halving year, handle left emission amount if isLastBlockOfHalvingYear(mintUntilHeight) { yearAmountToMint += handleLeftEmissionAmount(i, yearAmountToMint) - totalAmountToMint += yearAmountToMint - } else { - totalAmountToMint += yearAmountToMint } + totalAmountToMint += yearAmountToMint SetHalvingYearMintAmount(i, GetHalvingYearMintAmount(i)+yearAmountToMint) // update fromHeight for next year (if necessary)