Skip to content

Commit 2204cf2

Browse files
authored
Merge branch 'master' into updateBLST
2 parents 2f88205 + a895cc6 commit 2204cf2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ To start developing on AvalancheGo, you'll need a few things installed.
88
- gcc
99
- g++
1010

11+
On MacOS, a modern version of bash is required (e.g. via [homebrew](https://brew.sh/) with `brew install bash`). The version installed by default is not compatible with AvalancheGo's [shell scripts](scripts).
12+
1113
## Issues
1214

1315
### Security

vms/platformvm/reward/calculator.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@ func (c *calculator) Calculate(stakedDuration time.Duration, stakedAmount, curre
6363
}
6464

6565
finalReward := reward.Uint64()
66-
if finalReward > remainingSupply {
67-
return remainingSupply
68-
}
69-
70-
return finalReward
66+
return min(remainingSupply, finalReward)
7167
}
7268

7369
// Split [totalAmount] into [totalAmount * shares percentage] and the remainder.

0 commit comments

Comments
 (0)