Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Refactored some logic. Added an event upon initialization. Some varia… #594

Merged
merged 2 commits into from
Mar 3, 2020

Conversation

bweick
Copy link
Contributor

@bweick bweick commented Feb 27, 2020

…ble renaming.

@coveralls
Copy link

coveralls commented Feb 27, 2020

Pull Request Test Coverage Report for Build 7568

  • 40 of 40 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7545: 0.0%
Covered Lines: 1691
Relevant Lines: 1691

💛 - Coveralls

* @return uint256 Streaming Fee
* @return uint256 Profit Fee
*/
function calculateFees()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For more flexibility for any contracts that might inherit this as a base contract, would pass in the setAddress as an argument


/**
* Updates fee state after a fee has been accrued. Streaming timestamp is always updated. Profit timestamp
* is only updated if profit fee is collected. High watermark timestamp is updated if profit fee collected
* or if a highWatermarkResetFrequency amount of time has passed since last profit fee collection.
* or if a highWatermarkResetPeriod amount of time has passed since last profit fee collection.
*/
function updateFeeState(
uint256 _streamingFee,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would pass in setAddress here as argument.

@bweick bweick merged commit 2b9b847 into master Mar 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants