Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R02: Feature/pool 408 refactor credit accrual into prize pool #129

Conversation

asselstine
Copy link
Contributor

Move credit accrual from the prize strategy into the prize pool.

@linear
Copy link

linear bot commented Aug 22, 2020

@asselstine asselstine changed the title Feature/pool 408 refactor credit accrual into prize pool R01: Feature/pool 408 refactor credit accrual into prize pool Aug 22, 2020
@asselstine asselstine changed the title R01: Feature/pool 408 refactor credit accrual into prize pool R02: Feature/pool 408 refactor credit accrual into prize pool Aug 22, 2020
/// @param amount The amount the user is withdrawing
/// @param controlledToken The type of collateral the user is withdrawing (i.e. ticket or sponsorship)
/// @return durationSeconds The duration of the timelock in seconds
function _calculateTimelockDuration(
Copy link
Contributor

Choose a reason for hiding this comment

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

Inaccurate natspec docs for function signature

/// @notice Calculates the early exit fee for the given amount
/// @param amount The amount of collateral to be withdrawn
/// @return Exit fee
function _calculateEarlyExitFee(address controlledToken, uint256 amount) internal view returns (uint256) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Inaccurate natspec docs for function signature

/// @param _principal The principal amount on which interest is accruing
/// @param _interest The amount of interest that must accrue
/// @return durationSeconds The duration of time it will take to accrue the given amount of interest, in seconds.
function estimateCreditAccrualTime(
Copy link
Contributor

Choose a reason for hiding this comment

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

missing '_controlledToken' from natspec docs

Copy link
Contributor

Choose a reason for hiding this comment

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

most functions appear to be missing this param from natspec docs

@robsecord robsecord force-pushed the feature/pool-408-refactor-credit-accrual-into-prize-pool branch from 8e1f5db to 1c36365 Compare September 9, 2020 17:00
@robsecord robsecord changed the base branch from version-3_rebased-onto_oz-audit_merged to oz-audit_merged September 9, 2020 17:00
@robsecord robsecord merged commit 2d557b8 into oz-audit_merged Sep 9, 2020
@robsecord robsecord deleted the feature/pool-408-refactor-credit-accrual-into-prize-pool branch September 9, 2020 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants