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

Parameter & Variable Renames #677

Merged
merged 23 commits into from
Oct 11, 2023
Merged

Conversation

dapp-whisperer
Copy link
Contributor

@dapp-whisperer dapp-whisperer commented Oct 6, 2023

Covers some of the more complex / verbose changes listed in
#665

Goal:

  • Consistency in use of coll, collShares, stEthBalances
  • Consistency around eBTC and debt
    • Ebtc or ebtc when used in camelcase, as appropriate
    • eBTC, when used as the name of an asset
    • no more EBTC case in main code (tests are ok)
  • And a few misc changes requested from Cantina cleanup
recoveryModeGracePeriod → recoveryModeGracePeriodDuration
GracePeriodSet → GracePeriodDurationSet
borrowerOperations.withdrawEBTC() → borrowerOperations.withdrawDebt()
borrowerOperations.repayEBTC() → borrowerOperations.repayDebt()

Many parameters

_EBTCAmount → _debt
_*EBTCChange → _debtChange*
_EBTC → _debt
*Redemption struct parameters changed for consistency and clarity
_requireSufficientEBTCBalance → _requireSufficientEbtcBalance
_requireValidEBTCRepayment → _requireValidDebtRepayment
_requireSufficientEbtcBalance(ebtcToken, msg.sender, debt)
_requireSufficientEbtcBalance(msg.sender, debt);

(don’t pass around immutables)

lastEBTCDebtErrorRedistribution → lastDebtRedistributionError

_requireEBTCBalanceCoversRedemptionAndWithinSupply → _requireEbtcBalanceCoversRedemptionAndWithinSupply

(also removed the ebtcToken address from parameter list, it’s a waste with immutables)

Bonus Features

  • remove test-report.md
  • remove liquity fuzzer folder

Copy link
Contributor

@rayeaster rayeaster left a comment

Choose a reason for hiding this comment

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

LGTM

add sequence liq related code removal for #679

Copy link
Collaborator

@GalloDaSballo GalloDaSballo left a comment

Choose a reason for hiding this comment

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

Have gone line by line and it looks fine

Tests are passing as well

@dapp-whisperer dapp-whisperer merged commit 6a127bf into feat/release-0.5 Oct 11, 2023
0 of 3 checks passed
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.

3 participants