Skip to content

Commit

Permalink
feat: rantom weights balanced custodians
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Oct 21, 2024
1 parent ff23991 commit a3168ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/rightsmanager/RightsContentCustodian.sol
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ contract RightsContentCustodian is Initializable, UUPSUpgradeable, GovernableUpg
// += weight for node i
acc += (((n - i) * C.BPS_MAX) / s);
address candidate = custodying[holder].at(i);

if (acc >= random && _isValidActiveDistributor(candidate)) {
choosen = candidate;
}
Expand Down

0 comments on commit a3168ff

Please sign in to comment.