Skip to content

Commit

Permalink
Update _deploy/r/gnoswap/gns/gns.gno
Browse files Browse the repository at this point in the history
Co-authored-by: Lee ByeongJun <[email protected]>
  • Loading branch information
r3v4s and notJoon authored Dec 17, 2024
1 parent eafb1fd commit 0ab7619
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions _deploy/r/gnoswap/gns/gns.gno
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ab7619

Please sign in to comment.