Skip to content

Commit bbc24b4

Browse files
makerfile
1 parent 29c2abb commit bbc24b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

toolkit/rebalancer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ type (
2121

2222
func NewPortfolioWeights(distribution map[data.Currency]BaseWeight, epsilon float64) (*PortfolioWeights, error) {
2323
weights := PortfolioWeights(distribution)
24-
if err := weights.isValid(epsilon); err != nil {
24+
if err := weights.IsValid(epsilon); err != nil {
2525
return nil, err
2626
}
2727
return &weights, nil
2828
}
2929

30-
func (f PortfolioWeights) isValid(epsilon float64) error {
30+
func (f PortfolioWeights) IsValid(epsilon float64) error {
3131
sumWeights := 0.0
3232

3333
for _, weight := range f {

0 commit comments

Comments
 (0)