Skip to content

Commit

Permalink
Update(GaugeController.sol): Add NatSpec and Comments (#273)
Browse files Browse the repository at this point in the history
* update(GaugeController.sol): add natspec comments

* Update contracts/GaugeController.sol

Co-authored-by: Pierrick Turelier <pierrick@turelier.com>

* Update contracts/GaugeController.sol

Co-authored-by: Pierrick Turelier <pierrick@turelier.com>

* Update contracts/GaugeController.sol

Co-authored-by: Pierrick Turelier <pierrick@turelier.com>

* Update contracts/GaugeController.sol

Co-authored-by: Pierrick Turelier <pierrick@turelier.com>

* update(#273-comment-name): change variable name

* update(GaugeController.sol): additional natspec for Gauge status functions

* update(GaugeController.sol): update function names and interface

* update(GaugeController.sol): match staging

* update(DrawCalculatorV3.sol): update GaugeController function call

* update(GaugeController.test.ts): update tests to match interface

* fix

* fix

* fix(DrawCalculatorV3.test.ts): fix mock function calls

Co-authored-by: Pierrick Turelier <pierrick@turelier.com>
  • Loading branch information
kamescg and PierrickGT committed May 31, 2022
1 parent 4882710 commit 5f82459
Show file tree
Hide file tree
Showing 7 changed files with 245 additions and 180 deletions.
2 changes: 1 addition & 1 deletion contracts/DrawCalculatorV3.sol
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ contract DrawCalculatorV3 is IDrawCalculatorV3, Manageable {
uint8 _cardinality
) internal view returns (uint256) {
uint256 _totalChances = (2**_bitRange)**_cardinality;
uint256 _gaugeScaledAverage = gaugeController.getScaledAverageGaugeBetween(address(_ticket), _startTime, _endTime);
uint256 _gaugeScaledAverage = gaugeController.getScaledAverageGaugeBalanceBetween(address(_ticket), _startTime, _endTime);
return (_gaugeScaledAverage * _totalChances) / _poolStakeCeiling;
}

Expand Down
Loading

0 comments on commit 5f82459

Please sign in to comment.